depends  db    &&
depends  gawk  &&

message  "Exim can use either hc-cron or or fcron"             \
         "to periodically attempt to resend undelivered mail"  &&

if  spell_ok  hc-cron
then
  config_query  EXIM_HCCRON  "Attempt to resend undelivered via hc-cron?"  y
else
  config_query  EXIM_HCCRON  "Attempt to resend undelivered via hc-cron?"  n
fi  &&

if  spell_ok  fcron
then
  config_query  EXIM_FCRON  "Attempt to resend undelivered via fcron?"  y
else
  config_query  EXIM_FCRON  "Attempt to resend undelivered via fcron?"  n
fi  &&

# The spell only mentioned xfree86, haven't tested with others
if  provider_ok  X11-LIBS
then
  config_query  EXIM_XFREE86  "Build X11 exim monitor?"  y
else
  config_query  EXIM_XFREE86  "Build X11 exim monitor?"  n
fi  &&

if  spell_ok  tcp_wrappers
then
  config_query  EXIM_TCPWRAPPERS  "Use tcp_wrappers for controlling access?"  y
else
  config_query  EXIM_TCPWRAPPERS  "Use tcp_wrappers for controlling access?"  n
fi  &&

if  spell_ok  mysql
then
  config_query  EXIM_MYSQL  "Use mysql for SQL lookup tables?"  y
else
  config_query  EXIM_MYSQL  "Use mysql for SQL lookup tables?"  n
fi  &&

if  spell_ok  postgresql
then
  config_query  EXIM_PGSQL  "Use postgresql for SQL lookup tables?"  y
else
  config_query  EXIM_PGSQL  "Use postgresql for SQL lookup tables?"  y
fi  &&

if  spell_ok  linux-pam
then
  config_query  EXIM_LINUXPAM  "Use linux-pam For PAM authentication?"  y
else
  config_query  EXIM_LINUXPAM  "Use linux-pam For PAM authentication?"  n
fi  &&

if  spell_ok  openldap
then
  config_query  EXIM_OPENLDAP  "Use openldap for LDAP lookup tables?"  y
else
  config_query  EXIM_OPENLDAP  "Use openldap for LDAP lookup tables?"  n
fi  &&

if  spell_ok  openssl
then
  config_query  EXIM_OPENSSL  "Use openssl for TLS support?"  y
else
  config_query  EXIM_OPENSSL  "Use openssl for TLS support?"  n
fi  &&

if  spell_ok  gnutls
then
  config_query  EXIM_GNUTLS  "Use gnutls for TLS support?"  y
else
  config_query  EXIM_GNUTLS  "Use gnutls for TLS support?"  n
fi  &&

if  spell_ok  cyrus-sasl
then
  config_query  EXIM_SASL  "Use cyrus-sasl for authentication?"  y
else
  config_query  EXIM_SASL  "Use cyrus-sasl for authentication?"  n
fi  &&

if  spell_ok  readline
then
  config_query  EXIM_READLINE  "Use readline for read data testing?"  y
else
  config_query  EXIM_READLINE  "Use readline for read data testing?"  n
fi  &&

if  [  "$EXIM_HCCRON"  ==  "y"  ]
then
  depends  hc-cron
fi  &&

if  [  "$EXIM_FCRON"  ==  "y"  ]
then
  depends  fcron
fi  &&

if  [  "$EXIM_XFREE86"  ==  "y"  ]
then
  depends  X11-LIBS
fi  &&

if  [  "$EXIM_TCPWRAPPERS"  ==  "y"  ]
then
  depends  tcp_wrappers
fi  &&

if  [  "$EXIM_MYSQL"  ==  "y"  ]
then
  depends  mysql
fi  &&

if  [ "$EXIM_LINUXPAM"  ==  "y"  ]
then
  depends  linux-pam
fi  &&

if  [ "$EXIM_OPENLDAP"  ==  "y"  ]
then
  depends  openldap
fi  &&

if  [ "$EXIM_OPENSSL"  ==  "y"  ]
then
  depends  openssl
fi  &&

if  [ "$EXIM_GNUTLS"  ==  "y"  ]
then
  depends  gnutls
fi  &&

if  [  "$EXIM_SASL"  ==  "y"  ]
then
  depends  cyrus-sasl
fi
