]> granicus.if.org Git - sudo/commitdiff
for kerb5, check for -lkerb4, fall back on -lkrb
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 14 Nov 1998 00:20:19 +0000 (00:20 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 14 Nov 1998 00:20:19 +0000 (00:20 +0000)
for kerb, check for -ldes

configure.in

index 21d1345be491a491b644cd8d7e73d56fdde505e1..469d20f2f4f74f94b1e021cb922e14dde2609933 100644 (file)
@@ -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