]> granicus.if.org Git - php/commitdiff
fixed a link error in configure script.
authorRui Hirokawa <hirokawa@php.net>
Sun, 25 Nov 2001 22:20:27 +0000 (22:20 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sun, 25 Nov 2001 22:20:27 +0000 (22:20 +0000)
ext/xslt/config.m4

index 2768ebd941078ad61271a4fe3a525493c00c28a2..f420ce5b2e7d58923d6c86d5011b4ddc0aea7201 100644 (file)
@@ -81,8 +81,12 @@ if test "$PHP_XSLT" != "no"; then
     fi
  
     AC_DEFINE(HAVE_SABLOT_BACKEND, 1, [ ])
-    AC_CHECK_LIB(sablot, SablotSetEncoding, AC_DEFINE(HAVE_SABLOT_SET_ENCODING, 1, [ ]))
-
+    if test "$found_expat" = "yes"; then
+     old_LIBS=$LIBS
+     LIBS="$LIBS -lexpat"
+     AC_CHECK_LIB(sablot, SablotSetEncoding, AC_DEFINE(HAVE_SABLOT_SET_ENCODING, 1, [ ]))
+     LIBS=$old_LIBS
+    fi
   fi
 
   PHP_ADD_INCLUDE($XSLT_DIR/include)