xref: /netbsd-src/external/bsd/am-utils/dist/m4/macros/check_nfs_hn_dref.m4 (revision a53f50b9b44dc9467ccc9c464999b1d1c509cb0c)
1dnl ######################################################################
2dnl check the correct way to dereference the hostname part of the nfs fhandle
3AC_DEFUN([AMU_CHECK_NFS_HN_DREF],
4[
5AC_CACHE_CHECK(nfs hostname dereferencing style,
6ac_cv_nfs_hn_dref_style,
7[
8# select the correct nfs address dereferencing style
9case "${host_os_name}" in
10	linux* )
11		ac_cv_nfs_hn_dref_style=linux ;;
12	isc3 )
13		ac_cv_nfs_hn_dref_style=isc3 ;;
14	* )
15		ac_cv_nfs_hn_dref_style=default ;;
16esac
17])
18am_utils_nfs_hn_dref=$srcdir"/conf/hn_dref/hn_dref_"$ac_cv_nfs_hn_dref_style".h"
19AC_SUBST_FILE(am_utils_nfs_hn_dref)
20])
21dnl ======================================================================
22