xref: /PHP-5.4/ext/curl/config.w32 (revision 3110003f)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("curl", "cURL support", "no");
5
6if (PHP_CURL != "no") {
7	if (CHECK_LIB("libcurl_a.lib;libcurl.lib", "curl", PHP_CURL) &&
8			CHECK_HEADER_ADD_INCLUDE("curl/easy.h", "CFLAGS_CURL") &&
9			CHECK_LIB("ssleay32.lib", "curl", PHP_CURL) &&
10			CHECK_LIB("libeay32.lib", "curl", PHP_CURL)
11		&& CHECK_LIB("winmm.lib", "curl", PHP_CURL)
12		&& CHECK_LIB("wldap32.lib", "curl", PHP_CURL)
13		&& (((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib", "curl", PHP_CURL))) ||
14			(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "curl", PHP_CURL)) || (PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED)))
15		) {
16		EXTENSION("curl", "interface.c multi.c streams.c", true);
17		AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');
18		AC_DEFINE('HAVE_CURL_SSL', 1, 'Have SSL suppurt in cURL');
19		AC_DEFINE('HAVE_CURL_EASY_STRERROR', 1, 'Have curl_easy_strerror in cURL');
20		AC_DEFINE('HAVE_CURL_MULTI_STRERROR', 1, 'Have curl_multi_strerror in cURL');
21		AC_DEFINE('HAVE_CURL_VERSION_INFO', 1, 'Have curl_version_info in cURL');
22		ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB");
23		// TODO: check for curl_version_info
24		// AC_DEFINE('PHP_CURL_URL_WRAPPERS', 0, 'Use curl for URL wrappers [experimental]');
25	} else {
26		WARNING("curl not enabled; libraries and headers not found");
27	}
28}
29