]> granicus.if.org Git - php/commitdiff
make possible to pass also an arbitrary fragment file
authorAnatol Belski <ab@php.net>
Tue, 3 Jan 2017 21:10:24 +0000 (22:10 +0100)
committerAnatol Belski <ab@php.net>
Tue, 3 Jan 2017 21:10:24 +0000 (22:10 +0100)
win32/build/confutils.js

index 78d9cc8cd2d24c868494ae1338b0aac137318d3a..6c022b3c5a7cc86a8524b9a85479259e631c4fce 100644 (file)
@@ -3286,9 +3286,16 @@ function force_all_shared()
        return !!PHP_ALL_SHARED && "yes" == PHP_ALL_SHARED;
 }
 
-function ADD_MAKEFILE_FRAGMENT()
+function ADD_MAKEFILE_FRAGMENT(src_file)
 {
-       var fn_in = configure_module_dirname + "\\Makefile.frag.w32";
+       var fn_in;
+
+       if ("undefined" == typeof(src_file)) {
+               fn_in = configure_module_dirname + "\\Makefile.frag.w32";
+       } else {
+               fn_in = src_file;
+       }
+
        if (FSO.FileExists(fn_in)) {
                var h_in, h_out;
                var create_out_fl = !FSO.FileExists(PHP_MAKEFILE_FRAGMENTS);