-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathconfig.w32
35 lines (30 loc) · 1.46 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
23
24
25
26
27
28
29
30
31
32
33
34
35
ARG_ENABLE('apm', 'APM support', 'no');
ARG_WITH('apm-sqlite3', 'APM support with SQLite3 driver', 'yes');
ARG_WITH('apm-mysql', 'APM support with MySQL driver', 'yes');
ARG_ENABLE('apm-socket', 'APM support with Socket driver', 'no');
ARG_ENABLE('apm-statsd', 'APM support with StatsD driver', 'no');
if (PHP_APM != 'no') {
EXTENSION('apm', 'apm.c backtrace.c');
if (PHP_APM_SQLITE3 != 'no') {
if (CHECK_HEADER_ADD_INCLUDE("sqlite3.h", "CFLAGS_APM", "ext\\sqlite3\\libsqlite")) {
ADD_EXTENSION_DEP('apm', 'sqlite3', true);
ADD_SOURCES(configure_module_dirname, "driver_sqlite3.c", "apm");
AC_DEFINE("APM_DRIVER_SQLITE3", 1, "APM SQLite3 driver enabled");
}
}
if (PHP_APM_MYSQL != 'no') {
ADD_EXTENSION_DEP('apm', 'mysql', true);
if (CHECK_HEADER_ADD_INCLUDE("mysql.h", "CFLAGS_APM", PHP_APM_MYSQL + "\\include;" + PHP_PHP_BUILD + "\\include\\mysql;" + PHP_APM_MYSQL)) {
ADD_SOURCES(configure_module_dirname, "driver_mysql.c", "apm");
AC_DEFINE("APM_DRIVER_MYSQL", 1, "APM MySQL driver enabled");
}
}
if (PHP_APM_SOCKET != 'no') {
ADD_SOURCES(configure_module_dirname, "driver_socket.c", "apm");
AC_DEFINE("APM_DRIVER_SOCKET", 1, "APM Socket driver enabled");
}
if (PHP_APM_STATSD != 'no') {
ADD_SOURCES(configure_module_dirname, "driver_statsd.c", "apm");
AC_DEFINE("APM_DRIVER_STATSD", 1, "APM StatsD driver enabled");
}
}