--- wine-0.9.28/configure.ac.orig 2006-12-22 17:17:47.000000000 +0100 +++ wine-0.9.28/configure.ac 2006-12-24 03:10:15.504363300 +0100 @@ -194,6 +194,7 @@ machine/soundcard.h \ mntent.h \ ncurses.h \ + ncurses/ncurses.h \ netdb.h \ netinet/in.h \ netinet/in_systm.h \ @@ -519,7 +520,7 @@ dnl **** Check which curses lib to use *** CURSESLIBS="" -if test "$ac_cv_header_ncurses_h" = "yes" +if test "$ac_cv_header_ncurses_h" = "yes" || test "$ac_cv_header_ncurses_ncurses_h" = "yes" then AC_CHECK_LIB(ncurses,waddch,[CURSESLIBS="-lncurses"]) elif test "$ac_cv_header_curses_h" = "yes" --- wine-0.9.41/programs/wineconsole/curses.c.old 2007-07-14 22:00:49.124363079 +0200 +++ wine-0.9.41/programs/wineconsole/curses.c 2007-07-14 22:07:46.714791368 +0200 @@ -39,6 +39,8 @@ # include #elif defined(HAVE_CURSES_H) # include +#elif defined(HAVE_NCURSES_NCURSES_H) +# include #endif /* avoid redefinition warnings */ #undef KEY_EVENT @@ -62,7 +64,7 @@ #if defined(SONAME_LIBCURSES) || defined(SONAME_LIBNCURSES) -#ifdef HAVE_NCURSES_H +#if defined(HAVE_NCURSES_H) || defined(HAVE_NCURSES_NCURSES_H) # define CURSES_NAME "ncurses" #else # define CURSES_NAME "curses" --- wine-1.3.13/dlls/kernel32/term.c~ 2011-02-04 20:06:51.000000000 +0100 +++ wine-1.3.13/dlls/kernel32/term.c 2011-02-05 16:25:43.627060372 +0100 @@ -27,6 +27,8 @@ # include #elif defined(HAVE_CURSES_H) # include +#elif defined(HAVE_NCURSES_NCURSES_H) +# include #endif /* avoid redefinition warnings */ #undef KEY_EVENT @@ -34,6 +36,8 @@ #if defined(HAVE_CURSES_H) || defined(HAVE_NCURSES_H) #include +#elif defined(HAVE_NCURSES_NCURSES_H) +#include #endif #include @@ -148,7 +152,7 @@ #if defined(SONAME_LIBCURSES) || defined(SONAME_LIBNCURSES) -#ifdef HAVE_NCURSES_H +#ifdef HAVE_NCURSES_H || defined(HAVE_NCURSES_NCURSES_H) # define CURSES_NAME "ncurses" #else # define CURSES_NAME "curses" diff -urN wine-1.4.1.org/configure.ac wine-1.4.1/configure.ac --- wine-1.4.1.org/configure.ac 2012-06-15 21:17:00.000000000 +0200 +++ wine-1.4.1/configure.ac 2013-06-13 17:34:25.210134842 +0200 @@ -1281,6 +1281,9 @@ if test "$ac_cv_header_ncurses_h" = "yes" then WINE_CHECK_SONAME(ncurses,waddch,[CURSESLIBS="-lncurses"]) + if test "x$ac_cv_lib_soname_ncurses" = "x"; then + WINE_CHECK_SONAME(ncursesw,waddch,[CURSESLIBS="-lncursesw"]) + fi elif test "$ac_cv_header_curses_h" = "yes" then WINE_CHECK_SONAME(curses,waddch,[CURSESLIBS="-lcurses"]) @@ -1289,8 +1292,8 @@ LIBS="$LIBS $CURSESLIBS" AC_CHECK_FUNCS(mousemask) LIBS="$ac_save_LIBS" -WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"], - [lib(n)curses ${notice_platform}development files not found, curses won't be supported.]) +WINE_NOTICE_WITH(curses,[test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses$ac_cv_lib_soname_ncursesw" = "x"], + [lib(n)curses(w) ${notice_platform}development files not found, curses won't be supported.]) dnl **** Check for SANE **** if test "x$with_sane" != "xno"