4 # Copyright (C) Jelmer Vernooij 2006
5 # Released under the GNU GPL
15 return (defined($val) && $val =~ m/yes|true/i);
20 my ($output,$desc,$items) = @_;
25 push (@need, $_) if (enabled($config::enable{$_}));
28 print "Support for $desc: ";
30 print "no (install " . join(',',@need) . ")\n";
36 sub showisexternal($$$)
38 my ($output, $desc, $name) = @_;
39 print "Using external $desc: ";
40 if ($output->{$name}->{TYPE} eq "SUBSYSTEM" or
41 $output->{$name}->{TYPE} eq "LIBRARY") {
51 my ($output,$config) = @_;
54 showitem($output, "SSL in SWAT and LDAP", ["GNUTLS"]);
55 showitem($output, "threads in server (see --with-pthread)", ["PTHREAD"]);
56 showitem($output, "intelligent command line editing", ["READLINE"]);
57 showitem($output, "changing process titles (see --with-setproctitle)", ["SETPROCTITLE"]);
58 showitem($output, "using extended attributes", ["XATTR"]);
59 showitem($output, "using libblkid", ["BLKID"]);
60 showitem($output, "using iconv", ["ICONV"]);
61 showitem($output, "using pam", ["PAM"]);
62 showitem($output, "python bindings", ["LIBPYTHON"]);
63 showisexternal($output, "popt", "LIBPOPT");
64 showisexternal($output, "talloc", "LIBTALLOC");
65 showisexternal($output, "tdb", "LIBTDB");
66 showisexternal($output, "tevent", "LIBTEVENT");
67 showisexternal($output, "ldb", "LIBLDB");
68 showisexternal($output, "heimdal", "HEIMDAL_KRB5");
69 print "Developer mode: ".(enabled($config->{developer})?"yes":"no")."\n";
70 print "Automatic dependencies: ".
71 (enabled($config->{automatic_dependencies})
72 ? "yes" : "no (install GNU make >= 3.81 and see --enable-automatic-dependencies)") .
75 print "Building shared libraries: " .
76 (enabled($config->{BLDSHARED})
77 ? "yes" : "no (not supported on this system)") .
79 print "Using shared libraries internally: " .
80 (enabled($config->{USESHARED})
81 ? "yes" : "no (specify --enable-dso)") .