-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathconfig.w32
22 lines (17 loc) · 1.36 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// $Id$
// vim:ft=javascript
// If your extension references something external, use arg_with
ARG_WITH("pdo_snowflake", "for pdo_snowflake support", "no");
if (PHP_PDO_SNOWFLAKE != "no") {
pdo_snowflake_src_files = " pdo_snowflake.c snowflake_driver.c snowflake_stmt.c snowflake_paramstore.c snowflake_arraylist.c snowflake_treemap.c snowflake_rbtree.c ";
if (CHECK_LIB('libsnowflakeclient_a.lib', 'pdo_snowflake') && CHECK_LIB('libcurl_a.lib', 'pdo_snowflake') &&
CHECK_LIB('libssl_a.lib', 'pdo_snowflake') && CHECK_LIB('libcrypto_a.lib', 'pdo_snowflake') && CHECK_LIB('zlib_a.lib', 'pdo_snowflake') && CHECK_LIB('libtelemetry_a.lib', 'pdo_snowflake') &&
CHECK_LIB('arrow_static.lib', 'pdo_snowflake') && CHECK_LIB('libboost_filesystem.lib', 'pdo_snowflake') && CHECK_LIB('libboost_regex.lib', 'pdo_snowflake') && CHECK_LIB('libboost_system.lib', 'pdo_snowflake') &&
CHECK_HEADER_ADD_INCLUDE('snowflake\\client.h', 'CFLAGS_PDO_SNOWFLAKE', configure_module_dirname + '\\libsnowflakeclient\\include')) {
STDOUT.WriteLine("INFO: Snowflake PDO Configuration");
ADD_EXTENSION_DEP('pdo_snowflake', 'pdo');
EXTENSION("pdo_snowflake", pdo_snowflake_src_files, PHP_PDO_SNOWFLAKE_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
} else {
WARNING("pdo_snowflake not enabled; libraries and headers not found");
}
}