From 49c5744a8c88b566133ea5fe4044e80c84ac3c70 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Sun, 10 Nov 2019 17:06:13 +0000 Subject: Allow building with tiff >= 4.1 --- comms/hylafax/files/patch-configure | 40 +++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 17 deletions(-) (limited to 'comms/hylafax/files/patch-configure') diff --git a/comms/hylafax/files/patch-configure b/comms/hylafax/files/patch-configure index eb7fe9acf6b7..10feebe4f312 100644 --- a/comms/hylafax/files/patch-configure +++ b/comms/hylafax/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig 2012-06-06 02:58:38.000000000 +0200 -+++ configure 2013-10-23 14:29:24.000000000 +0200 -@@ -831,7 +831,8 @@ +--- configure.orig 2018-09-18 18:51:17 UTC ++++ configure +@@ -831,7 +831,8 @@ checkGCCVersion() # NB: use ANSI C prototype to weed out non-ANSI compilers. # cat>dummy.c<dummy.c<' cat<t.c< @@ -157,7 +157,7 @@ { ioctl(0, TXADDCD, "rts"); ioctl(0, TXDELCD, "rts"); -@@ -2537,8 +2572,9 @@ +@@ -2537,8 +2572,9 @@ CheckLibtiff() tiff_bytecount_t="" cat>t.c< @@ -168,7 +168,13 @@ { printf( "header_ver=%d lib_ver=%s", TIFFLIB_VERSION, TIFFGetVersion() ); exit(0); -@@ -2568,7 +2604,7 @@ +@@ -2563,12 +2599,12 @@ EOF + tiff_offset_t="uint32" + tiff_bytecount_t="uint32" + ;; +- 4.[0]) tiff_runlen_t="uint32" ++ 4.[01]) tiff_runlen_t="uint32" + tiff_offset_t="uint64" tiff_bytecount_t="uint64" echo '#define TIFFHeader TIFFHeaderClassic' echo '#define TIFF_VERSION TIFF_VERSION_CLASSIC' @@ -177,7 +183,7 @@ ;; esac fi -@@ -3255,7 +3291,7 @@ +@@ -3255,7 +3291,7 @@ FUNCS=" strtoul writev " @@ -186,7 +192,7 @@ for i in $FUNCS; do CheckForFunc $i || { Note "... emulate $i" -@@ -3313,8 +3349,9 @@ +@@ -3313,8 +3349,9 @@ Note "Checking ZLIB support." # Verify library is compatible. # cat>t.c<