diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-12-31 01:30:52 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-12-31 01:30:52 +0000 |
commit | adcb1e06ef4856c844bb54f5931e0709edcaa005 (patch) | |
tree | e46e40b9cfed0995914a61af731d2cc0aa596e34 /gdb/configure.in | |
parent | 1b0df0adcb6f15845bac5e209617d5e0af346569 (diff) | |
download | gdb-adcb1e06ef4856c844bb54f5931e0709edcaa005.zip gdb-adcb1e06ef4856c844bb54f5931e0709edcaa005.tar.gz gdb-adcb1e06ef4856c844bb54f5931e0709edcaa005.tar.bz2 |
1998-12-30 Jason Molenda (jsm@bugshack.cygnus.com)
* utils.c: <readline/readline.h> instead of "readline/readline.h".
* configure.in (TERM_LIB): Search for the appropriate term library
on the host system.
* configure: Regenerated.
* Makefile.in (TERMCAP): Set based on autoconf check.
* config/*/*.mh: Don't override TERMCAP setting.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 3f00da9..9f2a281 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -120,6 +120,21 @@ dnl under Solaris 2.6 because it is some funky empty library. dnl So only link in libw if we have to. AC_CHECK_LIB(c, wctype,: ,AC_CHECK_LIB(w, wctype)) +dnl Figure out which term library to use. +TERM_LIB= +AC_CHECK_LIB(ncurses, tgetent, TERM_LIB=-lncurses, + AC_CHECK_LIB(termlib, tgetent, TERM_LIB=-ltermlib, + AC_CHECK_LIB(termcap, tgetent, TERM_LIB=-ltermcap, + AC_CHECK_LIB(curses, tgetent, TERM_LIB=-lcurses, + AC_CHECK_LIB(terminfo, tgetent, TERM_LIB=-lterminfo))))) + +if test "x$TERM_LIB" = x +then + AC_MSG_ERROR(Could not find a term library, e.g. termcap or termlib!) +fi + +AC_SUBST(TERM_LIB) + dnl See if compiler supports "long long" type. AC_MSG_CHECKING(for long long support in compiler) |