]> git.eshelyaron.com Git - emacs.git/commitdiff
Port to GNU/Linux systems with tinfo but not ncurses.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Jul 2013 08:08:57 +0000 (09:08 +0100)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Jul 2013 08:08:57 +0000 (09:08 +0100)
* configure.ac (USE_NCURSES): New symbol.
* src/dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX,
to decide whether ncurses is being used.  Without this change,
GCC complains about tgetent not being declared, on a system
that has tinfo installed but ncurses not installed.

ChangeLog
configure.ac
src/ChangeLog
src/dispnew.c

index ec76b4257e4c2eea7fbcc289c067cad52b3c9e74..5c465bf2ff97dfd84442ff3a9f97eca177236b41 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-07-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port to Ubuntu 12.04 with tinfo but not ncurses.
+       * configure.ac (USE_NCURSES): New symbol.
+
 2013-07-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        Fix array bounds violation when pty allocation fails.
index dfe2181fce82b9ec94fdccf966901bc208708b0a..f48822480e4607e2c45ca55c90cf6f3c4975582f 100644 (file)
@@ -3406,6 +3406,9 @@ if test $TERMINFO = yes; then
   AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.])
   TERMCAP_OBJ=terminfo.o
 fi
+if test "X$LIBS_TERMCAP" = "X-lncurses"; then
+  AC_DEFINE(USE_NCURSES, 1, [Define to 1 if you use ncurses.])
+fi
 AC_SUBST(LIBS_TERMCAP)
 AC_SUBST(TERMCAP_OBJ)
 
index cc8d7f5edeeea62c883624cf35c539f49b61fd2e..8a51744ba4b6caadbe1087a81fce5c9e6cf306a2 100644 (file)
@@ -1,5 +1,11 @@
 2013-07-23  Paul Eggert  <eggert@cs.ucla.edu>
 
+       Port to GNU/Linux systems with tinfo but not ncurses.
+       * dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX,
+       to decide whether ncurses is being used.  Without this change,
+       GCC complains about tgetent not being declared, on a system
+       that has tinfo installed but ncurses not installed.
+
        * eval.c (Fprogn): Check that BODY is a proper list.
 
        Tune UNEVALLED functions by using XCAR instead of Fcar, etc.
index ef75ed6d176b76eb2ba747f394e1c47fbb192003..522a0e6a30d4fb06b8621e0873bdb9ea24f39993 100644 (file)
@@ -6041,7 +6041,7 @@ init_display (void)
 #ifdef HAVE_X11
       Vwindow_system_version = make_number (11);
 #endif
-#ifdef GNU_LINUX
+#ifdef USE_NCURSES
       /* In some versions of ncurses,
         tputs crashes if we have not called tgetent.
         So call tgetent.  */