config0.m4 674 B

12345678910111213141516171819202122232425
  1. dnl
  2. dnl $Id$
  3. dnl
  4. PHP_ARG_ENABLE(libxml, whether to enable LIBXML support,
  5. [ --disable-libxml Disable LIBXML support], yes)
  6. if test -z "$PHP_LIBXML_DIR"; then
  7. PHP_ARG_WITH(libxml-dir, libxml2 install dir,
  8. [ --with-libxml-dir[=DIR] LIBXML: libxml2 install prefix], no, no)
  9. fi
  10. if test "$PHP_LIBXML" != "no"; then
  11. dnl This extension can not be build as shared
  12. ext_shared=no
  13. PHP_SETUP_LIBXML(LIBXML_SHARED_LIBADD, [
  14. AC_DEFINE(HAVE_LIBXML,1,[ ])
  15. PHP_NEW_EXTENSION(libxml, [libxml.c], $ext_shared)
  16. PHP_INSTALL_HEADERS([ext/libxml/php_libxml.h])
  17. ], [
  18. AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
  19. ])
  20. fi