Rewrite aio.c to keep the whole smb_request structure, not just the inbuf
[Samba.git] / source4 / build / smb_build / summary.pm
blobf6c1c5055094d5a2d7ed0ecf1c9102f4eb7ba2a6
1 # Samba Build System
2 # - write out summary
4 # Copyright (C) Jelmer Vernooij 2006
5 # Released under the GNU GPL
7 package summary;
8 use smb_build::config;
9 use strict;
11 sub enabled($)
13 my ($val) = @_;
15 return (defined($val) && $val =~ m/yes|true/i);
18 sub showitem($$$)
20 my ($output,$desc,$items) = @_;
22 my @need = ();
24 foreach (@$items) {
25 push (@need, $_) if (enabled($config::enable{$_}));
28 print "Support for $desc: ";
29 if ($#need >= 0) {
30 print "no (install " . join(',',@need) . ")\n";
31 } else {
32 print "yes\n";
36 sub showisexternal($$$)
38 my ($output, $desc, $name) = @_;
39 print "Using external $desc: ".
40 (($output->{$name}->{TYPE} eq "EXT_LIB")?"yes":"no")."\n";
43 sub show($$)
45 my ($output,$config) = @_;
47 print "Summary:\n\n";
48 showitem($output, "SSL in SWAT and LDAP", ["GNUTLS"]);
49 showitem($output, "threads in server (see --with-pthread)", ["PTHREAD"]);
50 showitem($output, "intelligent command line editing", ["READLINE"]);
51 showitem($output, "changing process titles (see --with-setproctitle)", ["SETPROCTITLE"]);
52 showitem($output, "using extended attributes", ["XATTR"]);
53 showitem($output, "using libblkid", ["BLKID"]);
54 showitem($output, "using iconv", ["ICONV"]);
55 showitem($output, "using pam", ["PAM"]);
56 showitem($output, "python bindings", ["LIBPYTHON"]);
57 showisexternal($output, "popt", "LIBPOPT");
58 showisexternal($output, "talloc", "LIBTALLOC");
59 showisexternal($output, "tdb", "LIBTDB");
60 showisexternal($output, "ldb", "LIBLDB");
61 print "Developer mode: ".(enabled($config->{developer})?"yes":"no")."\n";
62 print "Automatic dependencies: ".
63 (enabled($config->{automatic_dependencies})
64 ? "yes" : "no (install GNU make >= 3.81 and see --enable-automatic-dependencies)") .
65 "\n";
67 print "Building shared libraries: " .
68 (enabled($config->{BLDSHARED})
69 ? "yes" : "no (not supported on this system)") .
70 "\n";
71 print "Using shared libraries internally: " .
72 (enabled($config->{USESHARED})
73 ? "yes" : "no (specify --enable-dso)") .
74 "\n";
76 print "\n";