1dnl ###################################################################### 2dnl Find if struct nfs_args exists anywhere in typical headers 3AC_DEFUN([AMU_STRUCT_NFS_ARGS], 4[ 5dnl make sure this is called before [AC_TYPE_NFS_FH] 6AC_BEFORE([$0], [AC_TYPE_NFS_FH]) 7AC_BEFORE([$0], [AC_STRUCT_FIELD_NFS_FH]) 8AC_CACHE_CHECK(for struct nfs_args, 9ac_cv_have_struct_nfs_args, 10[ 11# try to compile a program which may have a definition for the structure 12# assume not found 13ac_cv_have_struct_nfs_args=notfound 14 15# look for "struct irix5_nfs_args" (specially set in conf/nfs_prot/) 16if test "$ac_cv_have_struct_nfs_args" = notfound 17then 18AC_TRY_COMPILE_NFS( 19[ struct irix5_nfs_args na; 20], ac_cv_have_struct_nfs_args="struct irix5_nfs_args", ac_cv_have_struct_nfs_args=notfound) 21fi 22 23# look for "struct aix5_nfs_args" (specially set in conf/nfs_prot/) 24if test "$ac_cv_have_struct_nfs_args" = notfound 25then 26AC_TRY_COMPILE_NFS( 27[ struct aix5_nfs_args na; 28], ac_cv_have_struct_nfs_args="struct aix5_nfs_args", ac_cv_have_struct_nfs_args=notfound) 29fi 30 31# look for "struct aix4_nfs_args" (specially set in conf/nfs_prot/) 32if test "$ac_cv_have_struct_nfs_args" = notfound 33then 34AC_TRY_COMPILE_NFS( 35[ struct aix4_nfs_args na; 36], ac_cv_have_struct_nfs_args="struct aix4_nfs_args", ac_cv_have_struct_nfs_args=notfound) 37fi 38 39# look for "struct nfs_args" 40if test "$ac_cv_have_struct_nfs_args" = notfound 41then 42AC_TRY_COMPILE_NFS( 43[ struct nfs_args na; 44], ac_cv_have_struct_nfs_args="struct nfs_args", ac_cv_have_struct_nfs_args=notfound) 45fi 46 47]) 48 49if test "$ac_cv_have_struct_nfs_args" != notfound 50then 51 AC_DEFINE(HAVE_STRUCT_NFS_ARGS) 52 AC_DEFINE_UNQUOTED(nfs_args_t, $ac_cv_have_struct_nfs_args) 53fi 54]) 55dnl ====================================================================== 56