sniper          Thu Oct 17 01:06:53 2002 EDT

  Modified files:              
    /php4/ext/zip       config.m4 
  Log:
  Fix the phpize build
  
  
Index: php4/ext/zip/config.m4
diff -u php4/ext/zip/config.m4:1.4 php4/ext/zip/config.m4:1.5
--- php4/ext/zip/config.m4:1.4  Tue Mar 12 11:39:16 2002
+++ php4/ext/zip/config.m4      Thu Oct 17 01:06:53 2002
@@ -1,12 +1,11 @@
 dnl
-dnl $Id: config.m4,v 1.4 2002/03/12 16:39:16 sas Exp $
+dnl $Id: config.m4,v 1.5 2002/10/17 05:06:53 sniper Exp $
 dnl 
 
 PHP_ARG_WITH(zip,for ZIP support, 
 [  --with-zip[=DIR]        Include ZIP support (requires zziplib >= 0.10.6).])
 
 if test "$PHP_ZIP" != "no"; then
-  PHP_NEW_EXTENSION(zip, zip.c, $ext_shared)
   for i in $PHP_ZIP /usr/local /usr ; do
     if test -f $i/include/zzlib/zziplib.h; then
       ZZIPLIB_DIR=$i
@@ -23,15 +22,20 @@
 
   ZZIPLIB_LIBDIR=$ZZIPLIB_DIR/lib
 
-  PHP_TEMP_LDFLAGS(-L$ZZIPLIB_LIBDIR,[
-  AC_CHECK_LIB(zzip, zzip_open, [AC_DEFINE(HAVE_ZZIPLIB,1,[ ])],
-    [AC_MSG_ERROR(zziplib module requires zzlib >= 0.10.6.)])
+  PHP_CHECK_LIBRARY(zzip, zzip_open,
+  [
+    AC_DEFINE(HAVE_ZZIPLIB,1,[ ])
+  ], [
+    AC_MSG_ERROR(zziplib module requires zzlib >= 0.10.6.)
+  ], [
+    -L$ZZIPLIB_LIBDIR
   ])
 
-  PHP_SUBST(ZIP_SHARED_LIBADD)
   PHP_ADD_LIBRARY_WITH_PATH(zzip, $ZZIPLIB_LIBDIR, ZIP_SHARED_LIBADD)
-  
   PHP_ADD_INCLUDE($ZZIPLIB_INCDIR)
 
   PHP_FOPENCOOKIE
+
+  PHP_NEW_EXTENSION(zip, zip.c, $ext_shared)
+  PHP_SUBST(ZIP_SHARED_LIBADD)
 fi



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

Reply via email to