config0.m4 726 B

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