diff options
author | Stefan Bühler <stbuehler@web.de> | 2017-10-24 13:20:32 +0200 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-10-28 22:41:32 -0400 |
commit | a4f7845dbf081399f9f44b9a2cc29e5ff999f19e (patch) | |
tree | 79fa3a77c30231b382a687851746b9f1928e90d4 /SConstruct | |
parent | 2eb7287a9847c5e2159da0823c5565d02d3006ac (diff) | |
download | lighttpd-git-a4f7845dbf081399f9f44b9a2cc29e5ff999f19e.tar.gz |
[scons] fix dbi
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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']): |