mirror of
https://github.com/php/php-src.git
synced 2026-04-01 21:22:13 +02:00
- PHP_SETUP_LIBXML arguments quoted - Help texts updated for HAVE_LIBXML, HAVE_DOM, HAVE_XMLREADER, HAVE_XMLWRITER, HAVE_SOAP, HAVE_SIMPLEXML, and HAVE_XML CPP macros - Duplicate HAVE_LIBXML symbol definition in PHP_SETUP_LIBXML M4 macro removed (the HAVE_LIBXML marks that PHP libxml extension is available and not only that libxml2 library is available)
22 lines
760 B
JavaScript
22 lines
760 B
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("xml", "XML support", "yes");
|
|
|
|
if (PHP_XML == "yes") {
|
|
if (PHP_LIBXML == "yes" &&
|
|
ADD_EXTENSION_DEP('xml', 'libxml') &&
|
|
CHECK_HEADER_ADD_INCLUDE("libxml/parser.h", "CFLAGS_XML", PHP_PHP_BUILD + "\\include\\libxml2") &&
|
|
CHECK_HEADER_ADD_INCLUDE("libxml/tree.h", "CFLAGS_XML", PHP_PHP_BUILD + "\\include\\libxml2")
|
|
) {
|
|
EXTENSION("xml", "xml.c compat.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
|
AC_DEFINE("HAVE_XML", 1, "Define to 1 if xml extension is available.");
|
|
if (!PHP_XML_SHARED) {
|
|
ADD_FLAG("CFLAGS_XML", "/D LIBXML_STATIC ");
|
|
}
|
|
PHP_INSTALL_HEADERS("ext/xml", "expat_compat.h php_xml.h");
|
|
} else {
|
|
WARNING("xml support can't be enabled, libraries or headers are missing")
|
|
PHP_XML = "no"
|
|
}
|
|
}
|