summaryrefslogtreecommitdiff
path: root/src/external/libtdb.m4
blob: 04ac71d6ba3f1b45b0dd2b3e3c65b5beed049df9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
AC_SUBST(TDB_OBJ)
AC_SUBST(TDB_CFLAGS)
AC_SUBST(TDB_LIBS)

PKG_CHECK_MODULES([TDB], [tdb >= 1.1.3], [found_tdb=yes], [found_tdb=no])

SSS_AC_EXPAND_LIB_DIR()
AS_IF([test x"$found_tdb" != xyes],
    [AC_CHECK_HEADERS([tdb.h],
        [AC_CHECK_LIB([tdb],
                      [tdb_repack],
                      [TDB_LIBS="-L$sss_extra_libdir -ltdb"],
                      [AC_MSG_ERROR([library TDB must support tdb_repack])],
                      [-L$sss_extra_libdir])],
        [AC_MSG_ERROR([tdb header files are not installed])])]
)