]> diplodocus.org Git - nmh/commitdiff
configure.ac: Test for libtinfo to resolve setupterm(3).
authorRalph Corderoy <ralph@inputplus.co.uk>
Fri, 27 Oct 2017 11:28:28 +0000 (12:28 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Fri, 27 Oct 2017 15:38:22 +0000 (16:38 +0100)
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

index 033adfd..eb94a5f 100644 (file)
@@ -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