File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,15 @@ if (PHP_MONGODB != "no") {
126
126
MONGOC_USER_SET_LDFLAGS : ""
127
127
} ;
128
128
129
- if ( CHECK_LIB ( "ssleay32.lib" , "mongodb" , PHP_MONGODB ) &&
130
- CHECK_LIB ( "libeay32.lib" , "mongodb" , PHP_MONGODB ) &&
131
- CHECK_LIB ( "crypt32.lib" , "mongodb" , PHP_MONGODB ) &&
129
+ var mongoc_ssl_path_to_check = PHP_MONGODB ;
130
+
131
+ if ( typeof PHP_OPENSSL === 'string' ) {
132
+ mongoc_ssl_path_to_check += ";" + PHP_OPENSSL ;
133
+ }
134
+
135
+ if ( CHECK_LIB ( "ssleay32.lib" , "mongodb" , mongoc_ssl_path_to_check ) &&
136
+ CHECK_LIB ( "libeay32.lib" , "mongodb" , mongoc_ssl_path_to_check ) &&
137
+ CHECK_LIB ( "crypt32.lib" , "mongodb" ) &&
132
138
CHECK_HEADER_ADD_INCLUDE ( "openssl/ssl.h" , "CFLAGS_MONGODB" ) ) {
133
139
mongoc_opts . MONGOC_ENABLE_SSL_OPENSSL = 1 ;
134
140
mongoc_opts . MONGOC_ENABLE_CRYPTO_LIBCRYPTO = 1 ;
You can’t perform that action at this time.
0 commit comments