#Few hacks to keep old defaults set correctly

if [[ "$SEAMONKEY_MAILNEWS" == "--enable-mailnews" ||     \
      "$SEAMONKEY_MAILNEWS" == "y" ]]; then
   SEAMONKEY_MAILNEWS=y
else
   SEAMONKEY_MAILNEWS=n
fi &&
config_query  SEAMONKEY_MAILNEWS                          \
                     'Build Mail/News client?'            \
                     n                                    &&

if [[ "$SEAMONKEY_COMPOSER" == "--enable-composer" ||     \
      "$SEAMONKEY_COMPOSER" == "y" ]]; then
   SEAMONKEY_COMPOSER=y
else
   SEAMONKEY_COMPOSER=n
fi &&
config_query  SEAMONKEY_COMPOSER                          \
                     'Build Composer component'           \
                     n                                    &&

if [[ "$SEAMONKEY_JS" == "--enable-xpctools" ||           \
      "$SEAMONKEY_JS" == "y" ]]; then
   SEAMONKEY_JS=y
else
   SEAMONKEY_JS=n
fi &&
config_query  SEAMONKEY_JS                                \
                     'Build JavaScript profile tool'      \
                     n                                    &&

if [[ "$SEAMONKEY_XINERAMA" == "--enable-xinerama" ||     \
      "$SEAMONKEY_XINERAMA" == "y" ]]; then
   SEAMONKEY_XINERAMA=y
else
   SEAMONKEY_XINERAMA=n
fi &&

config_query  SEAMONKEY_CAIRO                             \
                     "Use system installed cairo?"        \
                      n                                   &&

config_query  SEAMONKEY_XINERAMA                          \
                     'Enable Xinerama support?'           \
                     n                                    &&

config_query  SEAMONKEY_PANGO                             \
                     'Enable Pango support for complex font rendering?' \
                     n                                    &&

#Getting rid of that annoying nullplugin
config_query  SEAMONKEY_NULLPLUGIN                       \
"Do you want nullplugin installed (to enable auto search and install of other plugins)" \
              y
