Группа :: Редакторы
Пакет: emacs22
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: emacs-22.0.50-alt-system.patch
Adhere to ALT conventions.
imz@altlinux.ru, 2002 Jul 20.
diff -Naur emacs.orig/configure.in emacs/configure.in
--- emacs.orig/configure.in 2005-09-03 00:41:53 +0600
+++ emacs/configure.in 2005-09-03 00:45:57 +0600
@@ -2457,7 +2457,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
diff -Naur emacs.orig/src/s/gnu-linux.h emacs/src/s/gnu-linux.h
--- emacs.orig/src/s/gnu-linux.h 2005-09-03 00:41:55 +0600
+++ emacs/src/s/gnu-linux.h 2005-09-03 00:43:56 +0600
@@ -141,7 +141,7 @@
correct logic. -- fx */
#if !(defined (HAVE_LIBMAIL) && defined (HAVE_MAILLOCK_H))
-#define MAIL_USE_FLOCK
+#define MAIL_USE_LOCKF
#endif
/* Define CLASH_DETECTION if you want lock files to be written
@@ -273,7 +273,7 @@
#ifdef HAVE_LIBNCURSES
#define TERMINFO
-#define LIBS_TERMCAP -lncurses
+#define LIBS_TERMCAP -ltinfo
#endif
#define HAVE_SYSVIPC