summaryrefslogtreecommitdiff
path: root/ext/xml/config.m4
blob: c4c2de4aa6f0c8dd402757d82a6c3093c2cb2b4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
dnl
dnl $Id$
dnl

PHP_ARG_ENABLE(xml,whether to enable XML support,
[  --disable-xml           Disable XML support using bundled expat lib], yes)

if test "$PHP_XML" = "yes"; then
	AC_DEFINE(HAVE_XML,  1, [ ])

	if test "$PHP_BUNDLE_EXPAT" = "no" && test "$PHP_BUNDLE_LIBXML" = "no"; then
		AC_MSG_ERROR(xml support is enabled, however both xml libraries have been disabled.)
	fi

	PHP_NEW_EXTENSION(xml, compat.c xml.c, $ext_shared)
fi