Группа :: Редакторы
Пакет: emacs21
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: emacs-21.2-alt-system.patch
Adhere to ALT conventions.
imz@altlinux.ru, 2002 Jul 20.
--- emacs-21.2.orig/src/s/gnu-linux.h 2001-09-28 19:50:04 +0400
+++ emacs-21.2/src/s/gnu-linux.h 2002-07-20 01:39:41 +0400
@@ -130,7 +130,7 @@
programs. I assume that most people are using newer mailers that
have heard of flock. Change this if you need to. */
-#define MAIL_USE_FLOCK
+#define MAIL_USE_LOCKF
/* Define CLASH_DETECTION if you want lock files to be written
so that Emacs can tell instantly when you try to modify
@@ -258,7 +258,7 @@
#ifdef HAVE_LIBNCURSES
#define TERMINFO
-#define LIBS_TERMCAP -lncurses
+#define LIBS_TERMCAP -ltinfo
#endif
#define HAVE_SYSVIPC
--- emacs-21.2/configure.in.tinfo 2002-07-20 02:34:21 +0400
+++ emacs-21.2/configure.in 2002-07-20 04:18:21 +0400
@@ -1966,7 +1966,12 @@
# That is because we have not set up to link ncurses in lib-src.
# It's better to believe a function is not available
# than to expect to find it in ncurses.
-AC_CHECK_LIB(ncurses, tparm)
+AC_CHECK_LIB(tinfo, tparm, HAVE_TINFO=yes)
+if test "${HAVE_TINFO}" = "yes"; then
+ # That's funny: we check for tinfo, but define HAVE_LIBNCURSES:
+ # simply I don't want to s/NCURSES/TINFO/ in all the sources.
+ AC_DEFINE(HAVE_LIBNCURSES)
+fi
# Do we need the Hesiod library to provide the support routines?
if test "$with_hesiod" = yes ; then