add deprecated sys-boot/grub:0
[portage-squeep] / sys-boot / grub / files / grub-0.97-ncurses-pkgconfig.patch
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
5 # Unless the user specify --without-curses, check for curses.
6 if test "x$with_curses" != "xno"; then
7 + PKG_CHECK_MODULES([NCURSES],[ncurses],[
8 + AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])
9 + GRUB_LIBS="$GRUB_LIBS $NCURSES_LIBS"
10 + ],[
11 AC_CHECK_LIB(ncurses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lncurses"
12 AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])],
13 [AC_CHECK_LIB(curses, wgetch, [GRUB_LIBS="$GRUB_LIBS -lcurses"
14 - AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])
15 + AC_DEFINE(HAVE_LIBCURSES, 1, [Define if you have a curses library])])])])
16 fi
17
18 AC_SUBST(GRUB_LIBS)