File 0276-crypto-Add-opt-homebrew-opt-openssl-to-standard-loca.patch of Package erlang
From 0172d5d9e5e010bead7568c18997b42761b709bd Mon Sep 17 00:00:00 2001
From: Wojtek Mach <wojtek@wojtekmach.pl>
Date: Wed, 4 Aug 2021 15:26:37 +0200
Subject: [PATCH 2/2] crypto: Add /opt/homebrew/opt/openssl to standard
locations
This is the default location on Homebrew on M1 Macs.
Before this patch:
$ ./otp_build configure
(...)
*********************************************************************
********************** APPLICATIONS DISABLED **********************
*********************************************************************
crypto : No usable OpenSSL found
jinterface : No Java compiler found
odbc : ODBC library - link check failed
ssh : No usable OpenSSL found
ssl : No usable OpenSSL found
After this patch:
$ ./otp_build configure
(...)
*********************************************************************
********************** APPLICATIONS DISABLED **********************
*********************************************************************
jinterface : No Java compiler found
odbc : ODBC library - link check failed
---
lib/crypto/configure | 1 +
lib/crypto/configure.ac | 1 +
2 files changed, 2 insertions(+)
diff --git a/lib/crypto/configure b/lib/crypto/configure
index 997b6e952f..9706b823fb 100755
--- a/lib/crypto/configure
+++ b/lib/crypto/configure
@@ -5536,6 +5536,7 @@ std_ssl_locations="\
/usr/pkg \
/usr/local/openssl \
/usr/local/opt/openssl \
+/opt/homebrew/opt/openssl \
/usr/lib/openssl \
/usr/openssl \
/usr/local/ssl \
diff --git a/lib/crypto/configure.in b/lib/crypto/configure.in
index 761e469de6..166d3e6587 100644
--- a/lib/crypto/configure.in
+++ b/lib/crypto/configure.in
@@ -84,6 +84,7 @@ std_ssl_locations="\
/usr/pkg \
/usr/local/openssl \
/usr/local/opt/openssl \
+/opt/homebrew/opt/openssl \
/usr/lib/openssl \
/usr/openssl \
/usr/local/ssl \
--
2.31.1