Skip to content

Commit

Permalink
Since terminfo is guarded by include guard, need to define HAVE_CURSES_H
Browse files Browse the repository at this point in the history
  • Loading branch information
keithw committed Jan 18, 2013
1 parent ebe7ae9 commit 1ee9597
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@ AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Def
PKG_CHECK_MODULES([OPENSSL], [openssl])

# Start by trying to find the needed tinfo parts by pkg-config
PKG_CHECK_MODULES([TINFO], [tinfo], ,
[PKG_CHECK_MODULES([TINFO], [ncurses], ,
PKG_CHECK_MODULES([TINFO], [tinfo],
[AC_DEFINE([HAVE_CURSES_H], [1], [Define to 1 if <curses.h> is present])],
[PKG_CHECK_MODULES([TINFO], [ncurses],
[AC_DEFINE([HAVE_CURSES_H], [1], [Define to 1 if <curses.h> is present])],
[AX_CHECK_LIBRARY([TINFO], [curses.h], [tinfo],
[AC_DEFINE([HAVE_CURSES_H], [1], [Define to 1 if <curses.h> is present])
AC_SUBST([TINFO_CFLAGS], ["$TINFO_CPPFLAGS"])
Expand Down

0 comments on commit 1ee9597

Please sign in to comment.