From 917eb579ee923c775215691f88c2a8bccd30e721 Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Tue, 29 Oct 2024 07:59:30 +0800 Subject: [PATCH] build: Add "ncurses{t,tw}" to possible ncurses names "ncursest" and "ncursestw" are multi-threaded variants of the ncurses library. The "t" library names are only used in operating systems that do not support weak symbols (so you won't see such names in Linux), but the names are documented in ncurses anyway. Adding them to the list of names to check won't hurt. * See the curs_threads(3X) man page, and the INSTALL file from ncurses package. Notably the "--enable-reentrant", "--with-pthread" and "--enable-weak-symbols" options in ncurses. Signed-off-by: Kang-Che Sung --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 42bb8a4e4..f4b48d0a4 100644 --- a/configure.ac +++ b/configure.ac @@ -416,10 +416,12 @@ AC_ARG_ENABLE([unicode], AC_ARG_VAR([CURSES_CFLAGS], [C compiler flags for curses; this overrides auto detected values]) AC_ARG_VAR([CURSES_LIBS], [linker flags for curses; this overrides auto detected values]) -curses_pkg_names="ncurses6 ncurses5 ncurses curses" +curses_pkg_names="ncurses6 ncurses5 ncurses ncursest6 ncursest5 \ + ncursest curses" if test "x$enable_unicode" = xyes; then - curses_pkg_names="ncursesw6 ncursesw5 ncursesw $curses_pkg_names" + curses_pkg_names="ncursesw6 ncursesw5 ncursesw ncursestw6 ncursestw5 \ + ncursestw $curses_pkg_names" fi AC_ARG_WITH([curses],