grub-0.97-ncurses-pkgconfig.patch 799 B

12345678910111213141516171819
  1. --- a/configure.ac 2015-12-17 11:09:56.807893315 -0500
  2. +++ b/configure.ac 2015-12-17 11:11:06.697570856 -0500
  3. @@ -234,10 +234,14 @@
  4. # Unless the user specify --without-curses, check for curses.
  5. if test "x$with_curses" != "xno"; then
  6. + PKG_CHECK_MODULES([NCURSES],[ncurses],[
  7. + AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])
  8. + GRUB_LIBS="$GRUB_LIBS $NCURSES_LIBS"
  9. + ],[
  10. AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lncurses"
  11. AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])],
  12. [AC_CHECK_LIB(curses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lcurses"
  13. - AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])
  14. + AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])])
  15. fi
  16. AC_SUBST(GRUB_LIBS)