From a800a2fa7e3b74bc90f65c921f5ce815cd3fd5e1 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Thu, 29 Jun 1995 10:56:35 +0000 Subject: [PATCH] * configure.in (--with-dbm): new option, allows easy building of normal dbm support for compatibility. * Makefile.in (DBFLAGS): variable to hold substitution of flags to enable Berkeley db support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6199 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/ChangeLog | 6 ++++++ src/lib/kdb/Makefile.in | 3 ++- src/lib/kdb/configure.in | 14 ++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog index e261ef8b9..130685fe2 100644 --- a/src/lib/kdb/ChangeLog +++ b/src/lib/kdb/ChangeLog @@ -1,3 +1,9 @@ +Thu Jun 29 06:54:00 1995 Mark Eichin + + * configure.in (--with-dbm): new option, allows easy building of + normal dbm support for compatibility. + * Makefile.in (DBFLAGS): variable to hold substitution of flags to + enable Berkeley db support. Thu Jun 22 11:59:28 EDT 1995 Paul Park (pjpark@mit.edu) * kdb_dbm.c - Replace static kdb context with context which is attached diff --git a/src/lib/kdb/Makefile.in b/src/lib/kdb/Makefile.in index 1b89c199e..d6e9dc6d9 100644 --- a/src/lib/kdb/Makefile.in +++ b/src/lib/kdb/Makefile.in @@ -1,4 +1,5 @@ -CFLAGS = $(CCOPTS) $(DEFS) -DBERK_DB_DBM +DBFLAGS=@DBFLAGS@ +CFLAGS = $(CCOPTS) $(DEFS) $(DBFLAGS) LDFLAGS = -g LIB_SUBDIRS= $(BUILDTOP)/util/berk_db/hash diff --git a/src/lib/kdb/configure.in b/src/lib/kdb/configure.in index 5a27aeee4..fce913aa1 100644 --- a/src/lib/kdb/configure.in +++ b/src/lib/kdb/configure.in @@ -5,6 +5,20 @@ AC_PROG_ARCHIVE_ADD AC_PROG_RANLIB AC_PROG_INSTALL AC_HAVE_HEADERS(unistd.h) +AC_ARG_WITH([dbm], +[ --with-dbm use native dbm for kdc database + --without-dbm use included version of Berkeley db (default)], +, +withval=no)dnl +if test "$withval" = yes; then + AC_MSG_RESULT(Using native dbm) + DBFLAGS= +else + AC_MSG_RESULT(Using Berkeley db) + DBFLAGS=-DBERK_DB_DBM +fi +AC_SUBST(DBFLAGS)dnl +dnl V5_USE_SHARED_LIB AC_CHECK_FUNCS(srand48 srand srandom umask) LinkFileDir(../libkdb5.a, libkdb5.a, ./kdb) -- 2.26.2