Fix PHP5 config.w32 2/head
authorJan-E <github@ehrhardt.nl>
Fri, 22 Jan 2016 12:38:46 +0000 (13:38 +0100)
committerJan-E <github@ehrhardt.nl>
Fri, 22 Jan 2016 12:38:46 +0000 (13:38 +0100)
config.w32

index ed086e88d07350b5afefa679da2f884f08cd2dec..a2727c37c7a874542864833a16ebad425de42f6d 100644 (file)
@@ -2,14 +2,21 @@
 ARG_ENABLE("propro", "for propro support", "no");
 
 if (PHP_PROPRO == "yes") {
-       var PHP_PROPRO_HEADERS=glob("src/*.h"), PHP_PROPRO_SOURCES=glob("src/*.c");
+       var PHP_PROPRO_HEADERS=glob(configure_module_dirname + "/src/*.h");
+       var PHP_PROPRO_SRC_ARRAY=glob(configure_module_dirname + "/src/*.c");
+       var PHP_PROPRO_SOURCES="";
+       for (var i=0; i<PHP_PROPRO_SRC_ARRAY.length; ++i) {
+               var basename = FSO.GetFileName(PHP_PROPRO_SRC_ARRAY[i]);
+               copy_and_subst("src/" + basename, basename, []);
+               PHP_PROPRO_SOURCES = PHP_PROPRO_SOURCES + " " + basename;
+       }
 
        EXTENSION("propro", PHP_PROPRO_SOURCES);
-       PHP_INSTALL_HEADERS("ext/propro", "php_propro.h");
+       PHP_INSTALL_HEADERS(configure_module_dirname, "php_propro.h");
        for (var i=0; i<PHP_PROPRO_HEADERS.length; ++i) {
                var basename = FSO.GetFileName(PHP_PROPRO_HEADERS[i]);
-               copy_and_subst(PHP_PROPRO_HEADERS[i], basename, []);
-               PHP_INSTALL_HEADERS("ext/propro", basename);
+               copy_and_subst("src/" + basename, basename, []);
+               PHP_INSTALL_HEADERS(configure_module_dirname, basename);
        }
 
        AC_DEFINE("HAVE_PROPRO", 1);