summaryrefslogtreecommitdiff
path: root/debian/patches/zlib-ifdef.patch
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-08-05 00:49:38 +0100
committerDave Hibberd <d@vehibberd.com>2023-08-05 00:49:38 +0100
commita2d04aafd5d57f6eca417f22d1f83976dd57843c (patch)
tree1d28a7f521cee7406e5406c6bd7d212102b0bb51 /debian/patches/zlib-ifdef.patch
parentc5b58047766e71c3b4956830fc7f7e02cdb8c7bf (diff)
Fix ability to build in zlib, then ignore it. Needs libax25 to have zlib.
Diffstat (limited to 'debian/patches/zlib-ifdef.patch')
-rw-r--r--debian/patches/zlib-ifdef.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/zlib-ifdef.patch b/debian/patches/zlib-ifdef.patch
new file mode 100644
index 0000000..003b860
--- /dev/null
+++ b/debian/patches/zlib-ifdef.patch
@@ -0,0 +1,22 @@
+--- a/configure
++++ b/configure
+@@ -74,14 +74,15 @@
+ _sleep 1
+ echo -n "Checking for the existence of the Zlib headers... "
+ ZLIB=""
+-HAVEZLIB="#undef HAVE_ZLIB"
++HAVEZLIB="#undef HAVE_ZLIB_H"
+ for zlibdir in /usr/include /usr/local/include
+ do
+ if [ -f $zlibdir/zlib.h ]
+ then
+- echo $zlibdir/zlib.h
+- ZLIB="-lz"
+- HAVEZLIB="#define HAVE_ZLIB 1"
++ echo "skipping zlib until it works right..."
++ # echo $zlibdir/zlib.h
++ # ZLIB="-lz"
++ # HAVEZLIB="#define HAVE_ZLIB_H 1"
+ fi
+ done
+ if [ -z "$ZLIB" ]