jer         14/11/15 00:42:13

  Added:                up-imapproxy-1.2.7-tinfo.patch
  Log:
  Fix building against sys-libs/ncurses[tinfo] (bug #527570).
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/up-imapproxy/files/up-imapproxy-1.2.7-tinfo.patch?rev=1.1&content-type=text/plain

Index: up-imapproxy-1.2.7-tinfo.patch
===================================================================
--- a/configure.in
+++ b/configure.in
@@ -121,12 +121,16 @@
 save_LIBS="$LIBS"
 LIB_CURSES=""
 AC_CHECK_LIB(curses, initscr, LIB_CURSES="-lcurses", [ curses_found=no ])
-if test "$curses_found" == no; then
+if test "$curses_found" = no; then
   AC_CHECK_LIB(ncurses, initscr, LIB_CURSES="-lncurses",
  AC_ERROR([Can't compile without curses!!!]))
 fi
 
 LIBS="$save_LIBS"
+
+AC_SEARCH_LIBS(stdscr, tinfo curses ncurses, [LIB_CURSES="$LIB_CURSES 
$ac_cv_search_stdscr"],
+ AC_MSG_ERROR([Cannot find a library providing stdscr]))
+
 AC_SUBST(LIB_CURSES)
 
 




Reply via email to