Skip to content

Commit d42650d

Browse files
committed
CDRIVER-1944 Fix OpenSSL header lookups in non-default paths
1 parent f64a321 commit d42650d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/autotools/CheckSSL.m4

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ AS_IF([test "$enable_ssl" != "no"],[
4343
dnl PKG_CHECK_MODULES() doesn't check for headers
4444
dnl OSX for example has the lib, but not headers, so double confirm if OpenSSL works
4545
AS_IF([test "$enable_ssl" = "openssl" -o "$enable_openssl" = "auto"], [
46+
old_CFLAGS=$CFLAGS
47+
CFLAGS=$SSL_CFLAGS
4648
AC_CHECK_HEADERS([openssl/bio.h openssl/ssl.h openssl/err.h openssl/crypto.h],
4749
[have_ssl_headers=yes],
4850
[have_ssl_headers=no])
@@ -54,6 +56,7 @@ AS_IF([test "$enable_ssl" != "no"],[
5456
SSL_LIBS=""
5557
enable_ssl=auto
5658
fi
59+
CFLAGS=$old_CFLAGS
5760
])
5861
AS_IF([test "$enable_ssl" != "openssl" -a "$os_darwin" = "yes"],[
5962
SSL_LIBS="-framework Security -framework CoreFoundation"

0 commit comments

Comments
 (0)