diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-10 14:13:04 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:56:55 -0500 |
commit | 1a49b255af46794903e240f17a483e91f343ae39 (patch) | |
tree | f8e43282abe0d7824db9bafdbb9d5c7073343941 /source4/build/smb_build/input.pm | |
parent | 701343865c2f8191fc8bfc8747c52cc5fe627e94 (diff) | |
download | samba-1a49b255af46794903e240f17a483e91f343ae39.tar.gz samba-1a49b255af46794903e240f17a483e91f343ae39.tar.bz2 samba-1a49b255af46794903e240f17a483e91f343ae39.zip |
r14151: Add simple script that writes a summary to show what libraries the user
(might) be missing.
(This used to be commit ee90b8067915915af8ffbc0e04d1f4f5aae567cb)
Diffstat (limited to 'source4/build/smb_build/input.pm')
-rw-r--r-- | source4/build/smb_build/input.pm | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm index fd887094aa..c0139cb7df 100644 --- a/source4/build/smb_build/input.pm +++ b/source4/build/smb_build/input.pm @@ -33,10 +33,7 @@ sub str2array($) sub check_subsystem($$$) { my ($INPUT, $subsys, $default_ot) = @_; - if ($subsys->{ENABLE} ne "YES") { - printf("Subsystem `%s' disabled\n",$subsys->{NAME}); - return; - } + return if ($subsys->{ENABLE} ne "YES"); unless(defined($subsys->{OUTPUT_TYPE})) { $subsys->{OUTPUT_TYPE} = $default_ot; @@ -60,11 +57,7 @@ sub check_module($$$) return; } - if ($mod->{ENABLE} ne "YES") - { - printf("Module `%s' disabled\n",$mod->{NAME}); - return; - } + return if ($mod->{ENABLE} ne "YES"); if (exists($INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTION_TYPE})) { $mod->{INIT_FUNCTION_TYPE} = $INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTION_TYPE}; @@ -91,10 +84,7 @@ sub check_library($$$) { my ($INPUT, $lib, $default_ot) = @_; - if ($lib->{ENABLE} ne "YES") { - printf("Library `%s' disabled\n",$lib->{NAME}); - return; - } + return if ($lib->{ENABLE} ne "YES"); $lib->{OUTPUT_TYPE} = $default_ot; @@ -114,10 +104,7 @@ sub check_binary($$) { my ($INPUT, $bin) = @_; - if ($bin->{ENABLE} ne "YES") { - printf("Binary `%s' disabled\n",$bin->{NAME}); - return; - } + return if ($bin->{ENABLE} ne "YES"); ($bin->{BINARY} = (lc $bin->{NAME})) if not defined($bin->{BINARY}); |