summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/external/libldb.m47
-rw-r--r--server/external/libpopt.m46
2 files changed, 9 insertions, 4 deletions
diff --git a/server/external/libldb.m4 b/server/external/libldb.m4
index e0b7d42f..150c7ee0 100644
--- a/server/external/libldb.m4
+++ b/server/external/libldb.m4
@@ -2,6 +2,9 @@ AC_SUBST(LDB_OBJ)
AC_SUBST(LDB_CFLAGS)
AC_SUBST(LDB_LIBS)
-AC_CHECK_HEADER(ldb.h,
+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) ],
- [PKG_CHECK_MODULES(LDB, ldb >= 0.9.2)])
+ [AC_MSG_ERROR([LDB header files are not installed])]
+)
diff --git a/server/external/libpopt.m4 b/server/external/libpopt.m4
index c5d12550..e59b2610 100644
--- a/server/external/libpopt.m4
+++ b/server/external/libpopt.m4
@@ -3,5 +3,7 @@ AC_SUBST(POPT_OBJ)
AC_SUBST(POPT_LIBS)
AC_SUBST(POPT_CFLAGS)
-AC_CHECK_HEADERS(popt.h)
-AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS="-lpopt" ])
+AC_CHECK_HEADERS([popt.h],
+ [AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS="-lpopt" ], [AC_MSG_ERROR([POPT must support poptGetContext])])],
+ [AC_MSG_ERROR([POPT development libraries not installed])]
+)