This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Remove header usability warnings on Solaris
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 16 Jan 2005 23:52:07 +0100 (CET)
- Subject: [COMMIT] Remove header usability warnings on Solaris
<term.h> need <curses.h> and Solaris (and probably on other SVR4-ish
systems).
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* configure.ac: Provide prerequisite headers when checking
<term.h>.
* configure: Regenerate.
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.2
diff -u -p -r1.2 configure.ac
--- configure.ac 9 Jan 2005 18:02:50 -0000 1.2
+++ configure.ac 16 Jan 2005 22:40:27 -0000
@@ -409,7 +409,12 @@ case $host_os in
fi ;;
esac
AC_CHECK_HEADERS(curses.h cursesX.h ncurses.h ncurses/ncurses.h)
-AC_CHECK_HEADERS(ncurses/term.h term.h)
+AC_CHECK_HEADERS(ncurses/term.h)
+AC_CHECK_HEADERS(term.h, [], [],
+[#if HAVE_CURSES_H
+# include <curses.h>
+#endif
+])
# FIXME: kettenis/20030102: In most cases we include these
# unconditionally, so what's the point in checking these?