File grub-configure-check-libncurses of Package grub

Index: grub-0.97/configure.ac
===================================================================
--- grub-0.97.orig/configure.ac
+++ grub-0.97/configure.ac
@@ -207,10 +207,12 @@ AC_CHECK_LIB(util, opendisk, [GRUB_LIBS=
 
 # 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(tinfo, setupterm, HAVE_TINFO="-ltinfo")
+  AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lncurses $HAVE_TINFO"
   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])])])
+       AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])],
+    ["$HAVE_TINFO"])
 fi
 
 AC_SUBST(GRUB_LIBS)
openSUSE Build Service is sponsored by