php-src/ext/xmlwriter/config.m4

27 lines
754 B
Plaintext
Raw Normal View History

2004-07-13 17:01:30 +00:00
dnl
dnl $Id$
dnl
2005-12-02 08:59:26 +00:00
PHP_ARG_ENABLE(xmlwriter, whether to enable XMLWriter support,
2005-12-03 01:06:36 +00:00
[ --disable-xmlwriter Disable XMLWriter support], yes)
2004-07-13 17:01:30 +00:00
2005-12-02 08:59:26 +00:00
if test -z "$PHP_LIBXML_DIR"; then
PHP_ARG_WITH(libxml-dir, libxml2 install dir,
[ --with-libxml-dir=DIR XMLWriter: libxml2 install prefix], no, no)
2005-12-02 08:59:26 +00:00
fi
2004-07-13 17:01:30 +00:00
if test "$PHP_XMLWRITER" != "no"; then
2005-12-02 08:59:26 +00:00
if test "$PHP_LIBXML" = "no"; then
2005-12-04 00:20:52 +00:00
AC_MSG_ERROR([XMLWriter extension requires LIBXML extension, add --enable-libxml])
2004-07-13 17:01:30 +00:00
fi
2005-12-04 00:20:52 +00:00
PHP_SETUP_LIBXML(XMLWRITER_SHARED_LIBADD, [
2005-12-02 08:59:26 +00:00
AC_DEFINE(HAVE_XMLWRITER,1,[ ])
PHP_NEW_EXTENSION(xmlwriter, php_xmlwriter.c, $ext_shared)
PHP_SUBST(XMLWRITER_SHARED_LIBADD)
], [
AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
])
2005-02-24 15:30:24 +00:00
fi