1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-06-09 19:20:43 +00:00

Warn if NcursesW (or similar) is not found

Add a prominent warning if NcursesW (or some other wide-character version
of Curses) is not found at build time.  It is not an error because the
game might be run under a single-byte encoding (eg, ISO8859-1), even if
compiled under a multibyte encoding (eg, UTF-8).
This commit is contained in:
John Zaitseff 2012-03-28 11:08:38 +11:00
parent a62d35de13
commit 8e3a0d790e

View File

@ -59,6 +59,14 @@ AX_WITH_CURSES
AS_IF([test "x$ax_cv_curses" != xyes || test "x$ax_cv_curses_color" != xyes], [
AC_MSG_ERROR([requires an X/Open-compatible Curses library with colour])
])
AS_IF([test "x$ax_cv_curses_enhanced" != xyes], [
AC_MSG_WARN([no X/Open-compatible Enhanced Curses library found
***************** Locales with multibyte character sequences (such as
*** WARNING *** UTF-8) require a wide-character version of Curses,
***************** such as NcursesW, to work correctly.
])
])
AC_CONFIG_FILES([
Makefile