]> granicus.if.org Git - php/commitdiff
MFH fixes for the iconv stuff
authorfoobar <sniper@php.net>
Tue, 26 Mar 2002 00:15:34 +0000 (00:15 +0000)
committerfoobar <sniper@php.net>
Tue, 26 Mar 2002 00:15:34 +0000 (00:15 +0000)
ext/rpc/xmlrpc/config.m4
ext/xmlrpc/config.m4
ext/xslt/config.m4

index 6ade302cb384d95005b192ec888eb94e40e5e2e7..bf032cfc24a6c2578b30eb3d49172b53651b4105 100644 (file)
@@ -33,6 +33,9 @@ if test "$PHP_XMLRPC" != "no"; then
     AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=<DIR>)
   fi
 
+  if test "$PHP_ICONV" = "no"; then
+    PHP_ICONV=yes
+  fi
   PHP_SETUP_ICONV(XMLRPC_SHARED_LIBADD, [], [
     AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv library])
   ])
index 6ade302cb384d95005b192ec888eb94e40e5e2e7..bf032cfc24a6c2578b30eb3d49172b53651b4105 100644 (file)
@@ -33,6 +33,9 @@ if test "$PHP_XMLRPC" != "no"; then
     AC_MSG_ERROR(XML-RPC support requires libexpat. Use --with-expat-dir=<DIR>)
   fi
 
+  if test "$PHP_ICONV" = "no"; then
+    PHP_ICONV=yes
+  fi
   PHP_SETUP_ICONV(XMLRPC_SHARED_LIBADD, [], [
     AC_MSG_ERROR([iconv not found, in order to build xmlrpc you need the iconv library])
   ])
index 92e574a91959ac8362373b09bceb58c181fc72d2..0cfa426466832a5ed2d5b282477596cb755405b1 100644 (file)
@@ -56,7 +56,7 @@ 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
-      if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.so; then
+      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)
@@ -69,6 +69,9 @@ if test "$PHP_XSLT" != "no"; then
       PHP_ADD_LIBRARY(xmltok)
     fi
 
+    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])
     ])