]> granicus.if.org Git - php/commitdiff
Added the usual search paths where to look for expat.
authorfoobar <sniper@php.net>
Thu, 2 May 2002 10:21:52 +0000 (10:21 +0000)
committerfoobar <sniper@php.net>
Thu, 2 May 2002 10:21:52 +0000 (10:21 +0000)
ext/xslt/config.m4

index 22ab4382f1a2bd0f7bf9fd987fe210454a5cd0f0..3765399963b38ba0a98ba3a5ee77844a126b2c85 100644 (file)
@@ -55,12 +55,13 @@ if test "$PHP_XSLT" != "no"; then
                                        
   if test "$PHP_XSLT_SABLOT" != "no"; then
     found_expat=no
-    for i in $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
 
@@ -72,6 +73,7 @@ if test "$PHP_XSLT" != "no"; then
     if test "$PHP_ICONV" = "no"; then
       PHP_ICONV=yes
     fi
+
     PHP_SETUP_ICONV(XSLT_SHARED_LIBADD, [], [
       AC_MSG_ERROR([iconv not found, in order to build sablotron you need the iconv library])
     ])