- preventively set Accept-Encoding
[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 ARG_WITH("mhash", "mhash support", "no");
6
7 if (PHP_HTTP != "no") {
8
9 if (PHP_MHASH != "no") {
10 if (CHECK_HEADER_ADD_INCLUDE('mhash.h', 'CFLAGS_HTTP') &&
11 CHECK_LIB('libmhash.lib', 'http')) {
12 AC_DEFINE('HAVE_LIBMHASH', 1 , "Have mhash library");
13 } else {
14 WARNING("mhash not enabled; libraries and headers not found");
15 }
16 }
17
18 EXTENSION("http",
19 "missing.c http.c http_functions.c http_exception_object.c "+
20 "http_util_object.c http_message_object.c http_requestpool_object.c "+
21 "http_request_object.c http_response_object.c "+
22 "http_api.c http_auth_api.c http_cache_api.c http_request_pool_api.c "+
23 "http_request_api.c http_date_api.c http_headers_api.c "+
24 "http_message_api.c http_send_api.c http_url_api.c "+
25 "http_info_api.c",
26 null,
27 "/I\"" + configure_module_dirname + "/phpstr\"");
28 ADD_SOURCES(configure_module_dirname + "/phpstr", "phpstr.c", "http");
29 AC_DEFINE("HAVE_HTTP", 1, "Have extended HTTP support")
30 if (CHECK_LIB("libcurl.lib", "http", PHP_HTTP) &&
31 CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_HTTP") &&
32 CHECK_LIB("ssleay32.lib", "http", PHP_HTTP) &&
33 CHECK_LIB("libeay32.lib", "http", PHP_HTTP) &&
34 CHECK_LIB("zlib.lib", "http", PHP_HTTP) &&
35 CHECK_LIB("winmm.lib", "http", PHP_HTTP)) {
36 AC_DEFINE("HTTP_HAVE_CURL", 1, "Have CURL library");
37 } else {
38 WARNING("curl convenience functions not enabled; libraries and headers not found");
39 }
40 }