build: Do not try to reference potentially undefined pam_dep

Fixes compilation without PAM support after commit d371f35e3
This commit is contained in:
Marco Trevisan (Treviño) 2024-08-30 17:52:28 +02:00
parent d371f35e3a
commit 4eaa655352

View file

@ -229,7 +229,7 @@ if get_option('pam')
output += ' PAM module directory: ' + pam_modules_dir
endif
output += '\nOptional features:\n'
output += ' PAM module: ' + (pam_dep.found() and get_option('pam')).to_string()
output += ' PAM module: ' + (get_option('pam') and pam_dep.found()).to_string()
output += ' Manuals: ' + get_option('man').to_string()
output += ' GTK Doc: ' + get_option('gtk_doc').to_string()
output += ' XML Linter ' + xmllint.found().to_string()