summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2016-09-23 01:15:52 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2016-09-23 01:15:52 -0400
commit177f5509bd7a00cdd6aae3be9ff9f60e349c2d74 (patch)
treee188a2fdf23ca9a39f187a0193d6d24365d33d14 /SConstruct
parent9e6524fef52823034d24b10c175052a07a9f7797 (diff)
downloadlighttpd1.4-177f5509bd7a00cdd6aae3be9ff9f60e349c2d74.tar.gz
lighttpd1.4-177f5509bd7a00cdd6aae3be9ff9f60e349c2d74.zip
[SCons] define with_geoip for SCons build
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 7 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 25b819e0..d1cd7df8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -124,7 +124,9 @@ vars.AddVariables(
BoolVariable('with_bzip2', 'enable bzip2 compression', 'no'),
BoolVariable('with_lua', 'enable lua support for mod_cml', 'no'),
BoolVariable('with_ldap', 'enable ldap auth support', 'no'),
- BoolVariable('with_krb5', 'enable krb5 auth support', 'no'))
+ BoolVariable('with_krb5', 'enable krb5 auth support', 'no'),
+ BoolVariable('with_geoip', 'enable GeoIP support', 'no')
+)
env = Environment(
ENV = os.environ,
@@ -274,6 +276,10 @@ if 1:
if autoconf.CheckLibWithHeader('sqlite3', 'sqlite3.h', 'C'):
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_SQLITE3_H', '-DHAVE_LIBSQLITE3' ], LIBSQLITE3 = 'sqlite3')
+ if env['with_geoip']:
+ if autoconf.CheckLibWithHeader('GeoIP', 'GeoIP.h', 'C'):
+ autoconf.env.Append(CPPFLAGS = [ '-DHAVE_GEOIP' ], LIBGEOIP = 'GeoIP')
+
ol = env['LIBS']
if autoconf.CheckLibWithHeader('fcgi', 'fastcgi.h', 'C'):
autoconf.env.Append(LIBFCGI = 'fcgi')