You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-libs/openipmi/files/openipmi-2.0.26-tinfo.patch

18 lines
808 B

--- OpenIPMI-2.0.26/configure.ac
+++ OpenIPMI-2.0.26/configure.ac
@@ -763,10 +763,12 @@
[epoll_pwait], [This platform supports epoll(7) with epoll_pwait(2)],
[HAVE_EPOLL_PWAIT], [This platform supports epoll(7) with epoll_pwait(2).])
-AC_CHECK_LIB(curses, tgetent, TERM_LIBS=-lcurses,
+PKG_CHECK_MODULES(ncurses, ncurses, TERM_LIBS=$ncurses_LIBS,
+ [AC_CHECK_LIB(tinfo, tgetent, TERM_LIBS=-ltinfo,
+ [AC_CHECK_LIB(curses, tgetent, TERM_LIBS=-lcurses,
[AC_CHECK_LIB(ncursesw, tgetent, TERM_LIBS=-lncursesw,
[AC_CHECK_LIB(ncurses, tgetent, TERM_LIBS=-lncurses,
- [AC_MSG_ERROR([libtermcap, libcurses or libncurses are required!])])] )] )
+ [AC_MSG_ERROR([libtinfo, libtermcap, libcurses or libncurses are required!])])] )] )] )] )
AC_SUBST(TERM_LIBS)
AC_CHECK_FUNCS(cfmakeraw)