From 362aaed4308d7e20b191a7e228f9b77bf28bfc46 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Fri, 16 Sep 2011 16:13:03 +0100 Subject: [PATCH] configure: support krb5 --with-system-et If the system et and compile_et are used, then compile_et may not be in the krb5 directory; support this. --- moonshot/acinclude.m4 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/moonshot/acinclude.m4 b/moonshot/acinclude.m4 index ea542db..a626e8a 100644 --- a/moonshot/acinclude.m4 +++ b/moonshot/acinclude.m4 @@ -25,16 +25,18 @@ for dir in $check_krb5_dir $prefix /usr /usr/local ; do KRB5_CFLAGS=-I"$check_krb5_dir/include"; KRB5_LIBS="-L$check_krb5_dir/lib/ -lkrb5_32 -lgssapi32"; COMPILE_ET="$check_krb5_dir/bin/compile_et"; + AC_MSG_RESULT([yes]) else KRB5_CFLAGS=`$dir/bin/krb5-config gssapi --cflags`; - KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs`; - COMPILE_ET="$dir/bin/compile_et"; + KRB5_LIBS=`$dir/bin/krb5-config gssapi --libs` +AC_MSG_RESULT([yes]) + AC_PATH_PROG(COMPILE_ET, [compile_et], [compile_et], [$dir/bin$PATH_SEPARATOr]) fi break; fi done -AC_MSG_RESULT($found_krb5) if test x_$found_krb5 != x_yes; then + AC_MSG_RESULT($found_krb5) AC_MSG_ERROR([ ---------------------------------------------------------------------- Cannot find GSS-API/Kerberos libraries. -- 2.1.4