1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
AC_SUBST(NFSIDMAP_OBJ)
AC_SUBST(NFSIDMAP_CFLAGS)
AC_SUBST(NFSIDMAP_LIBS)
AS_IF([test x"$with_nfsv4_idmap" = xyes], [
PKG_CHECK_MODULES([NFSIDMAP], [libnfsidmap], [found_nfsidmap=yes],
[found_nfsidmap=no])
SSS_AC_EXPAND_LIB_DIR()
AS_IF([test x"$found_nfsidmap" != xyes],
[AC_CHECK_HEADER([nfsidmap.h],
[AC_CHECK_LIB([nfsidmap],
[nfs4_init_name_mapping],
[NFSIDMAP_LIBS="-L$sss_extra_libdir -lnfsidmap"],
[AC_MSG_ERROR([libnfsidmap missing nfs4_init_name_mapping])],
[-L$sss_extra_libdir])],
[AC_MSG_ERROR([libnfsidmap header files are not installed]
If you want to build sssd without nfs idmap pluging then specify
--without-nfsv4-idmapd-plugin when running configure.)])])
AC_CHECK_HEADERS([nfsidmap_plugin.h], [], [],
[#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#include <nfsidmap.h>])
])
|