optional_depends gsasl                           \
                 "--enable-gsasl"                \
                 "--disable-gsasl"               \
                 "SASL authentication support"   &&
optional_depends guile                           \
                 "--with-guile"                  \
                 "--without-guile"               \
                 "guile support"                 &&
optional_depends gpgme                           \
                 "--with-gpgme"                  \
                 "--without-gpgme"               \
                 "gpgme support"                 &&
optional_depends pcre                            \
                 "--with-pcre"                   \
                 "--without-pcre"                \
                 "PCRE support"                  &&
optional_depends linux-pam                       \
                 "--with-pam"                    \
                 "--without-pam"                 \
                 "PAM authentication support"    &&
optional_depends tcp_wrappers                    \
                 "--with-tcp-wrappers"           \
                 "--without-tcp-wrappers"        \
                 "tcp-wrappers support"          &&
if [[ ${ANUBIS_TLS} == "gnutls" ]]
then
  depends  gnutls  "--without-opennssl --with-gnutls"
elif [[ ${ANUBIS_TLS} == "SSL" ]]
then
  depends  SSL  "--with-openssl --without-gnutls"
fi                                               &&

if [[ ${ANUBIS_DB} == "mysql" ]]
then
  depends  MYSQL  "--without-postgres --with-mysql --without-gdbm"
elif [[ ${ANUBIS_DB} == "postgresql" ]]
then
  depends  postgresql  "--with-postgres --without-mysql --without-gdbm"
elif [[ ${ANUBIS_DB} == "gdbm" ]]
then
  depends  gdbm  "--with-gdbm --without-mysql --without-postgres"
fi

