From c84fce52d2191df06e24737449e8983174984ddc Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 26 Oct 2017 21:33:46 +0200 Subject: [PATCH] If we are using libncurses, also try to link with libtinfo. On some distributions, tinc might not be linked correctly if -ltinfo is not explicitly specified. --- m4/curses.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/curses.m4 b/m4/curses.m4 index 2e8d151..031e1ee 100644 --- a/m4/curses.m4 +++ b/m4/curses.m4 @@ -32,7 +32,7 @@ AC_DEFUN([tinc_CURSES], ) AC_CHECK_LIB(ncurses, initscr, - [CURSES_LIBS="-lncurses"], + [CURSES_LIBS="-lncurses"; AC_CHECK_LIB(tinfo, wtimeout, [CURSES_LIBS+=" -ltinfo"], [])], [AC_CHECK_LIB(curses, initscr, [CURSES_LIBS="-lcurses"], [AC_MSG_ERROR("curses libraries not found.")] -- 2.25.1