aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorashokn <ashokn@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-22 01:26:50 +0000
committerashokn <ashokn@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-22 01:26:50 +0000
commitcb683f69d3e6b300edec7c4d0f72bda14d2d87f8 (patch)
treee41c0cbc0a89e356df2ca7ef5af0596b8fe40fba /acinclude.m4
parentd5147f66880ae13a2616a9bb1e278092ac9d62e4 (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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@695 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 14602c1958..dc13163add 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -192,6 +192,15 @@ AC_DEFUN(AC_ETHEREAL_PCAP_CHECK,
])
#
+# AC_ETHEREAL_ZLIB_CHECK
+#
+AC_DEFUN(AC_ETHEREAL_ZLIB_CHECK,
+[
+ AC_CHECK_HEADER(zlib.h,,enable_zlib=no)
+ AC_CHECK_LIB(z, gzopen,,enable_zlib=no)
+])
+
+#
# AC_ETHEREAL_UCDSNMP_CHECK
#
AC_DEFUN(AC_ETHEREAL_UCDSNMP_CHECK,