summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-07-19 03:07:47 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-08-02 06:46:22 -0400
commit8d5e237c6086aa57b5e3445d2f72a5c7a174e413 (patch)
tree39a676449436a011dc384dca842c7ed98f71cae9 /SConstruct
parentbe8047d82fb25cfcae435af77a8d4f650682e5fa (diff)
downloadlighttpd-git-8d5e237c6086aa57b5e3445d2f72a5c7a174e413.tar.gz
[mod_deflate] Brotli support
configuration option: ./configure --with-brotli
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index e61d6fb9..a99c4097 100644
--- a/SConstruct
+++ b/SConstruct
@@ -239,6 +239,7 @@ vars.AddVariables(
BoolVariable('build_fullstatic', 'enable fullstatic build', 'no'),
BoolVariable('with_bzip2', 'enable bzip2 compression', 'no'),
+ BoolVariable('with_brotli', 'enable brotli compression', 'no'),
PackageVariable('with_dbi', 'enable dbi support', 'no'),
BoolVariable('with_fam', 'enable FAM/gamin support', 'no'),
BoolVariable('with_gdbm', 'enable gdbm support', 'no'),
@@ -323,6 +324,7 @@ if 1:
autoconf.env.Append(APPEND_LIBS = '')
autoconf.env.Append(
+ LIBBROTLI = '',
LIBBZ2 = '',
LIBCRYPT = '',
LIBCRYPTO = '',
@@ -500,6 +502,11 @@ if 1:
LIBBZ2 = 'bz2',
)
+ if env['with_brotli']:
+ if not autoconf.CheckParseConfigForLib('LIBBROTLI', 'pkg-config brotlienc --cflags --libs'):
+ fail("Couldn't find libbrotlienc")
+ autoconf.env.Append(CPPFLAGS = [ '-DHAVE_BROTLI_ENCODE_H', '-DHAVE_BROTLI' ])
+
if env['with_dbi']:
if not autoconf.CheckLibWithHeader('dbi', 'dbi/dbi.h', 'C'):
fail("Couldn't find dbi")