1dnl ###################################################################### 2dnl Find the structure of an nfs filehandle. 3dnl if found, defined am_nfs_fh3 to it, else leave it undefined. 4dnl THE ORDER OF LOOKUPS IN THIS FILE IS VERY IMPORTANT!!! 5AC_DEFUN([AMU_STRUCT_NFS_FH3], 6[ 7AC_CACHE_CHECK(for type/structure of NFS V3 filehandle, 8ac_cv_struct_nfs_fh3, 9[ 10# try to compile a program which may have a definition for the type 11dnl need a series of compilations, which will test out every possible type 12dnl such as struct nfs_fh3, XXX - what else?, etc. 13# set to a default value 14ac_cv_struct_nfs_fh3=notfound 15 16# look for "nfs_fh3" 17if test "$ac_cv_struct_nfs_fh3" = notfound 18then 19AC_TRY_COMPILE_NFS( 20[ nfs_fh3 nh; 21], ac_cv_struct_nfs_fh3="nfs_fh3_netbsd20", ac_cv_struct_nfs_fh3=notfound) 22fi 23 24# look for "struct nfs_fh3" 25if test "$ac_cv_struct_nfs_fh3" = notfound 26then 27AC_TRY_COMPILE_NFS( 28[ struct nfs_fh3 nh; 29], ac_cv_struct_nfs_fh3="struct nfs_fh3", ac_cv_struct_nfs_fh3=notfound) 30fi 31 32]) 33 34if test "$ac_cv_struct_nfs_fh3" != notfound 35then 36 AC_DEFINE_UNQUOTED(am_nfs_fh3, $ac_cv_struct_nfs_fh3) 37fi 38]) 39dnl ====================================================================== 40