From: Todd C. Miller Date: Wed, 2 Apr 2003 18:44:52 +0000 (+0000) Subject: use krb5-config to determine Kerberos V details if it exists X-Git-Tag: SUDO_1_6_8~351 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a15e5079c344831e9be6cd9db85c4eb6fbd99c2;p=sudo use krb5-config to determine Kerberos V details if it exists --- diff --git a/configure.in b/configure.in index d131cd341..de2b20454 100644 --- a/configure.in +++ b/configure.in @@ -1770,8 +1770,18 @@ fi dnl dnl Kerberos V -dnl -if test -n "$with_kerb5"; then +dnl There is an easy way and a hard way... +dnl +if test "$with_kerb5" = "yes"; then + AC_CHECK_PROG(KRB5CONFIG, krb5-config, yes, "") + if test -n "$KRB5CONFIG"; then + AC_DEFINE(HAVE_KERB5, 1, [Define if you use Kerberos V.]) + AUTH_OBJS="${AUTH_OBJS} kerb5.o" + CPPFLAGS="$CPPFLAGS `krb5-config --cflags`" + SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`" + fi +fi +if test -n "$with_kerb5" -a -z "$KRB5CONFIG"; then AC_DEFINE(HAVE_KERB5, 1, [Define if you use Kerberos V.]) dnl dnl Use the specified directory, if any, else search for correct inc dir