1 dnl ######################################################################
2 dnl Find the name of the nfs filehandle field in nfs_args_t.
3 AC_DEFUN([AMU_STRUCT_FIELD_NFS_FH],
5 dnl make sure this is called before macros which depend on it
6 AC_BEFORE([$0], [AC_TYPE_NFS_FH])
7 AC_CACHE_CHECK(for the name of the nfs filehandle field in nfs_args_t,
8 ac_cv_struct_field_nfs_fh,
10 # set to a default value
11 ac_cv_struct_field_nfs_fh=notfound
12 # look for name "fh" (most systems)
13 if test "$ac_cv_struct_field_nfs_fh" = notfound
17 char *cp = (char *) &(nat.fh);
18 ], ac_cv_struct_field_nfs_fh=fh, ac_cv_struct_field_nfs_fh=notfound)
21 # look for name "root" (for example Linux)
22 if test "$ac_cv_struct_field_nfs_fh" = notfound
26 char *cp = (char *) &(nat.root);
27 ], ac_cv_struct_field_nfs_fh=root, ac_cv_struct_field_nfs_fh=notfound)
30 if test "$ac_cv_struct_field_nfs_fh" != notfound
32 AC_DEFINE_UNQUOTED(NFS_FH_FIELD, $ac_cv_struct_field_nfs_fh)
35 dnl ======================================================================