diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-11-29 05:10:18 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-11-29 05:10:18 +0000 |
commit | f3c3ed2c03147f8200816764f30a5f7578c2bd19 (patch) | |
tree | bc49db75bd312198eee65d06de47e105afcb37d6 /acinclude.m4 | |
parent | c21ec24fbbcde6363dc755a2adf1f8d66b48336e (diff) | |
download | wireshark-f3c3ed2c03147f8200816764f30a5f7578c2bd19.tar.gz wireshark-f3c3ed2c03147f8200816764f30a5f7578c2bd19.tar.bz2 wireshark-f3c3ed2c03147f8200816764f30a5f7578c2bd19.zip |
Of the "zlib" functions we use that aren't in all versions of "zlib",
"gzgets()" is the one most recently added; it was added in 1.0.9.
Check for it, rather than for a list of functions, when checking for
"zlib" support - if you check for N functions, and they're all there,
you get N "-lz"s added to the list of libraries with which to link.
Indicate in the README that "zlib" versions prior to 1.0.9 definitely
won't work.
svn path=/trunk/; revision=1144
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index b97e0ed41a..59ef086002 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -197,11 +197,15 @@ AC_DEFUN(AC_ETHEREAL_PCAP_CHECK, AC_DEFUN(AC_ETHEREAL_ZLIB_CHECK, [ AC_CHECK_HEADER(zlib.h,,enable_zlib=no) - AC_CHECK_LIB(z, gzopen,,enable_zlib=no) + + dnl + dnl Check for "gzgets()" in zlib, because we need it, but + dnl some older versions of zlib don't have it. It appears + dnl from the ChangeLog that any released version of zlib + dnl with "gzgets()" should have the other routines we + dnl depend on, such as "gzseek()", "gztell()", and "zError()". + dnl AC_CHECK_LIB(z, gzseek,,enable_zlib=no) - AC_CHECK_LIB(z, gztell,,enable_zlib=no) - AC_CHECK_LIB(z, gzgets,,enable_zlib=no) - AC_CHECK_LIB(z, zError,,enable_zlib=no) ]) # |