aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2000-12-20 21:24:28 +0000
committerFernando Nasser <fnasser@redhat.com>2000-12-20 21:24:28 +0000
commitb4df4f6849c12bd0cca8534e7c17242d0209f130 (patch)
tree628f2b5be391176254ce4a91a577bda14c63f0b2 /gdb/configure.in
parent5bff4f5642edc6e44c15f3e189d683d5dde1a2c8 (diff)
downloadfsf-binutils-gdb-b4df4f6849c12bd0cca8534e7c17242d0209f130.zip
fsf-binutils-gdb-b4df4f6849c12bd0cca8534e7c17242d0209f130.tar.gz
fsf-binutils-gdb-b4df4f6849c12bd0cca8534e7c17242d0209f130.tar.bz2
2000-12-20 Fernando Nasser <fnasser@redhat.com>
* Makefile.in (UIOUT_CFLAGS): New macro. CFLAGS needed for uiout code to be compiled. Defines UI_OUT. (SUBDIR_MI_CFLAGS): Defines MI_OUT, not UI_OUT. (INTERNAL_WARN_CFLAGS): Also include UIOUT_CFLAGS. * configure.in (UIOUT_CFLAGS): New configuration variable. (--with-uiout): New configuration option. Causes uiout code to be compiled, instead of the old *printf one. * configure: Regenerate. * top.c (print_gdb_version): Test for and print MI_OUT, not UI_OUT. * testsuite/lib/mi-support.exp (mi_gdb_start): Test for MI_OUT, not UI_OUT.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 4d22c98..ecc6f53 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -525,6 +525,29 @@ case ${enable_gdbmi} in
;;
esac
+# Configure UI_OUT by default (before 5.2 it can be disabled)
+# It must be configured if gdbmi is configured
+
+UIOUT_CFLAGS=
+AC_SUBST(UIOUT_CFLAGS)
+
+AC_ARG_WITH(uiout,
+[ --with-uiout Use new uiout functions intead of *printf's],
+[case "${withval}" in
+ yes) want_uiout=true ;;
+ no) if test $enable_gdbmi = yes; then
+ AC_MSG_ERROR(uiout is needed for MI and cannot be disabled)
+ else
+ want_uiout=false
+ fi ;;
+ *) AC_MSG_ERROR(bad value ${withval} for GDB with-uiout option) ;;
+esac],
+[want_uiout=true])dnl
+
+if test $want_uiout = true; then
+ UIOUT_CFLAGS="-DUI_OUT=1"
+fi
+
AC_ARG_ENABLE(tui,
[ --enable-tui Enable full-screen terminal user interface],
[