From 4ac239c40193378ae09f28355530a3a04858065e Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Mon, 20 May 2019 00:53:20 -0400 Subject: [mod_maxminddb] MaxMind GeoIP2 support --- SConstruct | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index c286aed7..53a46cca 100644 --- a/SConstruct +++ b/SConstruct @@ -243,6 +243,7 @@ vars.AddVariables( BoolVariable('with_fam', 'enable FAM/gamin support', 'no'), BoolVariable('with_gdbm', 'enable gdbm support', 'no'), BoolVariable('with_geoip', 'enable GeoIP support', 'no'), + BoolVariable('with_maxminddb', 'enable MaxMind GeoIP2 support', 'no'), BoolVariable('with_krb5', 'enable krb5 auth support', 'no'), BoolVariable('with_ldap', 'enable ldap auth support', 'no'), # with_libev not supported @@ -522,6 +523,14 @@ if 1: LIBGEOIP = 'GeoIP', ) + if env['with_maxminddb']: + if not autoconf.CheckLibWithHeader('maxminddb', 'maxminddb.h', 'C'): + fail("Couldn't find maxminddb") + autoconf.env.Append( + CPPFLAGS = [ '-DHAVE_MAXMINDDB' ], + LIBMAXMINDDB = 'maxminddb', + ) + if env['with_krb5']: if not autoconf.CheckLibWithHeader('krb5', 'krb5.h', 'C'): fail("Couldn't find krb5") -- cgit v1.2.1