From 19b97e79aa63bcb6f81c2dbfd7ca91d89a230387 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 7 Dec 2013 22:59:37 +0100 Subject: [PATCH] Prefer ncurses over curses. --- m4/curses.m4 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/m4/curses.m4 b/m4/curses.m4 index 50a90a5a..2e8d1510 100644 --- a/m4/curses.m4 +++ b/m4/curses.m4 @@ -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.")] + )] ) ]) -- 2.39.5