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
37 lines
964 B
Text
37 lines
964 B
Text
PHP_ARG_ENABLE([xml],
|
|
[whether to enable XML support],
|
|
[AS_HELP_STRING([--disable-xml],
|
|
[Disable XML support])],
|
|
[yes])
|
|
|
|
PHP_ARG_WITH([expat],
|
|
[whether to build with expat support],
|
|
[AS_HELP_STRING([--with-expat],
|
|
[XML: use expat instead of libxml2])],
|
|
[no],
|
|
[no])
|
|
|
|
if test "$PHP_XML" != "no"; then
|
|
|
|
dnl
|
|
dnl Default to libxml2 if --with-expat is not specified.
|
|
dnl
|
|
if test "$PHP_EXPAT" = "no"; then
|
|
|
|
if test "$PHP_LIBXML" = "no"; then
|
|
AC_MSG_ERROR([XML extension requires LIBXML extension, add --with-libxml])
|
|
fi
|
|
|
|
PHP_SETUP_LIBXML(XML_SHARED_LIBADD, [
|
|
xml_extra_sources="compat.c"
|
|
PHP_ADD_EXTENSION_DEP(xml, libxml)
|
|
])
|
|
else
|
|
PHP_SETUP_EXPAT([XML_SHARED_LIBADD])
|
|
fi
|
|
|
|
PHP_NEW_EXTENSION(xml, xml.c $xml_extra_sources, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
|
PHP_SUBST(XML_SHARED_LIBADD)
|
|
PHP_INSTALL_HEADERS([ext/xml], [expat_compat.h php_xml.h])
|
|
AC_DEFINE(HAVE_XML, 1, [ ])
|
|
fi
|