diff options
author | Sascha Schumann <sas@php.net> | 2000-02-12 15:08:32 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-02-12 15:08:32 +0000 |
commit | e7a4d5f18d109063b9779a6587fb32b77545adc0 (patch) | |
tree | d1a1ec6664d9e5f482d6d1619e21a4773b8d6999 /ext/xml | |
parent | bfe09e8305cf0fd4d021519b745d0b7a3b5e3bc5 (diff) | |
download | php-git-e7a4d5f18d109063b9779a6587fb32b77545adc0.tar.gz |
Tell expat the byte order
Diffstat (limited to 'ext/xml')
-rw-r--r-- | ext/xml/config.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/xml/config.m4 b/ext/xml/config.m4 index e3bed63ea7..30396b90b5 100644 --- a/ext/xml/config.m4 +++ b/ext/xml/config.m4 @@ -5,7 +5,13 @@ dnl Fallback for --with-xml[=DIR] AC_ARG_WITH(xml,[],enable_xml=$withval) AC_C_BIGENDIAN - + +if test "$ac_cv_c_bigendian" = "yes"; then + order=21 +else + order=12 +fi + AC_MSG_CHECKING(for XML support) AC_ARG_ENABLE(xml, [ --enable-xml Include XML support using bundled expat lib],[ @@ -17,6 +23,7 @@ AC_MSG_RESULT($PHP_XML) if test "$PHP_XML" != "no"; then AC_DEFINE(HAVE_LIBEXPAT, 1, [ ]) + CPPFLAGS="$CPPFLAGS -DXML_BYTE_ORDER=$order" if test "$PHP_XML" = "shared"; then shared=yes else |