Skip to content
Snippets Groups Projects
Commit 9a34ebab authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Hack to allow --enable-bdb --disable-ldbm, needs more work.

parent 3f0917e5
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -382,13 +382,23 @@ elif test $ol_enable_ldbm = no ; then
$ol_enable_shell = no -a \
$ol_enable_sql = no -a \
$ol_enable_tcl = no ; then
AC_MSG_ERROR([slapd requires a backend])
if test $ol_enable_slapd = yes ; then
AC_MSG_ERROR([slapd requires a backend])
else
AC_MSG_WARN([skipping slapd, no backend specified])
ol_enable_slapd=no
fi
fi
ol_with_ldbm_api=no
ol_with_ldbm_type=no
ol_with_ldbm_module=static
if test $ol_enable_bdb != no ; then
ol_with_ldbm_api=berkeley
fi
else
dnl SLAPD with LDBM
if test $ol_with_ldbm_api = gdbm -a \
......@@ -403,6 +413,21 @@ else
$ol_with_ldbm_type = btree ; then
AC_MSG_ERROR([NDBM only supports LDBM type hash])
fi
if test $ol_enable_bdb = yes ; then
if test $ol_with_ldbm_api = auto ; then
ol_with_ldbm_api=berkeley
elif test $ol_with_ldbm_api != berkeley ; then
AC_MSG_ERROR([LDBM API not compatible with BDB])
fi
elif test $ol_enable_bdb = auto ; then
if test $ol_with_ldbm_api != berkeley \
-o $ol_with_ldbm_api != auto ; then
AC_MSG_WARN([LDBM API not compatible with BDB, disabling BDB])
ol_enable_bdb=no
fi
fi
fi
if test $ol_enable_slurpd = yes ; then
......@@ -1752,7 +1777,7 @@ if test $ol_with_ldbm_api = auto \
[define this if Berkeley DB is available])
ol_link_ldbm=berkeley
ol_with_ldbm_api=db
ol_with_ldbm_api=berkeley
if test $ol_with_ldbm_type = hash ; then
AC_DEFINE(LDBM_USE_DBHASH,1,
......@@ -1770,6 +1795,12 @@ if test $ol_with_ldbm_api = auto \
fi
fi
if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
AC_MSG_ERROR(BerkeleyDB not availabl)
elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
ol_enable_bdb=yes
fi
if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
AC_MSG_WARN(Could not find LDBM with BTREE support)
ol_with_ldbm_api=none
......@@ -2361,7 +2392,7 @@ if test "$ol_enable_ldap" != no ; then
fi
fi
if test "$ol_link_ldbm" != no ; then
if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
AC_DEFINE(SLAPD_LDBM,1,[define to support LDBM backend])
BUILD_SLAPD=yes
BUILD_LDBM=yes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment