cvs: php4 /ext/xml config.m4
| From: | Sterling Hughes | Date: | Fri, 02 May 2003 04:02:27 +0000 |
| Subject: | cvs: php4 /ext/xml config.m4 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-20650@lists.php.net to get a copy of this message | ||
sterling Fri May 2 00:02:27 2003 EDT
Modified files:
/php4/ext/xml config.m4
Log:
new file that deals with the bundle
Index: php4/ext/xml/config.m4
diff -u php4/ext/xml/config.m4:1.39 php4/ext/xml/config.m4:1.40
--- php4/ext/xml/config.m4:1.39 Sun Nov 17 13:37:48 2002
+++ php4/ext/xml/config.m4 Fri May 2 00:02:27 2003
@@ -1,15 +1,7 @@
dnl
-dnl $Id: config.m4,v 1.39 2002/11/17 18:37:48 iliaa Exp $
+dnl $Id: config.m4,v 1.40 2003/05/02 04:02:27 sterling Exp $
dnl
-AC_C_BIGENDIAN
-
-if test "$ac_cv_c_bigendian" = "yes"; then
- order=4321
-else
- order=1234
-fi
-
PHP_ARG_ENABLE(xml,whether to enable XML support,
[ --disable-xml Disable XML support using bundled expat lib], yes)
@@ -19,14 +11,11 @@
if test "$PHP_XML" = "yes"; then
AC_DEFINE(HAVE_LIBEXPAT, 1, [ ])
- if test "$PHP_EXPAT_DIR" = "no"; then
- AC_DEFINE(HAVE_LIBEXPAT_BUNDLED, 1, [ ])
- PHP_NEW_EXTENSION(xml, xml.c expat/xmlparse.c expat/xmlrole.c expat/xmltok.c,
$ext_shared,,-DBYTEORDER=$order)
- PHP_ADD_INCLUDE($ext_srcdir/expat)
- PHP_ADD_BUILD_DIR($ext_builddir/expat)
- else
- PHP_NEW_EXTENSION(xml, xml.c, $ext_shared)
+ if test "$PHP_EXPAT_DIR" = "no" && test "$PHP_BUNDLE_EXPAT"
= "no"; then
+ AC_MSG_ERROR(xml support is enabled, however the expat bundle is disabled and no external expat
directory was specified.)
+ fi
+ if test "$PHP_EXPAT_DIR" != "no"; then
for i in $PHP_XML $PHP_EXPAT_DIR; do
if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.$SHLIB_SUFFIX_NAME ; then
EXPAT_DIR=$i
@@ -41,4 +30,6 @@
PHP_ADD_LIBRARY_WITH_PATH(expat, $EXPAT_DIR/lib, XML_SHARED_LIBADD)
PHP_SUBST(XML_SHARED_LIBADD)
fi
+
+ PHP_NEW_EXTENSION(xml, xml.c, $ext_shared)
fi