config.m4 802 B

123456789101112131415161718192021222324252627
  1. dnl
  2. dnl $Id$
  3. dnl
  4. PHP_ARG_ENABLE(xmlreader, whether to enable XMLReader support,
  5. [ --disable-xmlreader Disable XMLReader support], yes)
  6. if test -z "$PHP_LIBXML_DIR"; then
  7. PHP_ARG_WITH(libxml-dir, libxml2 install dir,
  8. [ --with-libxml-dir=DIR XMLReader: libxml2 install prefix], no, no)
  9. fi
  10. if test "$PHP_XMLREADER" != "no"; then
  11. if test "$PHP_LIBXML" = "no"; then
  12. AC_MSG_ERROR([XMLReader extension requires LIBXML extension, add --enable-libxml])
  13. fi
  14. PHP_SETUP_LIBXML(XMLREADER_SHARED_LIBADD, [
  15. AC_DEFINE(HAVE_XMLREADER,1,[ ])
  16. PHP_NEW_EXTENSION(xmlreader, php_xmlreader.c, $ext_shared)
  17. PHP_ADD_EXTENSION_DEP(xmlreader, dom, true)
  18. PHP_SUBST(XMLREADER_SHARED_LIBADD)
  19. ], [
  20. AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
  21. ])
  22. fi