87bef17922
- Rebased patches 1 and 4 - Dropped upstreamed patches 5 and 6 Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> [yann.morin.1998@free.fr: - update patches 1-2 with actual backports, as noticed by Stefan ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
45 lines
1.6 KiB
Diff
45 lines
1.6 KiB
Diff
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
|
|
|