diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1844bdaee..c09a95c39 100644 --- a/configure.ac +++ b/configure.ac @@ -792,6 +792,14 @@ AC_ARG_WITH([ncurses], [], [with_ncurses=auto] ) have_ncurses=no + +AS_CASE([$with_ncurses:$build_widechar], + [yes:yes], [AC_MSG_ERROR([wide-char support enabled, but non-wide ncurses selects])]) + +AS_CASE([$have_ncursesw:$with_ncurses:$build_widechar], + [no:auto:yes],[AC_MSG_WARN( [wide-char support enabled, ncursesw not found, force --without-ncurses]) + with_ncurses=no]) + AS_IF([test "x$have_ncursesw" = xno -a "x$with_ncurses" != xno ], [ PKG_CHECK_MODULES(NCURSES, [ncurses], [ have_ncurses=yes @@ -2196,6 +2204,7 @@ AC_MSG_RESULT([ Bash completions: ${with_bashcompletiondir} Systemd support: ${have_systemd} Btrfs support: ${have_btrfs} + Wide-char support: ${build_widechar} warnings: |