summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorStefan B├╝hler <stbuehler@web.de>2017-10-24 12:10:09 +0200
committerGlenn Strauss <gstrauss@gluelogic.com>2017-10-28 22:41:32 -0400
commit2506e21b08e271426b9b1959b36537ea4835b2ac (patch)
tree18cb04d85456e6427a035a8dcf535cb25b4d277c /SConstruct
parentfff8e70567467ada18c46c8af6d722236295b75f (diff)
downloadlighttpd1.4-2506e21b08e271426b9b1959b36537ea4835b2ac.tar.gz
lighttpd1.4-2506e21b08e271426b9b1959b36537ea4835b2ac.zip
[scons] add with_all option
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct11
1 files changed, 11 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 4bb9e380..8acc4085 100644
--- a/SConstruct
+++ b/SConstruct
@@ -140,6 +140,8 @@ vars.AddVariables(
# with_xattr not supported
PackageVariable('with_xml', 'enable xml support', 'no'),
BoolVariable('with_zlib', 'enable deflate/gzip compression', 'no'),
+
+ BoolVariable('with_all', 'enable all with_* features', 'no'),
)
env = Environment(
@@ -159,6 +161,15 @@ if env['CC'] == 'gcc':
## we need x-open 6 and bsd 4.3 features
env.Append(CCFLAGS = Split('-Wall -O2 -g -W -pedantic -Wunused -Wshadow -std=gnu99'))
+if env['with_all']:
+ for feature in vars.keys():
+ # only enable 'with_*' flags
+ if not feature.startswith('with_'): continue
+ # don't overwrite manual arguments
+ if feature in vars.args: continue
+ # now activate
+ env[feature] = True
+
# cache configure checks
if 1:
autoconf = Configure(env, custom_tests = {