aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-03-12 11:34:27 -0500
committerEli Zaretskii2010-03-12 11:34:27 -0500
commit6da23aaa4fff0063dd880aee9c45544bd2488029 (patch)
treeae9a34e6d76768cfdf4b10fdb644bfffd937241d /src
parent92e0131af775092ff889fb12969c06b728324f3b (diff)
downloademacs-6da23aaa4fff0063dd880aee9c45544bd2488029.tar.gz
emacs-6da23aaa4fff0063dd880aee9c45544bd2488029.zip
Don't use termcap.c on Posix platforms, only on MS-DOS.
configure.in <AC_CHECK_HEADERS>: Remove termcap.h. configure: Regenerated. src/Makefilie.in (termcapobj): Move termcap.o from here... (MSDOS_OBJ): ...to here. (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is now identical to when LIBS_TERMCAP is defined. src/term.c: Remove (ifdef'ed away) inclusion of termcap.h. src/cm.c: Remove (ifdef'ed away) inclusion of termcap.h. src/config.in: Regenerated.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog13
-rw-r--r--src/cm.c5
-rw-r--r--src/config.in68
-rw-r--r--src/term.c5
4 files changed, 47 insertions, 44 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 24300676379..5f9e246ff60 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,16 @@
12010-03-12 Eli Zaretskii <eliz@gnu.org>
2
3 * Makefilie.in (termcapobj): Move termcap.o from here...
4 (MSDOS_OBJ): ...to here.
5 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
6 now identical to when LIBS_TERMCAP is defined.
7
8 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
9
10 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
11
12 * config.in: Regenerated.
13
12010-03-10 Chong Yidong <cyd@stupidchicken.com> 142010-03-10 Chong Yidong <cyd@stupidchicken.com>
2 15
3 * Branch for 23.2. 16 * Branch for 23.2.
diff --git a/src/cm.c b/src/cm.c
index f6bf37cb7db..73d3791074e 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -33,13 +33,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
33/* For now, don't try to include termcap.h. On some systems, 33/* For now, don't try to include termcap.h. On some systems,
34 configure finds a non-standard termcap.h that the main build 34 configure finds a non-standard termcap.h that the main build
35 won't find. */ 35 won't find. */
36
37#if defined HAVE_TERMCAP_H && 0
38#include <termcap.h>
39#else
40extern void tputs P_ ((const char *, int, int (*)(int))); 36extern void tputs P_ ((const char *, int, int (*)(int)));
41extern char *tgoto P_ ((const char *, int, int)); 37extern char *tgoto P_ ((const char *, int, int));
42#endif
43 38
44#define BIG 9999 /* 9999 good on VAXen. For 16 bit machines 39#define BIG 9999 /* 9999 good on VAXen. For 16 bit machines
45 use about 2000.... */ 40 use about 2000.... */
diff --git a/src/config.in b/src/config.in
index b321c586a4a..3a3ae09a084 100644
--- a/src/config.in
+++ b/src/config.in
@@ -319,10 +319,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
319/* Define to 1 if you have the <kerberos/krb.h> header file. */ 319/* Define to 1 if you have the <kerberos/krb.h> header file. */
320#undef HAVE_KERBEROS_KRB_H 320#undef HAVE_KERBEROS_KRB_H
321 321
322/* Define to 1 if `e_text' is member of `krb5_error'. */ 322/* Define to 1 if `krb5_error' is a member of `e_text'. */
323#undef HAVE_KRB5_ERROR_E_TEXT 323#undef HAVE_KRB5_ERROR_E_TEXT
324 324
325/* Define to 1 if `text' is member of `krb5_error'. */ 325/* Define to 1 if `krb5_error' is a member of `text'. */
326#undef HAVE_KRB5_ERROR_TEXT 326#undef HAVE_KRB5_ERROR_TEXT
327 327
328/* Define to 1 if you have the <krb5.h> header file. */ 328/* Define to 1 if you have the <krb5.h> header file. */
@@ -616,25 +616,25 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
616/* Define to 1 if you have the `strsignal' function. */ 616/* Define to 1 if you have the `strsignal' function. */
617#undef HAVE_STRSIGNAL 617#undef HAVE_STRSIGNAL
618 618
619/* Define to 1 if `ifr_addr' is member of `struct ifreq'. */ 619/* Define to 1 if `struct ifreq' is a member of `ifr_addr'. */
620#undef HAVE_STRUCT_IFREQ_IFR_ADDR 620#undef HAVE_STRUCT_IFREQ_IFR_ADDR
621 621
622/* Define to 1 if `ifr_broadaddr' is member of `struct ifreq'. */ 622/* Define to 1 if `struct ifreq' is a member of `ifr_broadaddr'. */
623#undef HAVE_STRUCT_IFREQ_IFR_BROADADDR 623#undef HAVE_STRUCT_IFREQ_IFR_BROADADDR
624 624
625/* Define to 1 if `ifr_flags' is member of `struct ifreq'. */ 625/* Define to 1 if `struct ifreq' is a member of `ifr_flags'. */
626#undef HAVE_STRUCT_IFREQ_IFR_FLAGS 626#undef HAVE_STRUCT_IFREQ_IFR_FLAGS
627 627
628/* Define to 1 if `ifr_hwaddr' is member of `struct ifreq'. */ 628/* Define to 1 if `struct ifreq' is a member of `ifr_hwaddr'. */
629#undef HAVE_STRUCT_IFREQ_IFR_HWADDR 629#undef HAVE_STRUCT_IFREQ_IFR_HWADDR
630 630
631/* Define to 1 if `ifr_netmask' is member of `struct ifreq'. */ 631/* Define to 1 if `struct ifreq' is a member of `ifr_netmask'. */
632#undef HAVE_STRUCT_IFREQ_IFR_NETMASK 632#undef HAVE_STRUCT_IFREQ_IFR_NETMASK
633 633
634/* Define to 1 if `n_un.n_name' is member of `struct nlist'. */ 634/* Define to 1 if `struct nlist' is a member of `n_un.n_name'. */
635#undef HAVE_STRUCT_NLIST_N_UN_N_NAME 635#undef HAVE_STRUCT_NLIST_N_UN_N_NAME
636 636
637/* Define to 1 if `tm_zone' is member of `struct tm'. */ 637/* Define to 1 if `struct tm' is a member of `tm_zone'. */
638#undef HAVE_STRUCT_TM_TM_ZONE 638#undef HAVE_STRUCT_TM_TM_ZONE
639 639
640/* Define to 1 if `struct utimbuf' is declared by <utime.h>. */ 640/* Define to 1 if `struct utimbuf' is declared by <utime.h>. */
@@ -697,9 +697,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
697/* Define to 1 if you have the <sys/_mbstate_t.h> header file. */ 697/* Define to 1 if you have the <sys/_mbstate_t.h> header file. */
698#undef HAVE_SYS__MBSTATE_T_H 698#undef HAVE_SYS__MBSTATE_T_H
699 699
700/* Define to 1 if you have the <termcap.h> header file. */
701#undef HAVE_TERMCAP_H
702
703/* Define to 1 if you have the <termios.h> header file. */ 700/* Define to 1 if you have the <termios.h> header file. */
704#undef HAVE_TERMIOS_H 701#undef HAVE_TERMIOS_H
705 702
@@ -858,6 +855,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
858/* Define to the one symbol short name of this package. */ 855/* Define to the one symbol short name of this package. */
859#undef PACKAGE_TARNAME 856#undef PACKAGE_TARNAME
860 857
858/* Define to the home page for this package. */
859#undef PACKAGE_URL
860
861/* Define to the version of this package. */ 861/* Define to the version of this package. */
862#undef PACKAGE_VERSION 862#undef PACKAGE_VERSION
863 863
@@ -917,6 +917,28 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
917/* Define to 1 if using the Motif X toolkit. */ 917/* Define to 1 if using the Motif X toolkit. */
918#undef USE_MOTIF 918#undef USE_MOTIF
919 919
920/* Enable extensions on AIX 3, Interix. */
921#ifndef _ALL_SOURCE
922# undef _ALL_SOURCE
923#endif
924/* Enable GNU extensions on systems that have them. */
925#ifndef _GNU_SOURCE
926# undef _GNU_SOURCE
927#endif
928/* Enable threading extensions on Solaris. */
929#ifndef _POSIX_PTHREAD_SEMANTICS
930# undef _POSIX_PTHREAD_SEMANTICS
931#endif
932/* Enable extensions on HP NonStop. */
933#ifndef _TANDEM_SOURCE
934# undef _TANDEM_SOURCE
935#endif
936/* Enable general extensions on Solaris. */
937#ifndef __EXTENSIONS__
938# undef __EXTENSIONS__
939#endif
940
941
920/* Define to 1 if we should use toolkit scroll bars. */ 942/* Define to 1 if we should use toolkit scroll bars. */
921#undef USE_TOOLKIT_SCROLL_BARS 943#undef USE_TOOLKIT_SCROLL_BARS
922 944
@@ -952,28 +974,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
952/* Define to 1 if you need to in order for `stat' and other things to work. */ 974/* Define to 1 if you need to in order for `stat' and other things to work. */
953#undef _POSIX_SOURCE 975#undef _POSIX_SOURCE
954 976
955/* Enable extensions on AIX 3, Interix. */
956#ifndef _ALL_SOURCE
957# undef _ALL_SOURCE
958#endif
959/* Enable GNU extensions on systems that have them. */
960#ifndef _GNU_SOURCE
961# undef _GNU_SOURCE
962#endif
963/* Enable threading extensions on Solaris. */
964#ifndef _POSIX_PTHREAD_SEMANTICS
965# undef _POSIX_PTHREAD_SEMANTICS
966#endif
967/* Enable extensions on HP NonStop. */
968#ifndef _TANDEM_SOURCE
969# undef _TANDEM_SOURCE
970#endif
971/* Enable general extensions on Solaris. */
972#ifndef __EXTENSIONS__
973# undef __EXTENSIONS__
974#endif
975
976
977/* Define to rpl_ if the getopt replacement functions and variables should be 977/* Define to rpl_ if the getopt replacement functions and variables should be
978 used. */ 978 used. */
979#undef __GETOPT_PREFIX 979#undef __GETOPT_PREFIX
diff --git a/src/term.c b/src/term.c
index 7adaeeac1ae..89b39767f56 100644
--- a/src/term.c
+++ b/src/term.c
@@ -66,15 +66,10 @@ static int been_here = -1;
66/* For now, don't try to include termcap.h. On some systems, 66/* For now, don't try to include termcap.h. On some systems,
67 configure finds a non-standard termcap.h that the main build 67 configure finds a non-standard termcap.h that the main build
68 won't find. */ 68 won't find. */
69
70#if defined HAVE_TERMCAP_H && 0
71#include <termcap.h>
72#else
73extern void tputs P_ ((const char *, int, int (*)(int))); 69extern void tputs P_ ((const char *, int, int (*)(int)));
74extern int tgetent P_ ((char *, const char *)); 70extern int tgetent P_ ((char *, const char *));
75extern int tgetflag P_ ((char *id)); 71extern int tgetflag P_ ((char *id));
76extern int tgetnum P_ ((char *id)); 72extern int tgetnum P_ ((char *id));
77#endif
78 73
79#include "cm.h" 74#include "cm.h"
80#ifdef HAVE_X_WINDOWS 75#ifdef HAVE_X_WINDOWS