hc
2024-08-13 72be3801e63d82671c9d90577a9efb3126a6aa37
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From 13da2bcde8e22dd0127a668374fdf79bed04d353 Mon Sep 17 00:00:00 2001
From: Bart Van Assche <bvanassche@acm.org>
Date: Mon, 17 Sep 2018 07:33:34 -0700
Subject: [PATCH] configure: Fix -lcrypto -lz test
 
Avoid that the second crypto library test uses the cached result from
the first test by explicitly clearing the cached test result.
 
[yann.morin.1998@free.fr:
  - use an actual backport of 13da2bcde8e22dd0127a668374fdf79bed04d353
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
 configure                   | 1 +
 configure.d/config_os_libs2 | 1 +
 2 files changed, 2 insertions(+)
 
diff --git a/configure b/configure
index 1116cecaad..33b8c93e57 100755
--- a/configure
+++ b/configure
@@ -23231,6 +23231,7 @@ if test "x$ac_cv_lib_crypto_EVP_md5" = xyes; then :
   CRYPTO="crypto"; LIBCRYPTO="-lcrypto"
 else
 
+        unset ac_cv_lib_crypto_EVP_md5
         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_md5 in -lcrypto" >&5
 $as_echo_n "checking for EVP_md5 in -lcrypto... " >&6; }
 if ${ac_cv_lib_crypto_EVP_md5+:} false; then :
diff --git a/configure.d/config_os_libs2 b/configure.d/config_os_libs2
index 75214cfff3..81788a2096 100644
--- a/configure.d/config_os_libs2
+++ b/configure.d/config_os_libs2
@@ -308,6 +308,7 @@ if test "x$tryopenssl" != "xno" -a "x$tryopenssl" != "xinternal"; then
         if test x$CRYPTO = x; then
             AC_CHECK_LIB([crypto], [EVP_md5],
              [CRYPTO="crypto"; LIBCRYPTO="-lcrypto"], [
+        unset ac_cv_lib_crypto_EVP_md5
         AC_CHECK_LIB([crypto], [EVP_md5],
                  [CRYPTO="crypto"; LIBCRYPTO="-lcrypto -lz"], [],
                  [-lz])
-- 
2.25.1