summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2017-10-24 13:20:32 +0200
committerGlenn Strauss <gstrauss@gluelogic.com>2017-10-28 22:41:32 -0400
commita4f7845dbf081399f9f44b9a2cc29e5ff999f19e (patch)
tree79fa3a77c30231b382a687851746b9f1928e90d4 /SConstruct
parent2eb7287a9847c5e2159da0823c5565d02d3006ac (diff)
downloadlighttpd-git-a4f7845dbf081399f9f44b9a2cc29e5ff999f19e.tar.gz
[scons] fix dbi
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 4 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index 80e0278e..20987e7e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -314,6 +314,10 @@ if 1:
if autoconf.CheckLibWithHeader('GeoIP', 'GeoIP.h', 'C', autoadd = 0):
autoconf.env.Append(CPPFLAGS = [ '-DHAVE_GEOIP' ], LIBGEOIP = 'GeoIP')
+ if env['with_dbi']:
+ if autoconf.CheckLibWithHeader('dbi', 'dbi/dbi.h', 'C', autoadd = 0):
+ env.Append(CPPFLAGS = [ '-DHAVE_DBI_H', '-DHAVE_LIBDBI' ], LIBDBI = 'dbi')
+
if autoconf.CheckLibWithHeader('fcgi', 'fastcgi.h', 'C', autoadd = 0):
autoconf.env.Append(LIBFCGI = 'fcgi')
@@ -391,10 +395,6 @@ if env['with_pgsql']:
env.Append(CPPFLAGS = [ '-DHAVE_PGSQL_H', '-DHAVE_LIBPGSQL' ], LIBPGSQL = 'pq')
env['LIBS'] = oldlib
-if env['with_dbi']:
- if autoconf.CheckLibWithHeader('dbi', 'dbi/dbi.h', 'C'):
- env.Append(CPPFLAGS = [ '-DHAVE_DBI_H', '-DHAVE_LIBDBI' ], LIBDBI = 'dbi')
-
if re.compile("cygwin|mingw|midipix").search(env['PLATFORM']):
env.Append(COMMON_LIB = 'bin')
elif re.compile("darwin|aix").search(env['PLATFORM']):