DEVEL15-aix-no-aklog-tsm-without-krb5-20090320
authorDerrick Brashear <shadow@dementia.org>
Sat, 21 Mar 2009 15:49:20 +0000 (15:49 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 21 Mar 2009 15:49:20 +0000 (15:49 +0000)
LICENSE IPL10
FIXES 124522

don't build aklog_dynamic_auth without krb5

(cherry picked from commit c1d545dff6483369ade640b27b9ab7baaa6faac5)

src/cf/kerberos.m4
src/tsm41/Makefile.in

index 0fb4286..c1deb64 100644 (file)
@@ -56,9 +56,11 @@ if test X$with_krb5 = Xyes; then
 fi
 
 BUILD_KRB5=no
+MAKE_KRB5=#
 if test X$conf_krb5 = XYES; then
        AC_MSG_RESULT([Configuring support for Kerberos 5 utilities])
        BUILD_KRB5=yes
+       MAKE_KRB5=
        save_CPPFLAGS="$CPPFLAGS"
        CPPFLAGS="$CPPFLAGS $KRB5CFLAGS"
        save_LIBS="$LIBS"
@@ -127,6 +129,7 @@ if test "x$ac_cv_krb5_cc_register_exists" = "xyes"; then
 fi
 
 AC_SUBST(BUILD_KRB5)
+AC_SUBST(MAKE_KRB5)
 AC_SUBST(KRB5CFLAGS)
 AC_SUBST(KRB5LIBS)
 
index a203be8..cb69864 100644 (file)
@@ -58,9 +58,7 @@ AUTH_KRB_OBJS = \
                aix_ktc_krb.o \
 
 AUTHLIBS= \
-               afs_dynamic_auth \
-               aklog_dynamic_auth \
-               afs_dynamic_kerbauth
+               afs_dynamic_auth afs_dynamic_kerbauth @MAKE_KRB5@ aklog_dynamic_auth
 
 IMPORTS = -bI:/lib/aio.exp -bI:/lib/netinet.exp -bI:/lib/sockets.exp -bI:/lib/statcmd.exp 
 LDFLAGS = -eafs_initialize ${IMPORTS} -lsys -lcsys -lc
@@ -120,7 +118,4 @@ ${DEST}/root.client/usr/vice/etc/aklog_dynamic_auth: aklog_dynamic_auth
        ${INSTALL} $? $@
 
 dest: \
-       ${DEST}/root.client/usr/vice/etc/afs_dynamic_auth \
-       ${DEST}/root.client/usr/vice/etc/aklog_dynamic_auth \
-       ${DEST}/root.client/usr/vice/etc/afs_dynamic_kerbauth
-
+       ${DEST}/root.client/usr/vice/etc/afs_dynamic_auth ${DEST}/root.client/usr/vice/etc/afs_dynamic_kerbauth @MAKE_KRB5@ ${DEST}/root.client/usr/vice/etc/aklog_dynamic_auth