Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] (PR#11443) tinfo support patch from ALT Linux
Home

[Freeciv-Dev] (PR#11443) tinfo support patch from ALT Linux

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11443) tinfo support patch from ALT Linux
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Thu, 9 Dec 2004 14:32:45 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11443 >

Good daytime!

Since i don't know m4, autoconf etc, i can't decide, is attached patch
(from ALT Linux freeciv-2.0.0-alt0.1.b4.src.rpm) distributive-specific
or not. (Think, however, that it isn't)
In Changelog it was called "Fixed tinfo support"
(Patch was [firstly] made against 1.14.0; appliable now)

Thanks, evyscr.
--- freeciv-1.14.0-beta3/m4/readline.m4.orig    2002-05-23 02:01:04 +0400
+++ freeciv-1.14.0-beta3/m4/readline.m4 2003-01-03 20:40:14 +0300
@@ -89,10 +89,15 @@
                dnl Some older Unices may need both -lcurses and -ltermlib,
                dnl but we don't support that just yet....
 
-               AC_CHECK_LIB(termlib, tgetent, HAVE_TERMCAP="-ltermlib")
-               AC_CHECK_LIB(termcap, tgetent, HAVE_TERMCAP="-ltermcap")
-               AC_CHECK_LIB(curses, tgetent, HAVE_TERMCAP="-lcurses")
-               AC_CHECK_LIB(ncurses, tgetent, HAVE_TERMCAP="-lncurses")
+               AC_CHECK_LIB(tinfo, tgetent, HAVE_TERMCAP="-ltinfo",
+                 AC_CHECK_LIB(termlib, tgetent, HAVE_TERMCAP="-ltermlib",
+                   AC_CHECK_LIB(termcap, tgetent, HAVE_TERMCAP="-ltermcap",
+                     AC_CHECK_LIB(curses, tgetent, HAVE_TERMCAP="-lcurses",
+                       AC_CHECK_LIB(ncurses, tgetent, HAVE_TERMCAP="-lncurses")
+                     )
+                   )
+                 )
+               )
 
                if test x"$HAVE_TERMCAP" != "x"; then
                    dnl We can't check for completion_matches() again,

[Prev in Thread] Current Thread [Next in Thread]