summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTom Lane2001-01-01 23:10:09 +0000
committerTom Lane2001-01-01 23:10:09 +0000
commit4300e290d809921bc745135ce926444d365ea0ed (patch)
tree42d1d4a446037de349cd3e999f545e5cee67b13b /configure.in
parentad0169b1b7a16424465ee41d0515d5832a80a382 (diff)
Define HAVE_LIBZ only if we detect <zlib.h> as well as libz.a/.so.
Otherwise, build falls over on a machine with a non-devel RPM of libz.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 92ac6b54675..dd03fa5ea1c 100644
--- a/configure.in
+++ b/configure.in
@@ -678,8 +678,11 @@ AC_CHECK_LIB(BSD, main)
AC_CHECK_LIB(gen, main)
AC_CHECK_LIB(PW, main)
AC_SEARCH_LIBS(crypt, crypt)
-AC_CHECK_LIB(z, inflate)
AC_CHECK_LIB(bind, __inet_ntoa)
+dnl only consider libz to be present if we find <zlib.h> as well
+AC_CHECK_HEADER(zlib.h, [
+AC_CHECK_LIB(z, inflate)
+])
if test "$with_krb4" = yes ; then