mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
Defend against ancient versions of zlib by checking that zlib.h
defines z_streamp.
This commit is contained in:
parent
a933bceacf
commit
19c97b8579
@ -674,8 +674,11 @@ AC_CHECK_LIB(resolv, main)
|
|||||||
AC_CHECK_LIB([[unix]], main)
|
AC_CHECK_LIB([[unix]], main)
|
||||||
AC_SEARCH_LIBS(crypt, crypt)
|
AC_SEARCH_LIBS(crypt, crypt)
|
||||||
AC_CHECK_LIB(bind, __inet_ntoa)
|
AC_CHECK_LIB(bind, __inet_ntoa)
|
||||||
dnl only consider libz to be present if we find <zlib.h> as well
|
dnl Only consider libz to be present if we find <zlib.h> as well;
|
||||||
AC_CHECK_HEADER(zlib.h, [
|
dnl furthermore, check that <zlib.h> defines z_streamp (versions before
|
||||||
|
dnl about 1.0.4 did not). While we could work around the lack of z_streamp,
|
||||||
|
dnl it seems unwise to encourage people to use such old zlib versions...
|
||||||
|
AC_EGREP_HEADER(z_streamp, zlib.h, [
|
||||||
AC_CHECK_LIB(z, inflate)
|
AC_CHECK_LIB(z, inflate)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user