prepared for libevent2 usage in config.w32, though libevent usage seems to be broken...
authorAnatoliy Belsky <ab@php.net>
Sun, 29 Sep 2013 22:26:46 +0000 (22:26 +0000)
committerAnatoliy Belsky <ab@php.net>
Sun, 29 Sep 2013 22:26:46 +0000 (22:26 +0000)
config.w32

index e951f3b4830e9629db624b4211a6ddb02f8f46f1..f74f152970e813ee6fa4646da7d3e8685b9aac53 100644 (file)
@@ -118,6 +118,16 @@ if (PHP_HTTP != "no") {
                AC_DEFINE("PHP_HAVE_CURL_FORMGET", 1, "");\r
                AC_DEFINE("PHP_HAVE_CURL_MULTI_SETOPT", 1, "");\r
                AC_DEFINE("PHP_HAVE_CURL_MULTI_TIMEOUT", 1, "");\r
+\r
+               if (CHECK_HEADER_ADD_INCLUDE("event2/event.h", "CFLAGS_HTTP") &&\r
+                       CHECK_LIB("libevent.lib", "http", PHP_HTTP) &&\r
+                       CHECK_LIB("libevent_core.lib", "http", PHP_HTTP) &&\r
+                       CHECK_LIB("libevent_extras.lib", "http", PHP_HTTP)) {\r
+\r
+                       AC_DEFINE("PHP_HTTP_HAVE_EVENT", 1);\r
+                       AC_DEFINE("PHP_HTTP_HAVE_EVENT2", 1);\r
+                       AC_DEFINE("PHP_HTTP_EVENT_VERSION", "2.0.21 or greater");\r
+               }\r
        } else {\r
                WARNING("curl convenience functions not enabled; libraries and headers not found");\r
        }\r