File 0275-crypto-Format-ssl-standard-locations.patch of Package erlang

From 8e394f81d66ab18dcf7b426ee403ffcb55408da7 Mon Sep 17 00:00:00 2001
From: Wojtek Mach <wojtek@wojtekmach.pl>
Date: Wed, 4 Aug 2021 15:14:38 +0200
Subject: [PATCH 1/2] crypto: Format ssl standard locations

---
 lib/crypto/configure    | 15 ++++++++++++++-
 lib/crypto/configure.ac | 15 ++++++++++++++-
 2 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/lib/crypto/configure b/lib/crypto/configure
index cdfb43a52d..997b6e952f 100755
--- a/lib/crypto/configure
+++ b/lib/crypto/configure
@@ -5528,7 +5528,20 @@ printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
 
 
 
-std_ssl_locations="/usr/local /usr/sfw /usr /opt/local /usr/pkg /usr/local/openssl /usr/local/opt/openssl /usr/lib/openssl /usr/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /"
+std_ssl_locations="\
+/usr/local \
+/usr/sfw \
+/usr \
+/opt/local \
+/usr/pkg \
+/usr/local/openssl \
+/usr/local/opt/openssl \
+/usr/lib/openssl \
+/usr/openssl \
+/usr/local/ssl \
+/usr/lib/ssl \
+/usr/ssl \
+/"
 
 
 # Check whether --with-ssl was given.
diff --git a/lib/crypto/configure.in b/lib/crypto/configure.in
index f17b9ac5dd..761e469de6 100644
--- a/lib/crypto/configure.in
+++ b/lib/crypto/configure.in
@@ -76,7 +76,20 @@ dnl use "PATH/include" and "PATH/lib".
 
 AC_CHECK_SIZEOF(void *)
 
-std_ssl_locations="/usr/local /usr/sfw /usr /opt/local /usr/pkg /usr/local/openssl /usr/local/opt/openssl /usr/lib/openssl /usr/openssl /usr/local/ssl /usr/lib/ssl /usr/ssl /"
+std_ssl_locations="\
+/usr/local \
+/usr/sfw \
+/usr \
+/opt/local \
+/usr/pkg \
+/usr/local/openssl \
+/usr/local/opt/openssl \
+/usr/lib/openssl \
+/usr/openssl \
+/usr/local/ssl \
+/usr/lib/ssl \
+/usr/ssl \
+/"
 			
 AC_ARG_WITH(ssl,
 AS_HELP_STRING([--with-ssl=PATH], [base location of OpenSSL include and lib directories])
-- 
2.31.1

openSUSE Build Service is sponsored by