#! /bin/sh
# $OpenLDAP$
-# from OpenLDAP: pkg/ldap/configure.in,v 1.387 2002/01/03 15:24:54 hyc Exp
+# from OpenLDAP: pkg/ldap/configure.in,v 1.388 2002/01/04 20:17:28 kurt Exp
# Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
#
ac_help="$ac_help
--enable-wrappers enable tcp wrapper support [no]"
ac_help="$ac_help
- --enable-bdb enable Berkeley DB backend [no]"
+ --enable-bdb enable Berkeley DB backend [yes]"
ac_help="$ac_help
--with-bdb-module module type [static]"
ac_help="$ac_help
ac_help="$ac_help
--with-ldap-module module type [static]"
ac_help="$ac_help
- --enable-ldbm enable ldbm backend [yes]"
+ --enable-ldbm enable ldbm backend [no]"
ac_help="$ac_help
--with-ldbm-api with LDBM API [auto]"
ac_help="$ac_help
ol_enable_bdb="$ol_arg"
else
- ol_enable_bdb="no"
+ ol_enable_bdb="yes"
fi
# end --enable-bdb
# OpenLDAP --with-bdb_module
ol_enable_ldbm="$ol_arg"
else
- ol_enable_ldbm="yes"
+ ol_enable_ldbm="no"
fi
# end --enable-ldbm
# OpenLDAP --with-ldbm_api
fi
if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
- { echo "configure: error: BerkeleyDB not availabl" 1>&2; exit 1; }
-elif test $ol_enable_bdb != no -a $ol_link_ldbm != no ; then
+ { echo "configure: error: BerkeleyDB not available" 1>&2; exit 1; }
+elif test $ol_enable_bdb != no -a $ol_link_ldbm != berkeley ; then
ol_enable_bdb=yes
fi
OL_ARG_ENABLE(wrappers,[ --enable-wrappers enable tcp wrapper support], no)dnl
dnl SLAPD Backend options
-OL_ARG_ENABLE(bdb,[ --enable-bdb enable Berkeley DB backend], no)dnl
+OL_ARG_ENABLE(bdb,[ --enable-bdb enable Berkeley DB backend], yes)dnl
OL_ARG_WITH(bdb_module,[ --with-bdb-module module type], static,
[static dynamic])
OL_ARG_ENABLE(dnssrv,[ --enable-dnssrv enable dnssrv backend], no)dnl
OL_ARG_ENABLE(ldap,[ --enable-ldap enable ldap backend], no)dnl
OL_ARG_WITH(ldap_module,[ --with-ldap-module module type], static,
[static dynamic])
-OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend], yes)dnl
+OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend], no)dnl
OL_ARG_WITH(ldbm_api,[ --with-ldbm-api with LDBM API], auto,
[auto berkeley bcompat mdbm gdbm])
OL_ARG_WITH(ldbm_module,[ --with-ldbm-module module type], static,
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
+ AC_MSG_ERROR(BerkeleyDB not available)
+elif test $ol_enable_bdb != no -a $ol_link_ldbm != berkeley ; then
ol_enable_bdb=yes
fi
BUILD_BDB=@BUILD_BDB@
test: tests
-tests: ldbm
+tests: bdb ldbm
bdb: test-bdb
test-bdb: FORCE
echo ">>>>> Test Directory: $SRCDIR"
if test $# -eq 0 ; then
- BACKEND=ldbm
+ BACKEND=bdb
else
BACKEND=$1; shift
fi
SLAPCAT="../servers/slapd/tools/slapcat $LDAP_VERBOSE"
SLAPINDEX="../servers/slapd/tools/slapindex $LDAP_VERBOSE"
-CMP="diff -i"
+unset DIFF_OPTIONS
+DIFF="diff -iu"
+CMP="diff -ic"
CMPOUT=/dev/null
SLAPD="../servers/slapd/slapd -s0"
SLURPD=../servers/slurpd/slurpd
LDIFPASSWD=$DATADIR/passwd.ldif
LDIFPASSWDOUT=$DATADIR/passwd-out.ldif
MONITOR=""
-BASEDN="o=University of Michigan, c=US"
-MANAGERDN="cn=Manager, o=University of Michigan, c=US"
-UPDATEDN="cn=Replica, o=University of Michigan, c=US"
+BASEDN="o=University of Michigan,c=US"
+MANAGERDN="cn=Manager,o=University of Michigan,c=US"
+UPDATEDN="cn=Replica,o=University of Michigan,c=US"
PASSWD=secret
-BABSDN="cn=Barbara Jensen, ou=Information Technology Division, ou=People, o=University of Michigan , c = US "
-BJORNSDN="cn=Bjorn Jensen, ou=Information Technology Division, ou=People, o=University of Michigan, c=US"
-JAJDN="cn=James A Jones 1, ou=Alumni Association, ou=People, o=University of Michigan, c=US"
+BABSDN="cn=Barbara Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US"
+BJORNSDN="cn=Bjorn Jensen,ou=Information Technology Division,ou=People,o=University of Michigan,c=US"
+JAJDN="cn=James A Jones 1,ou=Alumni Association,ou=People,o=University of Michigan,c=US"
MASTERLOG=$DBDIR/master.log
SLAVELOG=$DBDIR/slave.log
SLURPLOG=$DBDIR/slurp.log
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $? != 0 ; then
echo "comparison failed - database was not created correctly"
echo $SEARCHFLT $LDIFFLT
- diff -iu $SEARCHFLT $LDIFFLT
+ $DIFF $SEARCHFLT $LDIFFLT
exit 1
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $# -ge 1 ; then
SRCDIR=$1; shift
fi
-BACKEND=ldbm
+BACKEND=bdb
if test $# -ge 1 ; then
BACKEND=$1; shift
fi
if test $? != 0 ; then
echo "comparison failed - database was not created correctly"
echo $SEARCHFLT $LDIFFLT
- diff -iu $SEARCHFLT $LDIFFLT
+ $DIFF $SEARCHFLT $LDIFFLT
exit 1
fi