xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/try_compile_nfs.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1dnl ######################################################################
2dnl Compile a program with NFS headers to try and find a feature.
3dnl The headers part are fixed.  Only three arguments are allowed:
4dnl [$1] is the program to compile (2nd arg to AC_TRY_COMPILE)
5dnl [$2] action to take if the program compiled (3rd arg to AC_TRY_COMPILE)
6dnl [$3] action to take if program did not compile (4rd arg to AC_TRY_COMPILE)
7AC_DEFUN([AC_TRY_COMPILE_NFS],
8[# try to compile a program which may have a definition for a structure
9AC_TRY_COMPILE(
10AMU_MOUNT_HEADERS
11, [$1], [$2], [$3])
12])
13dnl ======================================================================
14