summaryrefslogtreecommitdiff
path: root/server/external/libldb.m4
blob: 150c7ee06ce6dc87cce13e63a62df86ab4db2b60 (plain)
1
2
3
4
5
6
7
8
9
10
AC_SUBST(LDB_OBJ)
AC_SUBST(LDB_CFLAGS)
AC_SUBST(LDB_LIBS)

PKG_CHECK_MODULES(LDB, ldb >= 0.9.2)

AC_CHECK_HEADERS(ldb.h ldb_module.h,
   [AC_CHECK_LIB(ldb, ldb_init, [LDB_LIBS="-lldb"], , -ltevent) ],
   [AC_MSG_ERROR([LDB header files are not installed])]
)