From dcc736b7de2206c391e46289f096f60426f7d418 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 30 Jan 2004 14:20:59 +1100 Subject: - (dtucker) [configure.ac] Add --without-zlib-version-check. Feedback from tim@, ok several --- ChangeLog | 5 +++-- configure.ac | 24 +++++++++++++++++++++--- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 038eb1e71..c540d7517 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,7 +9,8 @@ adress -> address, and a few more; all from Jonathon Gray; - djm@cvs.openbsd.org 2004/01/13 09:49:06 [sftp-batch.sh] - don't delete thyself when running without obj/ ; ok markus@ + - (dtucker) [configure.ac] Add --without-zlib-version-check. Feedback from + tim@, ok several 20040128 - (dtucker) [regress/README.regress] Add tcpwrappers issue, noted by tim@ @@ -1779,4 +1780,4 @@ - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. Report from murple@murple.net, diagnosis from dtucker@zip.com.au -$Id: ChangeLog,v 1.3202 2004/01/30 02:02:55 dtucker Exp $ +$Id: ChangeLog,v 1.3203 2004/01/30 03:20:59 dtucker Exp $ diff --git a/configure.ac b/configure.ac index 3b04182d5..c037ee7c8 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -# $Id: configure.ac,v 1.189 2004/01/27 03:03:39 tim Exp $ +# $Id: configure.ac,v 1.190 2004/01/30 03:20:59 dtucker Exp $ AC_INIT AC_CONFIG_SRCDIR([ssh.c]) @@ -580,6 +580,15 @@ AC_CHECK_LIB(z, deflate, , ] ) AC_CHECK_HEADER([zlib.h], ,AC_MSG_ERROR([*** zlib.h missing - please install first or check config.log ***])) + +AC_ARG_WITH(zlib-version-check, + [ --without-zlib-version-check Disable zlib version check], + [ if test "x$withval" = "xno" ; then + zlib_check_nonfatal=1 + fi + ] +) + AC_MSG_CHECKING(for zlib 1.1.4 or greater) AC_TRY_RUN([ #include @@ -596,9 +605,18 @@ int main() ], AC_MSG_RESULT(yes), [ AC_MSG_RESULT(no) - AC_MSG_ERROR([*** zlib too old - check config.log ***]) ] + if test -z "$zlib_check_nonfatal" ; then + AC_MSG_ERROR([*** zlib too old - check config.log *** +Your reported zlib version has known security problems. It's possible your +vendor has fixed these problems without changing the version number. If you +are sure this is the case, you can disable the check by running +"./configure --without-zlib-version-check". +If you are in doubt, upgrade zlib to version 1.1.4 or greater.]) + else + AC_MSG_WARN([zlib version may have security problems]) + fi + ] ) - dnl UnixWare 2.x AC_CHECK_FUNC(strcasecmp, -- cgit v1.2.3