dnl ----------------------------------------------------------------
dnl General "with" options
-OL_ARG_ENABLE(dmalloc,[ --enable-dmalloc enable debug malloc support], no)dnl
+dnl OL_ARG_ENABLE(dmalloc,[ --enable-dmalloc enable debug malloc support], no)dnl
OL_ARG_WITH(cyrus_sasl,[ --with-cyrus-sasl with Cyrus SASL support],
auto, [auto yes no] )
dnl ----------------------------------------------------------------
dnl Server options
dnl ----------------------------------------------------------------
-dnl LDAPD OPTIONS
-AC_ARG_WITH(xxldapdoptions,[LDAPD (X.500-to-LDAP Gateway) Options:])
-OL_ARG_ENABLE(ldapd,[ --enable-ldapd enable building ldapd], no)dnl
dnl ----------------------------------------------------------------
dnl SLAPD OPTIONS
[static dynamic])
OL_ARG_ENABLE(ldbm,[ --enable-ldbm enable ldbm backend], yes)dnl
OL_ARG_WITH(ldbm_api,[ --with-ldbm-api use LDBM API], auto,
- [auto db2 db mdbm gdbm manual])
+ [auto berkeley bcompat mdbm gdbm])
OL_ARG_WITH(ldbm_module,[ --with-ldbm-module module type], static,
[static dynamic])
OL_ARG_WITH(ldbm_type,[ --with-ldbm-type use LDBM type], auto,
dnl SLAPD with BDB2
if test $ol_with_ldbm_api != auto -a \
- $ol_with_ldbm_api != db2 ; then
- AC_MSG_ERROR([BDB2 requires LDBM API DB2])
+ $ol_with_ldbm_api != berkeley ; then
+ AC_MSG_ERROR([BDB2 requires LDBM API berkeley or auto])
fi
ol_with_ldbm_api=db2
if test $ol_enable_bdb2 != no ; then
if test $ol_with_ldbm_api != auto -a \
- $ol_with_ldbm_api != db2 ; then
- AC_MSG_WARN([BDB2 requires LDBM api db2 or auto])
+ $ol_with_ldbm_api != berkeley ; then
+ AC_MSG_WARN([BDB2 requires LDBM api berkeley or auto])
ol_enable_bdb2=no
fi
fi
LTHREAD_LIBS=
LUTIL_LIBS=
-LDAPD_LIBS=
+QUIPU_LIBS=
SLAPD_LIBS=
SLURPD_LIBS=
-BUILD_LDAPD=no
BUILD_SLAPD=no
BUILD_SLURPD=no
fi
-dnl ----------------------------------------------------------------
-dnl ISODE tests
-ol_link_isode=no
-if test $ol_enable_ldapd != no ; then
- AC_MSG_WARN([ldapd is not supported and may suffer from bit rot.])
-
- dnl look for ISODE libraries
- AC_CHECK_LIB(xtpp, main, [
- ol_link_isode=yes
- AC_DEFINE(HAVE_XTPP,1, [define if you have -lxttp])
- LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
- ],:,[-lxtdsap -lxtisode -losi])
- AC_CHECK_LIB(dsap, main, [
- ol_link_isode=yes
- AC_DEFINE(HAVE_DSAP,1, [define if you have -ldsap])
- LDAPD_LIBS="$LDAPD_LIBS -ldsap"
- ],:,[-lisode])
- AC_CHECK_LIB(isode, main, [
- ol_link_isode=yes
- AC_DEFINE(HAVE_ISODE,1, [define if you have -lisode])
- LDAPD_LIBS="$LDAPD_LIBS -lisode"
- ],:)
-fi
-
-if test $ol_link_isode != no; then
- AC_CHECK_LIB(pp, main, [
- AC_DEFINE(HAVE_PP,1, [define if you have -lpp])
- LDAPD_LIBS="-lpp $LDAPD_LIBS"
- ],:)
-
- AC_PATH_PROG(PEPSY, pepsy)
-fi
-
dnl ----------------------------------------------------------------
dnl QUIPU
if test $ol_enable_quipu != no ; then
fi
dnl ----------------------------------------------------------------
-
ol_link_ldbm=no
-if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
- OL_BERKELEY_DB2
- if test $ol_cv_berkeley_db2 = yes ; then
- ol_link_ldbm=db2
- ol_with_ldbm_api=db2
+if test $ol_with_ldbm_api = auto \
+ -o $ol_with_ldbm_api = berkeley \
+ -o $ol_with_ldbm_api = bcompat ; then
- if test $ol_with_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
-
- OL_BERKELEY_DB2_DB_THREAD
-
- dnl $ol_cv_lib_db2 should be yes or -ldb
- dnl (it could be no, but that would be an error
- if test $ol_cv_lib_db2 != yes ; then
- LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
- fi
- fi
-fi
-
-ol_link_bdb2=no
-if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
- if test $ol_cv_berkeley_db2_db_thread != no ; then
- ol_link_bdb2=yes
+ if test $ol_with_ldbm_api = bcompat; then \
+ OL_BERKELEY_COMPAT_DB
else
- AC_MSG_WARN([Installed BerkeleyDB does not provide DB_THREAD support.])
+ OL_BERKELEY_DB
fi
-fi
-if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
- OL_BERKELEY_DB
+ if test $ol_cv_berkeley_db != no ; then
+ AC_DEFINE(HAVE_BERKELEY_DB,1,
+ [define this if Berkeley DB is available])
- if test $ol_cv_berkeley_db = yes ; then
- ol_link_ldbm=db
+ ol_link_ldbm=berkeley
ol_with_ldbm_api=db
if test $ol_with_ldbm_type = hash ; then
fi
fi
-if test $ol_with_ldbm_api = manual ; then
- dnl User thinks he can manually configure LDBM api.
- ol_link_ldbm=yes
-
- AC_MSG_WARN([LDBM defines and link options must be set manually])
-
- AC_CHECK_HEADERS(db.h db_185.h gdbm.h ndbm.h)
-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
ol_enable_ldbm=no
fi
+dnl ----------------------------------------------------------------
+ol_link_bdb2=no
+if test $ol_enable_bdb2 != no ; then
+ if test $ol_enable_bdb2 = yes -a $ol_link_ldbm != berkeley ; then
+ AC_MSG_ERROR(BDB2 requires LDBM BerkeleyDB 2)
+ elif test $ol_link_ldbm = berkeley ; then
+ ol_link_bdb2=$ol_link_ldbm
+ fi
+fi
+
dnl ----------------------------------------------------------------
if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
LINK_BINS_DYNAMIC="yes"
fi
dnl ----------------------------------------------------------------
-if test $ol_enable_dmalloc != no ; then
- AC_CHECK_HEADERS(dmalloc.h)
- AC_CHECK_LIB(dmalloc, dmalloc_shutdown)
-fi
-
+dnl dmalloc support (deprecated in favor of -DCSRIMALLOC support)
+dnl if test $ol_enable_dmalloc != no ; then
+dnl AC_CHECK_HEADERS(dmalloc.h)
+dnl AC_CHECK_LIB(dmalloc, dmalloc_shutdown)
+dnl fi
dnl ----------------------------------------------------------------
dnl TCL
if test $ol_enable_tcl != no ; then
getgrgid \
gethostname \
getpass \
+ getpassphrase \
getpwuid \
getpwnam \
getspnam \
BUILD_SLURPD=yes
fi
-if test "$ol_link_isode" != no ; then
- BUILD_LDAPD=yes
-fi
-
dnl ----------------------------------------------------------------
if test "$LINK_BINS_DYNAMIC" = yes; then
AC_SUBST(LT_LIB_LINKAGE)
AC_SUBST(DYN_EXT)
-AC_SUBST(BUILD_LDAPD)
AC_SUBST(BUILD_SLAPD)
AC_SUBST(BUILD_BDB2)
AC_SUBST(BUILD_DNSSRV)
AC_SUBST(BUILD_SLURPD)
AC_SUBST(LDAP_LIBS)
-AC_SUBST(LDAPD_LIBS)
AC_SUBST(LDIF_LIBS)
AC_SUBST(SLAPD_LIBS)
+AC_SUBST(QUIPU_LIBS)
AC_SUBST(SLURPD_LIBS)
AC_SUBST(LDBM_LIBS)
AC_SUBST(LTHREAD_LIBS)
libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
-servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \