Skip to content

Commit

Permalink
PHPC-499: Only add the dependency when we're actually enabling the ex…
Browse files Browse the repository at this point in the history
…tension
  • Loading branch information
derickr committed Nov 25, 2015
1 parent e21a2d4 commit 2bb862f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.w32
Expand Up @@ -2,9 +2,10 @@

ARG_ENABLE("mongodb", "MongoDB support", "no");
ARG_WITH("mongodb-sasl", "MongoDB: Build against Cyrus-SASL", "yes");
ADD_EXTENSION_DEP("mongodb", "openssl", false);

if (PHP_MONGODB != "no") {
ADD_EXTENSION_DEP("mongodb", "openssl", false);

ADD_FLAG("CFLAGS_MONGODB", " /I" + configure_module_dirname + " /I" + configure_module_dirname + "/src/libmongoc/src/mongoc" + " /I" + configure_module_dirname + "/src/libbson/src/bson/ /I" + configure_module_dirname + "/src/libbson/src /I" + configure_module_dirname + "/src/contrib /D HAVE_MONGODB_SASL=1 /D BSON_COMPILATION=1 /D MONGOC_COMPILATION=1 /D MONGOC_TRACE=1 /D MONGOC_NO_AUTOMATIC_GLOBALS=1 /D BSON_EXTRA_ALIGN=0");
EXTENSION("mongodb", "php_phongo.c");
ADD_SOURCES(configure_module_dirname + "/src", "bson.c", "mongodb");
Expand Down

0 comments on commit 2bb862f

Please sign in to comment.