Configure TUI to use <ncurses.h> when available.

This commit is contained in:
Andrew Cagney 2000-05-26 04:11:34 +00:00
parent d60622826d
commit 2894793a7b
8 changed files with 359 additions and 331 deletions

View file

@ -1,3 +1,8 @@
Thu May 25 16:56:05 2000 Andrew Cagney <cagney@b1.cygnus.com>
* configure.in (AC_CHECK_HEADERS): Check for ncurses.h.
* config.in, configure: Re-generate.
2000-05-25 Scott Bambrough <scottb@netwinder.org>
* arm-linux-tdep.c (find_minsym_and_objfile): New.

View file

@ -237,6 +237,9 @@
/* Define if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if you have the <ncurses.h> header file. */
#undef HAVE_NCURSES_H
/* Define if you have the <ndir.h> header file. */
#undef HAVE_NDIR_H

666
gdb/configure vendored

File diff suppressed because it is too large Load diff

View file

@ -97,13 +97,14 @@ case $host_os in solaris2.7) case "$GCC" in yes)
AC_DEFINE(_MSE_INT_H)
esac; esac
AC_CHECK_HEADERS(ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
AC_CHECK_HEADERS(ctype.h endian.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
time.h sys/ioctl.h sys/user.h \
dirent.h sys/ndir.h sys/dir.h ndir.h)
dirent.h sys/ndir.h sys/dir.h ndir.h \
curses.h ncurses.h)
AC_HEADER_STAT
AC_C_CONST

View file

@ -1,3 +1,8 @@
Thu May 25 16:58:01 2000 Andrew Cagney <cagney@b1.cygnus.com>
* tui.h: Include <ncurses.h> when available.
* tui.c, tuiGeneralWin.c: Do not include <curses.h>.
Mon May 15 17:16:10 2000 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in: Delete.

View file

@ -7,7 +7,6 @@
#include <stdlib.h>
#include <ctype.h>
#include <malloc.h>
#include <curses.h>
#ifdef HAVE_TERM_H
#include <term.h>
#endif

View file

@ -2,7 +2,11 @@
#ifndef TUI_H
#define TUI_H
#if defined (HAVE_NCURSES_H)
#include <ncurses.h>
#elif defined (HAVE_CURSES_H)
#include <curses.h>
#endif
#ifdef ANSI_PROTOTYPES
#include <stdarg.h>

View file

@ -3,7 +3,6 @@
** This module supports general window behavior
*/
#include <curses.h>
#include "defs.h"
#include "tui.h"
#include "tuiData.h"