From 5cbeddbe19f6001d540b062deb3618200c8ca372 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 11 Jul 2013 14:34:16 +0200 Subject: configure, netsniff-ng: if no libgeopip, do not link against libz In netsniff-ng, we only use libz in combination with libgeoip, so if we lack either one of them, do not link against the other either. This would be a waste otherwise. Signed-off-by: Daniel Borkmann --- geoip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'geoip.h') diff --git a/geoip.h b/geoip.h index c84b335..3a49b2b 100644 --- a/geoip.h +++ b/geoip.h @@ -7,7 +7,7 @@ #include "config.h" #include "die.h" -#ifdef HAVE_GEOIP +#if defined(HAVE_GEOIP) && defined(HAVE_LIBZ) extern void init_geoip(int enforce); extern void update_geoip(void); extern int geoip_working(void); -- cgit v1.2.3-54-g00ecf