aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-01-16 22:51:49 +0000
committerMark Kettenis <kettenis@gnu.org>2005-01-16 22:51:49 +0000
commitc401b55a7719b7be446183cdb33c76d71c3b5d88 (patch)
tree9751937a7efdfa8ceb709f0dc426984410832948 /gdb/configure.ac
parent1c02b2a55e4a455f9e854278dd658dc826b4b169 (diff)
downloadgdb-c401b55a7719b7be446183cdb33c76d71c3b5d88.zip
gdb-c401b55a7719b7be446183cdb33c76d71c3b5d88.tar.gz
gdb-c401b55a7719b7be446183cdb33c76d71c3b5d88.tar.bz2
* configure.ac: Provide prerequisite headers when checking
<term.h>. * configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 55e19c4..7794d3b 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -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?