xref: /PHP-8.2/ext/xmlwriter/config.w32 (revision 1ad08256)
1// vim:ft=javascript
2
3ARG_ENABLE("xmlwriter", "XMLWriter support", "yes");
4
5if (PHP_XMLWRITER == "yes" && PHP_LIBXML == "yes") {
6	if (CHECK_HEADER_ADD_INCLUDE('libxml/xmlwriter.h', 'CFLAGS_XMLWRITER', PHP_XMLWRITER + ";" + PHP_PHP_BUILD + "\\include\\libxml2")) {
7		EXTENSION("xmlwriter", "php_xmlwriter.c");
8		AC_DEFINE("HAVE_XMLWRITER", 1, "XMLWriter support");
9		if (!PHP_XMLWRITER_SHARED) {
10			ADD_FLAG("CFLAGS_XMLWRITER", "/D LIBXML_STATIC");
11		}
12		ADD_EXTENSION_DEP('xmlwriter', 'libxml');
13	} else {
14		WARNING('Could not find xmlwriter.h');
15	}
16}
17