xref: /PHP-8.3/ext/zlib/config0.m4 (revision 75fb7486)
1PHP_ARG_WITH([zlib],
2  [for ZLIB support],
3  [AS_HELP_STRING([--with-zlib],
4    [Include ZLIB support (requires zlib >= 1.2.0.4)])])
5
6if test "$PHP_ZLIB" != "no"; then
7  PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.0.4])
8
9  PHP_EVAL_LIBLINE($ZLIB_LIBS, ZLIB_SHARED_LIBADD)
10  PHP_EVAL_INCLINE($ZLIB_CFLAGS)
11
12  AC_DEFINE(HAVE_ZLIB,1,[ ])
13
14  PHP_NEW_EXTENSION(zlib, zlib.c zlib_fopen_wrapper.c zlib_filter.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
15  PHP_SUBST(ZLIB_SHARED_LIBADD)
16fi
17