depends  sqlite                      &&
depends  APR '--with-apr=/usr'       &&
depends  APU '--with-apr-util=/usr'  &&
depends  autoconf                    &&
depends  bison                       &&
depends  e2fsprogs                   &&
depends  libtool                     &&

if [[ "$SVN_HEAD" == y ]]; then
  depends python
fi &&

if   [[ "$SVN_PERL"   == y ]] \
  || [[ "$SVN_PYTHON" == y ]] \
  || [[ "$SVN_RUBY"   == y ]]
then
  depends swig '--with-swig' &&

  if [[ "$SVN_PERL"   == y ]]; then depends perl;   fi &&
  if [[ "$SVN_PYTHON" == y ]]; then depends python; fi &&
  if [[ "$SVN_RUBY"   == y ]]; then depends ruby;   fi
fi &&

optional_depends zlib '--with-zlib=/usr' '--without-zlib' 'for stream compression support' &&
optional_depends gettext '--enable-nls' '--disable-nls' 'for language translations' &&
optional_depends openssl '--with-ssl' '--without-ssl' 'for SSL/TLS support' &&
optional_depends LIBSASL '--with-sasl' '--without-sasl' 'for Cyrus SASL authentication' &&

message ""WARNING, disabling neon is not recommended and may break downloading some svn spells."" &&
optional_depends neon '--with-neon=/usr' '--without-neon' 'for Subversion client to support DAV' &&

optional_depends db '--with-berkeley-db' '--without-berkeley-db' 'for Berkeley DB backend' &&
optional_depends APACHE2 '--with-apxs' '--without-apxs' 'to create Apache 2 modules' &&
local indian=$(get_spell_provider  $SPELL  APACHE2) &&
if [[ -z "$indian" ]]; then
:
else
  case "$indian" in
  apache2)
    sub_depends apache2 DAV
  ;;
  apache22)
    sub_depends apache22 DAV
  ;;
  httpd-dev)
    # nothing to do in this case, it builds all modules
  ;;
  *)
    message "${MESSAGE_COLOR}Unknown provider for APACHE2, please update this spell!$DEFAULT_COLOR"
    return -1
  ;;
  esac
fi
