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