428
|
1 /* RTPC AIX machine/system dependent defines
|
|
2 Copyright (C) 1988 Free Software Foundation, Inc.
|
|
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
|
|
8 the Free Software Foundation; either version 2, or (at your option)
|
|
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 XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
|
21 /* Synched up with: FSF 19.31. */
|
|
22
|
|
23 /* The following line tells the configuration script what sort of
|
|
24 operating system this machine is likely to run.
|
|
25 USUAL-OPSYS="usg5-2-2" */
|
|
26
|
|
27 /* Now define a symbol for the cpu type, if your compiler
|
|
28 does not define it automatically. */
|
|
29
|
|
30 #ifndef IBMAIX
|
|
31 #define IBMAIX
|
|
32 #endif
|
|
33
|
|
34 /* No load average information appears in the AIX kernel. VRM has this
|
|
35 info, and if anyone desires they should fix fns.c to get it out of VRM */
|
|
36
|
|
37 /* Define CANNOT_DUMP on machines where unexec does not work.
|
|
38 Then the function dump-emacs will not be defined
|
|
39 and temacs will do (load "loadup") automatically unless told otherwise. */
|
|
40
|
|
41 /* #define CANNOT_DUMP */
|
|
42
|
|
43 /* Define addresses, macros, change some setup for dump */
|
|
44
|
|
45 #undef COFF
|
|
46 #define NO_REMAP
|
|
47
|
|
48 #define TEXT_START 0x10000000
|
|
49 #define DATA_START 0x20000000
|
|
50
|
|
51 #define N_BADMAG(x) BADMAG(x)
|
|
52 #define N_TXTOFF(x) A_TEXTPOS(x)
|
|
53 #define N_SYMOFF(x) A_SYMPOS(x)
|
|
54 #define A_TEXT_OFFSET(HDR) sizeof(HDR)
|
|
55 #define ADJUST_EXEC_HEADER \
|
|
56 unexec_text_start += sizeof(hdr); \
|
|
57 unexec_data_start = ohdr.a_dbase
|
|
58 #undef ADDR_CORRECT
|
|
59 #define ADDR_CORRECT(x) ((int)(x))
|
|
60
|
|
61 /* This is the offset of the executable's text, from the start of the file. */
|
|
62
|
|
63 #define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
|
|
64
|
|
65 /* Define C_ALLOCA if this machine does not support a true alloca
|
|
66 and the one written in C should be used instead.
|
|
67 Define HAVE_ALLOCA to say that the system provides a properly
|
|
68 working alloca function and it should be used.
|
|
69 Define neither one if an assembler-language alloca
|
|
70 in the file alloca.s should be used. */
|
|
71
|
|
72 #define C_ALLOCA
|
|
73 #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */
|
|
74
|
|
75 /* AIX has PTYs, so define here, along with macros needed to make them work. */
|
|
76
|
|
77 #define PTY_ITERATION for (i=0; i<256; i++)
|
|
78 #define PTY_NAME_SPRINTF sprintf (ptyname, "/dev/ptc%d", i);
|
|
79
|
|
80 #define PTY_TTY_NAME_SPRINTF \
|
|
81 { /* Check that server side not already open */ \
|
|
82 if ((ioctl (*ptyv, PTYSTATUS, 0) & 0xFFFF) != 0) \
|
|
83 { \
|
|
84 close (*ptyv); \
|
|
85 continue; \
|
|
86 } \
|
|
87 /* And finally to be sure we can open it later */ \
|
|
88 sprintf (ptyname, "/dev/pts%d", i); \
|
|
89 signal (SIGHUP,SIG_IGN); \
|
|
90 } /* ignore hangup at process end */
|
|
91
|
|
92 /* TIOCNOTTY doesn't occur on AIX, but the rest
|
|
93 of the conditionalized code in process.c does
|
|
94 the right thing if we fake this out. */
|
|
95 #define TIOCNOTTY IOCTYPE
|
|
96
|
|
97 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */
|
|
98
|
|
99 /* Specify the font for X to use. */
|
|
100
|
|
101 #define X_DEFAULT_FONT "Rom14.500"
|
|
102
|
|
103 /* Here override various assumptions in ymakefile */
|
|
104
|
|
105 /* On AIX 2.2.1, use these definitions instead
|
|
106 #define C_SWITCH_MACHINE "-I/usr/include -Nn2000"
|
|
107 #define LIBS_MACHINE "-lX -lrts"
|
|
108 */
|
|
109
|
|
110 #define C_SWITCH_MACHINE "-I/usr/include -I/usr/include/bsd -Nn2000"
|
|
111 #define LIBS_MACHINE "-lXMenu -lX -lsock -lbsd -lrts"
|
|
112
|
|
113 #define OBJECTS_MACHINE "hftctl.o"
|
|
114 #define START_FILES "/lib/crt0.o"
|
|
115 /* -lXMenu, -lX must precede -lsock, -lbsd */
|
|
116 #define LD_SWITCH_MACHINE "-n -T0x10000000 -K -e start"
|
|
117
|
|
118 #if 0 /* I refuse to promulgate a recommendation that would make
|
|
119 users unable to debug - RMS. */
|
|
120 /* delete the following line to foil optimization, enable debugging */
|
|
121 #define C_DEBUG_SWITCH "-O"
|
|
122 #endif
|
|
123
|
|
124
|
|
125 /* Setup to do some things BSD way - these won't work previous to AIX 2.1.2 */
|
|
126
|
|
127 #include </usr/include/bsd/BSDtoAIX.h>
|
|
128
|
|
129 /* AIX utimes allegedly causes SIGSEGV. */
|
|
130 #undef HAVE_UTIMES /* override configuration decision */
|
|
131
|
|
132 /* rocky@watson.ibm.com says this is needed. */
|
|
133 #define HAVE_FTIME
|