aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2008-06-26 19:20:42 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2008-06-26 19:20:42 +0000
commit3ca64bd3bd0512c7af70be7d04406823fcdd866c (patch)
tree523447f17cee7282e37a5563a9001363366ebf1b /gdb/configure.ac
parent28e9494986fe5b016812da397090f2244ea23055 (diff)
downloadgdb-3ca64bd3bd0512c7af70be7d04406823fcdd866c.zip
gdb-3ca64bd3bd0512c7af70be7d04406823fcdd866c.tar.gz
gdb-3ca64bd3bd0512c7af70be7d04406823fcdd866c.tar.bz2
* configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
* configure: Regenerated.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac12
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 3c203a1..95d5b08 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -267,11 +267,11 @@ fi
AC_ARG_ENABLE(tui,
[ --enable-tui enable full-screen terminal user interface (TUI)],
[case $enableval in
- yes | no)
+ yes | no | auto)
;;
*)
AC_MSG_ERROR([bad value $enableval for --enable-tui]) ;;
- esac],enable_tui=yes)
+ esac],enable_tui=auto)
# Enable gdbtk.
AC_ARG_ENABLE(gdbtk,
@@ -1578,7 +1578,7 @@ AC_PATH_X
# Check whether we should enable the TUI, but only do so if we really
# can.
-if test x"$enable_tui" = xyes; then
+if test x"$enable_tui" != xno; then
if test -d $srcdir/tui; then
if test "$ac_cv_search_waddstr" != no; then
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
@@ -1591,7 +1591,11 @@ if test x"$enable_tui" = xyes; then
CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
else
- AC_MSG_WARN([no enhanced curses library found; disabling TUI])
+ if test x"$enable_tui" = xyes; then
+ AC_MSG_ERROR([no enhanced curses library found; disable TUI])
+ else
+ AC_MSG_WARN([no enhanced curses library found; disabling TUI])
+ fi
fi
fi
fi