summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2018-10-07 18:07:46 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2018-10-07 23:47:56 -0400
commita950ae15ca3c7a4fbbcf4d5118e71cd1cfeaed69 (patch)
tree0d483e4d26ecad8745e54a60600f47073431fffc /SConstruct
parent778b07a034112157e69c3cfcef682fc6850772d2 (diff)
downloadlighttpd1.4-a950ae15ca3c7a4fbbcf4d5118e71cd1cfeaed69.tar.gz
lighttpd1.4-a950ae15ca3c7a4fbbcf4d5118e71cd1cfeaed69.zip
[build] SCons support for wolfSSL
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 16 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index daaa3e00..a4f2a223 100644
--- a/SConstruct
+++ b/SConstruct
@@ -251,6 +251,7 @@ vars.AddVariables(
BoolVariable('with_memcached', 'enable memcached support', 'no'),
PackageVariable('with_mysql', 'enable mysql support', 'no'),
BoolVariable('with_openssl', 'enable openssl support', 'no'),
+ PackageVariable('with_wolfssl', 'enable wolfSSL support', 'no'),
BoolVariable('with_pam', 'enable PAM auth support', 'no'),
PackageVariable('with_pcre', 'enable pcre support', 'yes'),
PackageVariable('with_pgsql', 'enable pgsql support', 'no'),
@@ -582,6 +583,21 @@ if 1:
LIBCRYPTO = 'crypto',
)
+ if env['with_wolfssl']:
+ if type(env['with_wolfssl']) is str:
+ autoconf.env.AppendUnique(
+ CPPPATH = [ env['with_wolfssl'] + '/include',
+ env['with_wolfssl'] + '/include/wolfssl' ],
+ LIBPATH = [ env['with_wolfssl'] + '/lib' ],
+ )
+ if not autoconf.CheckLibWithHeader('wolfssl', 'wolfssl/ssl.h', 'C'):
+ fail("Couldn't find wolfssl")
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_WOLFSSL_SSL_H' ],
+ LIBSSL = '',
+ LIBCRYPTO = 'wolfssl',
+ )
+
if env['with_pam']:
if not autoconf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'C'):
fail("Couldn't find pam")