Compiling arla 0.31+ with MIT KRB5

Steve Langasek vorlon at dodds.net
Wed Apr 19 17:02:41 CEST 2000


One more patch...

cf/func-krb-get-err-text.m4 (and others) check for $ac_cv_found_krb4
before they'll do anything.  ac_cv_found_krb4 was not defined if krb4
compat mode was used, so arla was trying to use its own krb_get_err_text
function instead of the conflicting one in the system header.

Sorry about the multiple posts, but running

  ./configure --with-krbafs=/usr/kerberos --with-krb5=/usr/kerberos
or
  ./configure --with-krbafs=/usr/kerberos --with-krb5

followed by 'make' now gets me all the way through the build process.

Regards,
Steve Langasek
postmodern programmer


--- cf/check-kerberos.m4.orig   Tue Apr 18 07:01:08 2000
+++ cf/check-kerberos.m4        Wed Apr 19 09:14:37 2000
@@ -276,12 +276,12 @@
 
 dnl KRB 5 - export
 
-ifelse(-1,regexp($1,5),[],[
-
 if test "$ac_cv_found_krb5" = "yes"; then
   ifelse(-1,regexp($1,5),[
     ac_cv_found_krb5=no
+    ac_cv_found_krb4=yes
     with_krb4=yes
+    AC_DEFINE(KERBEROS, 1, [define if you have kerberos])
     AC_DEFINE(HAVE_KRB5_COMPAT_KRB4, 1, [define if you have kerberos 4 compat])
     AC_DEFINE(HAVE_KRB4, 1, [define if you have kerberos 4])
   ],[
@@ -293,7 +293,7 @@
 AC_SUBST(KRB5_LIB_DIR)
 AC_SUBST(KRB5_INC_DIR)
 AC_SUBST(KRB5_INC_FLAGS)
-AC_SUBST(KRB5_LIB_FLAGS)])
+AC_SUBST(KRB5_LIB_FLAGS)
 
 ]) dnl END AC_CHECK_KERBEROS end of this short function
 






More information about the Arla-drinkers mailing list