configure: Fix check for term.h to include curses.h first
Traditional curses needs this. Observed on AIX 7.1. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
3cc23a3cd4
commit
26a03abfd8
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@ AC_DEFUN([MY_CURSES_TERMINFO],
|
|||
[
|
||||
AC_SEARCH_LIBS([setupterm], [termlib termcap curses ncurses],
|
||||
[have_terminfo=yes], [have_terminfo=no])
|
||||
AC_CHECK_HEADER([curses.h], , [have_terminfo=no])
|
||||
AC_CHECK_HEADER([term.h], , [have_terminfo=no])
|
||||
AC_CHECK_HEADERS([curses.h term.h], [], [have_terminfo=no],
|
||||
[[#include <curses.h>]])
|
||||
if test "$have_terminfo" = yes
|
||||
then AC_DEFINE([HAVE_CURSES_TERMINFO], 1,
|
||||
[Define if you have the curses interface to terminfo])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue