if [[ $AMANDA_CLIENT == "y" ]]; then
  optional_depends MAIL-TRANSPORT-AGENT "" "" "for mailing of reports"
else
  depends MAIL-TRANSPORT-AGENT
fi &&

if    [  "$AMANDA_DB"  ==  "db"    ];  then
  depends  db
elif  [  "$AMANDA_DB"  ==  "gdbm"  ];  then
  depends  gdbm
fi  &&

#
# SaMBa support
# See: http://www.amanda.org/docs/samba.html
#
optional_depends  samba                                  \
                  "--with-smbclient=/usr/bin/smbclient"  \
                  ""                                     \
                  "for SaMBa share support"              &&
#
# Kerberos authentication
# See: http://www.amanda.org/docs/kerberos.html
#
optional_depends  krb5                              \
                  "--with-krb5-security"            \
                  "--without-krb5-security"         \
                  "for Kerberos v5 authentication"  &&

#message  "${MESSAGE_COLOR}You will need to compile Kerberos v4 support"  \
#         "into krb5 for this option${DEFAULT_COLOR}"                     &&

#optional_depends  krb5                              \
#                  "--with-krb4-security"            \
#                  "--without-krb4-security"         \
#                  "for Kerberos v4 authentication"  &&

optional_depends  perl                          \
                  ""                            \
                  ""                            \
                  "to use amanda perl scripts"  &&

optional_depends  gnuplot                                                   \
                  ""                                                        \
                  ""                                                        \
                  "for graphical representations of dump data with amplot" &&

optional_depends  mtx-tape                                                   \
                  ""                                                        \
                  ""                                                        \
                  "for the mt and mtx tools"

