3 @@ -907,7 +907,7 @@ msg.msg_accrightslen = sizeof(fd);
4 if conf.env.with_iconv:
5 conf.DEFINE('HAVE_ICONV', 1)
7 - if Options.options.with_pam:
8 + if Options.options.with_pam != False:
10 conf.CHECK_HEADERS('security/pam_appl.h pam/pam_appl.h')
11 if not conf.CONFIG_SET('HAVE_SECURITY_PAM_APPL_H') and not conf.CONFIG_SET('HAVE_PAM_PAM_APPL_H'):
12 @@ -984,6 +984,17 @@ int i; i = PAM_RADIO_TYPE;
13 "or headers not found. Use --without-pam to disable "
17 + Logs.warn("PAM disabled")
19 + conf.undefine('WITH_PAM')
20 + conf.undefine('WITH_PAM_MODULES')
21 + conf.undefine('HAVE_SECURITY_PAM_APPL_H')
22 + conf.undefine('PAM_RHOST')
23 + conf.undefine('PAM_TTY')
24 + conf.undefine('HAVE_PAM_PAM_APPL_H')