xref: /php-src/ext/soap/config.w32 (revision 80d78461)
1// vim:ft=javascript
2
3ARG_ENABLE("soap", "SOAP support", "no");
4
5if (PHP_SOAP != "no") {
6	if (PHP_LIBXML == "yes" &&
7		ADD_EXTENSION_DEP('soap', 'libxml') &&
8		CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_SOAP", PHP_PHP_BUILD + "\\include\\libxml2") &&
9		CHECK_HEADER_ADD_INCLUDE("libxml/tree.h", "CFLAGS_SOAP", PHP_PHP_BUILD + "\\include\\libxml2")
10		) {
11		EXTENSION('soap', 'soap.c php_encoding.c php_http.c php_packet_soap.c php_schema.c php_sdl.c php_xml.c', null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
12		AC_DEFINE('HAVE_SOAP', 1, "Define to 1 if the PHP extension 'soap' is available.");
13		ADD_EXTENSION_DEP('soap', 'date');
14		ADD_EXTENSION_DEP('soap', 'hash');
15		ADD_EXTENSION_DEP('soap', 'session', true);
16
17		if (!PHP_SOAP_SHARED) {
18			ADD_FLAG('CFLAGS_SOAP', "/D LIBXML_STATIC ");
19		}
20	} else {
21			WARNING("soap not enabled, libxml not found");
22			PHP_SOAP = "no"
23	}
24}
25