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-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23aa09d7baec72cf6bac9d32c844a5bd2a6ef609;p=thirdparty%2Futil-linux.git autotools: don't use wide-character ncurses if --disable-widechar Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index b22068222..85b64f03b 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], [