1dnl ######################################################################
2dnl Find if struct nfs_gfs_mount exists anywhere in typical headers
3AC_DEFUN([AMU_STRUCT_NFS_GFS_MOUNT],
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_gfs_mount,
9ac_cv_have_struct_nfs_gfs_mount,
10[
11# try to compile a program which may have a definition for the structure
12AC_TRY_COMPILE_NFS(
13[ struct nfs_gfs_mount ngm;
14], ac_cv_have_struct_nfs_gfs_mount=yes, ac_cv_have_struct_nfs_gfs_mount=no)
15])
16if test "$ac_cv_have_struct_nfs_gfs_mount" = yes
17then
18  AC_DEFINE(HAVE_STRUCT_NFS_GFS_MOUNT)
19  AC_DEFINE(nfs_args_t, struct nfs_gfs_mount)
20fi
21])
22dnl ======================================================================
23