From 907d061669d84cadbcb5df6d6554310ca6a5c0d1 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Thu, 27 Apr 1995 19:21:01 +0000 Subject: [PATCH] * aclocal.m4 (WITH_KRB4): make --with-krb4 the default, and have it use the included krb4 directories. If a pathname is given, use them instead. To disable krb4 support, use --without-krb4. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5555 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 6 ++++++ src/aclocal.m4 | 34 +++++++++++++++++++++++++++------- 2 files changed, 33 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2470ea787..fe09a3c87 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +Thu Apr 27 15:19:34 1995 Mark Eichin + + * aclocal.m4 (WITH_KRB4): make --with-krb4 the default, and have + it use the included krb4 directories. If a pathname is given, use + them instead. To disable krb4 support, use --without-krb4. + Wed Apr 27 11:00:00 1995 Keith Vetter (keithv@fusion.com) * Makefile.in: added stuff for new directory: util/profile. This diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 32ed370e9..9662eab57 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -322,12 +322,32 @@ dnl set $(KRB4) from --with-krb4=value -- WITH_KRB4 dnl define(WITH_KRB4,[ AC_ARG_WITH([krb4], -[ --with-krb4=KRB4DIR build with Kerberos V4 backwards compatibility], -AC_MSG_RESULT(krb4 is $withval) -KRB4=$withval, -AC_MSG_RESULT(no krb4 support; use --with-krb4=krb4dir) -KRB4=)dnl -AC_SUBST(KRB4)])dnl +[ --without-krb4 don't include Kerberos V4 backwards compatibility + --with-krb4 use V4 libraries included with V5 (default) + --with-krb4=KRB4DIR use preinstalled V4 libraries], +, +withval=yes +)dnl +if test $withval = no; then + AC_MSG_RESULT(no krb4 support) + KRB4_LIB= + KDB4_LIB= +else + ADD_DEF(-DKRB4) + ADD_DEF(-DBACKWARD_COMPAT) + if test $withval = yes; then + AC_MSG_RESULT(built in krb4 support) + KRB4_LIB='$(TOPLIBD)/libkrb4.a $(TOPLIBD)/libdes425.a' + KDB4_LIB='$(TOPLIBD)/libkdb4.a' + else + AC_MSG_RESULT(preinstalled krb4 in $withval) + KRB4_LIB='$(withval)/lib/libkrb.a $(TOPLIBD)/libdes425.a' + KDB4_LIB='$(withval)/libkdb.a' + fi +fi +AC_SUBST(KRB4_LIB) +AC_SUBST(KDB4_LIB) +])dnl dnl dnl set $(CC) from --with-cc=value dnl @@ -623,6 +643,6 @@ AC_CACHE_VAL(krb5_cv_has_ansi_volatile, krb5_cv_has_ansi_volatile=yes, krb5_cv_has_ansi_volatile=no)]) AC_MSG_RESULT($krb5_cv_has_ansi_volatile) if test $krb5_cv_has_ansi_volatile = no; then -AC_DEFINE([volatile=]) +ADD_DEF(-Dvolatile=) fi ])dnl -- 2.26.2