diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-29 19:30:45 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-10-29 19:30:45 -0400 |
commit | 07622251b0ed83ffe490ddf6e2db9e3e3245c553 (patch) | |
tree | f8466c9c597fd6040d21892963f4a80bb0ef1245 /SConstruct | |
parent | 7ff2a467c9fa31dd3bf98e9ff356e977c4168464 (diff) | |
download | lighttpd-git-07622251b0ed83ffe490ddf6e2db9e3e3245c553.tar.gz |
[build] option to use system-provided libxxhashlighttpd-1.4.56-rc6
--with-xxhash
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -267,6 +267,7 @@ vars.AddVariables( # with_valgrind not supported # with_xattr not supported PackageVariable('with_xml', 'enable xml support (required for webdav props)', 'no'), + BoolVariable('with_xxhash', 'build with system-provided xxhash', 'no'), BoolVariable('with_zlib', 'enable deflate/gzip compression', 'no'), BoolVariable('with_all', 'enable all with_* features', 'no'), @@ -350,6 +351,7 @@ if 1: LIBUUID = '', LIBX509 = '', LIBXML2 = '', + LIBXXHASH = '', LIBZ = '', ) @@ -709,6 +711,14 @@ if 1: fail("Couldn't find xml2") autoconf.env.Append(CPPFLAGS = [ '-DHAVE_LIBXML_H', '-DHAVE_LIBXML2' ]) + if env['with_xxhash']: + if not autoconf.CheckLibWithHeader('xxhash', 'xxhash.h', 'C'): + fail("Couldn't find xxhash") + autoconf.env.Append( + CPPFLAGS = [ '-DHAVE_XXHASH_H' ], + LIBXXHASH = 'xxhash', + ) + if env['with_zlib']: if not autoconf.CheckLibWithHeader('z', 'zlib.h', 'C'): fail("Couldn't find zlib") |