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