sas             Thu Jun 26 20:37:43 2003 EDT

  Modified files:              (Branch: PHP_4)
    /php-src/ext/zlib   config0.m4 
  Log:
  MFH Don't add -L/usr/lib
  
Index: php-src/ext/zlib/config0.m4
diff -u php-src/ext/zlib/config0.m4:1.12.2.1 php-src/ext/zlib/config0.m4:1.12.2.1.10.1
--- php-src/ext/zlib/config0.m4:1.12.2.1        Mon Dec  9 13:28:03 2002
+++ php-src/ext/zlib/config0.m4 Thu Jun 26 20:37:42 2003
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: config0.m4,v 1.12.2.1 2002/12/09 18:28:03 wez Exp $
+dnl $Id: config0.m4,v 1.12.2.1.10.1 2003/06/27 00:37:42 sas Exp $
 dnl
 
 PHP_ARG_WITH(zlib,for ZLIB support,
@@ -36,12 +36,17 @@
     AC_MSG_ERROR(Cannot find libz)
   fi
 
+  case $ZLIB_DIR in
+  /usr) ac_extra= ;; 
+  *) ac_extra=-L$ZLIB_DIR/lib ;;
+  esac
+
   PHP_CHECK_LIBRARY(z, gzgets, [
     AC_DEFINE(HAVE_ZLIB,1,[ ]) 
   ],[
     AC_MSG_ERROR(ZLIB extension requires zlib >= 1.0.9)
   ],[
-    -L$ZLIB_DIR/lib
+    $ac_extra
   ])
 
   PHP_ADD_LIBPATH($ZLIB_DIR/lib, ZLIB_SHARED_LIBADD)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to