Fix test for -lk5crypto.
authornbk <nbk>
Sun, 15 Jul 2007 12:13:45 +0000 (12:13 +0000)
committernbk <nbk>
Sun, 15 Jul 2007 12:13:45 +0000 (12:13 +0000)
Thanks to Stephen Gran <sgran@debian.org>

src/modules/rlm_krb5/configure.in

index bc9f21e..594ca2c 100644 (file)
@@ -53,29 +53,31 @@ if test x$with_[]modname != xno; then
        smart_try_dir=$rlm_krb5_include_dir
        FR_SMART_CHECK_INCLUDE(krb5.h)
 
+       krb5libcrypto=
        smart_try_dir=$rlm_krb5_lib_dir
-
        FR_SMART_CHECK_LIB(k5crypto, krb5_encrypt_data)
-       if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = "xyes"; then
+       if test "x$ac_cv_lib_k5crypto_krb5_encrypt_data" = xyes; then
                krb5libcrypto="-lk5crypto"
        fi
 
-       FR_SMART_CHECK_LIB(crypto, DH_new)
-       if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
-               krb5libcrypto="-lcrypto"
+       if test "x$krb5libcrypto" = x; then
+               FR_SMART_CHECK_LIB(crypto, DH_new)
+               if test "x$ac_cv_lib_crypto_DH_new" = xyes; then
+                       krb5libcrypto="-lcrypto"
+               fi
        fi
 
-       if test x$krb5libcrypto = x; then
+       if test "x$krb5libcrypto" = x; then
                AC_MSG_WARN([neither krb5 'k5crypto' nor 'crypto' libraries are found!])
        fi
 
        FR_SMART_CHECK_LIB(com_err, set_com_err_hook)
-       if test "x$ac_cv_lib_com_err_set_com_err_hook" != "xyes"; then
+       if test "x$ac_cv_lib_com_err_set_com_err_hook" != xyes; then
                AC_MSG_WARN([the comm_err library isn't found!])
        fi
 
        FR_SMART_CHECK_LIB(krb5, krb5_init_context)
-       if test "x$ac_cv_lib_krb5_krb5_init_context" != "xyes"; then
+       if test "x$ac_cv_lib_krb5_krb5_init_context" != xyes; then
                fail="$fail krb5"
        fi