Test for unicode-enabled libncurses

This commit is contained in:
Hisham Muhammad 2015-11-19 13:26:11 -02:00
parent 0837fc5b62
commit 347141502b
1 changed files with 6 additions and 4 deletions

View File

@ -146,13 +146,15 @@ fi
AC_ARG_ENABLE(unicode, [AC_HELP_STRING([--enable-unicode], [enable Unicode support])], ,enable_unicode="yes")
if test "x$enable_unicode" = xyes; then
AC_CHECK_LIB([ncursesw6], [refresh], [
AC_CHECK_LIB([ncursesw6], [addnwstr], [
AC_DEFINE(HAVE_LIBNCURSESW, 1, [])
LIBS="-lncursesw6 $LIBS "
], [
AC_CHECK_LIB([ncursesw], [refresh], [], [
missing_libraries="$missing_libraries libncursesw"
AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.])
AC_CHECK_LIB([ncursesw], [addnwstr], [], [
AC_CHECK_LIB([ncurses], [addnwstr], [], [
missing_libraries="$missing_libraries libncursesw"
AC_MSG_ERROR([You may want to use --disable-unicode or install libncursesw.])
])
])
])
AC_CHECK_HEADERS([ncursesw/curses.h],[:],