File: config.w32

package info (click to toggle)
php-mongo 1.5.7-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,040 kB
  • ctags: 2,802
  • sloc: ansic: 17,632; xml: 2,195; php: 1,630; pascal: 330; makefile: 52; sh: 39
file content (35 lines) | stat: -rwxr-xr-x 2,008 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// $ID$
// vim:ft=javascript

ARG_ENABLE("mongo", "MongoDB support", "no");
ARG_ENABLE("mongo-streams", "Mongo: Build with PHP streams wrapper support", "yes");
ARG_WITH("mongo-sasl", "Mongo: Build against Cyrus-SASL", "yes");
ADD_EXTENSION_DEP("mongo", "openssl", false);

if (PHP_MONGO != "no") {
  EXTENSION('mongo', 'php_mongo.c mongo.c mongoclient.c bson.c collection.c command_cursor.c cursor.c cursor_shared.c db.c io_stream.c log_stream.c');
  ADD_SOURCES(configure_module_dirname + "/contrib", "php-json.c", "mongo");
  ADD_SOURCES(configure_module_dirname + "/exceptions", "exception.c connection_exception.c cursor_exception.c cursor_timeout_exception.c execution_timeout_exception.c gridfs_exception.c duplicate_key_exception.c result_exception.c write_concern_exception.c protocol_exception.c ", "mongo");
  ADD_SOURCES(configure_module_dirname + "/gridfs", "gridfs.c gridfs_cursor.c gridfs_file.c gridfs_stream.c", "mongo");
  ADD_SOURCES(configure_module_dirname + "/types", "bin_data.c code.c date.c db_ref.c id.c int32.c int64.c regex.c timestamp.c", "mongo");
  ADD_SOURCES(configure_module_dirname + "/util", "log.c pool.c", "mongo");
  ADD_SOURCES(configure_module_dirname + "/mcon", "bson_helpers.c collection.c connections.c io.c manager.c mini_bson.c parse.c read_preference.c str.c utils.c", "mongo");
  ADD_SOURCES(configure_module_dirname + "/mcon/contrib", "md5.c strndup.c", "mongo");
  ADD_SOURCES(configure_module_dirname + "/api", "batch.c write.c wire_version.c", "mongo");
  ADD_SOURCES(configure_module_dirname + "/batch", "delete.c insert.c update.c write.c", "mongo");

  AC_DEFINE('HAVE_MONGO', 1);

  if (PHP_MONGO_STREAMS != "no") {
    ADD_FLAG("CFLAGS_MONGO", " /D MONGO_PHP_STREAMS=1");
  }

  if (PHP_MONGO_SASL != "no") {
    if (CHECK_LIB("libsasl.lib", "mongo", PHP_MONGO)) {
      ADD_FLAG("CFLAGS_MONGO", " /D HAVE_MONGO_SASL=1");
    } else {
      WARNING("mongo libsasl support not enabled, libs not found");
    }
  }
}