1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/libxml/config0.m4
Peter Kokot 32210ce967 Autotools: Sync CS in XML related extensions (#15110)
- 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)
2024-07-27 22:48:51 +02:00

22 lines
579 B
Plaintext

PHP_ARG_WITH([libxml],
[whether to build with LIBXML support],
[AS_HELP_STRING([--without-libxml],
[Build without LIBXML support])],
[yes])
if test "$PHP_LIBXML" != "no"; then
dnl This extension can not be build as shared
ext_shared=no
PHP_SETUP_LIBXML([LIBXML_SHARED_LIBADD], [
AC_DEFINE([HAVE_LIBXML], [1],
[Define to 1 if libxml extension is available.])
PHP_NEW_EXTENSION([libxml],
[libxml.c mime_sniff.c],
[$ext_shared],,
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1])
PHP_INSTALL_HEADERS([ext/libxml], [php_libxml.h])
])
fi