From: Mark Eichin Date: Thu, 29 Jun 1995 10:56:35 +0000 (+0000) Subject: * configure.in (--with-dbm): new option, allows easy building of X-Git-Tag: krb5-1.0-beta6~1616 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a800a2fa7e3b74bc90f65c921f5ce815cd3fd5e1;p=krb5.git * 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 --- 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)