depends g++ &&
depends zlib &&

optional_depends perl '' '' 'for CGI script'    &&

optional_depends 'clamav'                       \
                 '--enable-clamd'               \
                 ''                             \
                 'for Clamd AV content scanner' &&

optional_depends 'pcre'                         \
                 '--enable-pcre'                \
                 '--disable-pcre'               \
                 'for PCRE support'             &&

optional_depends 'libntlm'                      \
                 '--enable-ntlm'                \
                 '--disable-ntlm'               \
                 'for NTLM auth support'        &&


if list_find "${DG_OPTS}" "--enable_email"; then
  depends 'MAIL-TRANSPORT-AGENT'
fi
