Mercurial > emacs
annotate src/m/ibmps2-aix.h @ 82683:d8fec7430e25
Move tutorials from etc/ to etc/tutorials/
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Wed, 22 Aug 2007 07:36:00 +0000 |
parents | 49b363c28dce |
children | f27b84de02cf 345d3b46b5d3 424b655804ca |
rev | line source |
---|---|
456 | 1 /* machine description file for ibm ps/2 aix386. |
75227
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
2 Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, |
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
3 2006, 2007 Free Software Foundation, Inc. |
456 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
7 GNU Emacs is free software; you can redistribute it and/or modify | |
8 it under the terms of the GNU General Public License as published by | |
78258
6aba169c4b1f
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75227
diff
changeset
|
9 the Free Software Foundation; either version 3, or (at your option) |
456 | 10 any later version. |
11 | |
12 GNU Emacs is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with GNU Emacs; see the file COPYING. If not, write to | |
64083 | 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 Boston, MA 02110-1301, USA. */ | |
456 | 21 |
22 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
44601
diff
changeset
|
23 /* The following line tells the configuration script what sort of |
456 | 24 operating system this machine is likely to run. |
25 USUAL-OPSYS="note" | |
26 | |
27 NOTE-START | |
28 Use -opsystem=usg5-3 on AIX 1.2. | |
29 -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not | |
30 work with certain new X window managers, and may be suboptimal. | |
31 NOTE-END */ | |
32 | |
78499 | 33 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
34 is the most significant byte. */ |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
35 |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
36 #undef WORDS_BIG_ENDIAN |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
37 |
456 | 38 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
39 * group of arguments and treat it as an array of the arguments. */ | |
40 | |
41 /* #define NO_ARG_ARRAY */ | |
42 | |
43 /* Define WORD_MACHINE if addresses and such have | |
44 * to be corrected before they can be used as byte counts. */ | |
45 | |
46 /* #define WORD_MACHINE */ | |
47 | |
48 /* Now define a symbol for the cpu type, if your compiler | |
49 does not define it automatically: | |
50 Ones defined so far include vax, m68000, ns16000, pyramid, | |
51 orion, tahoe, APOLLO and many others */ | |
52 | |
53 #define INTEL386 | |
54 #define aix386 | |
55 | |
56 #define IBMAIX | |
57 | |
58 /* Use type int rather than a union, to represent Lisp_Object */ | |
59 | |
60 #define NO_UNION_TYPE | |
61 | |
62 /* crt0.c, if it is used, should use the i386-bsd style of entry. | |
63 with no extra dummy args. On USG and XENIX, | |
64 NO_REMAP says this isn't used. */ | |
65 | |
66 #define CRT0_DUMMIES bogus_fp, | |
67 | |
68 /* crt0.c should define a symbol `start' and do .globl with a dot. */ | |
69 | |
70 #define DOT_GLOBAL_START | |
71 | |
72 /* USG systems do not actually support the load average, | |
73 so disable it for them. */ | |
74 | |
75 /* Define CANNOT_DUMP on machines where unexec does not work. | |
76 Then the function dump-emacs will not be defined | |
77 and temacs will do (load "loadup") automatically unless told otherwise. */ | |
78 | |
79 /* #define CANNOT_DUMP */ | |
80 | |
81 /* Define VIRT_ADDR_VARIES if the virtual addresses of | |
82 pure and impure space as loaded can vary, and even their | |
83 relative order cannot be relied on. | |
84 | |
85 Otherwise Emacs assumes that text space precedes data space, | |
86 numerically. */ | |
87 | |
88 /* #define VIRT_ADDR_VARIES */ | |
89 | |
90 /* Define addresses, macros, change some setup for dump */ | |
91 | |
92 #define NO_REMAP | |
93 #undef static | |
94 /* Since NO_REMAP, problem with statics doesn't exist */ | |
95 | |
96 #ifdef USG5_3 | |
97 #define TEXT_START 0x00000000 | |
98 #else | |
99 #define TEXT_START 0x00400000 | |
100 #define TEXT_END 0 | |
101 #define DATA_START 0x00800000 | |
102 #define DATA_END 0 | |
103 | |
104 /* The data segment in this machine always starts at address 0x00800000. | |
105 An address of data cannot be stored correctly in a Lisp object; | |
106 we always lose the high bits. We must tell XPNTR to add them back. */ | |
107 | |
108 #define DATA_SEG_BITS 0x00800000 | |
109 #endif | |
110 | |
111 #if 0 /* I refuse to promulgate a recommendation that would make | |
112 users unable to debug - RMS. */ | |
113 /* delete the following line to foil optimization, enable debugging */ | |
114 #define C_DEBUG_SWITCH -O | |
115 #endif | |
116 | |
117 #define BSTRING | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
118 #undef HAVE_TERMIO |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
119 #define HAVE_TERMIOS |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
120 |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
121 /* Send signals to subprocesses by "typing" special chars at them. */ |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
122 |
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
123 #define SIGNALS_VIA_CHARACTERS |
456 | 124 |
125 /* | |
126 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir | |
127 * library functions. Almost, but not quite the same as | |
128 * the 4.2 functions | |
129 */ | |
130 #define SYSV_SYSTEM_DIR | |
131 | |
132 /* | |
133 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
134 * The 4.2 opendir, etc., library functions. | |
135 */ | |
136 #undef NONSYSTEM_DIR_LIBRARY | |
137 | |
8892 | 138 /* AIX utimes allegedly causes SIGSEGV. */ |
139 #undef HAVE_UTIMES /* override configuration decision */ | |
456 | 140 |
141 /* AIX defines FIONREAD, but it does not work. */ | |
142 #define BROKEN_FIONREAD | |
143 | |
144 /* Data type of load average, as read out of kmem. */ | |
145 | |
146 #define LOAD_AVE_TYPE long /* For AIX (sysV) */ | |
147 | |
148 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
149 | |
150 #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0) | |
151 | |
152 /* This page was added in June 1990. It may be incorrect for some versions | |
153 of aix, so delete it if it causes trouble. */ | |
154 | |
155 /* AIX has sigsetmask() */ | |
156 #undef sigsetmask | |
157 | |
158 /* AIX386 has BSD4.3 PTYs */ | |
159 | |
160 #define HAVE_PTYS | |
161 | |
162 /* AIX has IPC. It also has sockets, and either can be used for client/server. | |
163 I would suggest the client/server code be changed to use HAVE_SOCKETS rather | |
164 than BSD as the conditional if sockets provide any advantages. */ | |
165 | |
166 #define HAVE_SYSVIPC | |
167 | |
168 /* AIX has sockets */ | |
169 | |
170 #define HAVE_SOCKETS | |
171 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */ | |
172 | |
173 /* Specify the font for X to use. */ | |
174 | |
175 #define X_DEFAULT_FONT "8x13" | |
176 | |
177 /* AIX has a wait.h. */ | |
178 | |
179 #define HAVE_WAIT_HEADER | |
180 | |
181 /* sioctl.h should not be included, says bytheway@cs.utah.edu. */ | |
182 #undef NEED_SIOCTL | |
183 /* I'm guessing that that means it doesn't want ptem.h either. */ | |
184 #undef NEED_PTEM_H | |
185 | |
186 /* aix has `union wait' */ | |
187 #define HAVE_UNION_WAIT | |
188 | |
189 /* Here override various assumptions in ymakefile */ | |
190 | |
191 #ifdef __GNUC__ | |
192 #define alloca(n) __builtin_alloca(n) | |
1379
65b91b0ee332
[__GNUC__ >= 2] (LIB_STANDARD): Don't define.
Richard M. Stallman <rms@gnu.org>
parents:
1354
diff
changeset
|
193 #if __GNUC__ < 2 |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
44601
diff
changeset
|
194 #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc |
1379
65b91b0ee332
[__GNUC__ >= 2] (LIB_STANDARD): Don't define.
Richard M. Stallman <rms@gnu.org>
parents:
1354
diff
changeset
|
195 #endif |
456 | 196 /* -g fails to work, so it is omitted. */ |
197 /* tranle says that -fstrength-reduce does not help. */ | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
198 #define C_DEBUG_SWITCH |
456 | 199 #else |
200 #define LIBS_MACHINE -lbsd -lrts | |
201 #endif | |
202 | |
203 #define OBJECTS_MACHINE hftctl.o | |
204 #define LD_SWITCH_MACHINE -T0x00400000 -K -e start | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
205 #define LIBS_DEBUG /* no -lg on aix ps/2 */ |
456 | 206 |
207 #ifdef USG5_3 | |
208 #define XICCC | |
209 #undef LD_SWITCH_MACHINE | |
210 #define LD_SWITCH_MACHINE -T0x0 -K -e start | |
211 | |
212 /* Things defined in s-usg5-3.h that need to be overridden. */ | |
213 #undef NOMULTIPLEJOBS | |
214 #undef BROKEN_TIOCGETC | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
215 #undef BROKEN_TIOCGWINSZ |
456 | 216 #undef LIBX10_SYSTEM |
217 #undef LIBX11_SYSTEM | |
3323
b57060b77da7
(HAVE_GETTIMEOFDAY): Deleted.
Richard M. Stallman <rms@gnu.org>
parents:
2989
diff
changeset
|
218 #undef LIB_X11_LIB |
456 | 219 #endif |
1354 | 220 |
221 /* Shared libraries are supported in a patch release of ps/2 1.2.1. | |
222 If the system has them, the user can turn them on, and this code | |
223 will make them work. */ | |
224 #define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */ | |
225 | |
226 #ifdef USG_SHARED_LIBRARIES | |
227 #define ORDINARY_LINK | |
228 #undef LIB_STANDARD | |
229 #undef LD_SWITCH_MACHINE | |
230 #if __GNUC__ > 1 | |
231 #define LD_SWITCH_MACHINE -shlib | |
232 #endif | |
233 #endif | |
52401 | 234 |
235 /* arch-tag: 2e7f44df-6a61-4a47-aa53-f7961bfeff11 | |
236 (do not change this comment) */ |