annotate src/s/gnu-linux.h @ 27135:27b3c145fd73

Add an entry for IDLWAVE.
author Eli Zaretskii <eliz@gnu.org>
date Tue, 04 Jan 2000 09:53:00 +0000
parents 94eb27ce53aa
children 3a341ccd370c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15478
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
1 /* This file is the configuration file for Linux-based GNU systems
26090
63fd40a97a75 s/usg5-4.h:
Paul Eggert <eggert@twinsun.com>
parents: 25032
diff changeset
2 Copyright (C) 1985, 86, 92, 94, 96, 1999 Free Software Foundation, Inc.
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 This file is part of GNU Emacs.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 any later version.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 GNU General Public License for more details.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
14186
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 14137
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 14137
diff changeset
19 Boston, MA 02111-1307, USA. */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20
2940
3c7c3bd60e4f * s/linux.h: Remove copyright notices by Michael K. Johnson and
Jim Blandy <jimb@redhat.com>
parents: 2916
diff changeset
21 /* This file was put together by Michael K. Johnson and Rik Faith. */
3c7c3bd60e4f * s/linux.h: Remove copyright notices by Michael K. Johnson and
Jim Blandy <jimb@redhat.com>
parents: 2916
diff changeset
22
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 * Define symbols to identify the version of Unix this is.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26 * Define all the symbols that apply correctly.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 /* #define UNIPLUS */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 /* #define USG5 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31 #define USG
16221
d8360498f935 Comment change.
Karl Heuer <kwzh@gnu.org>
parents: 15699
diff changeset
32 /* #define BSD_SYSTEM */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33 #define LINUX
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35 /* SYSTEM_TYPE should indicate the kind of system you are using.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 It sets the Lisp variable system-type. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37
15478
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
38 #define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39
14775
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
40 /* Check the version number of Linux--if it is at least 1.2.0,
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
41 it is safe to use SIGIO. */
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
42 #ifndef NOT_C_CODE
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
43 #ifdef emacs
14839
bc1d2478d392 Test HAVE_LINUX_VERSION_H, not HAVE_VERSION_H.
Richard M. Stallman <rms@gnu.org>
parents: 14824
diff changeset
44 #ifdef HAVE_LINUX_VERSION_H
14775
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
45 #include <linux/version.h>
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46
14775
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
47 #if LINUX_VERSION_CODE > 0x10200
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
48 #define LINUX_SIGIO_DOES_WORK
14824
f56bb68b6903 (LINUX_SIGIO_DOES_WORK): Define only if HAVE_VERSION_H.
Richard M. Stallman <rms@gnu.org>
parents: 14777
diff changeset
49 #endif /* LINUX_VERSION_CODE > 0x10200 */
20950
8555e6a74cb9 (LINUX_MAP_SHARED_DOES_WORK): Define for kernel
Andreas Schwab <schwab@suse.de>
parents: 18398
diff changeset
50 #if LINUX_VERSION_CODE >= 0x20000
8555e6a74cb9 (LINUX_MAP_SHARED_DOES_WORK): Define for kernel
Andreas Schwab <schwab@suse.de>
parents: 18398
diff changeset
51 #define LINUX_MAP_SHARED_DOES_WORK
8555e6a74cb9 (LINUX_MAP_SHARED_DOES_WORK): Define for kernel
Andreas Schwab <schwab@suse.de>
parents: 18398
diff changeset
52 #endif /* LINUX_VERSION_CODE >= 0x20000 */
14839
bc1d2478d392 Test HAVE_LINUX_VERSION_H, not HAVE_VERSION_H.
Richard M. Stallman <rms@gnu.org>
parents: 14824
diff changeset
53 #endif /* HAVE_LINUX_VERSION_H */
14824
f56bb68b6903 (LINUX_SIGIO_DOES_WORK): Define only if HAVE_VERSION_H.
Richard M. Stallman <rms@gnu.org>
parents: 14777
diff changeset
54 #endif /* emacs */
f56bb68b6903 (LINUX_SIGIO_DOES_WORK): Define only if HAVE_VERSION_H.
Richard M. Stallman <rms@gnu.org>
parents: 14777
diff changeset
55 #endif /* NOT_C_CODE */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57 /* Letter to use in finding device name of first pty,
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58 if system supports pty's. 'p' means it is /dev/ptyp0 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60 #define FIRST_PTY_LETTER 'p'
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61
26212
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
62 #ifdef HAVE_DEV_PTMX
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
63
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
64 /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
65 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
66 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
67 (x<2) but I'm not sure. fnf@cygnus.com */
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
68 /* This sets the name of the slave side of the PTY. On SysVr4,
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
69 grantpt(3) forks a subprocess, so keep sigchld_handler() from
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
70 intercepting that death. If any child but grantpt's should die
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
71 within, it should be caught after sigrelse(2). */
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
72
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
73 #undef FIRST_PTY_LETTER
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
74 #define FIRST_PTY_LETTER 'z'
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
75
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
76 /* This sets the name of the master side of the PTY. */
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
77 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
78
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
79 #undef PTY_TTY_NAME_SPRINTF
26315
94eb27ce53aa Use SIGCHLD, not SIGCLD (not in glibc 2.1).
Dave Love <fx@gnu.org>
parents: 26212
diff changeset
80 /* This used to use SIGCLD, but that doesn't appear in glibc 2.1. */
26212
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
81 #define PTY_TTY_NAME_SPRINTF \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
82 { \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
83 char *ptsname (), *ptyname; \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
84 \
26315
94eb27ce53aa Use SIGCHLD, not SIGCLD (not in glibc 2.1).
Dave Love <fx@gnu.org>
parents: 26212
diff changeset
85 sigblock (sigmask (SIGCHLD)); \
26212
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
86 if (grantpt (fd) == -1) \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
87 { close (fd); return -1; } \
26315
94eb27ce53aa Use SIGCHLD, not SIGCLD (not in glibc 2.1).
Dave Love <fx@gnu.org>
parents: 26212
diff changeset
88 sigunblock (sigmask (SIGCHLD)); \
26212
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
89 if (unlockpt (fd) == -1) \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
90 { close (fd); return -1; } \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
91 if (!(ptyname = ptsname (fd))) \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
92 { close (fd); return -1; } \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
93 strncpy (pty_name, ptyname, sizeof (pty_name)); \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
94 pty_name[sizeof (pty_name) - 1] = 0; \
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
95 }
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
96
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
97 #endif /* HAVE_DEV_PTMX */
539733154e0a [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
Gerd Moellmann <gerd@gnu.org>
parents: 26090
diff changeset
98
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
99 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
100 * Define HAVE_TERMIOS if the system provides POSIX-style
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
101 * functions and macros for terminal control.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
104 #define HAVE_TERMIOS
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
105
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
106 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
107 * Define HAVE_PTYS if the system supports pty devices.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
108 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
109
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
110 #define HAVE_PTYS
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
111
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
112 /* Uncomment this later when other problems are dealt with -mkj */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
113
3014
a416873d97e5 * s/linux.h (HAVE_DUP2, HAVE_ALLOCA_H): Deleted.
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
114 #define HAVE_SOCKETS
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
115
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
116 /* Define this symbol if your system has the functions bcopy, etc. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
117
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
118 #define BSTRING
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
119
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
120 /* subprocesses should be defined if you want to
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
121 have code for asynchronous subprocesses
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
122 (as used in M-x compile and M-x shell).
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
123 This is generally OS dependent, and not supported
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
124 under most USG systems. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
126 #define subprocesses
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
127
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
128 /* define MAIL_USE_FLOCK if the mailer uses flock
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
129 to interlock access to /usr/spool/mail/$USER.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
130 The alternative is that a lock file named
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
131 /usr/spool/mail/$USER.lock. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
132
15478
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
133 /* On GNU/Linux systems, both methods are used by various mail
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
134 programs. I assume that most people are using newer mailers that
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
135 have heard of flock. Change this if you need to. */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
136
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
137 #define MAIL_USE_FLOCK
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
138
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
139 /* Define CLASH_DETECTION if you want lock files to be written
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
140 so that Emacs can tell instantly when you try to modify
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
141 a file that someone else has modified in his Emacs. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
142
7835
27ec793a0e99 (CLASH_DETECTION): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7703
diff changeset
143 #define CLASH_DETECTION
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
144
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
145 /* Here, on a separate page, add any special hacks needed
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
146 to make Emacs work on this system. For example,
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
147 you might define certain system call names that don't
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
148 exist on your system, or that do different things on
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
149 your system and must be used only through an encapsulation
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
150 (Which you should place, by convention, in sysdep.c). */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
151
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
152 /* If you mount the proc file system somewhere other than /proc
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
153 you will have to uncomment the following and make the proper
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
154 changes */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
155
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
156 /* #define LINUX_LDAV_FILE "/proc/loadavg" */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
157
14777
658f41757279 Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 14775
diff changeset
158 /* This is needed for dispnew.c:update_frame */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
159
5387
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
160 #ifdef emacs
8274
04eeb3ed2828 [emacs]: Include stdio.h.
Richard M. Stallman <rms@gnu.org>
parents: 7972
diff changeset
161 #include <stdio.h> /* Get the definition of _IO_STDIO_H. */
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
162 #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
5387
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
163 /* new C libio names */
7555
85afced1519c (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Both definitions
Richard M. Stallman <rms@gnu.org>
parents: 7307
diff changeset
164 #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
5387
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
165 ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
166 #else /* !_IO_STDIO_H */
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
167 /* old C++ iostream names */
7555
85afced1519c (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Both definitions
Richard M. Stallman <rms@gnu.org>
parents: 7307
diff changeset
168 #define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
5387
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
169 ((FILE)->_pptr - (FILE)->_pbase)
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
170 #endif /* !_IO_STDIO_H */
f99b0175322e (PENDING_OUTPUT_COUNT): Two alternate definitions
Richard M. Stallman <rms@gnu.org>
parents: 5363
diff changeset
171 #endif /* emacs */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
172
12306
173396dad212 (LIB_GCC): Define here, overriding Makefile.in.in,
Richard M. Stallman <rms@gnu.org>
parents: 11828
diff changeset
173 /* Ask GCC where to find libgcc.a. */
12314
b55e6abc0f0e (LIB_GCC): Fix previous change.
Richard M. Stallman <rms@gnu.org>
parents: 12306
diff changeset
174 #define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
12306
173396dad212 (LIB_GCC): Define here, overriding Makefile.in.in,
Richard M. Stallman <rms@gnu.org>
parents: 11828
diff changeset
175
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
176 #ifndef __ELF__
15478
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
177 /* GNU/Linux usually has crt0.o in a non-standard place */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
178 #define START_FILES pre-crt0.o /usr/lib/crt0.o
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
179 #else
15699
51f02643830c Undo previous change.
Karl Heuer <kwzh@gnu.org>
parents: 15697
diff changeset
180 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
181 #endif
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
182
15404
9f223b2f92ac [__ELF__] (LD_SWITCH_SYSTEM): Define it.
Richard M. Stallman <rms@gnu.org>
parents: 14990
diff changeset
183 #ifdef __ELF__
9f223b2f92ac [__ELF__] (LD_SWITCH_SYSTEM): Define it.
Richard M. Stallman <rms@gnu.org>
parents: 14990
diff changeset
184 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
9f223b2f92ac [__ELF__] (LD_SWITCH_SYSTEM): Define it.
Richard M. Stallman <rms@gnu.org>
parents: 14990
diff changeset
185 says where to find X windows at run time. */
15508
dcd2d760053a (LD_SWITCH_SYSTEM): Just one definition.
Richard M. Stallman <rms@gnu.org>
parents: 15478
diff changeset
186
18398
3c18aa006200 (LD_SWITCH_SYSTEM) [__mips__]: Alternate definition.
Richard M. Stallman <rms@gnu.org>
parents: 16221
diff changeset
187 #ifdef __mips__
3c18aa006200 (LD_SWITCH_SYSTEM) [__mips__]: Alternate definition.
Richard M. Stallman <rms@gnu.org>
parents: 16221
diff changeset
188 #define LD_SWITCH_SYSTEM -G 0 LD_SWITCH_X_SITE_AUX
3c18aa006200 (LD_SWITCH_SYSTEM) [__mips__]: Alternate definition.
Richard M. Stallman <rms@gnu.org>
parents: 16221
diff changeset
189 #else
15404
9f223b2f92ac [__ELF__] (LD_SWITCH_SYSTEM): Define it.
Richard M. Stallman <rms@gnu.org>
parents: 14990
diff changeset
190 #define LD_SWITCH_SYSTEM LD_SWITCH_X_SITE_AUX
18398
3c18aa006200 (LD_SWITCH_SYSTEM) [__mips__]: Alternate definition.
Richard M. Stallman <rms@gnu.org>
parents: 16221
diff changeset
191 #endif /* __mips__ */
15404
9f223b2f92ac [__ELF__] (LD_SWITCH_SYSTEM): Define it.
Richard M. Stallman <rms@gnu.org>
parents: 14990
diff changeset
192 #endif /* __ELF__ */
9f223b2f92ac [__ELF__] (LD_SWITCH_SYSTEM): Define it.
Richard M. Stallman <rms@gnu.org>
parents: 14990
diff changeset
193
15478
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
194 /* As of version 1.1.51, Linux did not actually implement SIGIO.
0be0ca99aa9a Renamed from lignux.h.
Richard M. Stallman <rms@gnu.org>
parents: 15404
diff changeset
195 But it works in newer versions. */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
196 #ifdef emacs
14775
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
197 #ifdef LINUX_SIGIO_DOES_WORK
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
198 #define INTERRUPT_INPUT
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
199 #else
26090
63fd40a97a75 s/usg5-4.h:
Paul Eggert <eggert@twinsun.com>
parents: 25032
diff changeset
200 #define BROKEN_SIGIO
13592
426a5dc91b98 #undef SIGPOLL and SIGURG as well as SIGIO.
Richard M. Stallman <rms@gnu.org>
parents: 13294
diff changeset
201 /* Some versions of Linux define SIGURG and SIGPOLL as aliases for SIGIO.
426a5dc91b98 #undef SIGPOLL and SIGURG as well as SIGIO.
Richard M. Stallman <rms@gnu.org>
parents: 13294
diff changeset
202 This prevents lossage in process.c. */
26090
63fd40a97a75 s/usg5-4.h:
Paul Eggert <eggert@twinsun.com>
parents: 25032
diff changeset
203 #define BROKEN_SIGURG
63fd40a97a75 s/usg5-4.h:
Paul Eggert <eggert@twinsun.com>
parents: 25032
diff changeset
204 #define BROKEN_SIGPOLL
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
205 #endif
14775
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
206 #endif
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
207
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
208 /* This is needed for sysdep.c */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
209
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
210 #define NO_SIOCTL_H /* don't have sioctl.h */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
211
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
212 #define HAVE_VFORK
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
213 #define HAVE_SYS_SIGLIST
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
214 #define HAVE_GETWD /* cure conflict with getcwd? */
14990
cee88fc1cecd Define HAVE_WAIT_HEADER.
Richard M. Stallman <rms@gnu.org>
parents: 14958
diff changeset
215 #define HAVE_WAIT_HEADER
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
216
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
217 #define SYSV_SYSTEM_DIR /* use dirent.h */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
218
4825
d60016b1f6da Comment update reflects reality.
Brian Fox <bfox@gnu.org>
parents: 4719
diff changeset
219 #define POSIX /* affects getpagesize.h and systty.h */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
220 #define POSIX_SIGNALS
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
221
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
222 /* Best not to include -lg, unless it is last on the command line */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
223 #define LIBS_DEBUG
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
224 #ifndef __ELF__
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
225 #define LIB_STANDARD -lc /* avoid -lPW */
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
226 #else
12314
b55e6abc0f0e (LIB_GCC): Fix previous change.
Richard M. Stallman <rms@gnu.org>
parents: 12306
diff changeset
227 #undef LIB_GCC
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
228 #define LIB_GCC
15699
51f02643830c Undo previous change.
Karl Heuer <kwzh@gnu.org>
parents: 15697
diff changeset
229 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
230 #endif
3207
257a856de952 * s/linux.h (SIGNALS_VIA_CHARACTERS): Try this out for a bit.
Jim Blandy <jimb@redhat.com>
parents: 3154
diff changeset
231
7956
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
232 /* Don't use -g in test compiles in configure.
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
233 This is so we will use the same shared libs for that linking
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
234 that are used when linking temacs. */
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
235 #ifdef THIS_IS_CONFIGURE
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
236 #define C_DEBUG_SWITCH
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
237 #endif
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
238
3596
9137e78cc171 * s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this.
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
239 /* Let's try this out, just in case.
9137e78cc171 * s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this.
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
240 Nah. Rik Faith <faith@cs.unc.edu> says it doesn't work well. */
9137e78cc171 * s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this.
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
241 /* #define SIGNALS_VIA_CHARACTERS */
3729
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
242
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
243 /* Rob Malouf <malouf@csli.stanford.edu> says:
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
244 SYSV IPC is standard a standard part of Linux since version 0.99pl10,
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
245 and is a very common addition to previous versions. */
4913
eb26686b99cf [TERM]: Alternate definitions of LIBS_MACHINE and C_SWITCH_MACHINE.
Richard M. Stallman <rms@gnu.org>
parents: 4825
diff changeset
246
eb26686b99cf [TERM]: Alternate definitions of LIBS_MACHINE and C_SWITCH_MACHINE.
Richard M. Stallman <rms@gnu.org>
parents: 4825
diff changeset
247 #ifdef TERM
12829
f36fccc38b0d (ULIMIT_BREAK_VALUE, SEGMENT_MASK): Moved to intel386.h
Richard M. Stallman <rms@gnu.org>
parents: 12720
diff changeset
248 #define LIBS_SYSTEM -lclient
4913
eb26686b99cf [TERM]: Alternate definitions of LIBS_MACHINE and C_SWITCH_MACHINE.
Richard M. Stallman <rms@gnu.org>
parents: 4825
diff changeset
249 #define C_SWITCH_SYSTEM -D_BSD_SOURCE -I/usr/src/term
eb26686b99cf [TERM]: Alternate definitions of LIBS_MACHINE and C_SWITCH_MACHINE.
Richard M. Stallman <rms@gnu.org>
parents: 4825
diff changeset
250 #else
4719
f250e1299a74 (LIBS_MACHINE): Make definition empty.
Richard M. Stallman <rms@gnu.org>
parents: 3824
diff changeset
251 /* alane@wozzle.linet.org says that -lipc is not a separate library,
f250e1299a74 (LIBS_MACHINE): Make definition empty.
Richard M. Stallman <rms@gnu.org>
parents: 3824
diff changeset
252 since libc-4.4.1. So -lipc was deleted. */
12829
f36fccc38b0d (ULIMIT_BREAK_VALUE, SEGMENT_MASK): Moved to intel386.h
Richard M. Stallman <rms@gnu.org>
parents: 12720
diff changeset
253 #define LIBS_SYSTEM
4913
eb26686b99cf [TERM]: Alternate definitions of LIBS_MACHINE and C_SWITCH_MACHINE.
Richard M. Stallman <rms@gnu.org>
parents: 4825
diff changeset
254 #define C_SWITCH_SYSTEM -D_BSD_SOURCE
eb26686b99cf [TERM]: Alternate definitions of LIBS_MACHINE and C_SWITCH_MACHINE.
Richard M. Stallman <rms@gnu.org>
parents: 4825
diff changeset
255 #endif
eb26686b99cf [TERM]: Alternate definitions of LIBS_MACHINE and C_SWITCH_MACHINE.
Richard M. Stallman <rms@gnu.org>
parents: 4825
diff changeset
256
13623
276f513076a9 (LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 13592
diff changeset
257 /* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed. */
276f513076a9 (LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 13592
diff changeset
258 #define LIB_MOTIF -lXm -lXpm
276f513076a9 (LIB_MOTIF): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 13592
diff changeset
259
14958
19c05cbf2811 Test HAVE_LIBNCURSES, not HAVE_NCURSES
Richard M. Stallman <rms@gnu.org>
parents: 14949
diff changeset
260 #ifdef HAVE_LIBNCURSES
14775
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
261 #define TERMINFO
14949
e827a568785f [HAVE_NCURSES] (LIBS_TERMCAP): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14918
diff changeset
262 #define LIBS_TERMCAP -lncurses
14775
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
263 #endif
f4cc1bc9ec2c (TERMINFO): Define, if HAVE_NCURSES.
Richard M. Stallman <rms@gnu.org>
parents: 14186
diff changeset
264
3729
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
265 #define HAVE_SYSVIPC
5363
d37a5b990e49 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5071
diff changeset
266
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
267 #ifdef __ELF__
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
268 #define UNEXEC unexelf.o
20950
8555e6a74cb9 (LINUX_MAP_SHARED_DOES_WORK): Define for kernel
Andreas Schwab <schwab@suse.de>
parents: 18398
diff changeset
269 #ifndef LINUX_MAP_SHARED_DOES_WORK
11828
cb6c1026a0f7 UNEXEC_USE_MAP_PRIVATE: Define.
Karl Heuer <kwzh@gnu.org>
parents: 11826
diff changeset
270 #define UNEXEC_USE_MAP_PRIVATE
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
271 #endif
20950
8555e6a74cb9 (LINUX_MAP_SHARED_DOES_WORK): Define for kernel
Andreas Schwab <schwab@suse.de>
parents: 18398
diff changeset
272 #endif
11826
6197ce4cd509 Test _STDIO_USES_IOSTREAM as well as _IO_STDIO_H.
Karl Heuer <kwzh@gnu.org>
parents: 11549
diff changeset
273
8633
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
274 #ifdef LINUX_QMAGIC
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
275
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
276 #define HAVE_TEXT_START
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
277 #define UNEXEC unexsunos4.o
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
278 #define N_PAGSIZ(x) PAGE_SIZE
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
279
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
280 #else /* not LINUX_QMAGIC */
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
281
5363
d37a5b990e49 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5071
diff changeset
282 #define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0)
d37a5b990e49 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5071
diff changeset
283 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
d37a5b990e49 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5071
diff changeset
284 #define ADJUST_EXEC_HEADER \
d37a5b990e49 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 5071
diff changeset
285 unexec_text_start = N_TXTADDR(ohdr) + A_TEXT_OFFSET(ohdr)
7632
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
286
8633
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
287 #endif /* not LINUX_QMAGIC */
ef773dd417ea Add LINUX_QMAGIC conditional.
Richard M. Stallman <rms@gnu.org>
parents: 8274
diff changeset
288
7956
eaca9ccb9f4a (C_DEBUG_SWITCH): Define, if THIS_IS_CONFIGURE.
Richard M. Stallman <rms@gnu.org>
parents: 7835
diff changeset
289 #if 0
7632
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
290 /* In 19.23 and 19.24, configure sometimes fails to define these.
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
291 It has to do with the fact that configure uses CFLAGS when linking
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
292 while Makefile.in.in (erroneously) fails to do so when linking temacs. */
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
293 #ifndef HAVE_GETTIMEOFDAY
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
294 #define HAVE_GETTIMEOFDAY
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
295 #endif
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
296 #ifndef HAVE_MKDIR
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
297 #define HAVE_MKDIR
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
298 #endif
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
299 #ifndef HAVE_RMDIR
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
300 #define HAVE_RMDIR
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
301 #endif
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
302 #ifndef HAVE_XSCREENNUMBEROFSCREEN
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
303 #define HAVE_XSCREENNUMBEROFSCREEN
8abb5c77cc2a (HAVE_GETTIMEOFDAY, HAVE_MKDIR, HAVE_RMDIR)
Richard M. Stallman <rms@gnu.org>
parents: 7555
diff changeset
304 #endif
12720
8033d2412068 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 12314
diff changeset
305 #endif /* 0 */
8033d2412068 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 12314
diff changeset
306
8033d2412068 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 12314
diff changeset
307 /* This is to work around mysterious gcc failures in some system versions.
8033d2412068 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 12314
diff changeset
308 It is unlikely that Emacs changes will work around this problem;
8033d2412068 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 12314
diff changeset
309 therefore, this should remain permanently. */
7703
2b7b11a5e1e6 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 7632
diff changeset
310 #ifndef HAVE_XRMSETDATABASE
2b7b11a5e1e6 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 7632
diff changeset
311 #define HAVE_XRMSETDATABASE
2b7b11a5e1e6 (HAVE_XRMSETDATABASE): Define if not defined.
Richard M. Stallman <rms@gnu.org>
parents: 7632
diff changeset
312 #endif
11549
bfb9b93ee7e9 (REGEXP_IN_LIBC): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 11292
diff changeset
313
bfb9b93ee7e9 (REGEXP_IN_LIBC): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 11292
diff changeset
314 /* The regex.o routines are a part of the GNU C-library used with Linux. */
13294
30565fdf5fe0 (REGEXP_IN_LIBC): Definition turned off.
Richard M. Stallman <rms@gnu.org>
parents: 12829
diff changeset
315 /* However, sometimes they disagree with the src/regex.h that comes with Emacs,
30565fdf5fe0 (REGEXP_IN_LIBC): Definition turned off.
Richard M. Stallman <rms@gnu.org>
parents: 12829
diff changeset
316 and that can make trouble in etags.c because it gets the regex.h from Emacs
30565fdf5fe0 (REGEXP_IN_LIBC): Definition turned off.
Richard M. Stallman <rms@gnu.org>
parents: 12829
diff changeset
317 and the function definitions in libc. So turn this off. */
30565fdf5fe0 (REGEXP_IN_LIBC): Definition turned off.
Richard M. Stallman <rms@gnu.org>
parents: 12829
diff changeset
318 /* #define REGEXP_IN_LIBC */
30565fdf5fe0 (REGEXP_IN_LIBC): Definition turned off.
Richard M. Stallman <rms@gnu.org>
parents: 12829
diff changeset
319
14871
cb986696ec03 (setpgrp): New macro.
Richard M. Stallman <rms@gnu.org>
parents: 14839
diff changeset
320 /* Use BSD process groups, but use setpgid() instead of setpgrp() to
cb986696ec03 (setpgrp): New macro.
Richard M. Stallman <rms@gnu.org>
parents: 14839
diff changeset
321 actually set a process group. */
cb986696ec03 (setpgrp): New macro.
Richard M. Stallman <rms@gnu.org>
parents: 14839
diff changeset
322
cb986696ec03 (setpgrp): New macro.
Richard M. Stallman <rms@gnu.org>
parents: 14839
diff changeset
323 #define BSD_PGRPS
22229
4fb09bb7d2f9 (setpgrp): Remove extra parens around parameters.
Richard M. Stallman <rms@gnu.org>
parents: 20950
diff changeset
324 #define setpgrp(pid,pgid) setpgid(pid,pgid)
23974
dcc1ebab38c1 [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
Richard M. Stallman <rms@gnu.org>
parents: 22229
diff changeset
325
25032
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 23974
diff changeset
326 #define NARROWPROTO 1
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 23974
diff changeset
327
23974
dcc1ebab38c1 [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
Richard M. Stallman <rms@gnu.org>
parents: 22229
diff changeset
328 /* Use mmap directly for allocating larger buffers. */
dcc1ebab38c1 [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
Richard M. Stallman <rms@gnu.org>
parents: 22229
diff changeset
329 #ifdef DOUG_LEA_MALLOC
dcc1ebab38c1 [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
Richard M. Stallman <rms@gnu.org>
parents: 22229
diff changeset
330 #undef REL_ALLOC
dcc1ebab38c1 [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
Richard M. Stallman <rms@gnu.org>
parents: 22229
diff changeset
331 #endif