It seems that globally defined dependence between ncursesw and
wide-char support is overkill, because in some cases (e.g. cal(1)) we
can use ncurses independently on wide-char support.
It would be better to care about relation between wide-char and
ncurses individually (per util).
Signed-off-by: Karel Zak <kzak@redhat.com>
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