+2004-03-05 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Integrate config commands from kdc, krb524, and
+ slave directories. Don't configure those directories; generate
+ their makefiles directly. Use AC_HELP_STRING in AC_ARG_ENABLE
+ and AC_ARG_WITH messages. Substitute @LIBUTIL@.
+
2004-02-25 Ken Raeburn <raeburn@mit.edu>
* configure.in: Configure lib/apputils, not util/apputils.
dnl The following lines are so that configure --help gives some global
dnl configuration options.
dnl
-AC_ARG_ENABLE([kdc-replay-cache],
-AC_HELP_STRING([--enable-kdc-replay-cache],[check for replayed/retransmitted KDC requests (recommended for replay attack detection when hardware preauthentication is in use)])
-AC_HELP_STRING([--disable-kdc-replay-cache],[omit replay detection]))dnl
KRB5_LIB_AUX
AC_KRB5_TCL
AC_ARG_ENABLE([athena],
KRB5_BUILD_LIBOBJS
KRB5_BUILD_LIBRARY
KRB5_BUILD_PROGRAM
+dnl for slave
+AC_TYPE_MODE_T
+AC_PROG_INSTALL
+KRB5_AC_NEED_DAEMON
+KRB5_GETSOCKNAME_ARGS
+KRB5_GETPEERNAME_ARGS
+LIBUTIL=
+AC_CHECK_LIB(util,main,[AC_DEFINE(HAVE_LIBUTIL)
+LIBUTIL=-lutil
+])
+AC_SUBST(LIBUTIL)
+dnl for kdc
+AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h sys/sockio.h ifaddrs.h unistd.h)
+AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
+KRB5_NEED_PROTO([#include <string.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+/* Solaris 8 declares swab in stdlib.h. */
+#include <stdlib.h>
+],swab,1)
+dnl
+AC_PROG_AWK
+KRB5_AC_INET6
+KRB5_SOCKADDR_SA_LEN
+CHECK_SIGNALS
+dnl
+dnl --with-vague-errors disables useful error messages.
+dnl
+AC_ARG_WITH([vague-errors],
+AC_HELP_STRING([--with-vague-errors],[Do not supply helpful error messages to clients])
+AC_HELP_STRING([--without-vague-errors],[Supply helpful error messages to clients (default)]),
+,
+withval=no)dnl
+if test "$withval" = yes; then
+ AC_MSG_RESULT(Supplying vague error messages to KDC clients)
+ AC_DEFINE(KRBCONF_VAGUE_ERRORS)
+fi
+dnl
+dnl --with-kdc-kdb-update makes the KDC update the database with last request
+dnl information and failure information.
+dnl
+AC_ARG_WITH([kdc-kdb-update],
+AC_HELP_STRING([--with-kdc-kdb-update],[Update the database])
+AC_HELP_STRING([--without-kdc-kdb-update],[Do not update the database (default)]),
+,
+withval=no)dnl
+if test "$withval" = yes; then
+ AC_MSG_RESULT(Updating KDC database with each request)
+ AC_DEFINE(KRBCONF_KDC_MODIFIES_KDB)
+fi
+dnl
+dnl Needed for hw-preauth replay detection on KDC.
+dnl
+dnl USE_RCACHE enables the replay cache
+dnl NOCACHE disables the lookaside cache
+dnl
+dnl The lookaside cache is checked first; if *exactly* the same message
+dnl comes in twice, e.g., because the (legitimate) client resent it,
+dnl the previous response will be resent. Otherwise, the replay cache
+dnl is used to check for attempts to fake out the KDC. Some hardware
+dnl preauth methods are weak enough that we *really* want to have this
+dnl checking turned on.
+dnl
+AC_ARG_ENABLE([kdc-replay-cache],
+AC_HELP_STRING([--enable-kdc-replay-cache],[check for replayed/retransmitted KDC requests (recommended for replay attack detection when hardware preauthentication is in use)])
+AC_HELP_STRING([--disable-kdc-replay-cache],[omit replay detection]), , enableval=yes)dnl
+if test "$enableval" = yes ; then
+ AC_DEFINE(USE_RCACHE)
+else
+ AC_DEFINE(NOCACHE)
+fi
+AC_ARG_ENABLE([fakeka],
+AC_HELP_STRING([--enable-fakeka],[Enable the build of the Fake KA server (emulates an AFS kaserver)])
+AC_HELP_STRING([--disable-fakeka],[Do not build the fakeka server (default)]), , enableval=no)dnl
+if test "$enableval" = yes; then
+ FAKEKA=fakeka
+else
+ FAKEKA=
+fi
+AC_SUBST(FAKEKA)
+KRB5_RUN_FLAGS
+dnl
+dnl for krb524
+AC_TYPE_SIGNAL
+dnl
dnl
HOST_TYPE=$krb5_cv_host
AC_SUBST(HOST_TYPE)
AC_CONFIG_SUBDIRS(lib/krb4)
fi
AC_CONFIG_SUBDIRS(lib/kdb lib/gssapi lib/rpc lib/kadm5)
-if test -n "$KRB4_LIB"; then
- AC_CONFIG_SUBDIRS(krb524)
-fi
+dnl if test -n "$KRB4_LIB"; then
+dnl AC_CONFIG_SUBDIRS(krb524)
+dnl fi
-AC_CONFIG_SUBDIRS(kdc kadmin slave clients appl tests)
+AC_CONFIG_SUBDIRS(kadmin clients appl tests)
AC_CONFIG_FILES(krb5-config, [chmod +x krb5-config])
-V5_AC_OUTPUT_MAKEFILE(. util util/send-pr lib config-files gen-manpages)
+V5_AC_OUTPUT_MAKEFILE(. util util/send-pr lib kdc slave krb524 config-files gen-manpages)
+2004-03-05 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Removed. Directory configured from top level
+ now.
+ * Makefile.in (thisconfigdir, mydir): Updated.
+ (MY_SUBDIRS): Define to just ".".
+
2004-03-04 Ken Raeburn <raeburn@mit.edu>
* configure.in: Don't check for --enable-athena and don't define
-thisconfigdir=.
+thisconfigdir=..
myfulldir=kdc
-mydir=.
+mydir=kdc
+MY_SUBDIRS=.
BUILDTOP=$(REL)..
# -DUSE_RCACHE - enable replay cache for KDC
# -DNOCACHE - disable lookaside cache, which is used to resend previous
+++ /dev/null
-AC_INIT(main.c)
-CONFIG_RULES
-AC_PROG_INSTALL
-AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h sys/sockio.h ifaddrs.h unistd.h)
-AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
-KRB5_NEED_PROTO([#include <string.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-/* Solaris 8 declares swab in stdlib.h. */
-#include <stdlib.h>
-],swab,1)
-dnl
-KRB5_AC_NEED_DAEMON
-dnl
-AC_PROG_AWK
-KRB5_AC_INET6
-KRB5_SOCKADDR_SA_LEN
-CHECK_SIGNALS
-dnl
-dnl --with-vague-errors disables useful error messages.
-dnl
-AC_ARG_WITH([vague-errors],
-[ --with-vague-errors Do not supply helpful error messages to clients
- --without-vague-errors Supply helpful error messages to clients (default)],
-,
-withval=no)dnl
-if test "$withval" = yes; then
- AC_MSG_RESULT(Supplying vague error messages to KDC clients)
- AC_DEFINE(KRBCONF_VAGUE_ERRORS)
-fi
-dnl
-dnl --with-kdc-kdb-update makes the KDC update the database with last request
-dnl information and failure information.
-dnl
-AC_ARG_WITH([kdc-kdb-update],
-[ --with-kdc-kdb-update Update the database
- --without-kdc-kdb-update Do not update the database (default)],
-,
-withval=no)dnl
-if test "$withval" = yes; then
- AC_MSG_RESULT(Updating KDC database with each request)
- AC_DEFINE(KRBCONF_KDC_MODIFIES_KDB)
-fi
-dnl
-dnl Needed for hw-preauth replay detection on KDC.
-dnl
-dnl USE_RCACHE enables the replay cache
-dnl NOCACHE disables the lookaside cache
-dnl
-dnl The lookaside cache is checked first; if *exactly* the same message
-dnl comes in twice, e.g., because the (legitimate) client resent it,
-dnl the previous response will be resent. Otherwise, the replay cache
-dnl is used to check for attempts to fake out the KDC. Some hardware
-dnl preauth methods are weak enough that we *really* want to have this
-dnl checking turned on.
-dnl
-AC_ARG_ENABLE([kdc-replay-cache],
-[ --enable-kdc-replay-cache check for replayed/retransmitted KDC requests
- (recommended for replay attack detection
- when hardware preauthentication is in use)
- --disable-kdc-replay-cache omit replay detection], , enableval=yes)dnl
-if test "$enableval" = yes ; then
- AC_DEFINE(USE_RCACHE)
-else
- AC_DEFINE(NOCACHE)
-fi
-AC_ARG_ENABLE([fakeka],
-[ --enable-fakeka Enable the build of the Fake KA server
- (emulates an AFS (kaserver)
- --disable-fakeka Do not build the fakeka server (default)], , enableval=no)dnl
-if test "$enableval" = yes; then
- FAKEKA=fakeka
-else
- FAKEKA=
-fi
-AC_SUBST(FAKEKA)
-dnl
-dnl
-KRB5_RUN_FLAGS
-KRB5_BUILD_PROGRAM
-V5_AC_OUTPUT_MAKEFILE
+2004-03-05 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Removed. Directory configured from top level
+ now.
+ * Makefile.in (thisconfigdir, mydir): Updated.
+ (MY_SUBDIRS): Define to just ".".
+
2004-03-04 Ken Raeburn <raeburn@mit.edu>
* configure.in: Don't invoke macros for library build support.
-thisconfigdir=.
+thisconfigdir=..
myfulldir=krb524
-mydir=.
+mydir=krb524
+MY_SUBDIRS=.
BUILDTOP=$(REL)..
# Copyright 1994 by OpenVision Technologies, Inc.
#
+++ /dev/null
-AC_INIT(krb524d.c)
-CONFIG_RULES
-AC_CHECK_HEADERS(sys/select.h unistd.h) dnl
-KRB5_AC_NEED_DAEMON
-AC_TYPE_SIGNAL
-
-KRB5_BUILD_PROGRAM
-V5_AC_OUTPUT_MAKEFILE
+2004-03-05 Ken Raeburn <raeburn@mit.edu>
+
+ * configure.in: Removed. Directory configured from top level
+ now.
+ * Makefile.in (thisconfigdir, mydir): Updated.
+ (MY_SUBDIRS): Define to just ".".
+ (kprop, kpropd): Link against @LIBUTIL@.
+
2004-02-24 Ken Raeburn <raeburn@mit.edu>
* Makefile.in (SERVEROBJS, kpropd): Link against apputils lib
-thisconfigdir=.
+thisconfigdir=..
myfulldir=slave
-mydir=.
+mydir=slave
+MY_SUBDIRS=.
BUILDTOP=$(REL)..
PROG_LIBPATH=-L$(TOPLIBD)
PROG_RPATH=$(KRB5_LIBDIR)
kprop: $(CLIENTOBJS) $(KRB5_BASE_DEPLIBS)
- $(CC_LINK) -o kprop $(CLIENTOBJS) $(KRB5_BASE_LIBS)
+ $(CC_LINK) -o kprop $(CLIENTOBJS) $(KRB5_BASE_LIBS) @LIBUTIL@
kpropd: $(SERVEROBJS) $(KRB5_BASE_DEPLIBS) $(APPUTILS_DEPLIB)
- $(CC_LINK) -o kpropd $(SERVEROBJS) $(KRB5_BASE_LIBS) $(APPUTILS_LIB)
+ $(CC_LINK) -o kpropd $(SERVEROBJS) $(KRB5_BASE_LIBS) $(APPUTILS_LIB) @LIBUTIL@
install::
for f in kprop kpropd; do \
+++ /dev/null
-AC_INIT(kprop.c)
-CONFIG_RULES
-AC_TYPE_MODE_T
-AC_PROG_INSTALL
-AC_CHECK_LIB(util,main)
-KRB5_AC_NEED_DAEMON
-KRB5_GETSOCKNAME_ARGS
-KRB5_GETPEERNAME_ARGS
-KRB5_BUILD_PROGRAM
-V5_AC_OUTPUT_MAKEFILE