summaryrefslogtreecommitdiffstats
path: root/src/external/libnfsidmap.m4
blob: 56c7b55bce6db62208f26749aa089e6decaddb39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.)])])
])