* configure.ac: Provide prerequisite headers when checking
authorMark Kettenis <kettenis@gnu.org>
Sun, 16 Jan 2005 22:51:49 +0000 (22:51 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 16 Jan 2005 22:51:49 +0000 (22:51 +0000)
<term.h>.
* configure: Regenerate.

gdb/ChangeLog
gdb/configure.ac

index 521d0f86160432fc7d5f2976d0ffe0486be0b5c6..76832efdded06d0148841676fe26cc2f4b29aa90 100644 (file)
@@ -1,5 +1,9 @@
 2005-01-16  Mark Kettenis  <kettenis@gnu.org>
 
+       * configure.ac: Provide prerequisite headers when checking
+       <term.h>.
+       * configure: Regenerate.
+
        * amd64fbsd-tdep.c: Update copyright year.  Include "gdb_assert.h"
        and "bsd-uthread.h".
        (amd64fbsd_jmp_buf_reg_offset): New variable.
index 55e19c410c2c0110653cba9fd04514df818d4d98..7794d3b9a1a0618afa03e1f956f6f3859f0de0dd 100644 (file)
@@ -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?