xref: /php-src/ext/xml/config.w32 (revision f66feaec)
1// vim:ft=javascript
2
3ARG_WITH("xml", "XML support", "yes");
4
5if (PHP_XML == "yes") {
6	if (PHP_LIBXML == "yes" &&
7		ADD_EXTENSION_DEP('xml', 'libxml') &&
8		CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_XML", PHP_PHP_BUILD + "\\include\\libxml2") &&
9		CHECK_HEADER_ADD_INCLUDE("libxml/tree.h", "CFLAGS_XML", PHP_PHP_BUILD + "\\include\\libxml2")
10	) {
11		EXTENSION("xml", "xml.c compat.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
12		AC_DEFINE("HAVE_XML", 1, "Define to 1 if the PHP extension 'xml' is available.");
13		if (!PHP_XML_SHARED) {
14			ADD_FLAG("CFLAGS_XML", "/D LIBXML_STATIC ");
15		}
16		PHP_INSTALL_HEADERS("ext/xml", "expat_compat.h php_xml.h");
17	} else {
18		WARNING("xml support can't be enabled, libraries or headers are missing")
19		PHP_XML = "no"
20	}
21}
22