diff -Naur R-3.3.2.orig/configure R-3.3.2/configure --- R-3.3.2.orig/configure 2016-10-24 14:34:26.000000000 +0300 +++ R-3.3.2/configure 2017-02-11 15:30:04.984365954 +0200 @@ -35507,10 +35507,11 @@ #include #include int main() { -#ifdef ZLIB_VERSION -/* Work around Debian bug: it uses 1.2.3.4 even though there was no such - version on the master site zlib.net */ - exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0); +#ifdef ZLIB_VERNUM +if (ZLIB_VERNUM < 0x1250) { + exit(1); + } + exit(0); #else exit(1); #endif