config.m4 754 B

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