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

This commit is contained in:
Kurt Zeilenga 2001-10-04 04:54:12 +00:00
parent 3f0917e57b
commit 9a34ebabd2
2 changed files with 745 additions and 683 deletions

1391
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -382,13 +382,23 @@ elif test $ol_enable_ldbm = no ; then
$ol_enable_shell = no -a \ $ol_enable_shell = no -a \
$ol_enable_sql = no -a \ $ol_enable_sql = no -a \
$ol_enable_tcl = no ; then $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 fi
ol_with_ldbm_api=no ol_with_ldbm_api=no
ol_with_ldbm_type=no ol_with_ldbm_type=no
ol_with_ldbm_module=static ol_with_ldbm_module=static
if test $ol_enable_bdb != no ; then
ol_with_ldbm_api=berkeley
fi
else else
dnl SLAPD with LDBM dnl SLAPD with LDBM
if test $ol_with_ldbm_api = gdbm -a \ if test $ol_with_ldbm_api = gdbm -a \
@ -403,6 +413,21 @@ else
$ol_with_ldbm_type = btree ; then $ol_with_ldbm_type = btree ; then
AC_MSG_ERROR([NDBM only supports LDBM type hash]) AC_MSG_ERROR([NDBM only supports LDBM type hash])
fi 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 fi
if test $ol_enable_slurpd = yes ; then 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]) [define this if Berkeley DB is available])
ol_link_ldbm=berkeley ol_link_ldbm=berkeley
ol_with_ldbm_api=db ol_with_ldbm_api=berkeley
if test $ol_with_ldbm_type = hash ; then if test $ol_with_ldbm_type = hash ; then
AC_DEFINE(LDBM_USE_DBHASH,1, AC_DEFINE(LDBM_USE_DBHASH,1,
@ -1770,6 +1795,12 @@ if test $ol_with_ldbm_api = auto \
fi fi
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 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
AC_MSG_WARN(Could not find LDBM with BTREE support) AC_MSG_WARN(Could not find LDBM with BTREE support)
ol_with_ldbm_api=none ol_with_ldbm_api=none
@ -2361,7 +2392,7 @@ if test "$ol_enable_ldap" != no ; then
fi fi
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]) AC_DEFINE(SLAPD_LDBM,1,[define to support LDBM backend])
BUILD_SLAPD=yes BUILD_SLAPD=yes
BUILD_LDBM=yes BUILD_LDBM=yes