summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-16 22:44:54 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-16 22:44:54 +0000
commit5f671e03bf96a59651d142d7a1132d0bb391dd3a (patch)
treefe7657836cfd5eacc68f9c7094a7238ff5bc1a6d
parentc5d88b150f6e23c0ecb8c06caa1e5696d2e75147 (diff)
be compatible with berkeley db 4.x, x >= 3
git-svn-id: file:///home/lennart/svn/public/syrep/trunk@117 07ea20a6-d2c5-0310-9e02-9ef735347d72
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index f5b78e0..55310b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,16 +74,16 @@ AC_CHECK_HEADER([db.h],, [AC_MSG_ERROR([*** Sorry, you have to install the Berke
LIBS="$LIBS -ldb"
# Checking libdb version number
-AC_MSG_CHECKING([for Berkeley libdb 4.3])
+AC_MSG_CHECKING([for Berkeley libdb >= 4.3])
AC_LANG_PUSH(C)
AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
#include <db.h>
-#if (DB_VERSION_MAJOR != 4) || (DB_VERSION_MINOR != 3 && DB_VERSION_MINOR != 4)
+#if (DB_VERSION_MAJOR != 4) || (DB_VERSION_MINOR < 3)
#error "foo"
#endif
]])],
[AC_MSG_RESULT([yes])],
-[AC_MSG_FAILURE([Berkeley libdb 4.3 required])])
+[AC_MSG_FAILURE([Berkeley libdb >= 4.3 required])])
AC_LANG_POP(C)
# Check for Linux sendfile()