blob: ae697e814026aabddd926ecb8c89eab88f665def (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
dnl Checks for libnfsidmap
dnl
AC_DEFUN([AC_LIBNFSIDMAP], [
dnl Check for libnfsidmap, but do not add -lnfsidmap to LIBS
AC_CHECK_LIB([nfsidmap], [nfs4_init_name_mapping], [LIBNFSIDMAP=-lnfsidmap],
[AC_MSG_ERROR([libnfsidmap not found.])])
AC_CHECK_HEADERS([nfsidmap.h], ,
[AC_MSG_ERROR([libnfsidmap headers not found.])])
dnl nfs4_set_debug() doesn't appear in all versions of libnfsidmap
AC_CHECK_LIB([nfsidmap], [nfs4_set_debug],
[AC_DEFINE([HAVE_NFS4_SET_DEBUG], 1,
[Define to 1 if you have the `nfs4_set_debug' function.])])
dnl nfs4_owner_to_uid() doesn't appear in all versions of libnfsidmap
dnl We just need this test to set $ac_cv_lib_nfsidmap_nfs4_owner_to_uid
AC_CHECK_LIB([nfsidmap], [nfs4_owner_to_uid], [:])
AC_SUBST(LIBNFSIDMAP)
])dnl
|