summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-04-24 15:46:22 +0200
committerAnatol Belski <ab@php.net>2017-04-24 15:46:22 +0200
commitf7b8322b144122baddaf365c37dca3b8e547725e (patch)
treeca9924a9a749816b7d94029155f3fca636dcfc03 /win32
parentdd36541f2cb67223085a68f63c35a6a9c37e7a86 (diff)
downloadphp-git-f7b8322b144122baddaf365c37dca3b8e547725e.tar.gz
Support also no,shared configure arg vals by default
This indirectly fixes bug #74398 where --with-extname is expected to be configured shared with our default dependency package. With a non default deps, it still can be enforced --with-extname=static
Diffstat (limited to 'win32')
-rw-r--r--win32/build/confutils.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/win32/build/confutils.js b/win32/build/confutils.js
index 48ef2a6e01..a9ef15e70c 100644
--- a/win32/build/confutils.js
+++ b/win32/build/confutils.js
@@ -389,10 +389,17 @@ function conf_process_args()
} else {
/* we matched the non-default arg */
if (argval == null) {
- argval = arg.defval == "no" ? "yes" : "no";
+ if (arg.defval == "no") {
+ argval = "yes";
+ } else if (arg.defval == "no,shared") {
+ argval = "yes,shared";
+ shared = true;
+ } else {
+ argval = "no";
+ }
}
}
-
+
arg.argval = argval;
eval("PHP_" + arg.symval + " = argval;");
eval("PHP_" + arg.symval + "_SHARED = shared;");