if spell_ok "gtk+"; then
  EVMS_BUILD_GTK_DEFAULT="y"
else 
  EVMS_BUILD_GTK_DEFAULT="n"
fi &&

config_query_option EVMS_OPTS   "Enable GTK+ Interface?"                     \
                                "${EVMS_BUILD_GTK_DEFAULT}"                  \
                                "--enable-gui"                               \
                                "--disable-gui"                              &&

if spell_ok "ncurses"; then
  EVMS_BUILD_TXTMODE_DEFAULT="y"
else 
  EVMS_BUILD_TXTMODE_DEFAULT="n"
fi &&

config_query_option EVMS_OPTS   "Enable Text-Mode curses Interface?"         \
                                "${EVMS_BUILD_TXTMODE_DEFAULT}"              \
                                "--enable-text-mode"                         \
                                "--disable-text-mode"                        &&

if list_find "${EVMS_OPTS}" "--enable-gui" || 
       list_find "${EVMS_OPTS}" "--enable-text-mode"; then

  message  "The Text Mode and GTK+ interfaces depend on glib..."             &&
  message  "WARNING: If your root or usr partitions are managed by EVMS"     &&
  message  "and you do not build against the static glib your system"        &&
  message  "may not boot."                                                   &&

  config_query_option EVMS_OPTS "Build against static glib?"                 \
                                "n"                                          \
                                "--with-static-glib"                         \
                                ""
fi &&

config_query_option EVMS_OPTS   "Enable Command Line Interface?"             \
                                "y"                                          \
                                "--enable-cli"                               \
                                "--disable-cli"                              &&

config_query_option EVMS_OPTS   "Enable the GPT segment manager?"            \
                                "y"                                          \
                                "--enable-gpt"                               \
                                "--disable-gpt"                              &&

config_query_option EVMS_OPTS   "Enable the S/390 segment manager?"          \
                                "y"                                          \
                                "--enable-s390"                              \
                                "--disable-s390"                             &&

config_query_option EVMS_OPTS   "Enable the BSD segment manager?"            \
                                "y"                                          \
                                "--enable-bsd"                               \
                                "--disable-bsd"                              &&

config_query_option EVMS_OPTS   "Enable the Macintosh segment manager?"      \
                                "y"                                          \
                                "--enable-mac"                               \
                                "--disable-mac"                              &&

config_query_option EVMS_OPTS   "Enable the LVM plugin?"                     \
                                "y"                                          \
                                "--enable-lvm"                               \
                                "--disable-lvm"                              &&

config_query_option EVMS_OPTS   "Enable the LVM2 plugin?"                    \
                                "y"                                          \
                                "--enable-lvm2"                              \
                                "--disable-lvm2"                             &&

config_query_option EVMS_OPTS   "Enable the Software Raid plugin?"           \
                                "y"                                          \
                                "--enable-md"                                \
                                "--disable-md"

