Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
François Kooman
OpenLDAP
Commits
c3b0c9bd
Commit
c3b0c9bd
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Initial autoconf support for back-bdb
parent
434b0738
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+756
-677
756 additions, 677 deletions
configure
configure.in
+30
-0
30 additions, 0 deletions
configure.in
include/portable.h.in
+6
-0
6 additions, 0 deletions
include/portable.h.in
servers/slapd/back-bdb/Makefile.in
+33
-0
33 additions, 0 deletions
servers/slapd/back-bdb/Makefile.in
with
825 additions
and
677 deletions
configure
+
756
−
677
View file @
c3b0c9bd
This diff is collapsed.
Click to expand it.
configure.in
+
30
−
0
View file @
c3b0c9bd
...
...
@@ -159,6 +159,9 @@ OL_ARG_ENABLE(wrappers,[ --enable-wrappers enable tcp wrapper support], no)
OL_ARG_ENABLE(dynamic,[ --enable-dynamic enable linking built binaries with dynamic libs], no)dnl
dnl SLAPD Backend options
OL_ARG_ENABLE(bdb,[ --enable-bdb enable Berkeley DB backend], no)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_WITH(dnssrv_module,[ --with-dnssrv-module module type], static,
[static dynamic])
...
...
@@ -205,6 +208,9 @@ dnl General "enable" options
# validate options
if test $ol_enable_slapd = no ; then
dnl SLAPD was specificallly disabled
if test $ol_enable_bdb = yes ; then
AC_MSG_WARN([slapd disabled, ignoring --enable-bdb argument])
fi
if test $ol_enable_dnssrv = yes ; then
AC_MSG_WARN([slapd disabled, ignoring --enable-dnssrv argument])
fi
...
...
@@ -253,6 +259,9 @@ if test $ol_enable_slapd = no ; then
if test $ol_with_ldbm_type != auto ; then
AC_MSG_WARN([slapd disabled, ignoring --with-ldbm-type argument])
fi
if test $ol_with_bdb_module != static ; then
AC_MSG_WARN([slapd disabled, ignoring --with-bdb-module argument])
fi
if test $ol_with_dnssrv_module != static ; then
AC_MSG_WARN([slapd disabled, ignoring --with-dnssrv-module argument])
fi
...
...
@@ -282,6 +291,7 @@ if test $ol_enable_slapd = no ; then
fi
# force settings to no
ol_enable_bdb=no
ol_enable_dnssrv=no
ol_enable_ldap=no
ol_enable_ldbm=no
...
...
@@ -302,6 +312,7 @@ if test $ol_enable_slapd = no ; then
ol_with_ldbm_api=no
ol_with_ldbm_type=no
ol_with_bdb_module=static
ol_with_dnssrv_module=static
ol_with_ldap_module=static
ol_with_ldbm_module=static
...
...
@@ -329,6 +340,7 @@ elif test $ol_enable_ldbm = no ; then
fi
if test $ol_enable_modules != yes -a \
$ol_enable_bdb = no -a \
$ol_enable_dnssrv = no -a \
$ol_enable_ldap = no -a \
$ol_enable_passwd = no -a \
...
...
@@ -403,6 +415,7 @@ BUILD_SLURPD=no
BUILD_THREAD=no
BUILD_BDB=no
BUILD_DNSSRV=no
BUILD_LDAP=no
BUILD_LDBM=no
...
...
@@ -412,6 +425,7 @@ BUILD_SHELL=no
BUILD_SQL=no
BUILD_TCL=no
BUILD_BDB_DYNAMIC=static
BUILD_DNSSRV_DYNAMIC=static
BUILD_LDAP_DYNAMIC=static
BUILD_LDBM_DYNAMIC=static
...
...
@@ -644,6 +658,7 @@ if test $ol_enable_modules != no ; then
fi
ol_link_modules=yes
else
ol_with_bdb_module=static
ol_with_dnssrv_module=static
ol_with_ldap_module=static
ol_with_ldbm_module=static
...
...
@@ -2215,6 +2230,19 @@ if test "$ol_link_modules" != no ; then
SLAPD_MODULES_LDFLAGS="-dlopen self"
fi
if test "$ol_enable_bdb" != no ; then
AC_DEFINE(SLAPD_BDB,1,[define to support BDB backend])
BUILD_SLAPD=yes
BUILD_BDB=yes
if test "$ol_with_bdb_module" != static ; then
AC_DEFINE(SLAPD_BDB_DYNAMIC,1,
[define to support dynamic BDB backend])
BUILD_BDB=mod
BUILD_BDB_DYNAMIC=shared
SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
fi
fi
if test "$ol_link_dnssrv" != no ; then
AC_DEFINE(SLAPD_DNSSRV,1,[define to support DNS SRV backend])
BUILD_SLAPD=yes
...
...
@@ -2350,6 +2378,7 @@ AC_SUBST(LT_LIB_LINKAGE)
AC_SUBST(DYN_EXT)
AC_SUBST(BUILD_SLAPD)
AC_SUBST(BUILD_BDB)
AC_SUBST(BUILD_DNSSRV)
AC_SUBST(BUILD_LDAP)
AC_SUBST(BUILD_LDBM)
...
...
@@ -2433,6 +2462,7 @@ libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:bu
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/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/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-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 \
...
...
This diff is collapsed.
Click to expand it.
include/portable.h.in
+
6
−
0
View file @
c3b0c9bd
...
...
@@ -888,6 +888,12 @@
/* define to support modules */
#undef SLAPD_MODULES
/* define to support BDB backend */
#undef SLAPD_BDB
/* define to support dynamic BDB backend */
#undef SLAPD_BDB_DYNAMIC
/* define to support DNS SRV backend */
#undef SLAPD_DNSSRV
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/back-bdb/Makefile.in
0 → 100644
+
33
−
0
View file @
c3b0c9bd
# $OpenLDAP$
SRCS
=
init.c
OBJS
=
init.lo
LDAP_INCDIR
=
../../../include
LDAP_LIBDIR
=
../../../libraries
BUILD_OPT
=
"--enable-bdb"
BUILD_MOD
=
@BUILD_BDB@
LINKAGE
=
@BUILD_BDB_DYNAMIC@
DYN_DEFS
=
-DLBER_DECL
=
dllimport
-DLDAP_DECL
=
dllimport
# TODO
#NT_mod_DYN_MODDEFS =
#NT_mod_STAT_MODDEFS =
NT_yes_DYN_MODDEFS
=
$(
DYN_DEFS
)
NT_yes_STAT_MODDEFS
=
MODDEFS
=
$(
@PLAT@_@BUILD_LDBM@_@LIB_LINKAGE@_MODDEFS
)
LIBBASE
=
back_bdb
XINCPATH
=
-I
..
-I
$(
srcdir
)
/..
XDEFS
=
$(
MODULES_CPPFLAGS
)
all-local-lib
:
../.backend
../.backend
:
lib$(LIBBASE).a
@
touch
$@
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment