summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2023-02-15 11:43:44 +0000
committerYann Ylavic <ylavic@apache.org>2023-02-15 11:43:44 +0000
commit05b4010efc52fb90149be01a5cfc321aba273425 (patch)
treee6d3a64bce56d624d83f9fbb475854a981c80ae5 /configure.in
parentf55951d0d10c5b0e4573407dfdb5da9de2347a53 (diff)
downloadhttpd-05b4010efc52fb90149be01a5cfc321aba273425.tar.gz
configure: Assume crypt() does not support SHA-2 when cross-compiling.
Can be forced with "./configure ap_cv_crypt_sha2=yes ..." still. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907672 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 4989ec3404..daaae7d200 100644
--- a/configure.in
+++ b/configure.in
@@ -519,7 +519,7 @@ if test "$ac_cv_search_crypt" != "no"; then
]], [char *result = crypt(PASSWD_0, SALT_0);
if (!result) return 1;
if (strcmp(result, EXPECT_0)) return 2;
-])], [ap_cv_crypt_sha2=yes], [ap_cv_crypt_sha2=no])])
+])], [ap_cv_crypt_sha2=yes], [ap_cv_crypt_sha2=no], [ap_cv_crypt_sha2=no])])
if test "$ap_cv_crypt_sha2" = yes; then
AC_DEFINE([HAVE_CRYPT_SHA2], 1, [Define if crypt() supports SHA-2 hashes])
fi