summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-03-04 05:02:45 +1100
committerDamien Miller <djm@mindrot.org>2015-03-04 05:02:45 +1100
commit00797e86b2d98334d1bb808f65fa1fd47f328ff1 (patch)
tree411677c9b76978532818877bfad8893bd5bddd6e
parent1598419e38afbaa8aa5df8dd6b0af98301e2c908 (diff)
check for crypt and DES_crypt in openssl block
fixes builds on systems that use DES_crypt; based on patch from Roumen Petrov
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2ef9db6d..b4d6598d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2572,6 +2572,7 @@ if test "x$openssl" = "xyes" ; then
if test "x$check_for_libcrypt_later" = "x1"; then
AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
fi
+ AC_CHECK_FUNCS([crypt DES_crypt])
# Search for SHA256 support in libc and/or OpenSSL
AC_CHECK_FUNCS([SHA256_Update EVP_sha256], ,
@@ -2710,7 +2711,7 @@ if test "x$openssl" = "xyes" ; then
AC_SUBST([COMMENT_OUT_ECC])
else
AC_CHECK_LIB([crypt], [crypt], [LIBS="$LIBS -lcrypt"])
- AC_CHECK_FUNCS([crypt DES_crypt])
+ AC_CHECK_FUNCS([crypt])
fi
AC_CHECK_FUNCS([ \