depends libtool                                  &&

#if [[ $DOVECOT_SSL == gnutls ]]; then
#depends gnutls "--with-ssl=gnutls"
#elif [[ $DOVECOT_SSL == openssl ]]; then
#depends openssl "--with-ssl=openssl"
#fi                                                &&

optional_depends SSL                              \
                 '--with-ssl=openssl'             \
                 '--without-ssl'                  \
                 'Enable SSL support'             &&
optional_depends zlib                             \
                 '--with-zlib'                    \
                 '--without-zlib'                 \
                 'for zlib compression support'   &&
optional_depends bzip2                            \
                 '--with-bzlib'                   \
                 '--without-bzlib'                \
                 'for bzlib support'              &&
optional_depends libcap                           \
                 '--with-libcap'                  \
                 '--without-libcap'               \
                 'for libcap support'             &&
optional_depends linux-pam                       \
                 '--with-pam'                    \
                 '--without-pam'                 \
                 'for PAM support'               &&
optional_depends shadow                          \
                 '--with-shadow'                 \
                 '--without-shadow'              \
                 'for shadow support'            &&
optional_depends krb5                            \
                 '--with-gssapi'                 \
                 '--without-gssapi'              \
                 'for GSSAPI support'            &&
optional_depends openldap                        \
                 '--with-ldap=yes'               \
                 '--without-ldap'                \
                 'Enable LDAP support'           &&
optional_depends MYSQL                           \
                 '--with-mysql'                  \
                 '--without-mysql'               \
                 'for MySQL support'             &&
optional_depends postgresql                      \
                 '--with-pgsql'                  \
                 '--without-pgsql'               \
                 'for PostgreSQL support'        &&
optional_depends sqlite                          \
                 '--with-sqlite'                 \
                 '--without-sqlite'              \
                 'for SQLite support'
