forked from zenovich/runkit
-
Notifications
You must be signed in to change notification settings - Fork 27
/
config.w32
38 lines (32 loc) · 1.5 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
36
37
38
// vim:ft=javascript
/* eslint-disable no-undef */
ARG_ENABLE("runkit7", "Enable runkit7 support", "no");
ARG_ENABLE("runkit7-modify", "Enable runtime manipulation", "yes");
ARG_ENABLE("runkit7-super", "Enable registration of user-defined autoglobals", "yes");
if (PHP_RUNKIT7 != "no") {
var dll = get_define('PHPDLL');
var is_php5 = null != dll.match(/^php5/);
if (is_php5) {
ERROR("Runkit7 supports PHP 7.1 and newer. It does not support PHP 5");
}
// TODO: Why isn't HAVE_CONFIG_H being set all of the time?
if (PHP_RUNKIT7_MODIFY != "no") {
// Hackish way to enable these CFLAGS to include the necessary flags
ADD_FLAG('CFLAGS_RUNKIT7', ' /D PHP_RUNKIT7_FEATURE_MODIFY');
AC_DEFINE("PHP_RUNKIT7_FEATURE_MODIFY", 1, "Runkit Manipulation");
}
if (PHP_RUNKIT7_SUPER != "no") {
ADD_FLAG('CFLAGS_RUNKIT7', ' /D PHP_RUNKIT7_FEATURE_SUPER');
AC_DEFINE("PHP_RUNKIT7_FEATURE_SUPER", 1, "Runkit Superglobals");
}
AC_DEFINE('HAVE_RUNKIT7', 1);
PHP_INSTALL_HEADERS('ext/runkit7', 'php_runkit7.h php_runkit_hash.h php_runkit_zend_execute_API.h php_runkit_zval.h runkit.h');
EXTENSION("runkit7", "runkit.c " +
"runkit_common.c " +
"runkit_functions.c " +
"runkit_methods.c " +
"runkit_classes.c " +
"runkit_props.c " +
"runkit_constants.c " +
"runkit_zend_execute_API.c ");
}