Config.w32 chack for both instances of event.h
[m6w6/ext-http] / config.w32
index e7f265d..c37c61b 100644 (file)
@@ -144,7 +144,8 @@ if (PHP_HTTP != "no") {
                AC_DEFINE("PHP_HAVE_CURL_MULTI_TIMEOUT", 1, "");
                ADD_FLAG("CFLAGS_HTTP", "/I" + configure_module_dirname + " ");
 
-               if (CHECK_HEADER_ADD_INCLUDE("event2/event.h", "CFLAGS_HTTP") &&
+               if (CHECK_HEADER_ADD_INCLUDE("event.h", "CFLAGS_HTTP") &&
+                       CHECK_HEADER_ADD_INCLUDE("event2/event.h", "CFLAGS_HTTP") &&
                        CHECK_LIB("libevent.lib", "http", PHP_HTTP) &&
                        CHECK_LIB("libevent_core.lib", "http", PHP_HTTP) &&
                        CHECK_LIB("libevent_extras.lib", "http", PHP_HTTP)) {
@@ -152,6 +153,8 @@ if (PHP_HTTP != "no") {
                        AC_DEFINE("PHP_HTTP_HAVE_LIBEVENT", 1);
                        AC_DEFINE("PHP_HTTP_HAVE_LIBEVENT2", 1);
                        AC_DEFINE("PHP_HTTP_LIBEVENT_VERSION", "2.0.21 or greater");
+               } else {
+                       WARNING("http module: libevent not enabled; libraries or headers not found");
                }
        } else {
                WARNING("curl convenience functions not enabled; libraries and headers not found");