1dnl ######################################################################
2dnl Find if type 'fhandle' exists
3AC_DEFUN([AMU_CHECK_FHANDLE],
4[
5AC_CACHE_CHECK(if plain fhandle type exists,
6ac_cv_have_fhandle,
7[
8# try to compile a program which may have a definition for the type
9# set to a default value
10ac_cv_have_fhandle=no
11# look for "struct nfs_fh"
12if test "$ac_cv_have_fhandle" = no
13then
14AC_TRY_COMPILE_NFS(
15[ fhandle a;
16], ac_cv_have_fhandle=yes, ac_cv_have_fhandle=no)
17fi
18
19])
20if test "$ac_cv_have_fhandle" != no
21then
22  AC_DEFINE(HAVE_FHANDLE)
23fi
24])
25dnl ======================================================================
26