You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
682 B

  1. dnl $Id$
  2. dnl config.m4 for extension simplexml
  3. PHP_ARG_ENABLE(simplexml, whether to enable simplexml support,
  4. [ --disable-simplexml Disable simplexml support], yes)
  5. if test -z "$PHP_LIBXML_DIR"; then
  6. PHP_ARG_WITH(libxml-dir, libxml2 install dir,
  7. [ --with-libxml-dir=DIR SimpleXML: libxml2 install prefix], no, no)
  8. fi
  9. if test "$PHP_SIMPLEXML" != "no" && test "$PHP_LIBXML" != "no"; then
  10. PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [
  11. AC_DEFINE(HAVE_SIMPLEXML,1,[ ])
  12. PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared)
  13. PHP_SUBST(SIMPLEXML_SHARED_LIBADD)
  14. ], [
  15. AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
  16. ])
  17. fi