root/trunk/src/m/ibmps2-aix.h
| Revision 4220, 7.0 kB (checked in by miyoshi, 8 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | /* machine description file for ibm ps/2 aix386. |
| 2 | Copyright (C) 1989, 2001, 2002, 2003, 2004, 2005, |
| 3 | 2006, 2007, 2008 Free Software Foundation, Inc. |
| 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 |
| 9 | the Free Software Foundation; either version 3, or (at your option) |
| 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 |
| 19 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 | Boston, MA 02110-1301, USA. */ |
| 21 | |
| 22 | |
| 23 | /* The following line tells the configuration script what sort of |
| 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 | |
| 33 | /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word |
| 34 | is the most significant byte. */ |
| 35 | |
| 36 | #undef WORDS_BIG_ENDIAN |
| 37 | |
| 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 |
| 118 | #define HAVE_VFORK |
| 119 | #undef HAVE_TERMIO |
| 120 | #define HAVE_TERMIOS |
| 121 | |
| 122 | /* Send signals to subprocesses by "typing" special chars at them. */ |
| 123 | |
| 124 | #define SIGNALS_VIA_CHARACTERS |
| 125 | |
| 126 | /* |
| 127 | * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir |
| 128 | * library functions. Almost, but not quite the same as |
| 129 | * the 4.2 functions |
| 130 | */ |
| 131 | #define SYSV_SYSTEM_DIR |
| 132 | |
| 133 | /* |
| 134 | * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate |
| 135 | * The 4.2 opendir, etc., library functions. |
| 136 | */ |
| 137 | #undef NONSYSTEM_DIR_LIBRARY |
| 138 | |
| 139 | /* AIX utimes allegedly causes SIGSEGV. */ |
| 140 | #undef HAVE_UTIMES /* override configuration decision */ |
| 141 | |
| 142 | /* AIX defines FIONREAD, but it does not work. */ |
| 143 | #define BROKEN_FIONREAD |
| 144 | |
| 145 | /* Data type of load average, as read out of kmem. */ |
| 146 | |
| 147 | #define LOAD_AVE_TYPE long /* For AIX (sysV) */ |
| 148 | |
| 149 | /* Convert that into an integer that is 100 for a load average of 1.0 */ |
| 150 | |
| 151 | #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0) |
| 152 | |
| 153 | /* This page was added in June 1990. It may be incorrect for some versions |
| 154 | of aix, so delete it if it causes trouble. */ |
| 155 | |
| 156 | /* AIX has sigsetmask() */ |
| 157 | #undef sigsetmask |
| 158 | |
| 159 | /* AIX386 has BSD4.3 PTYs */ |
| 160 | |
| 161 | #define HAVE_PTYS |
| 162 | |
| 163 | /* AIX has IPC. It also has sockets, and either can be used for client/server. |
| 164 | I would suggest the client/server code be changed to use HAVE_SOCKETS rather |
| 165 | than BSD as the conditional if sockets provide any advantages. */ |
| 166 | |
| 167 | #define HAVE_SYSVIPC |
| 168 | |
| 169 | /* AIX has sockets */ |
| 170 | |
| 171 | #define HAVE_SOCKETS |
| 172 | /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */ |
| 173 | |
| 174 | /* Specify the font for X to use. */ |
| 175 | |
| 176 | #define X_DEFAULT_FONT "8x13" |
| 177 | |
| 178 | /* AIX has a wait.h. */ |
| 179 | |
| 180 | #define HAVE_WAIT_HEADER |
| 181 | |
| 182 | /* sioctl.h should not be included, says bytheway@cs.utah.edu. */ |
| 183 | #undef NEED_SIOCTL |
| 184 | /* I'm guessing that that means it doesn't want ptem.h either. */ |
| 185 | #undef NEED_PTEM_H |
| 186 | |
| 187 | /* aix has `union wait' */ |
| 188 | #define HAVE_UNION_WAIT |
| 189 | |
| 190 | /* Here override various assumptions in ymakefile */ |
| 191 | |
| 192 | /* Define C_ALLOCA if this machine does not support a true alloca |
| 193 | and the one written in C should be used instead. |
| 194 | Define HAVE_ALLOCA to say that the system provides a properly |
| 195 | working alloca function and it should be used. |
| 196 | Define neither one if an assembler-language alloca |
| 197 | in the file alloca.s should be used. */ |
| 198 | |
| 199 | #ifdef __GNUC__ |
| 200 | #define HAVE_ALLOCA |
| 201 | #define alloca(n) __builtin_alloca(n) |
| 202 | #if __GNUC__ < 2 |
| 203 | #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc |
| 204 | #endif |
| 205 | /* -g fails to work, so it is omitted. */ |
| 206 | /* tranle says that -fstrength-reduce does not help. */ |
| 207 | #define C_DEBUG_SWITCH |
| 208 | #else |
| 209 | #define C_ALLOCA |
| 210 | #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */ |
| 211 | #define LIBS_MACHINE -lbsd -lrts |
| 212 | #endif |
| 213 | |
| 214 | #define OBJECTS_MACHINE hftctl.o |
| 215 | #define LD_SWITCH_MACHINE -T0x00400000 -K -e start |
| 216 | #define LIBS_DEBUG /* no -lg on aix ps/2 */ |
| 217 | |
| 218 | #ifdef USG5_3 |
| 219 | #define XICCC |
| 220 | #undef LD_SWITCH_MACHINE |
| 221 | #define LD_SWITCH_MACHINE -T0x0 -K -e start |
| 222 | |
| 223 | /* Things defined in s-usg5-3.h that need to be overridden. */ |
| 224 | #undef NOMULTIPLEJOBS |
| 225 | #undef BROKEN_TIOCGETC |
| 226 | #undef BROKEN_TIOCGWINSZ |
| 227 | #undef LIBX10_SYSTEM |
| 228 | #undef LIBX11_SYSTEM |
| 229 | #undef LIB_X11_LIB |
| 230 | #endif |
| 231 | |
| 232 | /* Shared libraries are supported in a patch release of ps/2 1.2.1. |
| 233 | If the system has them, the user can turn them on, and this code |
| 234 | will make them work. */ |
| 235 | #define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */ |
| 236 | |
| 237 | #ifdef USG_SHARED_LIBRARIES |
| 238 | #define ORDINARY_LINK |
| 239 | #undef LIB_STANDARD |
| 240 | #undef LD_SWITCH_MACHINE |
| 241 | #if __GNUC__ > 1 |
| 242 | #define LD_SWITCH_MACHINE -shlib |
| 243 | #endif |
| 244 | #endif |
Note: See TracBrowser for help on using the browser.
