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);
}