summaryrefslogtreecommitdiff
path: root/ext/simplexml/config.m4
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2003-05-20 08:46:55 (GMT)
committerDerick Rethans <derick@php.net>2003-05-20 08:46:55 (GMT)
commit813ea0b6637459c658b7b537305933ef0aa9aa31 (patch)
tree4393a1987267bb473bb283730149abc67f86beae /ext/simplexml/config.m4
parent60d3dab29f3e2dfdcc19bb9d3c6abcc2faad02fe (diff)
downloadphp-813ea0b6637459c658b7b537305933ef0aa9aa31.tar.gz
- Make it build with the unbundled libxml again
Diffstat (limited to 'ext/simplexml/config.m4')
-rw-r--r--ext/simplexml/config.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/simplexml/config.m4 b/ext/simplexml/config.m4
index 21eeac8..aa1cf4c 100644
--- a/ext/simplexml/config.m4
+++ b/ext/simplexml/config.m4
@@ -5,5 +5,14 @@ PHP_ARG_WITH(simplexml, for simplexml support,
[ --with-simplexml Include simplexml support])
if test "$PHP_SIMPLEXML" != "no"; then
- PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared)
+
+ PHP_LIBXML_DIR=$PHP_SIMPLEXML
+
+ PHP_SETUP_LIBXML(SIMPLEXML_SHARED_LIBADD, [
+ AC_DEFINE(HAVE_SIMPLEXML,1,[ ])
+ PHP_NEW_EXTENSION(simplexml, simplexml.c, $ext_shared)
+ PHP_SUBST(SIMPLEXML_SHARED_LIBADD)
+ ], [
+ AC_MSG_ERROR([xml2-config not found. Please check your libxml2 installation.])
+ ])
fi