[config.w32] Warn that propro was discontinued master
authorJan Ehrhardt <github@ehrhardt.nl>
Wed, 2 Dec 2020 13:24:04 +0000 (14:24 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Dec 2020 13:24:04 +0000 (14:24 +0100)
See https://github.com/m6w6/ext-http/issues/97#issuecomment-737167881
Issue a warning "Propro support has been discontinued since PHP 8.0" when configuring.

config.w32

index 426ec3ad1f8dcf2dc8b54851006b2a44164d5e37..ce1db66ce8160f3c93c34e22bc7a042dbe4aef62 100644 (file)
@@ -1,25 +1,29 @@
 
 ARG_ENABLE("propro", "for propro support", "no");
 
-if (PHP_PROPRO == "yes" && PHP_VERSION <= 7) {
-       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]);
-               PHP_PROPRO_SOURCES = PHP_PROPRO_SOURCES + " " + basename;
+if (PHP_PROPRO == "yes") {
+       if (PHP_VERSION <= 7) {
+               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]);
+                       PHP_PROPRO_SOURCES = PHP_PROPRO_SOURCES + " " + basename;
+               }
+       
+               //EXTENSION("propro");
+               ADD_SOURCES(configure_module_dirname + "/src", PHP_PROPRO_SOURCES, "propro");
+               EXTENSION("propro", "src/php_propro_api.c");
+               PHP_INSTALL_HEADERS("ext/propro", "php_propro.h");
+               for (var i=0; i<PHP_PROPRO_HEADERS.length; ++i) {
+                       var basename = FSO.GetFileName(PHP_PROPRO_HEADERS[i]);
+                       copy_and_subst("src/" + basename, basename, []);
+                       PHP_INSTALL_HEADERS(configure_module_dirname, basename);
+               }
+               ADD_FLAG("CFLAGS_PROPRO", "/I" + configure_module_dirname + " ");
+       
+               AC_DEFINE("HAVE_PROPRO", 1);
+       } else {
+               WARNING("Propro support has been discontinued since PHP 8.0");
        }
-
-       //EXTENSION("propro");
-       ADD_SOURCES(configure_module_dirname + "/src", PHP_PROPRO_SOURCES, "propro");
-       EXTENSION("propro", "src/php_propro_api.c");
-       PHP_INSTALL_HEADERS("ext/propro", "php_propro.h");
-       for (var i=0; i<PHP_PROPRO_HEADERS.length; ++i) {
-               var basename = FSO.GetFileName(PHP_PROPRO_HEADERS[i]);
-               copy_and_subst("src/" + basename, basename, []);
-               PHP_INSTALL_HEADERS(configure_module_dirname, basename);
-       }
-       ADD_FLAG("CFLAGS_PROPRO", "/I" + configure_module_dirname + " ");
-
-       AC_DEFINE("HAVE_PROPRO", 1);
 }