From ec3b84c78f4dcb09d5b20b6d23736357daf5d305 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 13 Mar 2015 14:44:26 +0000 Subject: [PATCH] Make sure things actually link on Windows --- config.w32 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.w32 b/config.w32 index fa514dd09..729021e99 100755 --- a/config.w32 +++ b/config.w32 @@ -27,5 +27,9 @@ if (PHP_MONGO != "no") { WARNING("mongo libsasl support not enabled, libs not found"); } } + + if (CHECK_LIB("ssleay32.lib", "mongo", PHP_MONGO) && CHECK_LIB("libeay32.lib", "mongo", PHP_MONGO)) { + ADD_FLAG("CFLAGS_MONGO", " /D HAVE_MONGO_SSLLIB=1"); + } }