summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexander Kurilo <alex@kurilo.me>2017-08-13 11:49:33 +0300
committerGravatar TingPing <tingping@tingping.se>2017-12-18 19:06:29 -0500
commit3a6935a2a0232102be4fe45723b1101ebb775d08 (patch)
tree21d6b72b9e7cecd93c34c6822c38435dd67e2dd0
parent239ce195ea35a8c3715dc2a0629573e8e84ac721 (diff)
Add define to enable GeoIP
Fixes #57
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 300ef38..ce88266 100644
--- a/configure.ac
+++ b/configure.ac
@@ -84,6 +84,7 @@ have_geoip=no
AS_IF([test x$with_libgeoip != xno], [
PKG_CHECK_MODULES([GEOIP], [geoip], [
have_geoip="yes"
+ AC_DEFINE(HAVE_GEOIP, 1, [Define if GeoIP is available])
], [
AC_MSG_WARN([libgeoip not found])
])