small configure offering re: -lz

This patch is only for gnome-libs, but the same thing should apply
to most of the GNOME packages.  It tries to detect the bad -lz problem at
configure time and tell the builder what to do about it.

Index: gnome-libs/
RCS file: /cvs/gnome/gnome-libs/,v
retrieving revision 1.154
diff -u -r1.154
---	1999/01/13 00:54:31	1.154
+++	1999/01/13 13:08:33
@@ -163,6 +163,11 @@
 AC_CHECK_LIB(z, inflate,
     Z_LIBS="-lz";  AC_DEFINE(HAVE_LIBZ)))
+AC_CHECK_LIB(z, compress, ,
+  AC_MSG_ERROR([[*** Incorrect libz version found.  Please make sure you do not have an
+*** outdated libz.a / hiding in your X11 distribution or elsewhere
+*** on your system.  Versions of libz with the "compress" and "uncompress"
+*** symbols are sufficiently recent to build GNOME.]]))
 dnl Test for libjpeg
 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,

(On a more useful note I hope to submit something to catch incompatible indent
for ORBit soon, after I put out the latest "fires"....)

brandon s. allbery	[os/2][linux][solaris][japh]
system administrator	     [WAY too many hats]
electrical and computer engineering					 KF8NH
carnegie mellon university	      ["God, root, what is difference?" -Pitr]

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]