File 8722-Update-configure-scripts.patch of Package erlang

From 56f16d3c8ed17329ce2ccc275d4eb26025db5179 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Wed, 1 Jun 2022 09:34:35 +0200
Subject: [PATCH 2/2] Update configure scripts

---
 lib/crypto/configure | 30 +++++-------------------------
 1 file changed, 5 insertions(+), 25 deletions(-)

diff --git a/lib/crypto/configure b/lib/crypto/configure
index f3f24c77e0..650cbcb418 100755
--- a/lib/crypto/configure
+++ b/lib/crypto/configure
@@ -648,6 +648,7 @@ ac_includes_default="\
 
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
+CRYPTO_NO_DEPRECATE_WARN
 DISABLE_OTP_TEST_ENGINE
 DISABLE_EVP_HMAC
 DISABLE_EVP_DH
@@ -780,7 +781,6 @@ enable_dynamic_ssl_lib
 enable_evp_dh
 enable_evp_hmac
 enable_otp_test_engine
-enable_deprecated_warnings
 enable_fips
 '
       ac_precious_vars='build_alias
@@ -1456,10 +1456,6 @@ Optional Features:
                           Disable build of the otp_test_engine. (default is
                           --enable-otp-test-engine, unless for LibreSSL >=
                           3.5.0 where default is --disable-otp-test-engine)
-  --disable-deprecated-warnings
-                          disable warnings for deprecated functions in
-                          cryptolib (default is to warn, except for OpenSSL
-                          3.x where the default is not to warn)
   --enable-fips           enable OpenSSL FIPS mode support
   --disable-fips          disable OpenSSL FIPS mode support (default)
 
@@ -5192,17 +5192,6 @@ else
 fi
 
 
-# Check whether --enable-deprecated_warnings was given.
-if test "${enable_deprecated_warnings+set}" = set; then :
-  enableval=$enable_deprecated_warnings;  case "$enableval" in
-    no)   deprecated_warnings=no;;
-    *)    deprecated_warnings=yes;;
-  esac
-else
-  deprecated_warnings=default_yes
-fi
-
-
 
 
 
@@ -6465,12 +6454,9 @@ $as_echo "$as_me: WARNING: * Static link
    fi
 fi
 
-if test "x$v3_include" = "xyes" && test "x$deprecated_warnings" = "xdefault_yes" && test "$CRYPTO_APP" != ""; then
-   deprecated_warnings=no
-fi
-
-if test "x$deprecated_warnings" = "xno"  &&  test "$CRYPTO_APP" != "" ; then
-   SSL_FLAGS="$SSL_FLAGS -Wno-deprecated-declarations"
+CRYPTO_NO_DEPRECATE_WARN=
+if test "x$v3_include" = "xyes" && test "$CRYPTO_APP" != ""; then
+   CRYPTO_NO_DEPRECATE_WARN="-Wno-deprecated-declarations"
 fi
 
 saveCFLAGS="$CFLAGS"
@@ -7728,6 +7707,7 @@ LIBS="$saveLIBS"
 
 
 
+
 ac_config_files="$ac_config_files c_src/$host/Makefile:c_src/Makefile.in"
 
 cat >confcache <<\_ACEOF
-- 
2.35.3

openSUSE Build Service is sponsored by