From: Todd C. Miller Date: Thu, 20 Mar 2003 04:50:01 +0000 (+0000) Subject: for kerb4 put libdes after libkrb on the link line X-Git-Tag: SUDO_1_6_7~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a41cbc597a0ebacac111779e2f977175ada8a511;p=sudo for kerb4 put libdes after libkrb on the link line --- diff --git a/configure.in b/configure.in index 8c12ae1a2..4f3a930ff 100644 --- a/configure.in +++ b/configure.in @@ -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])