From 64434ac9b1008bed08d68384eb565c72b8ffbee8 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Fri, 27 Oct 2017 12:28:28 +0100 Subject: [PATCH] configure.ac: Test for libtinfo to resolve setupterm(3). ncurses 6.0+20170902-2 on Arch Linux doesn't provide setupterm(); it did in earlier versions. This stops ./configure finding a suitable library. Add tinfo to the search list, as that's the lower-level library that contains setupterm() now, and place it before curses and ncurses so the search stops if it's sufficient instead of the larger libraries. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 033adfd4..eb94a5ff 100644 --- a/configure.ac +++ b/configure.ac @@ -340,7 +340,7 @@ NMH_CHECK_ICONV dnl Check for tputs() callback argument NMH_TPUTS_PUTC_ARG -termcap_curses_order="termcap curses ncurses" +termcap_curses_order="termcap tinfo curses ncurses" for lib in $termcap_curses_order; do AC_CHECK_LIB([${lib}], [setupterm], [TERMLIB="-l$lib"; break]) done -- 2.56.0