xref: /PHP-8.1/ext/xmlreader/config.m4 (revision 75fb7486)
1PHP_ARG_ENABLE([xmlreader],
2  [whether to enable XMLReader support],
3  [AS_HELP_STRING([--disable-xmlreader],
4    [Disable XMLReader support])],
5  [yes])
6
7if test "$PHP_XMLREADER" != "no"; then
8
9  if test "$PHP_LIBXML" = "no"; then
10    AC_MSG_ERROR([XMLReader extension requires LIBXML extension, add --with-libxml])
11  fi
12
13  PHP_SETUP_LIBXML(XMLREADER_SHARED_LIBADD, [
14    AC_DEFINE(HAVE_XMLREADER,1,[ ])
15    PHP_NEW_EXTENSION(xmlreader, php_xmlreader.c, $ext_shared)
16    PHP_ADD_EXTENSION_DEP(xmlreader, dom, true)
17    PHP_SUBST(XMLREADER_SHARED_LIBADD)
18  ])
19fi
20