From: Todd C. Miller Date: Sat, 14 Nov 1998 00:20:19 +0000 (+0000) Subject: for kerb5, check for -lkerb4, fall back on -lkrb X-Git-Tag: SUDO_1_5_7~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1515dfb497d4d6113d01e15766e018c5f280ecc5;p=sudo for kerb5, check for -lkerb4, fall back on -lkrb for kerb, check for -ldes --- diff --git a/configure.in b/configure.in index 21d1345be..469d20f2f 100644 --- a/configure.in +++ b/configure.in @@ -1354,10 +1354,13 @@ if test "$with_kerb4" = "yes" -o "$with_kerb5" = "yes"; then echo 'Unable to locate kerberos libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS' fi - test "$OS" = "solaris" && echo "If you are using the Sun's Solaris kerberos you will need to remove -ldes from the SUDO_LIBS define in the Makefile" - SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes" if test "$with_kerb5" = "yes"; then + AC_HAVE_LIBRARY(krb4, SUDO_LIBS="${SUDO_LIBS} -lkrb4", SUDO_LIBS="${SUDO_LIBS} -lkrb") + AC_HAVE_LIBRARY(des, SUDO_LIBS="${SUDO_LIBS} -ldes") SUDO_LIBS="${SUDO_LIBS} -ldes425 -lkrb5 -lcrypto -lcom_err" + else + # kerb4 + AC_HAVE_LIBRARY(des, SUDO_LIBS="${SUDO_LIBS} -lkrb -ldes", SUDO_LIBS="${SUDO_LIBS} -lkrb") fi fi