depends  sqlite                      &&
depends  apr      "--with-apr=${INSTALL_ROOT}/usr"      &&
depends  apr-util "--with-apr-util=${INSTALL_ROOT}/usr" &&
depends  autoconf                    &&
depends  bison                       &&
depends  e2fsprogs                   &&
depends  libtool                     &&
depends  zlib                        &&
depends  utf8proc                    &&
depends  lz4                         &&

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

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

  if [[ "$SVN_PERL"   == y ]]; then depends perl;    fi &&
  if [[ "$SVN_PYTHON" == y ]]; then depends python3 && depends python-py3c; fi &&
  if [[ "$SVN_RUBY"   == y ]]; then depends RUBY;    fi &&
  if [[ "$SVN_JAVA"   == y ]]; then depends JAVA;    fi
fi &&

optional_depends GETTEXT '--enable-nls' '--disable-nls' 'for language translations' &&
optional_depends LIBSASL '--with-sasl' '--without-sasl' 'for Cyrus SASL authentication' &&

optional_depends db '--with-berkeley-db' '--without-berkeley-db' 'for Berkeley DB backend' &&
optional_depends serf '--with-serf' '--without-serf' 'for HTTP client support' &&
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 &&
suggest_depends sudo "" "" "for running svnserve as different user from init script"
