summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2018-09-18 01:51:45 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2018-09-23 18:01:58 -0400
commitdf4812ec2e14e06509f34e6c886c32ad0b31bd18 (patch)
treef11b674395a3274f51f5bac68b576e7f6e1aa68b /SConstruct
parent5c2d52b4acd32719691ef19013da2cd6165d0e98 (diff)
downloadlighttpd1.4-df4812ec2e14e06509f34e6c886c32ad0b31bd18.tar.gz
lighttpd1.4-df4812ec2e14e06509f34e6c886c32ad0b31bd18.zip
[mod_authn_pam] mod_auth PAM support (fixes #688)
x-ref: "auth via pam" https://redmine.lighttpd.net/issues/688
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct9
1 files changed, 9 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 60416c8d..a3b2e6c9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -330,6 +330,7 @@ if 1:
LIBLUA = '',
LIBMEMCACHED = '',
LIBMYSQL = '',
+ LIBPAM = '',
LIBPCRE = '',
LIBPGSQL = '',
LIBSASL = '',
@@ -580,6 +581,14 @@ if 1:
LIBCRYPTO = 'crypto',
)
+ if env['with_pam']:
+ if not autoconf.CheckLibWithHeader('pam', 'security/pam_appl.h', 'C'):
+ fail("Couldn't find pam")
+ autoconf.env.Append(
+ CPPFLAGS = [ '-DHAVE_PAM' ],
+ LIBPAM = 'pam',
+ )
+
if env['with_pcre']:
pcre_config = autoconf.checkProgram('pcre', 'pcre-config')
if not autoconf.CheckParseConfigForLib('LIBPCRE', pcre_config + ' --cflags --libs'):