mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

This syncs the installed sapi and extension headers on *nix and Windows systems by installing only what is intended outside of php-src. - ext/gd: without gd_arginfo.h and gd_compat.h - ext/hash: php_hash_joaat.h and php_hash_fnv.h added also on Windows installation; xxhash/xxhash.h added on both installations as it is included in php_hash_xxhash.h; Include path for xxhash.h changed to relative so the php_hash_xxhash.h can be included outside of php-src; Redundant include flags removed - ext/iconv: without iconv_arginfo.h - ext/mysqli: mysqli_mysqlnd.h was missing on Windows - ext/phar: php_phar.h was missing on Windows - ext/sodium: php_libsodium.h was missing on *nix - ext/xml: without xml_arginfo.h - sapi/cli: cli.h was missing on Windows Closes GH-13210 Closes GH-13213
21 lines
729 B
JavaScript
21 lines
729 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, "XML support");
|
|
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"
|
|
}
|
|
}
|