forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PHP_SETUP_ZLIB M4 macro (php#14591)
This enables the zlib library (https://zlib.net/) from a single place to match the minimum required version across the php-src. This provides a possible simpler version bump in the future. Macro's 2nd and 3rd arguments can pass additional actions whether zlib library is found or not for the possible future adjustments in the ext/standard where also zlib might be required. Support for pkg-config was introduced in 1.2.3.1. The minimum zlib version has been bumped to 1.2.3.1 * Bump minimum zlib version to 1.2.11 This is aligned with CentOS 8, which has 1.2.11 in the default packages. * [skip ci] Move zlib version change to UPGRADING This matches the OpenSSL style version change notice already done in this file.
- Loading branch information
Showing
7 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
PHP_ARG_WITH([zlib], | ||
[for ZLIB support], | ||
[AS_HELP_STRING([--with-zlib], | ||
[Include ZLIB support (requires zlib >= 1.2.0.4)])]) | ||
[Include ZLIB support (requires zlib library)])]) | ||
|
||
if test "$PHP_ZLIB" != "no"; then | ||
PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.0.4]) | ||
|
||
PHP_EVAL_LIBLINE($ZLIB_LIBS, ZLIB_SHARED_LIBADD) | ||
PHP_EVAL_INCLINE($ZLIB_CFLAGS) | ||
|
||
AC_DEFINE(HAVE_ZLIB,1,[ ]) | ||
|
||
PHP_NEW_EXTENSION(zlib, zlib.c zlib_fopen_wrapper.c zlib_filter.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) | ||
PHP_SUBST(ZLIB_SHARED_LIBADD) | ||
PHP_SETUP_ZLIB([ZLIB_SHARED_LIBADD], [dnl | ||
AC_DEFINE([HAVE_ZLIB], [1], [Define to 1 if zlib extension is available.]) | ||
PHP_NEW_EXTENSION([zlib], | ||
[zlib.c zlib_fopen_wrapper.c zlib_filter.c], | ||
[$ext_shared],, | ||
[-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1]) | ||
PHP_SUBST([ZLIB_SHARED_LIBADD])]) | ||
fi |