if [[ $XSHTTPD_BRANCH == "devel" || $XSHTTPD_SSL == "--with-ssl" ]]; then
  depends SSL
fi &&

optional_depends pcre \
  '--with-pcre' \
  '--without-pcre' \
  'for rewrite support' &&

optional_depends curl \
  '--with-curl' \
  '--without-curl' \
  'for reverse proxy support' &&

if [[ $XSHTTPD_BRANCH == "devel" ]]; then
  optional_depends gzip \
    '--with-gzip' \
    '--without-gzip' \
    'for gzip compression support' &&

  optional_depends bzip2 \
    '--with-bzip2' \
    '--without-bzip2' \
    'for bzip2 compression support'
fi &&

optional_depends openldap \
  '--with-ldap' \
  '--without-ldap' \
  'for LDAP support' &&

optional_depends perl \
  '--with-perl' \
  '--without-perl' \
  'for embedded Perl support (experimental)' &&

optional_depends python \
  '--with-python' \
  '--without-python' \
  'for embedded Python support (experimental)' &&

optional_depends RUBY \
  '--with-ruby' \
  '--without-ruby' \
  'for embedded Ruby support (experimental)'
