]> arthur.barton.de Git - netatalk.git/blob - macros/summary.m4
new configure option --with-init-dir=PATH
[netatalk.git] / macros / summary.m4
1 dnl Autoconf macros, display configure summary
2
3 AC_DEFUN([AC_NETATALK_CONFIG_SUMMARY], [
4
5         AC_MSG_RESULT([Configure summary:])
6         AC_MSG_RESULT([    INIT STYLE:])
7         if test "x$init_style" != "x"; then
8                 AC_MSG_RESULT([         $init_style])
9         else
10                 AC_MSG_RESULT([         none])
11         fi
12         AC_MSG_RESULT([    AFP:])
13         AC_MSG_RESULT([         Extended Attributes: $neta_cv_eas])
14         AC_MSG_RESULT([         ACL support: $with_acl_support])
15         AC_MSG_RESULT([    CNID:])
16         AC_MSG_RESULT([         backends: $compiled_backends])
17         AC_MSG_RESULT([    UAMS:])
18         uams_using_options=""
19         if test x"$netatalk_cv_use_pam" != x"no"; then
20                 uams_using_options="PAM"
21         fi
22         if test "x$netatalk_cv_use_shadowpw" = "xyes"; then
23                 uams_using_options="$uams_using_options SHADOW"
24         fi
25         if test "x$neta_cv_compile_dhx" = "xyes"; then
26                 AC_MSG_RESULT([         DHX     ($uams_using_options)])
27         fi
28         if test "x$neta_cv_compile_dhx2" = "xyes"; then
29                 AC_MSG_RESULT([         DHX2    ($uams_using_options)])
30         fi
31         if test "x$neta_cv_have_openssl" = "xyes"; then
32                 AC_MSG_RESULT([         RANDNUM (afppasswd)])
33         fi
34         if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
35                 AC_MSG_RESULT([         Kerberos V])
36         fi
37         if test x"$compile_pgp" = x"yes"; then
38                 AC_MSG_RESULT([         PGP])
39         fi
40         AC_MSG_RESULT([         clrtxt  ($uams_using_options)])
41         AC_MSG_RESULT([         guest])
42         AC_MSG_RESULT([    Options:])
43         AC_MSG_RESULT([         Zeroconf support:        $netatalk_cv_zeroconf])
44         AC_MSG_RESULT([         tcp wrapper support:     $netatalk_cv_tcpwrap])
45 dnl     if test x"$netatalk_cv_linux_sendfile" != x; then
46 dnl             AC_MSG_RESULT([         Linux sendfile support:  $netatalk_cv_linux_sendfile])
47 dnl     fi
48         AC_MSG_RESULT([         quota support:           $netatalk_cv_quotasupport])
49         AC_MSG_RESULT([         admin group support:     $netatalk_cv_admin_group])
50         AC_MSG_RESULT([         valid shell check:       $netatalk_cv_use_shellcheck])
51         AC_MSG_RESULT([         cracklib support:        $netatalk_cv_with_cracklib])
52 dnl     AC_MSG_RESULT([         Samba sharemode interop: $neta_cv_have_smbshmd])
53         AC_MSG_RESULT([         ACL support:             $with_acl_support])
54         AC_MSG_RESULT([         Kerberos support:        $with_kerberos])
55         AC_MSG_RESULT([         LDAP support:            $netatalk_cv_ldap])
56         AC_MSG_RESULT([         dbus support:            $atalk_cv_with_dbus])
57         AC_MSG_RESULT([         dtrace probes:           $WDTRACE])
58         AC_MSG_RESULT([    Paths:])
59         AC_MSG_RESULT([         Netatalk lockfile:       $ac_cv_netatalk_lock])
60         if test "x$init_style" != x"none"; then
61                 AC_MSG_RESULT([         init directory:          $ac_cv_init_dir])
62         fi
63         if test x"$atalk_cv_with_dbus" = x"yes"; then
64                 AC_MSG_RESULT([         dbus system directory:   $ac_cv_dbus_sysdir])
65         fi
66         if test x"$use_pam_so" = x"yes"; then
67            if test x"$netatalk_cv_install_pam" = x"yes"; then
68                 AC_MSG_RESULT([         pam config directory:    $ac_cv_pamdir])
69            else
70                 AC_MSG_RESULT([])
71                 AC_MSG_WARN([ PAM support was configured for your system, but the netatalk PAM configuration file])
72                 AC_MSG_WARN([ cannot be installed. Please install the config/netatalk.pamd file manually.])
73                 AC_MSG_WARN([ If you're running Solaris or BSD you'll have to edit /etc/pam.conf to get PAM working.])
74                 AC_MSG_WARN([ You can also re-run configure and specify --without-pam to disable PAM support.])
75            fi
76         fi
77 ])
78
79
80 AC_DEFUN([AC_NETATALK_LIBS_SUMMARY], [
81         dnl #################################################
82         dnl # Display summary of libraries detected
83
84         AC_MSG_RESULT([Using libraries:])
85         AC_MSG_RESULT([    LIBS           = $LIBS])
86         AC_MSG_RESULT([    CFLAGS         = $CFLAGS])
87         AC_MSG_RESULT([    PTHREADS:])
88         AC_MSG_RESULT([        LIBS   = $PTHREAD_LIBS])
89         AC_MSG_RESULT([        CFLAGS = $PTHREAD_CFLAGS])
90         if test x"$neta_cv_have_openssl" = x"yes"; then
91                 AC_MSG_RESULT([    SSL:])
92                 AC_MSG_RESULT([        LIBS   = $SSL_LIBS])
93                 AC_MSG_RESULT([        CFLAGS = $SSL_CFLAGS])
94         fi
95         if test x"$neta_cv_have_libgcrypt" = x"yes"; then
96                 AC_MSG_RESULT([    LIBGCRYPT:])
97                 AC_MSG_RESULT([        LIBS   = $LIBGCRYPT_LIBS])
98                 AC_MSG_RESULT([        CFLAGS = $LIBGCRYPT_CFLAGS])
99         fi
100         if test x"$netatalk_cv_use_pam" = x"yes"; then
101                 AC_MSG_RESULT([    PAM:])
102                 AC_MSG_RESULT([        LIBS   = $PAM_LIBS])
103                 AC_MSG_RESULT([        CFLAGS = $PAM_CFLAGS])
104         fi
105         if test x"$netatalk_cv_use_pam" = x"yes"; then
106                 AC_MSG_RESULT([    WRAP:])
107                 AC_MSG_RESULT([        LIBS   = $WRAP_LIBS])
108                 AC_MSG_RESULT([        CFLAGS = $WRAP_CFLAGS])
109         fi
110         if test x"$bdb_required" = x"yes"; then
111                 AC_MSG_RESULT([    BDB:])
112                 AC_MSG_RESULT([        LIBS   = $BDB_LIBS])
113                 AC_MSG_RESULT([        CFLAGS = $BDB_CFLAGS])
114         fi
115         if test x"$netatalk_cv_build_krb5_uam" = x"yes"; then
116                 AC_MSG_RESULT([    GSSAPI:])
117                 AC_MSG_RESULT([        LIBS   = $GSSAPI_LIBS])
118                 AC_MSG_RESULT([        CFLAGS = $GSSAPI_CFLAGS])
119         fi
120         if test x"$netatalk_cv_use_cups" = x"yes"; then
121                 AC_MSG_RESULT([    CUPS:])
122                 AC_MSG_RESULT([        LIBS   = $CUPS_LIBS])
123                 AC_MSG_RESULT([        CFLAGS = $CUPS_CFLAGS])
124         fi
125         if test x"$netatalk_cv_zeroconf" = x"yes"; then
126                 AC_MSG_RESULT([    ZEROCONF:])
127                 AC_MSG_RESULT([        LIBS   = $ZEROCONF_LIBS])
128                 AC_MSG_RESULT([        CFLAGS = $ZEROCONF_CFLAGS])
129         fi
130         if test x"$netatalk_cv_ldap" = x"yes"; then
131                 AC_MSG_RESULT([    LDAP:])
132                 AC_MSG_RESULT([        LIBS   = $LDAP_LDLFLAGS $LDAP_LIBS])
133                 AC_MSG_RESULT([        CFLAGS = $LDAP_CFLAGS])
134         fi
135     AC_MSG_RESULT([    LIBEVENT:])
136     if test x"$use_bundled_libevent" = x"yes"; then
137                 AC_MSG_RESULT([        bundled])
138     else
139                 AC_MSG_RESULT([        LIBS   = $LIBEVENT_CFLAGS])
140                 AC_MSG_RESULT([        CFLAGS = $LIBEVENT_LDFLAGS])
141     fi
142 ])