mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
disable directory search for libexpat and disable some macros for libxml-1.95.
This commit is contained in:
parent
ae92ebb92b
commit
c2881f7c6b
@ -37,6 +37,7 @@ if test "$PHP_SABLOT" != "no"; then
|
||||
testval=no
|
||||
for i in $PHP_EXPAT_DIR $SABLOT_DIR; do
|
||||
if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.so; then
|
||||
AC_DEFINE(HAVE_LIBEXPAT2,1,[ ])
|
||||
AC_ADD_LIBRARY_WITH_PATH(expat, $i/lib)
|
||||
AC_CHECK_LIB(sablot, SablotSetEncoding, AC_DEFINE(HAVE_SABLOT_SET_ENCODING,1,[ ]))
|
||||
testval=yes
|
||||
|
@ -17,17 +17,9 @@ PHP_ARG_ENABLE(xml,for XML support,
|
||||
|
||||
if test "$PHP_XML" != "no"; then
|
||||
|
||||
AC_MSG_CHECKING(for expat in default path)
|
||||
for i in /usr/local /usr; do
|
||||
if test -r $i/include/expat.h; then
|
||||
EXPAT_DIR=$i
|
||||
AC_MSG_RESULT(found in $i)
|
||||
fi
|
||||
done
|
||||
|
||||
AC_DEFINE(HAVE_LIBEXPAT, 1, [ ])
|
||||
|
||||
if test -z "$EXPAT_DIR"; then
|
||||
if test "$PHP_XML" = "yes"; then
|
||||
CPPFLAGS="$CPPFLAGS -DXML_BYTE_ORDER=$order"
|
||||
EXPAT_INTERNAL_LIBADD="expat/libexpat.la"
|
||||
PHP_SUBST(EXPAT_INTERNAL_LIBADD)
|
||||
@ -44,10 +36,10 @@ if test "$PHP_XML" != "no"; then
|
||||
|
||||
else
|
||||
|
||||
if test -f $EXPAT/lib/libexpat.a -o -f $EXPAT_DIR/lib/libexpat.so ; then
|
||||
EXPAT_DIR="$withval"
|
||||
if test -f $EXPAT_DIR/lib/libexpat.a -o -f $EXPAT_DIR/lib/libexpat.so ; then
|
||||
AC_DEFINE(HAVE_LIBEXPAT2, 1, [ ])
|
||||
AC_ADD_INCLUDE($EXPAT_DIR/include)
|
||||
AC_ADD_LIBRARY(expat)
|
||||
else
|
||||
AC_MSG_RESULT(not found)
|
||||
AC_MSG_ERROR(Please reinstall the expat distribution)
|
||||
|
Loading…
Reference in New Issue
Block a user