Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
b2d96932
Commit
b2d96932
authored
Sep 21, 1998
by
Kurt Zeilenga
Browse files
Add support for manual specification of LDBM and Thread flags.
parent
47bd4c4d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
configure
View file @
b2d96932
This diff is collapsed.
Click to expand it.
configure.in
View file @
b2d96932
...
...
@@ -34,7 +34,7 @@ dnl General "with" options
OL_ARG_WITH(kerberos,[ --with-kerberos use Kerberos],
auto, [auto k5 k4 afs yes no])
OL_ARG_WITH(threads,[ --with-threads use threads],
auto, [auto posix dce mach yes no] )
auto, [auto posix dce mach yes no
manual
] )
dnl Server options
...
...
@@ -54,7 +54,7 @@ OL_ARG_ENABLE(rlookups,[ --enable-rlookups enable reverse lookups], auto)dnl
dnl SLAPD Backend options
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 gdbm ndbm])
[auto db2 db gdbm ndbm
manual
])
OL_ARG_WITH(ldbm_type,[ --with-ldbm-type use LDBM type], auto,
[auto btree hash])
...
...
@@ -298,6 +298,17 @@ dnl AC_DEFINE(HAVE_LINUX_THREADS,1)
fi
fi
if test $ol_with_threads = manual ; then
dnl User thinks he can manually configure threads.
$ol_link_threads=yes
AC_MSG_WARN([thread defines and link options must be set manually])
AC_CHECK_HEADERS(pthread.h sched.h)
AC_CHECK_FUNC(sched_yield)
OL_LINUX_THREADS
fi
if test $ol_link_threads = no ; then
if test $ol_with_threads = yes ; then
AC_MSG_ERROR([no suitable thread support])
...
...
@@ -361,6 +372,15 @@ if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; 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
...
...
@@ -457,8 +477,8 @@ fi
dnl ----------------------------------------------------------------
dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS( \
stddef.h \
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment