aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/acinclude.m4
diff options
context:
space:
mode:
authorAshok Narayanan <ashokn@cisco.com>1999-09-22 01:26:50 +0000
committerAshok Narayanan <ashokn@cisco.com>1999-09-22 01:26:50 +0000
commit3dfa56c4984047d92a8df46f50b92111a8bdf574 (patch)
treee41c0cbc0a89e356df2ca7ef5af0596b8fe40fba /wiretap/acinclude.m4
parent453a4e95fb0b91201f2950bac43316f330353034 (diff)
This commit contains support for reading capture files compressed using
gzip. The zLib library is used for this purpose. If zLib is not available (or it's use is disabled by the --disable-zlib option to configure), you can still compile Ethereal but it will be unable to read compressed capture files. IMPORTANT: Now all file accesses to capture files should be done through special macros. Specifically, for any use of the following functions on capture files, replace them. The arguments for the right-side functions are exactly the same as for the original stdio functions. fopen file_open fdopen filed_open fread file_read fwrite file_write fseek file_seek fclose file_close ferror file_error svn path=/trunk/; revision=695
Diffstat (limited to 'wiretap/acinclude.m4')
-rw-r--r--wiretap/acinclude.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/wiretap/acinclude.m4 b/wiretap/acinclude.m4
index b8094bbfe0..eb5bcdd6fc 100644
--- a/wiretap/acinclude.m4
+++ b/wiretap/acinclude.m4
@@ -194,3 +194,12 @@ main ()
AC_SUBST(GLIB_LIBS)
rm -f conf.glibtest
])
+
+#
+# AC_WIRETAP_ZLIB_CHECK
+#
+AC_DEFUN(AC_WIRETAP_ZLIB_CHECK,
+[
+ AC_CHECK_HEADER(zlib.h,,enable_zlib=no)
+ AC_CHECK_LIB(z, gzopen,,enable_zlib=no)
+])