mirror of
https://github.com/php/php-src.git
synced 2024-11-30 05:13:56 +08:00
ea0f4078b5
@ names have also changed accordingly, functionality, has stayed @ constant. (Sterling)
40 lines
1.0 KiB
Plaintext
40 lines
1.0 KiB
Plaintext
dnl $Id$
|
|
dnl config.m4 for extension zziplib
|
|
|
|
PHP_ARG_WITH(zip,whether to include zziplib support,
|
|
[ --with-zip[=DIR] Include zip support (requires zziplib >= 0.10.6).
|
|
DIR is the zziplib install directory,
|
|
default is /usr/local.])
|
|
|
|
|
|
if test "$PHP_ZIP" != "no"; then
|
|
PHP_EXTENSION(zip, $ext_shared)
|
|
for i in $PHP_ZIP /usr/local /usr ; do
|
|
if test -f $i/include/zzlib/zziplib.h; then
|
|
ZZIPLIB_DIR=$i
|
|
ZZIPLIB_INCDIR=$i/include/zzlib
|
|
elif test -f $i/include/zziplib.h; then
|
|
ZZIPLIB_DIR=$i
|
|
ZZIPLIB_INCDIR=$i/include
|
|
fi
|
|
done
|
|
|
|
if test -z "$ZZIPLIB_DIR"; then
|
|
AC_MSG_ERROR(Cannot find libzzip)
|
|
fi
|
|
|
|
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_SUBST(ZIP_SHARED_LIBADD)
|
|
PHP_ADD_LIBRARY_WITH_PATH(zzip, $ZZIPLIB_LIBDIR, ZIP_SHARED_LIBADD)
|
|
|
|
PHP_ADD_INCLUDE($ZZIPLIB_INCDIR)
|
|
|
|
PHP_FOPENCOOKIE
|
|
fi
|