]> git.decadent.org.uk Git - nfs-utils.git/blob - aclocal/libnfsidmap.m4
Avoid DNS reverse lookups on server names (Closes: #707401).
[nfs-utils.git] / aclocal / libnfsidmap.m4
1 dnl Checks for libnfsidmap
2 dnl
3 AC_DEFUN([AC_LIBNFSIDMAP], [
4
5   dnl Check for libnfsidmap, but do not add -lnfsidmap to LIBS
6   AC_CHECK_LIB([nfsidmap], [nfs4_init_name_mapping], [LIBNFSIDMAP=-lnfsidmap],
7                [AC_MSG_ERROR([libnfsidmap not found.])])
8
9   AC_CHECK_HEADERS([nfsidmap.h], ,
10                    [AC_MSG_ERROR([libnfsidmap headers not found.])])
11
12   dnl nfs4_set_debug() doesn't appear in all versions of libnfsidmap
13   AC_CHECK_LIB([nfsidmap], [nfs4_set_debug],
14                [AC_DEFINE([HAVE_NFS4_SET_DEBUG], 1,
15                           [Define to 1 if you have the `nfs4_set_debug' function.])])
16
17   dnl nfs4_owner_to_uid() doesn't appear in all versions of libnfsidmap
18   dnl We just need this test to set $ac_cv_lib_nfsidmap_nfs4_owner_to_uid
19   AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid], [:])
20
21   AC_SUBST(LIBNFSIDMAP)
22
23 ])dnl