From: Anatol Belski Date: Tue, 3 Jan 2017 21:10:24 +0000 (+0100) Subject: make possible to pass also an arbitrary fragment file X-Git-Tag: php-7.2.0alpha1~664 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e93c1849e302e736472e7a83daf935902929295;p=php make possible to pass also an arbitrary fragment file --- diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 78d9cc8cd2..6c022b3c5a 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -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);