Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
6a235aad
Commit
6a235aad
authored
Sep 18, 1998
by
Kurt Zeilenga
Browse files
Added DB2 detection.
parent
7be5fca7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
build/top.mk
View file @
6a235aad
...
...
@@ -67,10 +67,10 @@ LDAP_LIBDEPEND = $(LDAP_LIBDIR)/libldap.a
# AutoConfig generated
AC_CC
=
@CC@
AC_DEFS
=
@DEFS@ @LDAP_DEFS@
AC_LIBS
=
@LIBS@
AC_DEFS
=
@CPPFLAGS@
@DEFS@ @LDAP_DEFS@
AC_LIBS
=
@LDFLAGS@
@LIBS@
AC_CFLAGS
=
@CFLAGS@
AC_LDFLAGS
=
@LDFLAGS@
AC_LDFLAGS
=
LIBCRYPT
=
@LIBCRYPT@
LIBTERMCAP
=
@LIBTERMCAP@
...
...
clients/finger/Makefile.in
View file @
6a235aad
SRCS
=
main.c
XSR
V
S
=
version.c
XSR
C
S
=
version.c
OBJS
=
main.o
PROGRAMS
=
in
.xfingerd
...
...
configure
View file @
6a235aad
This diff is collapsed.
Click to expand it.
configure.in
View file @
6a235aad
...
...
@@ -116,7 +116,7 @@ if test "$BUILD_SLAPD" != "yes" ; then
ldbm_prefer="none"
fi
dnl
general LDAP arguments
##
general LDAP arguments
LDAP_DEFS=
LDAP_LIBS=
...
...
@@ -144,12 +144,13 @@ else
LTHREAD_DEFS="-DNO_THREADS"
fi
dnl
ldapd arguments
##
ldapd arguments
LDAPD_DEFS=
LDAPD_LIBS=
dnl
slapd arguments
##
slapd arguments
SLAPD_DEFS=
SLAPD_LIBS=
if test "$SLAPD_PHONETIC" = "yes" ; then
AC_DEFINE(SLAPD_PHONETIC,1)
SLAPD_DEFS="$SLAPD_DEFS -DSOUNDEX"
...
...
@@ -170,6 +171,7 @@ fi
dnl slurpd arguments
SLURPD_DEFS=
SLURPD_LIBS=
dnl End Args
...
...
@@ -184,14 +186,12 @@ AC_PROG_MAKE_SET
AC_PATH_PROG(SENDMAIL, sendmail, /usr/lib/sendmail,
$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc)
AC_PATH_PROG(EDITOR, vi, /usr/ucb/vi,
$PATH:/usr/ucb)
AC_PATH_PROG(FINGER, finger, /usr/ucb/finger,
$PATH:/usr/ucb)
AC_PATH_PROG(EDITOR, vi, /usr/ucb/vi, $PATH:/usr/ucb)
AC_PATH_PROG(FINGER, finger, /usr/ucb/finger, $PATH:/usr/ucb)
ldbm_use="none"
LDBM_
LIB=""
LDBM_
DEFS=""
LDBM_
DEFS=
LDBM_
LIBS=
if test "$SLAPD_LDBM" = "yes" ; then
if test $ldbm_prefer = any -o $ldbm_prefer = dbbtree \
...
...
@@ -202,17 +202,47 @@ if test "$SLAPD_LDBM" = "yes" ; then
AC_CHECK_LIB(db,dbopen,[
ldbm_use=$ldbm_prefer
ldbm_prefer=found
LDBM_LIB="-ldb"
LDBM_LIB
S
="
$LDBM_LIBS
-ldb"
])
])
if test $ldbm_prefer = found ; then
if test $ldbm_use = dbhash ; then
dnl AC_DEFINE(LDBM_USE_DBHASH,1)
LDBM_DEFS="$LD
AP
_DEFS -DLDBM_USE_DBHASH"
LDBM_DEFS="$LD
BM
_DEFS -DLDBM_USE_DBHASH"
else
dnl AC_DEFINE(LDBM_USE_DBBTREE,1)
LDBM_DEFS="$LDAP_DEFS -DLDBM_USE_DBBTREE"
LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DBBTREE"
fi
fi
AC_MSG_CHECKING(for db2)
AC_CACHE_VAL(cf_cv_db2,[
AC_EGREP_CPP(__db_version_2,[
#include <db.h>
/* this check could be improved */
#ifdef DB_VERSION_MAJOR
#if DB_VERSION_MAJOR == 2
__db_version_2
#endif
#endif
], cf_cv_db2=yes, cf_cv_db2=no)])
AC_MSG_RESULT($cf_cv_db2)
if test $cf_cv_db2 = yes ; then
if test $opt_db2 = yes ; then
LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2"
else
AC_CHECK_HEADERS(db185.h)
if test $cf_cv_header_db185 = no ; then
AC_MSG_ERROR([select --with-db2 or install db2 with 1.85 compatibility])
fi
LDBM_DEFS="$LDBM_DEFS -DLDBM_USE_DB2_COMPAT185"
fi
else
if test $opt_db2 = yes ; then
AC_MSG_ERROR(could not local DB2)
fi
fi
fi
...
...
@@ -221,18 +251,18 @@ dnl AC_DEFINE(LDBM_USE_DBBTREE,1)
AC_CHECK_LIB(gdbm, gdbm_open,[
ldbm_use=$ldbm_prefer
ldbm_prefer=found
LDBM_LIB="-lgdbm"
LDBM_LIB
S
="
$LDBM_LIBS
-lgdbm"
dnl AC_DEFINE(LDBM_USE_GDBM,1)
LDBM_DEFS="$LD
AP
_DEFS -DLDBM_USE_GDBM"
LDBM_DEFS="$LD
BM
_DEFS -DLDBM_USE_GDBM"
])
fi
if test $ldbm_prefer = any -o $ldbm_prefer = ndbm ; then
AC_CHECK_LIB(dbm,dbm_open,[
ldbm_use=ndbm
ldbm_prefer=found
LDBM_LIB="-ldbm"
LDBM_LIB
S
="
$LDBM_LIBS
-ldbm"
dnl AC_DEFINE(LDBM_USE_NDBM,1)
LDBM_DEFS="$LD
AP
_DEFS -DLDBM_USE_NDBM"
LDBM_DEFS="$LD
BM
_DEFS -DLDBM_USE_NDBM"
])
fi
...
...
include/portable.h.in
View file @
6a235aad
...
...
@@ -127,6 +127,9 @@
/* Define if you have the strtoul function. */
#undef HAVE_STRTOUL
/* Define if you have the <db185.h> header file. */
#undef HAVE_DB185_H
/* Define if you have the <dirent.h> header file. */
#undef HAVE_DIRENT_H
...
...
@@ -172,9 +175,6 @@
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the compat library (-lcompat). */
#undef HAVE_LIBCOMPAT
#ifdef HAVE_STDDEF_H
# include <stddef.h>
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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