]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
autotools: don't use wide-character ncurses if --disable-widechar
authorKarel Zak <kzak@redhat.com>
Thu, 20 Mar 2025 10:56:07 +0000 (11:56 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 20 Mar 2025 10:56:07 +0000 (11:56 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index b220682223e0c99b795d4bc0a5b4e8607f08df1e..85b64f03be124f265352983f021d2dd1ba05e58a 100644 (file)
@@ -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], [