diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-05-20 00:53:20 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2019-05-26 10:21:57 -0400 |
commit | 4ac239c40193378ae09f28355530a3a04858065e (patch) | |
tree | a122691eb51b4001653f2ad92637ab7f17671e5e /SConstruct | |
parent | ef0a2117331ef9d2428f27fe208a5aafa3a4df72 (diff) | |
download | lighttpd-git-4ac239c40193378ae09f28355530a3a04858065e.tar.gz |
[mod_maxminddb] MaxMind GeoIP2 support
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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") |