- improved range checking
[m6w6/ext-http] / config.w32
1 // config.w32 for pecl/http
2 // $Id$
3
4 ARG_ENABLE("http", "whether to enable extended HTTP support", "no");
5
6 if (PHP_HTTP != "no") {
7 EXTENSION("http", "http.c http_functions.c http_methods.c http_api.c http_curl_api.c", null,
8 "/I\"" + configure_module_dirname + "/phpstr\"");
9 ADD_SOURCES(configure_module_dirname + "/phpstr", "phpstr.c", "http");
10 AC_DEFINE("HAVE_HTTP", 1, "Have extended HTTP support")
11 if (CHECK_LIB("libcurl.lib", "http", PHP_HTTP) &&
12 CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_HTTP") &&
13 CHECK_LIB("ssleay32.lib", "http", PHP_HTTP) &&
14 CHECK_LIB("libeay32.lib", "http", PHP_HTTP) &&
15 CHECK_LIB("zlib.lib", "http", PHP_HTTP) &&
16 CHECK_LIB("winmm.lib", "http", PHP_HTTP)) {
17 AC_DEFINE("HTTP_HAVE_CURL", 1, "Have CURL library");
18 } else {
19 WARNING("curl convenience functions not enabled; libraries and headers not found");
20 }
21 }