Wireshark-dev: Re: [Wireshark-dev] including GPLv3 autoconf macro in Wireshark
From: Guy Harris <[email protected]>
Date: Fri, 18 May 2012 14:29:03 -0700
On May 18, 2012, at 11:55 AM, Jeff Morriss wrote:

> I found out recently that Wireshark needs the Z_BLOCK macro which is only in zlib and later.  Rather than checking explicitly for the version (which seemed like it would be a pain) I thought I'd check for the macro.

You could use AC_TRY_COMPILE() with a test program such as

	#ifndef Z_BLOCK
	#error "Z_BLOCK isn't available"

and with zlib.h being one of its includes.