summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorUri Simchoni <uri@samba.org>2017-04-12 10:32:39 +0300
committerUri Simchoni <uri@samba.org>2017-04-12 12:54:24 +0200
commit2fa9346333bab34a5bf1ad1ec26da2d9b6a291dd (patch)
treeea5a9049540592443da450cb388c5cbc1a45c727 /source3/wscript
parentd92a23e4ae60801edce69bf9b26f50181fe391b5 (diff)
downloadsamba-2fa9346333bab34a5bf1ad1ec26da2d9b6a291dd.tar.gz
build: refuse to build without PAM support if enabled
If PAM support is enabled, refuse to build if the prerequisite libraries are not in place, instead of silently disabling PAM support and continuing with the build. This simplifies inclusion of pam_wrapper in the tree. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript
index 78753687431..c526fc56a36 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -947,6 +947,10 @@ int i; i = PAM_RADIO_TYPE;
if use_pam:
conf.DEFINE('WITH_PAM', 1)
conf.DEFINE('WITH_PAM_MODULES', 1)
+ else:
+ conf.fatal("PAM support is enabled but prerequisite libraries "
+ "or headers not found. Use --without-pam to disable "
+ "PAM support.");
seteuid = False