Remove configure support for LDBM

This commit is contained in:
Kurt Zeilenga 2006-04-08 04:15:37 +00:00
parent eeffbeea7b
commit 6a64f4bc24
5 changed files with 87 additions and 5064 deletions

View File

@ -154,9 +154,11 @@ LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
LDAP_LIBDIR= $(top_builddir)/libraries LDAP_LIBDIR= $(top_builddir)/libraries
LUTIL_LIBS = @LUTIL_LIBS@ LUTIL_LIBS = @LUTIL_LIBS@
LDBM_LIBS = @LDBM_LIBS@
LTHREAD_LIBS = @LTHREAD_LIBS@ LTHREAD_LIBS = @LTHREAD_LIBS@
BDB_LIBS = @BDB_LIBS@
LDBM_LIBS = $(LDBM_LIBS)
LDAP_LIBLBER_LA = $(LDAP_LIBDIR)/liblber/liblber.la LDAP_LIBLBER_LA = $(LDAP_LIBDIR)/liblber/liblber.la
LDAP_LIBLDAP_LA = $(LDAP_LIBDIR)/libldap/libldap.la LDAP_LIBLDAP_LA = $(LDAP_LIBDIR)/libldap/libldap.la
LDAP_LIBLDAP_R_LA = $(LDAP_LIBDIR)/libldap_r/libldap_r.la LDAP_LIBLDAP_R_LA = $(LDAP_LIBDIR)/libldap_r/libldap_r.la

View File

@ -20,4 +20,4 @@ ol_api_inc=000000
ol_api_current=0 ol_api_current=0
ol_api_revision=0 ol_api_revision=0
ol_api_age=0 ol_api_age=0
ol_release_date="00/00/0000" ol_release_date="0000/00/00"

4848
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -283,7 +283,6 @@ Backends="bdb \
dnssrv \ dnssrv \
hdb \ hdb \
ldap \ ldap \
ldbm \
meta \ meta \
monitor \ monitor \
null \ null \
@ -306,18 +305,6 @@ OL_ARG_ENABLE(hdb,[ --enable-hdb enable Hierarchical DB backend],
yes, [no yes mod], ol_enable_backends)dnl yes, [no yes mod], ol_enable_backends)dnl
OL_ARG_ENABLE(ldap,[ --enable-ldap enable ldap backend], OL_ARG_ENABLE(ldap,[ --enable-ldap enable ldap backend],
no, [no yes mod], ol_enable_backends)dnl no, [no yes mod], ol_enable_backends)dnl
OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend],
no, [no yes mod], ol_enable_backends)dnl
AC_ARG_WITH(ldbm_api,,[
AC_MSG_WARN([Please use --enable-ldbm-api instead of --with-ldbm-api])
enable_ldbm_api="$with_ldbm_api"])
OL_ARG_ENABLE(ldbm_api,[ --enable-ldbm-api use LDBM API],
auto, [auto berkeley bcompat mdbm gdbm])
AC_ARG_WITH(ldbm_type,,[
AC_MSG_WARN([Please use --enable-ldbm-type instead of --with-ldbm-type])
enable_ldbm_type="$with_ldbm_type"])
OL_ARG_ENABLE(ldbm_type,[ --enable-ldbm-type use LDBM type],
auto, [auto btree hash])
OL_ARG_ENABLE(meta,[ --enable-meta enable metadirectory backend], OL_ARG_ENABLE(meta,[ --enable-meta enable metadirectory backend],
no, [no yes mod], ol_enable_backends)dnl no, [no yes mod], ol_enable_backends)dnl
OL_ARG_ENABLE(monitor,[ --enable-monitor enable monitor backend], OL_ARG_ENABLE(monitor,[ --enable-monitor enable monitor backend],
@ -440,12 +427,6 @@ if test $ol_enable_slapd = no ; then
if test $ol_enable_aci != no ; then if test $ol_enable_aci != no ; then
AC_MSG_WARN([slapd disabled, ignoring --enable-aci argument]) AC_MSG_WARN([slapd disabled, ignoring --enable-aci argument])
fi fi
if test $ol_enable_ldbm_api != auto ; then
AC_MSG_WARN([slapd disabled, ignoring --enable-ldbm-api argument])
fi
if test $ol_enable_ldbm_type != auto ; then
AC_MSG_WARN([slapd disabled, ignoring --enable-ldbm-type argument])
fi
if test $ol_enable_slurpd = yes ; then if test $ol_enable_slurpd = yes ; then
AC_MSG_ERROR([slurpd requires slapd]) AC_MSG_ERROR([slurpd requires slapd])
fi fi
@ -475,25 +456,11 @@ if test $ol_enable_slapd = no ; then
ol_enable_aci=no ol_enable_aci=no
ol_enable_wrappers=no ol_enable_wrappers=no
ol_enable_ldbm_api=no
ol_enable_ldbm_type=no
ol_enable_slurpd=no ol_enable_slurpd=no
ol_enable_rewrite=no ol_enable_rewrite=no
elif test $ol_enable_ldbm = no ; then elif test $ol_enable_modules != yes &&
dnl SLAPD without LDBM
if test $ol_enable_ldbm_api != auto ; then
AC_MSG_WARN([LDBM disabled, ignoring --enable-ldbm-api argument])
fi
if test $ol_enable_ldbm_type != auto ; then
AC_MSG_WARN([LDBM disabled, ignoring --enable-ldbm-type argument])
fi
if test $ol_enable_modules != yes &&
test $ol_enable_bdb = no && test $ol_enable_bdb = no &&
test $ol_enable_dnssrv = no && test $ol_enable_dnssrv = no &&
test $ol_enable_hdb = no && test $ol_enable_hdb = no &&
@ -506,6 +473,7 @@ elif test $ol_enable_ldbm = no ; then
test $ol_enable_relay = no && test $ol_enable_relay = no &&
test $ol_enable_shell = no && test $ol_enable_shell = no &&
test $ol_enable_sql = no ; then test $ol_enable_sql = no ; then
dnl no slapd backend
if test $ol_enable_slapd = yes ; then if test $ol_enable_slapd = yes ; then
AC_MSG_ERROR([slapd requires a backend]) AC_MSG_ERROR([slapd requires a backend])
@ -515,37 +483,6 @@ elif test $ol_enable_ldbm = no ; then
fi fi
fi fi
ol_enable_ldbm_api=no
ol_enable_ldbm_type=no
if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
ol_enable_ldbm_api=berkeley
fi
else
dnl SLAPD with LDBM
if test $ol_enable_ldbm_api = gdbm &&
test $ol_enable_ldbm_type = btree ; then
AC_MSG_ERROR([GDBM only supports LDBM type hash])
fi
if test $ol_enable_ldbm_api = mdbm &&
test $ol_enable_ldbm_type = btree ; then
AC_MSG_ERROR([MDBM only supports LDBM type hash])
fi
if test $ol_enable_ldbm_api = ndbm &&
test $ol_enable_ldbm_type = btree ; then
AC_MSG_ERROR([NDBM only supports LDBM type hash])
fi
if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
if test $ol_enable_ldbm_api = auto ; then
ol_enable_ldbm_api=berkeley
elif test $ol_enable_ldbm_api != berkeley ; then
AC_MSG_ERROR([LDBM API not compatible with BDB/HDB])
fi
fi
fi
if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
AC_MSG_ERROR([--enable-meta requires --enable-ldap]) AC_MSG_ERROR([--enable-meta requires --enable-ldap])
fi fi
@ -591,7 +528,7 @@ AC_MSG_RESULT(done)
dnl ---------------------------------------------------------------- dnl ----------------------------------------------------------------
dnl Initialize vars dnl Initialize vars
LDAP_LIBS= LDAP_LIBS=
LDBM_LIBS= BDB_LIBS=
LTHREAD_LIBS= LTHREAD_LIBS=
LUTIL_LIBS= LUTIL_LIBS=
@ -610,7 +547,6 @@ BUILD_BDB=no
BUILD_DNSSRV=no BUILD_DNSSRV=no
BUILD_HDB=no BUILD_HDB=no
BUILD_LDAP=no BUILD_LDAP=no
BUILD_LDBM=no
BUILD_META=no BUILD_META=no
BUILD_MONITOR=no BUILD_MONITOR=no
BUILD_NULL=no BUILD_NULL=no
@ -2001,103 +1937,33 @@ else
fi fi
dnl ---------------------------------------------------------------- dnl ----------------------------------------------------------------
ol_link_ldbm=no ol_link_bdb=no
case $ol_enable_ldbm_api in auto | berkeley | bcompat) if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
if test $ol_enable_ldbm_api = bcompat; then \
OL_BERKELEY_COMPAT_DB
else
OL_BERKELEY_DB OL_BERKELEY_DB
if test $ol_cv_berkeley_db = no ; then
AC_MSG_ERROR(BDB/HDB: BerkeleyDB not available)
fi fi
if test $ol_cv_berkeley_db != no ; then
AC_DEFINE(HAVE_BERKELEY_DB,1, AC_DEFINE(HAVE_BERKELEY_DB,1,
[define this if Berkeley DB is available]) [define this if Berkeley DB is available])
ol_link_ldbm=berkeley
ol_enable_ldbm_api=berkeley
if test $ol_enable_ldbm_type = hash ; then
AC_DEFINE(LDBM_USE_DBHASH,1,
[define this to use DBHASH w/ LDBM backend])
else
AC_DEFINE(LDBM_USE_DBBTREE,1,
[define this to use DBBTREE w/ LDBM backend])
fi
dnl $ol_cv_lib_db should be yes or -ldb dnl $ol_cv_lib_db should be yes or -ldb
dnl (it could be no, but that would be an error dnl (it could be no, but that would be an error
if test $ol_cv_lib_db != yes ; then if test $ol_cv_lib_db != yes ; then
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db" BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
fi fi
fi
;;
esac
if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
if test $ol_link_ldbm != berkeley ; then
AC_MSG_ERROR(BDB/HDB: BerkeleyDB not available)
else
OL_BDB_COMPAT OL_BDB_COMPAT
if test $ol_cv_bdb_compat != yes ; then if test $ol_cv_bdb_compat != yes ; then
AC_MSG_ERROR([BDB/HDB: BerkeleyDB version incompatible]) AC_MSG_ERROR([BDB/HDB: BerkeleyDB version incompatible])
fi fi
fi
fi
if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
AC_MSG_WARN([Could not find LDBM with BTREE support])
ol_enable_ldbm_api=none
fi
if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then ol_link_bdb=yes
OL_MDBM
if test $ol_cv_mdbm = yes ; then
ol_link_ldbm=mdbm
ol_enable_ldbm_api=mdbm
if test $ol_cv_lib_mdbm != yes ; then
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
fi
fi
fi
if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
OL_GDBM
if test $ol_cv_gdbm = yes ; then
ol_link_ldbm=gdbm
ol_enable_ldbm_api=gdbm
if test $ol_cv_lib_gdbm != yes ; then
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
fi
fi
fi
if test $ol_enable_ldbm_api = ndbm ; then
OL_NDBM
if test $ol_cv_ndbm = yes ; then
ol_link_ldbm=ndbm
ol_enable_ldbm_api=ndbm
if test $ol_cv_lib_ndbm != yes ; then
LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
fi
fi
fi
if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
AC_MSG_ERROR([could not find suitable LDBM backend])
fi
if test $ol_enable_bdb = yes ||
test $ol_enable_hdb = yes ||
test $ol_enable_ldbm = yes ; then
SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
fi fi
dnl ---------------------------------------------------------------- dnl ----------------------------------------------------------------
@ -2743,19 +2609,6 @@ if test "$ol_enable_ldap" != no ; then
AC_DEFINE_UNQUOTED(SLAPD_LDAP,$MFLAG,[define to support LDAP backend]) AC_DEFINE_UNQUOTED(SLAPD_LDAP,$MFLAG,[define to support LDAP backend])
fi fi
if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
BUILD_SLAPD=yes
BUILD_LDBM=$ol_enable_ldbm
if test "$ol_enable_ldbm" = mod ; then
SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
MFLAG=SLAPD_MOD_DYNAMIC
else
SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
MFLAG=SLAPD_MOD_STATIC
fi
AC_DEFINE_UNQUOTED(SLAPD_LDBM,$MFLAG,[define to support LDBM backend])
fi
if test "$ol_enable_meta" != no ; then if test "$ol_enable_meta" != no ; then
BUILD_SLAPD=yes BUILD_SLAPD=yes
BUILD_META=$ol_enable_meta BUILD_META=$ol_enable_meta
@ -3118,7 +2971,6 @@ dnl backends
AC_SUBST(BUILD_DNSSRV) AC_SUBST(BUILD_DNSSRV)
AC_SUBST(BUILD_HDB) AC_SUBST(BUILD_HDB)
AC_SUBST(BUILD_LDAP) AC_SUBST(BUILD_LDAP)
AC_SUBST(BUILD_LDBM)
AC_SUBST(BUILD_META) AC_SUBST(BUILD_META)
AC_SUBST(BUILD_MONITOR) AC_SUBST(BUILD_MONITOR)
AC_SUBST(BUILD_NULL) AC_SUBST(BUILD_NULL)
@ -3150,7 +3002,7 @@ AC_SUBST(BUILD_SLURPD)
AC_SUBST(LDAP_LIBS) AC_SUBST(LDAP_LIBS)
AC_SUBST(SLAPD_LIBS) AC_SUBST(SLAPD_LIBS)
AC_SUBST(SLURPD_LIBS) AC_SUBST(SLURPD_LIBS)
AC_SUBST(LDBM_LIBS) AC_SUBST(BDB_LIBS)
AC_SUBST(LTHREAD_LIBS) AC_SUBST(LTHREAD_LIBS)
AC_SUBST(LUTIL_LIBS) AC_SUBST(LUTIL_LIBS)
AC_SUBST(WRAP_LIBS) AC_SUBST(WRAP_LIBS)
@ -3218,7 +3070,6 @@ AC_CONFIG_FILES([Makefile:build/top.mk:Makefile.in:build/dir.mk]
[servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk] [servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk]
[servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk] [servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk]
[servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk] [servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk]
[servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk]
[servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk] [servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk]
[servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk] [servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk]
[servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk] [servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk]

View File

@ -129,9 +129,6 @@
/* define if you have Cyrus SASL */ /* define if you have Cyrus SASL */
#undef HAVE_CYRUS_SASL #undef HAVE_CYRUS_SASL
/* Define to 1 if you have the <db_185.h> header file. */
#undef HAVE_DB_185_H
/* Define to 1 if you have the <db.h> header file. */ /* Define to 1 if you have the <db.h> header file. */
#undef HAVE_DB_H #undef HAVE_DB_H
@ -190,12 +187,6 @@
/* Define to 1 if you have the `gai_strerror' function. */ /* Define to 1 if you have the `gai_strerror' function. */
#undef HAVE_GAI_STRERROR #undef HAVE_GAI_STRERROR
/* define if GNU DBM is available */
#undef HAVE_GDBM
/* Define to 1 if you have the <gdbm.h> header file. */
#undef HAVE_GDBM_H
/* Define to 1 if you have the `getaddrinfo' function. */ /* Define to 1 if you have the `getaddrinfo' function. */
#undef HAVE_GETADDRINFO #undef HAVE_GETADDRINFO
@ -379,12 +370,6 @@
/* Define to 1 if you have the <malloc.h> header file. */ /* Define to 1 if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H #undef HAVE_MALLOC_H
/* define if MDBM is available */
#undef HAVE_MDBM
/* Define to 1 if you have the <mdbm.h> header file. */
#undef HAVE_MDBM_H
/* Define to 1 if you have the `memcpy' function. */ /* Define to 1 if you have the `memcpy' function. */
#undef HAVE_MEMCPY #undef HAVE_MEMCPY
@ -406,12 +391,6 @@
/* define this if you have mkversion */ /* define this if you have mkversion */
#undef HAVE_MKVERSION #undef HAVE_MKVERSION
/* define if NDBM is available */
#undef HAVE_NDBM
/* Define to 1 if you have the <ndbm.h> header file. */
#undef HAVE_NDBM_H
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
#undef HAVE_NDIR_H #undef HAVE_NDIR_H
@ -867,12 +846,6 @@
/* Patch */ /* Patch */
#undef LDAP_VENDOR_VERSION_PATCH #undef LDAP_VENDOR_VERSION_PATCH
/* define this to use DBBTREE w/ LDBM backend */
#undef LDBM_USE_DBBTREE
/* define this to use DBHASH w/ LDBM backend */
#undef LDBM_USE_DBHASH
/* define if memcmp is not 8-bit clean or is otherwise broken */ /* define if memcmp is not 8-bit clean or is otherwise broken */
#undef NEED_MEMCMP_REPLACEMENT #undef NEED_MEMCMP_REPLACEMENT
@ -954,9 +927,6 @@
/* define to support LDAP backend */ /* define to support LDAP backend */
#undef SLAPD_LDAP #undef SLAPD_LDAP
/* define to support LDBM backend */
#undef SLAPD_LDBM
/* define to support LAN Manager passwords */ /* define to support LAN Manager passwords */
#undef SLAPD_LMHASH #undef SLAPD_LMHASH