Skip to content

Commit 9d5e65f

Browse files
committed
Fix openssl detection on Silicon Macs
1 parent e86ef44 commit 9d5e65f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.m4

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ Build configuration:
536536
libmongoc : $PHP_MONGODB_BSON_VERSION_STRING
537537
libbson : $PHP_MONGODB_MONGOC_VERSION_STRING
538538
libmongocrypt : $PHP_MONGODB_MONGOCRYPT_VERSION_STRING
539+
SSL : $PHP_MONGODB_SSL
539540
LDFLAGS : $LDFLAGS
540541
EXTRA_LDFLAGS : $EXTRA_LDFLAGS
541542
MONGODB_SHARED_LIBADD : $MONGODB_SHARED_LIBADD

scripts/autotools/libmongoc/CheckSSL.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ AS_IF([test "$PHP_MONGODB_SSL" = "openssl" -o "$PHP_MONGODB_SSL" = "auto"],[
5757
dnl Use a list of directories from PHP_SETUP_OPENSSL by default.
5858
dnl Support documented "auto" and older, undocumented "yes" options
5959
if test "$PHP_OPENSSL_DIR" = "auto" -o "$PHP_OPENSSL_DIR" = "yes"; then
60-
PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
60+
PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /opt/homebrew/opt/openssl"
6161
fi
6262
6363
for i in $PHP_OPENSSL_DIR; do

0 commit comments

Comments
 (0)