--- grub-0.97/configure.ac 2005-05-07 22:36:03.000000000 -0400 +++ grub-0.97/configure.ac 2015-12-12 22:55:52.838313038 -0500 @@ -207,7 +207,7 @@ # Unless the user specify --without-curses, check for curses. if test "x$with_curses" != "xno"; then - AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lncurses" + AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lncurses -ltinfo -ltinfow" AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])], [AC_CHECK_LIB(curses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lcurses" AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])