X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=config.w32;h=af89ae71b32489b3c69d95d387f03fab68907deb;hb=5de7bf562f55eae49d3424670ad56f68458ad7f1;hp=8822ef4fac041c9ce6126f7ce871fadfdb49f8db;hpb=9ae4a76b5f0f81518152731e5d93ab80092fe367;p=m6w6%2Fext-http diff --git a/config.w32 b/config.w32 index 8822ef4..af89ae7 100644 --- a/config.w32 +++ b/config.w32 @@ -12,7 +12,8 @@ if (PHP_HTTP != "no") { "http_api.c http_cache_api.c http_request_pool_api.c "+ "http_request_api.c http_date_api.c http_headers_api.c "+ "http_message_api.c http_send_api.c http_url_api.c "+ - "http_info_api.c http_request_method_api.c", + "http_info_api.c http_request_method_api.c http_encoding_api.c "+ + "http_filter_api.c", null, "/I\"" + configure_module_dirname + "/phpstr\""); ADD_SOURCES(configure_module_dirname + "/phpstr", "phpstr.c", "http"); @@ -21,6 +22,20 @@ if (PHP_HTTP != "no") { if (PHP_DEBUG != "no") { ADD_FLAG("CFLAGS_HTTP", "/W3"); } + + if (CHECK_HEADER_ADD_INCLUDE('zlib.h', 'CFLAGS_HTTP')) { + AC_DEFINE('HTTP_HAVE_ZLIB', 1, "Have zlib library"); + ADD_FLAG("LDFLAGS_HTTP", "/FORCE:MULTIPLE"); + } else { + WARNING("zlib encoding functions not enabled; libraries and headers not found"); + } + + if (PHP_HASH != "no") { + if (glob(configure_module_dirname +"\\..\\hash\\php_hash_sha.h").length) { + ADD_FLAG("CFLAGS_HTTP", "/I"+ configure_module_dirname +"\\..\\hash"); + AC_DEFINE("HTTP_HAVE_HASH_EXT_INCLUDES", 1, ""); + } + } MHASH_LIB = PHP_DEBUG != "no" ? "libmhash-staticd.lib":"libmhash-static.lib"; if (CHECK_HEADER_ADD_INCLUDE('mhash.h', 'CFLAGS_HTTP') &&