* aclocal.m4 (KRB5_AC_CHOOSE_DB): New macro.
(CONFIG_RULES): Invoke it.
+ * configure.in: Configure util/db2 only if we're going to use it.
+
2002-09-03 Ken Raeburn <raeburn@mit.edu>
* aclocal.m4 (KRB_INCLUDE): Put in-tree include dirs before
+2002-09-13 Ken Raeburn <raeburn@mit.edu>
+
+ * pre.in (DB_DEPLIB-k5, DB_DEPLIB-sys, DB_DEPS-sys, DB_DEPS-k5,
+ DB_DEPS-redirect): New variables.
+ (DB_DEPLIB, DB_DEPS): Select from them.
+ (DB_LIB): Substitute from configure script.
+ (COM_ERR_VERSION, SS_VERSION, DB_VERSION): New variables.
+
2002-09-10 Ken Raeburn <raeburn@mit.edu>
* post.in (depfix2.sed): Pass srcdir and BUILDTOP as additional
KADMCLNT_DEPLIB = $(TOPLIBD)/libkadm5clnt$(DEPLIBEXT)
KADMSRV_DEPLIB = $(TOPLIBD)/libkadm5srv$(DEPLIBEXT)
KDB5_DEPLIB = $(TOPLIBD)/libkdb5$(DEPLIBEXT)
-DB_DEPLIB = $(TOPLIBD)/libdb$(DEPLIBEXT)
+DB_DEPLIB = $(DB_DEPLIB-@DB_VERSION@)
+DB_DEPLIB-k5 = $(TOPLIBD)/libdb$(DEPLIBEXT)
+DB_DEPLIB-sys =
GSSRPC_DEPLIB = $(TOPLIBD)/libgssrpc$(DEPLIBEXT)
GSS_DEPLIB = $(TOPLIBD)/libgssapi_krb5$(DEPLIBEXT)
KRB4_DEPLIB = @KRB4_DEPLIB@ # $(TOPLIBD)/libkrb4$(DEPLIBEXT)
KADMSRV_DEPLIBS = $(KADMSRV_DEPLIB) $(KDB5_DEPLIBS) $(KADM_COMM_DEPLIBS)
KADMCLNT_DEPLIBS = $(KADMCLNT_DEPLIB) $(KADM_COMM_DEPLIBS)
-# Header file dependencies we might override someday.
+# Header file dependencies we might override.
# See util/depfix.sed.
+# Also see depend-verify-* in post.in, which wants to confirm that we're using
+# the in-tree versions.
+COM_ERR_VERSION = @COM_ERR_VERSION@
COM_ERR_DEPS = $(COM_ERR_DEPS-@COM_ERR_VERSION@)
-COM_ERR_DEPS-sys = # empty
+COM_ERR_DEPS-sys =
COM_ERR_DEPS-k5 = $(BUILDTOP)/include/com_err.h
+SS_VERSION = @SS_VERSION@
SS_DEPS = $(SS_DEPS-@SS_VERSION@)
SS_DEPS-sys =
SS_DEPS-k5 = $(BUILDTOP)/include/ss/ss.h $(BUILDTOP)/include/ss/ss_err.h
+DB_VERSION = @DB_VERSION@
+DB_DEPS = $(DB_DEPS-@DB_HEADER_VERSION@)
+DB_DEPS-sys =
+DB_DEPS-k5 = $(BUILDTOP)/include/db.h $(BUILDTOP)/include/db-config.h
+DB_DEPS-redirect = $(BUILDTOP)/include/db.h
# LIBS gets substituted in... e.g. -lnsl -lsocket
SS_LIB-sys = @SS_LIB@
SS_LIB-k5 = $(TOPLIBD)/libss.a
KDB5_LIB = -lkdb5
-DB_LIB = -ldb
+DB_LIB = @DB_LIB@
KRB5_LIB = $(KRB5_LIB_@LIB_LINK_OPT@)
KRB5_LIB_libopt = -lkrb5
if test "$SS_VERSION" = k5 ; then
AC_CONFIG_SUBDIRS(util/ss)
fi
-AC_CONFIG_SUBDIRS(util/profile util/pty util/db2 include lib/crypto lib/krb5 lib/des425)
+AC_CONFIG_SUBDIRS(util/profile util/pty)
+if test "$DB_VERSION" = k5 ; then
+ AC_CONFIG_SUBDIRS(util/db2)
+fi
+AC_CONFIG_SUBDIRS(include lib/crypto lib/krb5 lib/des425)
if test -n "$KRB4_LIB"; then
AC_CONFIG_SUBDIRS(lib/krb4)
fi
+2002-09-13 Ken Raeburn <raeburn@mit.edu>
+
+ * Makefile.in (maybe-make-db.h-sys, maybe-make-db.h-k5): New
+ targets, doing nothing.
+ (maybe-make-db.h-redirect): New target, creates db.h using
+ @DB_HEADER@.
+ (all-unix): Depend on maybe-make-db.h-@DB_HEADER_VERSION@.
+
2002-09-03 Ken Raeburn <raeburn@mit.edu>
* fake-addrinfo.h (gaiptr, faiptr, gniptr): Delete duplicate
$(MAKE) -$(MFLAGS)
cd ..
+all-unix:: maybe-make-db.h-@DB_HEADER_VERSION@
+
+maybe-make-db.h-k5:
+ : db.h will be installed by util/db2
+maybe-make-db.h-sys:
+ : fall back to system db.h
+maybe-make-db.h-redirect:
+ test -r db.h || echo '#include <@DB_HEADER@>' > db.h
+
krb5/autoconf.h: $(srcdir)/krb5/autoconf.h.in
(cd krb5; $(MAKE) autoconf.h)
$(srcdir)/krb5/autoconf.h.in: $(srcdir)/krb5/autoconf.stmp
2002-09-13 Ken Raeburn <raeburn@mit.edu>
+ * Makefile.in (MY_SUBDIRS): Use MAYBE_DB_@DB_VERSION@.
+ (MAYBE_DB_k5, MAYBE_DB_sys): New variables.
+
* depfix.sed: Replace db2 headers with $(DB_DEPS).
2002-09-10 Ken Raeburn <raeburn@mit.edu>
##WIN32### below in the 'all-windows' target anyways, so just hide this.
##WIN32##!if 0
MY_SUBDIRS=$(MAYBE_ET_@COM_ERR_VERSION@) $(MAYBE_SS_@SS_VERSION@) \
- profile pty db2 send-pr
+ profile pty $(MAYBE_DB_@DB_VERSION@) send-pr
##WIN32##!endif
BUILDTOP=$(REL)..
MAYBE_ET_k5 = et
MAYBE_SS_k5 = ss
+MAYBE_DB_k5 = db2
MAYBE_ET_sys =
MAYBE_SS_sys =
+MAYBE_DB_sys =
MAC_SUBDIRS = profile et