From: Karel Zak Date: Thu, 20 Mar 2025 10:56:07 +0000 (+0100) Subject: autotools: don't use wide-character ncurses if --disable-widechar X-Git-Tag: v2.41.1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=906b597b5781b007116c5cbe51bb75b53024f173;p=thirdparty%2Futil-linux.git autotools: don't use wide-character ncurses if --disable-widechar Signed-off-by: Karel Zak (cherry picked from commit 23aa09d7baec72cf6bac9d32c844a5bd2a6ef609) --- diff --git a/configure.ac b/configure.ac index a5d910204..fd0c53fa5 100644 --- a/configure.ac +++ b/configure.ac @@ -1105,6 +1105,16 @@ AC_ARG_WITH([ncursesw], ) have_ncursesw=no have_ncursesw_header=no + +AS_CASE([$with_ncursesw:$build_widechar], + [yes:no], + [AC_MSG_ERROR([wide-char support disabled, but wide-char ncurses required])], + [auto:no], + [ + AC_MSG_WARN([wide-char support disabled, disabling wide-char ncurses]) + with_ncursesw=no + ] +) AS_IF([test "x$with_ncursesw" != xno], [ UL_NCURSES_CHECK([ncursesw]) AS_IF([test "x$have_ncursesw" = xyes], [