+ if test -z "$CURSES_LIB"
+ then
+- LIBS="-lncurses $ORIG_LIBS"
++ LIBS="-lncurses -ltinfo $ORIG_LIBS"
+ AC_TRY_LINK(
+ [#include <ncurses/curses.h>], [initscr()],
+- [CURSES_LIB=-lncurses
++ [CURSES_LIB="-lncurses -ltinfo"
+ AC_DEFINE(CURSES_HEADER, <ncurses/curses.h>, [Defined to curses header file])
+ AC_DEFINE(TERM_HEADER, <ncurses/term.h>, [Defined to term header file])],
+ [