xref: /PHP-7.3/ext/wddx/config.w32 (revision 1c850bfc)
1// vim:ft=javascript
2
3ARG_WITH("wddx", "WDDX support", "yes");
4
5if (PHP_WDDX == "yes" &&
6	PHP_LIBXML == "yes" &&
7	CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_WDDX", PHP_PHP_BUILD + "\\include\\libxml2")
8) {
9	EXTENSION("wddx", "wddx.c");
10	AC_DEFINE("HAVE_WDDX", 1, "WDDX support");
11
12	if (!PHP_WDDX_SHARED) {
13		ADD_FLAG("CFLAGS_WDDX", "/D LIBXML_STATIC");
14	} else {
15		if (!CHECK_LIB("libxml2.lib", "wddx")) {
16			WARNING("wddx support can't be enabled, libxml is not found")
17		}
18	}
19
20	ADD_EXTENSION_DEP('wddx', 'libxml');
21	ADD_EXTENSION_DEP('wddx', 'xml')
22	CHECK_HEADER_ADD_INCLUDE("timelib_config.h", "CFLAGS_WDDX", "ext/date/lib");
23}
24