summaryrefslogtreecommitdiff
path: root/ext/xmlrpc/config.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-04-27 13:12:55 +0000
committerfoobar <sniper@php.net>2005-04-27 13:12:55 +0000
commit39bcbfc3064f8a393d5ff7d951d303dedfe6a00d (patch)
tree26e554d302221d1f85232daa14cfcb715af2f2c8 /ext/xmlrpc/config.m4
parentaba79c268c2cd2b5fd5df3277c463121913433fb (diff)
downloadphp-git-39bcbfc3064f8a393d5ff7d951d303dedfe6a00d.tar.gz
- Made the libxml related stuff to error out if someone does --disable-all
or --disable-libxml. Better than silently just leave the ext out..
Diffstat (limited to 'ext/xmlrpc/config.m4')
-rw-r--r--ext/xmlrpc/config.m427
1 files changed, 15 insertions, 12 deletions
diff --git a/ext/xmlrpc/config.m4 b/ext/xmlrpc/config.m4
index 4da58ff848..78e0c79880 100644
--- a/ext/xmlrpc/config.m4
+++ b/ext/xmlrpc/config.m4
@@ -28,20 +28,23 @@ if test "$PHP_XMLRPC" != "no"; then
AC_DEFINE(HAVE_XMLRPC,1,[ ])
dnl
- dnl Default to libxml2.
+ dnl Default to libxml2 if --with-expat-dir is not used
dnl
- PHP_SETUP_LIBXML(XMLRPC_SHARED_LIBADD, [
- if test "$PHP_XML" = "no"; then
- PHP_ADD_SOURCES(ext/xml, compat.c)
- PHP_ADD_BUILD_DIR(ext/xml)
- fi
- ], [
- if test "$PHP_EXPAT_DIR" = "no"; then
- AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=<DIR>])
+ if test "$PHP_EXPAT_DIR" = "no"; then
+
+ if test "$PHP_LIBXML" = "no"; then
+ AC_MSG_ERROR([XML-RPC extension requires LIBXML extension, add --enable-libxml])
fi
- ])
- if test "$PHP_EXPAT_DIR" != "no"; then
+ PHP_SETUP_LIBXML(XMLRPC_SHARED_LIBADD, [
+ if test "$PHP_XML" = "no"; then
+ PHP_ADD_SOURCES(ext/xml, compat.c)
+ PHP_ADD_BUILD_DIR(ext/xml)
+ fi
+ ], [
+ AC_MSG_ERROR([xml2-config not found. Use --with-libxml-dir=<DIR>])
+ ])
+ else
testval=no
for i in $PHP_EXPAT_DIR $XMLRPC_DIR /usr/local /usr; do
if test -f $i/$PHP_LIBDIR/libexpat.a -o -f $i/$PHP_LIBDIR/libexpat.$SHLIB_SUFFIX_NAME; then
@@ -54,7 +57,7 @@ if test "$PHP_XMLRPC" != "no"; then
done
if test "$testval" = "no"; then
- AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=<DIR>)
+ AC_MSG_ERROR([XML-RPC support requires libexpat. Use --with-expat-dir=<DIR> (deprecated!)])
fi
fi