summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/science/math/R/zlib-version-check.patch
blob: 83cfed2cac4cdb4241ba33648e99c3ad424ec417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/configure b/configure
index cf368ce..dc528ff 100755
--- a/configure
+++ b/configure
@@ -35507,10 +35507,11 @@ else
 #include <string.h>
 #include <zlib.h>
 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 < 0x01250) {
+    exit(1);
+  }
+  exit(0);
 #else
   exit(1);
 #endif