summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-05-02 10:22:26 +0000
committerfoobar <sniper@php.net>2002-05-02 10:22:26 +0000
commit399914da9263d0b890cd00d50ec3a8ca1b8aba59 (patch)
treea5b7a574fbc22023f38e7168797ae97fe5f5c934
parentfec42ddeeedc06bcc150feea6fb30e1a29bc4f5e (diff)
downloadphp-git-399914da9263d0b890cd00d50ec3a8ca1b8aba59.tar.gz
Stop the search when the libs are found.
-rw-r--r--ext/xslt/config.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/xslt/config.m4 b/ext/xslt/config.m4
index 36ca4d3a08..358e5c29c8 100644
--- a/ext/xslt/config.m4
+++ b/ext/xslt/config.m4
@@ -55,12 +55,13 @@ if test "$PHP_XSLT" != "no"; then
if test "$PHP_XSLT_SABLOT" != "no"; then
found_expat=no
- for i in /usr/local /usr $PHP_EXPAT_DIR $XSLT_DIR; do
+ for i in $PHP_EXPAT_DIR $XSLT_DIR /usr/local /usr; do
if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.$SHLIB_SUFFIX_NAME; then
AC_DEFINE(HAVE_LIBEXPAT2, 1, [ ])
PHP_ADD_INCLUDE($i/include)
PHP_ADD_LIBRARY_WITH_PATH(expat, $i/lib, XSLT_SHARED_LIBADD)
found_expat=yes
+ break
fi
done