From: Guus Sliepen Date: Thu, 26 Oct 2017 19:33:46 +0000 (+0200) Subject: If we are using libncurses, also try to link with libtinfo. X-Git-Tag: release-1.1pre16~57 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=c84fce52d2191df06e24737449e8983174984ddc;p=tinc 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. --- diff --git a/m4/curses.m4 b/m4/curses.m4 index 2e8d1510..031e1eea 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.")]