Prefer ncurses over curses.

This commit is contained in:
Guus Sliepen 2013-12-07 22:59:37 +01:00
parent b115de2199
commit 19b97e79aa

View file

@ -31,9 +31,12 @@ AC_DEFUN([tinc_CURSES],
[AC_MSG_ERROR("curses header files not found."); break]
)
AC_CHECK_LIB(curses, initscr,
[CURSES_LIBS="-lcurses"],
[AC_MSG_ERROR("curses libraries not found.")]
AC_CHECK_LIB(ncurses, initscr,
[CURSES_LIBS="-lncurses"],
[AC_CHECK_LIB(curses, initscr,
[CURSES_LIBS="-lcurses"],
[AC_MSG_ERROR("curses libraries not found.")]
)]
)
])