summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/summary.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build/summary.pm')
-rw-r--r--source4/build/smb_build/summary.pm51
1 files changed, 51 insertions, 0 deletions
diff --git a/source4/build/smb_build/summary.pm b/source4/build/smb_build/summary.pm
new file mode 100644
index 0000000000..c3edb094f3
--- /dev/null
+++ b/source4/build/smb_build/summary.pm
@@ -0,0 +1,51 @@
+# Samba Build System
+# - write out summary
+#
+# Copyright (C) Jelmer Vernooij 2006
+# Released under the GNU GPL
+
+package summary;
+use strict;
+
+sub showitem($$$)
+{
+ my ($output,$desc,$items) = @_;
+
+ my @need = ();
+
+ foreach (@$items) {
+ if ($output->{"EXT_LIB_$_"}->{ENABLE} ne "YES") {
+ push (@need, $_);
+ }
+ }
+
+ print "Support for $desc: ";
+ if ($#need > 0) {
+ print "no (install " . join(',',@need) . ")\n";
+ } else {
+ print "yes\n";
+ }
+}
+
+sub show($$)
+{
+ my ($output,$config) = @_;
+ print "Summary:\n\n";
+ showitem($output, "GTK+ frontends", ["gtk","gconf"]);
+ showitem($output, "SSL in SWAT", ["GNUTLS"]);
+ showitem($output, "threads in smbd", ["PTHREAD"]);
+ showitem($output, "intelligent command line editing", ["READLINE"]);
+ showitem($output, "changing process titles", ["SETPROCTITLE"]);
+ print "Using external popt: $output->{EXT_LIB_POPT}->{ENABLE}\n";
+ print "Using shared libraries internally (experimental): ";
+
+ if ($config->{BLDSHARED} eq "true") {
+ print "yes\n";
+ } else {
+ print "no (try --enable-dso)\n";
+
+ }
+ print "\n";
+}
+
+1;