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