diff -Naur Python-3.5.2-orig/configure.ac Python-3.5.2/configure.ac --- Python-3.5.2-orig/configure.ac 2016-07-12 14:22:09.502800700 +0300 +++ Python-3.5.2/configure.ac 2016-07-12 14:22:22.695800700 +0300 @@ -5099,7 +5099,9 @@ # first curses header check ac_save_cppflags="$CPPFLAGS" +if test yes != "$cross_compiling"; then CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" +fi AC_CHECK_HEADERS(curses.h ncurses.h)