Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
James Lowden
OpenLDAP
Commits
48e73426
Commit
48e73426
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Add basic gmodule detection for SLAPD_MODULES.
Cleanup perl detection.
parent
a3f9a59e
No related branches found
No related tags found
No related merge requests found
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
acconfig.h
+3
-0
3 additions, 0 deletions
acconfig.h
build/top.mk
+2
-0
2 additions, 0 deletions
build/top.mk
configure
+686
-581
686 additions, 581 deletions
configure
configure.in
+55
-9
55 additions, 9 deletions
configure.in
include/portable.h.in
+3
-0
3 additions, 0 deletions
include/portable.h.in
with
749 additions
and
590 deletions
acconfig.h
+
3
−
0
View file @
48e73426
...
...
@@ -201,6 +201,9 @@
/* define this to use SLAPD LDBM backend */
#undef SLAPD_LDBM
/* define this to use SLAPD Modules */
#undef SLAPD_MODULES
/* define this to use SLAPD passwd backend */
#undef SLAPD_PASSWD
...
...
This diff is collapsed.
Click to expand it.
build/top.mk
+
2
−
0
View file @
48e73426
...
...
@@ -114,6 +114,8 @@ AC_LDFLAGS = @LDFLAGS@
AC_LIBS
=
@LIBS@
KRB_LIBS
=
@KRB_LIBS@
MODULES_CPPFLAGS
=
@SLAPD_MODULES_CPPFLAGS@
MODULES_LDFLAGS
=
@SLAPD_MODULES_LDFLAGS@
PERL_CPPFLAGS
=
@SLAPD_PERL_CPPFLAGS@
PERL_LDFLAGS
=
@SLAPD_PERL_LDFLAGS@
TERMCAP_LIBS
=
@TERMCAP_LIBS@
...
...
This diff is collapsed.
Click to expand it.
configure
+
686
−
581
View file @
48e73426
This diff is collapsed.
Click to expand it.
configure.in
+
55
−
9
View file @
48e73426
...
...
@@ -75,9 +75,10 @@ OL_ARG_ENABLE(slapd,[ --enable-slapd enable building slapd], yes)dnl
OL_ARG_ENABLE(aclgroups,[ --enable-aclgroups enable ACL group support], auto)dnl
OL_ARG_ENABLE(cleartext,[ --enable-cleartext enable cleartext passwords], yes)dnl
OL_ARG_ENABLE(crypt,[ --enable-crypt enable crypt(3) passwords], auto)dnl
OL_ARG_ENABLE(
wrapper
s,[ --enable-
wrapper
s enable
tcp wrapper
support], no)dnl
OL_ARG_ENABLE(
module
s,[ --enable-
module
s enable
dynamic module
support], no)dnl
OL_ARG_ENABLE(phonetic,[ --enable-phonetic enable phonetic/soundex], no)dnl
OL_ARG_ENABLE(rlookups,[ --enable-rlookups enable reverse lookups], auto)dnl
OL_ARG_ENABLE(wrappers,[ --enable-wrappers enable tcp wrapper support], no)dnl
dnl SLAPD Backend options
OL_ARG_ENABLE(bdb2,[ --enable-bdb2 enable bdb2 backend], no)dnl
...
...
@@ -136,6 +137,9 @@ if test $ol_enable_slapd = no ; then
if test $ol_enable_aclgroups = yes ; then
AC_MSG_WARN([slapd disabled, ignoring --enable_aclgroups argument])
fi
if test $ol_enable_modules = yes ; then
AC_MSG_WARN([slapd disabled, ignoring --enable_modules argument])
fi
if test $ol_enable_wrappers = yes ; then
AC_MSG_WARN([slapd disabled, ignoring --enable_wrappers argument])
fi
...
...
@@ -162,12 +166,16 @@ if test $ol_enable_slapd = no ; then
ol_enable_perl=no
ol_enable_shell=no
ol_enable_tcl=no
ol_enable_aclgroups=no
ol_enable_
wrapper
s=no
ol_enable_
module
s=no
ol_enable_phonetic=no
ol_enable_rlookups=no
ol_enable_wrappers=no
ol_with_ldbm_api=no
ol_with_ldbm_type=no
ol_enable_slurpd=no
elif test $ol_enable_ldbm = no ; then
...
...
@@ -185,7 +193,8 @@ elif test $ol_enable_ldbm = no ; then
AC_MSG_ERROR([BDB2 requires --enable-ldbm])
fi
if test $ol_enable_passwd = no -a \
if test $ol_enable_modules != yes -a \
$ol_enable_passwd = no -a \
$ol_enable_perl = no -a \
$ol_enable_shell = no -a \
$ol_enable_tcl = no ; then
...
...
@@ -261,6 +270,9 @@ BUILD_SHELL=no
BUILD_TCL=no
BUILD_THREAD=no
SLAPD_MODULES_LDFLAGS=
SLAPD_MODULES_CPPFLAGS=
SLAPD_PERL_LDFLAGS=
SLAPD_PERL_CPPFLAGS=
...
...
@@ -295,15 +307,41 @@ AC_PATH_PROG(SENDMAIL, sendmail, /usr/lib/sendmail,
AC_PATH_PROG(EDITOR, vi, /usr/ucb/vi, $PATH:/usr/ucb)
AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb)
if test $ol_enable_perl = yes ; then
ol_link_modules=no
if test $ol_enable_modules != no ; then
AC_PATH_PROG(GLIBCONFIG, glib-config)
if test "no$GLIBCONFIG" = "no" ; then
if test $ol_enable_modules = yes ; then
AC_MSG_ERROR([could not locate glib-config])
fi
else
SLAPD_MODULES_VERSION="`$GLIBCONFIG --version gmodule`"
SLAPD_MODULES_CPPFLAGS="`$GLIBCONFIG --cflags gmodule`"
SLAPD_MODULES_LDFLAGS="`$GLIBCONFIG --libs gmodule`"
dnl should check glib version
ol_link_modules=yes
fi
fi
ol_link_perl=no
if test $ol_enable_perl != no ; then
AC_PATH_PROG(PERLBIN, perl, /usr/bin/perl)
if test "no$PERLBIN" = "no" ; then
ol_enable_perl=no
fi
if test $ol_enable_perl = yes ; then
AC_MSG_ERROR([could not locate perl])
fi
SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
else
SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
SLAPD_PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
dnl should check perl version
ol_link_perl=yes
fi
fi
AC_PROG_CPP
...
...
@@ -1585,6 +1623,11 @@ if test "$ol_enable_rlookups" != no ; then
AC_DEFINE(SLAPD_RLOOKUPS,1)
fi
if test "$ol_link_modules" != no ; then
AC_DEFINE(SLAPD_MODULES,1)
BUILD_SLAPD=yes
fi
if test "$ol_link_bdb2" != no ; then
AC_DEFINE(SLAPD_BDB2,1)
BUILD_SLAPD=yes
...
...
@@ -1603,7 +1646,7 @@ if test "$ol_enable_passwd" != no ; then
BUILD_PASSWD=yes
fi
if test "$ol_
enable
_perl" != no ; then
if test "$ol_
link
_perl" != no ; then
AC_DEFINE(SLAPD_PERL,1)
BUILD_SLAPD=yes
BUILD_PERL=yes
...
...
@@ -1650,6 +1693,9 @@ AC_SUBST(LDBM_LIBS)
AC_SUBST(LTHREAD_LIBS)
AC_SUBST(LUTIL_LIBS)
AC_SUBST(SLAPD_MODULES_CPPFLAGS)
AC_SUBST(SLAPD_MODULES_LDFLAGS)
AC_SUBST(SLAPD_PERL_CPPFLAGS)
AC_SUBST(SLAPD_PERL_LDFLAGS)
...
...
This diff is collapsed.
Click to expand it.
include/portable.h.in
+
3
−
0
View file @
48e73426
...
...
@@ -175,6 +175,9 @@
/* define this to use SLAPD LDBM backend */
#undef SLAPD_LDBM
/* define this to use SLAPD Modules */
#undef SLAPD_MODULES
/* define this to use SLAPD passwd backend */
#undef SLAPD_PASSWD
...
...
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