aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-05-07 19:05:24 -0700
committerGlenn Morris2010-05-07 19:05:24 -0700
commit40c178792eb1464abede4fd86d3bb394f49e3131 (patch)
tree886356df27d092af16683c8592ca23d2963fd39d
parentba5bf5f0f9d661602397cd690d796940b17173ba (diff)
downloademacs-40c178792eb1464abede4fd86d3bb394f49e3131.tar.gz
emacs-40c178792eb1464abede4fd86d3bb394f49e3131.zip
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
* configure.in (HAVE_LIBNCURSES): New local variable. (TERMINFO, LIBS_TERMCAP, TERMCAP_OBJ): New output variables, replacing cpp in src/s/*.h and src/Makefile.in. * src/Makefile.in (LIBS_TERMCAP): Set with configure, not cpp. (TERMCAP_OBJ): New, set by configure, replacing termcapobj. (termcapobj): Replace with TERMCAP_OBJ. (otherobj): Use $TERMCAP_OBJ instead of $termcapobj. (LIBES): Use LIBS_TERMCAP as a variable. * src/s/freebsd.h (osreldate.h): No longer include, since this file does not use __FreeBSD_version any more. * srs/s/aix4-2.h (TERMINFO): * srs/s/cygwin.h (TERMINFO): * srs/s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]: * srs/s/freebsd.h (TERMINFO, LIBS_TERMCAP): * srs/s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]: * srs/s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]: * srs/s/hpux10-20.h (TERMINFO, LIBS_TERMCAP): * srs/s/irix6-5.h (TERMINFO): * srs/s/netbsd.h (LIBS_TERMCAP): * srs/s/openbsd.h (TERMINFO, LIBS_TERMCAP): * srs/s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]: * srs/s/usg5-4.h (TERMINFO): Move to configure. * msdos/sed1v2.inp (LIBS_TERMCAP): Edit to empty. (TERMCAP_OBJ): Edit to tparam.o. * admin/CPP-DEFINES (LIBS_TERMCAP, TERMINFO): Remove.
-rw-r--r--ChangeLog6
-rw-r--r--configure.in79
-rw-r--r--msdos/ChangeLog5
-rw-r--r--msdos/sed1v2.inp2
-rw-r--r--src/ChangeLog25
-rw-r--r--src/Makefile.in24
-rw-r--r--src/s/aix4-2.h5
-rw-r--r--src/s/cygwin.h4
-rw-r--r--src/s/darwin.h10
-rw-r--r--src/s/freebsd.h8
-rw-r--r--src/s/gnu-linux.h5
-rw-r--r--src/s/gnu.h7
-rw-r--r--src/s/hpux10-20.h9
-rw-r--r--src/s/irix6-5.h5
-rw-r--r--src/s/netbsd.h2
-rw-r--r--src/s/openbsd.h8
-rw-r--r--src/s/sol2-6.h12
-rw-r--r--src/s/usg5-4.h9
18 files changed, 127 insertions, 98 deletions
diff --git a/ChangeLog b/ChangeLog
index 9efc549f5a2..15f28841fd2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
12010-05-08 Glenn Morris <rgm@gnu.org>
2
3 * configure.in (HAVE_LIBNCURSES): New local variable.
4 (TERMINFO, LIBS_TERMCAP, TERMCAP_OBJ): New output variables,
5 replacing cpp in src/s/*.h and src/Makefile.in.
6
12010-05-07 Stefan Monnier <monnier@iro.umontreal.ca> 72010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * configure.in: Add tests for `isnan' and `copysign'. 9 * configure.in: Add tests for `isnan' and `copysign'.
diff --git a/configure.in b/configure.in
index 6b8a2fdbc47..d55a1697598 100644
--- a/configure.in
+++ b/configure.in
@@ -1094,7 +1094,7 @@ esac
1094AC_SUBST(LIB_MATH) 1094AC_SUBST(LIB_MATH)
1095AC_SUBST(START_FILES) 1095AC_SUBST(START_FILES)
1096 1096
1097dnl This function defintion taken from Gnome 2.0 1097dnl This function definition taken from Gnome 2.0
1098dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) 1098dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
1099dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page 1099dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
1100dnl also defines GSTUFF_PKG_ERRORS on error 1100dnl also defines GSTUFF_PKG_ERRORS on error
@@ -2527,7 +2527,7 @@ AC_CHECK_FUNCS(getpt)
2527# That is because we have not set up to link ncurses in lib-src. 2527# That is because we have not set up to link ncurses in lib-src.
2528# It's better to believe a function is not available 2528# It's better to believe a function is not available
2529# than to expect to find it in ncurses. 2529# than to expect to find it in ncurses.
2530# Also we need tputs and frieds to be able to build at all. 2530# Also we need tputs and friends to be able to build at all.
2531have_tputs_et_al=true 2531have_tputs_et_al=true
2532AC_SEARCH_LIBS(tputs, [ncurses terminfo termcap], , have_tputs_et_al=false) 2532AC_SEARCH_LIBS(tputs, [ncurses terminfo termcap], , have_tputs_et_al=false)
2533if test "$have_tputs_et_al" != true; then 2533if test "$have_tputs_et_al" != true; then
@@ -2538,9 +2538,82 @@ fi
2538# Must define this when any termcap library is found. 2538# Must define this when any termcap library is found.
2539AC_DEFINE(HAVE_LIBNCURSES, 1, 2539AC_DEFINE(HAVE_LIBNCURSES, 1,
2540 [Define to 1 if you have the `ncurses' library (-lncurses).]) 2540 [Define to 1 if you have the `ncurses' library (-lncurses).])
2541## FIXME This was the cpp logic, but I am not sure it is right.
2542## The above test has not necessarily found libncurses.
2543HAVE_LIBNCURSES=yes
2544
2545## Use terminfo instead of termcap?
2546## Note only system files NOT using terminfo are:
2547## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
2548## darwin|gnu without ncurses.
2549TERMINFO=no
2550LIBS_TERMCAP=
2551case "$opsys" in
2552 ## cygwin: Fewer environment variables to go wrong, more terminal types.
2553 ## hpux10-20: Use the system provided termcap(3) library.
2554 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
2555 ## is necessary. Otherwise Emacs dumps core when run -nw.
2556 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
2557
2558 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
2559 ## The ncurses library has been moved out of the System framework in
2560 ## Mac OS X 10.2. So if configure detects it, set the command-line
2561 ## option to use it.
2562 darwin|gnu*)
2563 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
2564 if test "x$HAVE_LIBNCURSES" = "xyes"; then
2565 TERMINFO=yes
2566 LIBS_TERMCAP="-lncurses"
2567 fi
2568 ;;
2541 2569
2542# Do we have res_init, for detecting changes in /etc/resolv.conf? 2570 freebsd)
2571 AC_MSG_CHECKING([whether FreeBSD is new enough to use terminfo])
2572 AC_CACHE_VAL(emacs_cv_freebsd_terminfo,
2573 [AC_TRY_LINK([#include <osreldate.h>],
2574[#if __FreeBSD_version < 400000
2575fail;
2576#endif
2577], emacs_cv_freebsd_terminfo=yes, emacs_cv_freebsd_terminfo=no)])
2543 2578
2579 AC_MSG_RESULT($emacs_cv_freebsd_terminfo)
2580
2581 if test $emacs_cv_freebsd_terminfo = yes; then
2582 TERMINFO=yes
2583 LIBS_TERMCAP="-lncurses"
2584 else
2585 LIBS_TERMCAP="-ltermcap"
2586 fi
2587 ;;
2588
2589esac
2590
2591case "$opsys" in
2592 ## hpux: Make sure we get select from libc rather than from libcurses
2593 ## because libcurses on HPUX 10.10 has a broken version of select.
2594 ## We used to use -lc -lcurses, but this may be cleaner.
2595 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
2596
2597 openbsd) LIBS_TERMCAP="-lncurses" ;;
2598
2599 ## Must use system termcap, if we use any termcap. It does special things.
2600 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
2601esac
2602
2603TERMCAP_OBJ=tparam.o
2604if test $TERMINFO = yes; then
2605 AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.])
2606
2607 ## Default used to be -ltermcap. Add a case above if need something else.
2608 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
2609
2610 TERMCAP_OBJ=terminfo.o
2611fi
2612AC_SUBST(LIBS_TERMCAP)
2613AC_SUBST(TERMCAP_OBJ)
2614
2615
2616# Do we have res_init, for detecting changes in /etc/resolv.conf?
2544resolv=no 2617resolv=no
2545AC_TRY_LINK([#include <netinet/in.h> 2618AC_TRY_LINK([#include <netinet/in.h>
2546#include <arpa/nameser.h> 2619#include <arpa/nameser.h>
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index 5760c7bc582..0a21dbe01f7 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,3 +1,8 @@
12010-05-08 Glenn Morris <rgm@gnu.org>
2
3 * sed1v2.inp (LIBS_TERMCAP): Edit to empty.
4 (TERMCAP_OBJ): Edit to tparam.o.
5
12010-05-07 Eli Zaretskii <eliz@gnu.org> 62010-05-07 Eli Zaretskii <eliz@gnu.org>
2 7
3 Fix breakage due to autoconfiscation of Makefile.in files. 8 Fix breakage due to autoconfiscation of Makefile.in files.
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index f9c2398c99b..a3ad070c416 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -62,6 +62,8 @@ s/@LIB_MATH@/-lm/
62/^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@// 62/^GCONF_CFLAGS *=/s/@GCONF_CFLAGS@//
63/^GCONF_LIBS *=/s/@GCONF_LIBS@// 63/^GCONF_LIBS *=/s/@GCONF_LIBS@//
64/^GTK_OBJ *=/s/@GTK_OBJ@// 64/^GTK_OBJ *=/s/@GTK_OBJ@//
65/^LIBS_TERMCAP *=/s/@LIBS_TERMCAP@//
66/^TERMCAP_OBJ *=/s/@TERMCAP_OBJ@/tparam.o/
65/^LIBXMU *=/s/@LIBXMU@// 67/^LIBXMU *=/s/@LIBXMU@//
66/^LIBXSM *=/s/@LIBXSM@// 68/^LIBXSM *=/s/@LIBXSM@//
67/^LIBXTR6 *=/s/@LIBXTR6@// 69/^LIBXTR6 *=/s/@LIBXTR6@//
diff --git a/src/ChangeLog b/src/ChangeLog
index 02659063c75..32044fc167b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,28 @@
12010-05-08 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
4 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
5 (termcapobj): Replace with TERMCAP_OBJ.
6 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
7 (LIBES): Use LIBS_TERMCAP as a variable.
8
9 * s/freebsd.h (osreldate.h): No longer include, since this file
10 does not use __FreeBSD_version any more.
11
12 * s/aix4-2.h (TERMINFO):
13 * s/cygwin.h (TERMINFO):
14 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
15 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
16 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
17 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
18 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
19 * s/irix6-5.h (TERMINFO):
20 * s/netbsd.h (LIBS_TERMCAP):
21 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
22 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
23 * s/usg5-4.h (TERMINFO):
24 Move to configure.
25
12010-05-07 Stefan Monnier <monnier@iro.umontreal.ca> 262010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
2 27
3 * eval.c (unbind_to): Don't unbind a local binding into the global 28 * eval.c (unbind_to): Don't unbind a local binding into the global
diff --git a/src/Makefile.in b/src/Makefile.in
index 43a1cae02dc..40ede77078b 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -105,6 +105,11 @@ GCONF_LIBS = @GCONF_LIBS@
105 105
106GTK_OBJ=@GTK_OBJ@ 106GTK_OBJ=@GTK_OBJ@
107 107
108## -ltermcap, or -lncurses, or -lcurses, or "".
109LIBS_TERMCAP=@LIBS_TERMCAP@
110## terminfo.o if TERMINFO, else tparam.o.
111TERMCAP_OBJ=@TERMCAP_OBJ@
112
108LIBXMU=@LIBXMU@ 113LIBXMU=@LIBXMU@
109 114
110LIBXSM=@LIBXSM@ 115LIBXSM=@LIBXSM@
@@ -368,21 +373,6 @@ SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
368 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \ 373 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
369 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_DRIVERS) 374 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_DRIVERS)
370 375
371
372#ifdef TERMINFO
373/* Used to be -ltermcap here. If your machine needs that,
374 define LIBS_TERMCAP in the m/MACHINE.h file. */
375#ifndef LIBS_TERMCAP
376#define LIBS_TERMCAP -lcurses
377#endif /* LIBS_TERMCAP */
378termcapobj = terminfo.o
379#else /* ! defined (TERMINFO) */
380#ifndef LIBS_TERMCAP
381#define LIBS_TERMCAP
382#endif /* LIBS_TERMCAP */
383termcapobj = tparam.o
384#endif /* ! defined (TERMINFO) */
385
386gmallocobj = 376gmallocobj =
387rallocobj = 377rallocobj =
388vmlimitobj = 378vmlimitobj =
@@ -404,7 +394,7 @@ PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@
404POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ 394POST_ALLOC_OBJ=@POST_ALLOC_OBJ@
405 395
406/* List of object files that make-docfile should not be told about. */ 396/* List of object files that make-docfile should not be told about. */
407otherobj= $(termcapobj) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ 397otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \
408 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) 398 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS)
409 399
410#ifdef HAVE_MOUSE 400#ifdef HAVE_MOUSE
@@ -667,7 +657,7 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \
667 with GCC, we might need gnulib again after them. */ 657 with GCC, we might need gnulib again after them. */
668 658
669LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ 659LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \
670 $(RSVG_LIBS) $(DBUS_LIBS) @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM LIBS_TERMCAP \ 660 $(RSVG_LIBS) $(DBUS_LIBS) @LIBGPM@ @LIBRESOLV@ LIBS_SYSTEM $(LIBS_TERMCAP) \
671 $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ 661 $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \
672 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ 662 @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
673 $(GNULIB_VAR) @LIB_MATH@ @LIB_STANDARD@ $(GNULIB_VAR) 663 $(GNULIB_VAR) @LIB_MATH@ @LIB_STANDARD@ $(GNULIB_VAR)
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index 70bf299fae1..eb2003d9489 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -96,11 +96,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
96#define LIBS_SYSTEM -lrts -lIM -liconv 96#define LIBS_SYSTEM -lrts -lIM -liconv
97#endif 97#endif
98 98
99
100/* Use terminfo instead of termcap. */
101
102#define TERMINFO
103
104/* The following definition seems to be needed in AIX version 3.1.6.8. 99/* The following definition seems to be needed in AIX version 3.1.6.8.
105 It may not have been needed in certain earlier versions. */ 100 It may not have been needed in certain earlier versions. */
106#define HAVE_TCATTR 101#define HAVE_TCATTR
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index 1b451456dd4..296b1970a97 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -106,10 +106,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
106#define UNEXEC unexcw.o 106#define UNEXEC unexcw.o
107#define LINKER $(CC) 107#define LINKER $(CC)
108 108
109/* Use terminfo instead of termcap. Fewer environment variables to
110 go wrong, more terminal types. */
111#define TERMINFO
112
113#define HAVE_SOCKETS 109#define HAVE_SOCKETS
114 110
115/* vfork() interacts badly with setsid(), causing ptys to fail to 111/* vfork() interacts badly with setsid(), causing ptys to fail to
diff --git a/src/s/darwin.h b/src/s/darwin.h
index 0b7c99a4fcf..a3dfe06e83d 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -179,16 +179,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
179#undef HAVE_POSIX_MEMALIGN 179#undef HAVE_POSIX_MEMALIGN
180#endif 180#endif
181 181
182/* The ncurses library has been moved out of the System framework in
183 Mac OS X 10.2. So if ./configure detects it, set the command-line
184 option to use it. */
185#ifdef HAVE_LIBNCURSES
186#define LIBS_TERMCAP -lncurses
187/* This prevents crashes when running Emacs in Terminal.app under
188 10.2. */
189#define TERMINFO
190#endif
191
192/* Link this program just by running cc. */ 182/* Link this program just by running cc. */
193#define ORDINARY_LINK 183#define ORDINARY_LINK
194 184
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 1e79e1d3581..50fdf65a1bc 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -22,8 +22,6 @@ GNU General Public License for more details.
22You should have received a copy of the GNU General Public License 22You should have received a copy of the GNU General Public License
23along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 23along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24 24
25#include <osreldate.h>
26
27/* Get most of the stuff from bsd-common */ 25/* Get most of the stuff from bsd-common */
28#include "bsd-common.h" 26#include "bsd-common.h"
29 27
@@ -33,12 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
33#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) 31#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
34 32
35#define LIBS_SYSTEM -lutil 33#define LIBS_SYSTEM -lutil
36#if __FreeBSD_version < 400000
37#define LIBS_TERMCAP -ltermcap
38#else
39#define TERMINFO
40#define LIBS_TERMCAP -lncurses
41#endif
42 34
43#undef LIB_GCC 35#undef LIB_GCC
44#define LIB_GCC 36#define LIB_GCC
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index f3a06990ed3..d010fc72615 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -180,11 +180,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
180#undef LIB_GCC 180#undef LIB_GCC
181#define LIB_GCC 181#define LIB_GCC
182 182
183#ifdef HAVE_LIBNCURSES
184#define TERMINFO
185#define LIBS_TERMCAP -lncurses
186#endif
187
188#define UNEXEC unexelf.o 183#define UNEXEC unexelf.o
189 184
190/* This is to work around mysterious gcc failures in some system versions. 185/* This is to work around mysterious gcc failures in some system versions.
diff --git a/src/s/gnu.h b/src/s/gnu.h
index bf68cabe051..9f6fe52a5de 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -28,13 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28 28
29#define SIGNALS_VIA_CHARACTERS 29#define SIGNALS_VIA_CHARACTERS
30 30
31/* Tell Emacs that we are a terminfo based system; disable the use
32 of local termcap. (GNU uses ncurses.) */
33#ifdef HAVE_LIBNCURSES
34#define TERMINFO
35#define LIBS_TERMCAP -lncurses
36#endif
37
38/* Use mmap directly for allocating larger buffers. */ 31/* Use mmap directly for allocating larger buffers. */
39#ifdef DOUG_LEA_MALLOC 32#ifdef DOUG_LEA_MALLOC
40#undef REL_ALLOC 33#undef REL_ALLOC
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index 50fe0e63aea..8dc2f4d97df 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -77,9 +77,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
77 77
78/* Special hacks needed to make Emacs run on this system. */ 78/* Special hacks needed to make Emacs run on this system. */
79 79
80/* Use the system provided termcap(3) library */
81#define TERMINFO
82
83/* In hpux, the symbol SIGIO is defined, but the feature 80/* In hpux, the symbol SIGIO is defined, but the feature
84 doesn't work in the way Emacs needs it to. */ 81 doesn't work in the way Emacs needs it to. */
85 82
@@ -140,16 +137,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
140#define HAVE_XRMSETDATABASE 137#define HAVE_XRMSETDATABASE
141#endif 138#endif
142 139
143/* Make sure we get select from libc rather than from libcurses
144 because libcurses on HPUX 10.10 has a broken version of select.
145 We used to use -lc -lcurses, but this may be cleaner. */
146#define LIBS_TERMCAP -ltermcap
147
148/* 2000-11-21: Temporarily disable Unix 98 large file support found by 140/* 2000-11-21: Temporarily disable Unix 98 large file support found by
149 configure. It fails on HPUX 11, at least, because it enables 141 configure. It fails on HPUX 11, at least, because it enables
150 header sections which lose when `static' is defined away, as it is 142 header sections which lose when `static' is defined away, as it is
151 on HP-UX. (You get duplicate symbol errors on linking). */ 143 on HP-UX. (You get duplicate symbol errors on linking). */
152
153#undef _FILE_OFFSET_BITS 144#undef _FILE_OFFSET_BITS
154 145
155/* Define NO_REMAP if memory segmentation makes it not work well 146/* Define NO_REMAP if memory segmentation makes it not work well
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index 43a98166d91..3614eab5a6c 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -40,13 +40,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
40/* Make process_send_signal work by "typing" a signal character on the pty. */ 40/* Make process_send_signal work by "typing" a signal character on the pty. */
41#define SIGNALS_VIA_CHARACTERS 41#define SIGNALS_VIA_CHARACTERS
42 42
43/* Use terminfo instead of termcap. */
44
45#define TERMINFO
46
47/* Letter to use in finding device name of first pty, 43/* Letter to use in finding device name of first pty,
48 if system supports pty's. 'a' means it is /dev/ptya0 */ 44 if system supports pty's. 'a' means it is /dev/ptya0 */
49
50#undef FIRST_PTY_LETTER 45#undef FIRST_PTY_LETTER
51#define FIRST_PTY_LETTER 'q' 46#define FIRST_PTY_LETTER 'q'
52 47
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index a92e8ce56ee..fa6d1141c8c 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -26,8 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26 26
27#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) 27#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
28 28
29#define LIBS_TERMCAP -ltermcap
30
31#undef LIB_GCC 29#undef LIB_GCC
32#define LIB_GCC 30#define LIB_GCC
33 31
diff --git a/src/s/openbsd.h b/src/s/openbsd.h
index b5566a6d35e..d9d60e3b868 100644
--- a/src/s/openbsd.h
+++ b/src/s/openbsd.h
@@ -1,13 +1,7 @@
1/* System file for openbsd. */ 1/* System file for openbsd. */
2 2
3/* Mostly the same as NetBSD. */ 3/* The same as NetBSD. Note there are differences in configure. */
4#include "netbsd.h" 4#include "netbsd.h"
5 5
6/* David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
7 is necessary. Otherwise Emacs dumps core when run -nw. */
8#define TERMINFO
9#undef LIBS_TERMCAP
10#define LIBS_TERMCAP -lncurses
11
12/* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 6/* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2
13 (do not change this comment) */ 7 (do not change this comment) */
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h
index c05387d47f4..78d2bfb3b6b 100644
--- a/src/s/sol2-6.h
+++ b/src/s/sol2-6.h
@@ -1,7 +1,7 @@
1/* Definitions file for GNU Emacs running on Solaris 2.6. 1/* Definitions file for GNU Emacs running on Solaris 2.6.
2 2
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 3Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4 2008, 2009, 2010 Free Software Foundation, Inc. 4 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
7 7
@@ -38,16 +38,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
38 38
39/* inoue@ainet.or.jp says Solaris has a bug related to X11R6-style 39/* inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
40 XIM support. */ 40 XIM support. */
41
42#define INHIBIT_X11R6_XIM 41#define INHIBIT_X11R6_XIM
43 42
44/* Must use the system's termcap, if we use any termcap.
45 It does special things. */
46
47#ifndef TERMINFO
48#define LIBS_TERMCAP -ltermcap
49#endif
50
51/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock 43/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
52 rather than sighold/sigrelse, which appear to be BSD4.1 specific. 44 rather than sighold/sigrelse, which appear to be BSD4.1 specific.
53 It may also be appropriate for SVR4.x 45 It may also be appropriate for SVR4.x
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h
index 3065156ad70..3926ae08869 100644
--- a/src/s/usg5-4.h
+++ b/src/s/usg5-4.h
@@ -1,6 +1,7 @@
1/* Definitions file for GNU Emacs running on AT&T's System V Release 4 1/* Definitions file for GNU Emacs running on AT&T's System V Release 4
2 Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2
3 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 3Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 5
5This file is part of GNU Emacs. 6This file is part of GNU Emacs.
6 7
@@ -75,10 +76,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
75#define rindex strrchr 76#define rindex strrchr
76#endif /* ! defined (HAVE_RINDEX) */ 77#endif /* ! defined (HAVE_RINDEX) */
77 78
78/* Use terminfo instead of termcap. */
79
80#define TERMINFO
81
82 79
83/* The docs for system V/386 suggest v.3 has sigpause, 80/* The docs for system V/386 suggest v.3 has sigpause,
84 so let's give it a try. */ 81 so let's give it a try. */