do not hardcode /usr/include paths --- a/configure.ac +++ b/configure.ac @@ -4316,7 +4316,7 @@ fi # first curses configure check ac_save_cppflags="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" +CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags ncursesw`" AC_CHECK_HEADERS(curses.h ncurses.h)