gentoo-ebuilds/dev-db/gqlplus/files/gqlplus-1.16-ncurses-tinfo.patch
Fabian Groffen 8a9e9a2a6c
dev-db/gqlplus-1.16: fix configure with ncurses[tinfo], bug #742242
Closes: https://bugs.gentoo.org/742242
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2020-09-13 15:29:57 +02:00

19 lines
485 B
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -4,14 +4,6 @@
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
-AC_CHECK_LIB(ncurses, tgetnum,,
-[
- echo "The required library ncurses not found - aborting."
- exit
-],)
-AC_CHECK_LIB(readline, tputs,,
-[
- echo "The required library readline not found - aborting."
- exit
-],)
+AC_SEARCH_LIBS([tgetnum], [ncurses tinfo], , AC_MSG_ERROR([need ncurses]), [])
+AC_CHECK_LIB(readline, tputs, , AC_MSG_ERROR([need readline]), [])
AC_OUTPUT(Makefile)