diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 511d169..3606803 100644 --- a/configure.ac +++ b/configure.ac @@ -226,11 +226,16 @@ case $INTERFACE in *curses*) case $INTERFACE in ncurses | netbsd-curses) - PKG_CHECK_MODULES(NCURSES, [ncurses], [ + # The widechar version of ncurses is necessary for Unicode + # support even when not using widechar APIs. + PKG_CHECK_MODULES(NCURSES, [ncursesw], [ CFLAGS="$CFLAGS $NCURSES_CFLAGS" CXXFLAGS="$CXXFLAGS $NCURSES_CFLAGS" LIBS="$LIBS $NCURSES_LIBS" ], [ + # This should be sufficient to detect non-widechar + # ncurses versions as well, although we could also check + # for an "ncurses" package. AC_CHECK_LIB(ncurses, initscr, , [ AC_MSG_ERROR([libncurses missing!]) ]) |