2003-12-03 07:17:04 +08:00
|
|
|
// $Id$
|
|
|
|
// vim:ft=javascript
|
|
|
|
|
|
|
|
ARG_ENABLE("zlib", "ZLIB support", "yes");
|
|
|
|
|
|
|
|
if (PHP_ZLIB == "yes") {
|
2008-06-23 05:55:59 +08:00
|
|
|
if (CHECK_LIB("zlib_a.lib;zlib.lib", "zlib", PHP_ZLIB) &&
|
|
|
|
CHECK_HEADER_ADD_INCLUDE("zlib.h", "CFLAGS", "..\\zlib;" + php_usual_include_suspects)) {
|
|
|
|
|
|
|
|
EXTENSION("zlib", "zlib.c zlib_fopen_wrapper.c zlib_filter.c", null, "/D ZLIB_EXPORTS");
|
|
|
|
AC_DEFINE("HAVE_ZLIB", 1, "ZLIB support");
|
2004-03-11 02:30:44 +08:00
|
|
|
|
2008-06-23 05:55:59 +08:00
|
|
|
if (!PHP_ZLIB_SHARED) {
|
|
|
|
ADD_DEF_FILE("ext\\zlib\\php_zlib.def");
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
WARNING("zlib support can't be enabled, zlib is missing")
|
|
|
|
PHP_ZLIB = "no"
|
|
|
|
}
|
2003-12-03 07:17:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|