diff -up emacs-24.0.90/configure.in\~ emacs-24.0.90/configure.in
--- emacs-24.0.90/configure.in~	2011-10-02 23:40:03.373070479 +0900
+++ emacs-24.0.90/configure.in	2011-10-03 00:03:48.779152532 +0900
@@ -2805,7 +2805,7 @@ case "$opsys" in
     ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
     if test "x$HAVE_LIBNCURSES" = "xyes"; then
       TERMINFO=yes
-      LIBS_TERMCAP="-lncurses"
+      LIBS_TERMCAP="-lncurses -ltinfo"
     fi
     ;;
 

Diff finished.  Mon Oct  3 00:05:05 2011
