]> granicus.if.org Git - sudo/commitdiff
for kerb4 put libdes after libkrb on the link line
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 Mar 2003 04:50:01 +0000 (04:50 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 20 Mar 2003 04:50:01 +0000 (04:50 +0000)
configure.in

index 8c12ae1a2191c12430f0169814d6f51752e049b7..4f3a930ff08b7d26eac1ee5c9deec5b4daeeaf0b 100644 (file)
@@ -1684,9 +1684,9 @@ if test -n "$with_kerb4"; then
     AC_CHECK_LIB(des, des_cbc_encrypt, [K4LIBS="-ldes"], [
        AC_CHECK_LIB(des425, des_cbc_encrypt, [K4LIBS="-ldes425"], [K4LIBS=""])
     ])
-    AC_CHECK_LIB(krb, main, [K4LIBS="$K4LIBS -lkrb"], [
-       AC_CHECK_LIB(krb4, main, [K4LIBS="$K4LIBS -lkrb4"],
-           [K4LIBS="$K4LIBS -lkrb"]
+    AC_CHECK_LIB(krb, main, [K4LIBS="-lkrb $K4LIBS"], [
+       AC_CHECK_LIB(krb4, main, [K4LIBS="-lkrb4 $K4LIBS"],
+           [K4LIBS="-lkrb $K4LIBS"]
            [AC_MSG_WARN([Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS])]
        , [$K4LIBS])
     ], [$K4LIBS])