depends make &&
depends pcre '--enable-regexp' &&
depends pkgconfig &&

if  [ $JAVATEST == "y" ]; then
  depends JAVA
fi &&

optional_depends zlib \
                 "--enable-zlib" \
                 "--disable-zlib" \
                 "for gzipped network logging support" &&
optional_depends gnutls \
                 "--enable-gnutls" \
                 "--disable-gnutls" \
                 "TLS encryption for TCP communication"
optional_depends librelp \
                 "--enable-relp" \
                 "--disable-relp" \
                 "for RELP protocol support" &&
optional_depends liblogging \
                 "--enable-rfc3195" \
                 "--disable-rfc3195" \
                 "for RFC3195 support" &&
optional_depends libdbi \
                 "--enable-libdbi" \
                 "--disable-libdbi" \
                 "for database access via libdbi" &&
optional_depends net-snmp \
                 "--enable-snmp" \
                 "--disable-snmp" \
                 "for SNMP support" &&
optional_depends MYSQL \
                 "--enable-mysql" \
                 "--disable-mysql" \
                 "for MySQL backend support" &&
optional_depends postgresql \
                 "--enable-pgsql" \
                 "--disable-pgsql" \
                 "for PostgreSQL backend support" &&
optional_depends krb5 \
                 "--enable-gssapi-krb5" \
                 "--disable-gssapi-krb5" \
                 "for GSSAPI Kerberos 5 support" &&
optional_depends valgrind \
                 "--enable-valgrind" \
                 "--disable-valgrind" \
                 "for valgrind support settings" &&
if [[ ${RSYSLOG_BRANCH} == "v5stable" ]] || [[ ${RSYSLOG_BRANCH} == "devel" ]]; then
     optional_depends JDK \
                      "--enable-gui" \
                      "--disable-gui" \
                      "to build GUI"
fi
