1 /* m- file for hp9000 series 200 or 300 2 Copyright (C) 1985 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 1, 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 GNU Emacs; see the file COPYING. If not, write to 18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19 20 21 22 /* Define NOMULTIPLEJOBS on versions of HPUX before 6.5. */ 23 24 /* #define NOMULTIPLEJOBS */ 25 26 /* Define this symbol if you are running a version of HP-UX 27 which predates version 6.01 */ 28 29 /* #define HPUX_5 */ 30 31 /* The following three symbols give information on 32 the size of various data types. */ 33 34 #define SHORTBITS 16 /* Number of bits in a short */ 35 36 #define INTBITS 32 /* Number of bits in an int */ 37 38 #define LONGBITS 32 /* Number of bits in a long */ 39 40 /* Define BIG_ENDIAN iff lowest-numbered byte in a word 41 is the most significant byte. */ 42 43 #define BIG_ENDIAN 44 45 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a 46 * group of arguments and treat it as an array of the arguments. */ 47 48 /* #define NO_ARG_ARRAY */ 49 50 /* Define WORD_MACHINE if addresses and such have 51 * to be corrected before they can be used as byte counts. */ 52 53 /* #define WORD_MACHINE */ 54 55 /* Define how to take a char and sign-extend into an int. 56 On machines where char is signed, this is a no-op. */ 57 58 #define SIGN_EXTEND_CHAR(c) (c) 59 60 /* Now define a symbol for the cpu type, if your compiler 61 does not define it automatically. */ 62 63 #ifndef hp9000s300 64 #define hp9000s300 65 #endif 66 67 /* Use type int rather than a union, to represent Lisp_Object */ 68 /* This is desirable for most machines. */ 69 70 #define NO_UNION_TYPE 71 72 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend 73 the 24-bit bit field into an int. In other words, if bit fields 74 are always unsigned. 75 76 If you use NO_UNION_TYPE, this flag does not matter. */ 77 78 #define EXPLICIT_SIGN_EXTEND 79 80 /* Data type of load average, as read out of kmem. */ 81 82 #define LOAD_AVE_TYPE double 83 #define HAVE_GETLOADAVG 84 85 /* Convert that into an integer that is 100 for a load average of 1.0 */ 86 87 #define LOAD_AVE_CVT(x) ((int) ((x) * 100.0)) 88 89 /* Define CANNOT_DUMP on machines where unexec does not work. 90 Then the function dump-emacs will not be defined 91 and temacs will do (load "loadup") automatically unless told otherwise. */ 92 93 /* #define CANNOT_DUMP */ 94 95 /* Define VIRT_ADDR_VARIES if the virtual addresses of 96 pure and impure space as loaded can vary, and even their 97 relative order cannot be relied on. 98 99 Otherwise Emacs assumes that text space precedes data space, 100 numerically. */ 101 102 /* #define VIRT_ADDR_VARIES */ 103 104 /* For University of Utah 4.3bsd implemetation on HP300s. 105 The #ifndef __GNUC__ definitions are required for the "standard" cc, 106 a very old, brain-dead version of PCC. */ 107 108 #ifdef BSD4_3 109 /* Tell crt0.c that this is an ordinary 68020. */ 110 #undef hp9000s300 111 #define CRT0_DUMMIES bogus_a6, 112 113 #define HAVE_ALLOCA 114 #define DKSTAT_HEADER_FILE 115 116 #ifndef __GNUC__ 117 #define LIBS_DEBUG /* don't have -lg that works */ 118 #define C_DEBUG_SWITCH /* don't support -g */ 119 #endif 120 121 #ifndef BSD4_4 122 #undef LOAD_AVE_TYPE 123 #undef LOAD_AVE_CVT 124 #define LOAD_AVE_TYPE long 125 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) / 2048.0 * 100.0)) 126 #endif 127 128 #endif /* BSD4_3 */ 129 130 #ifndef BSD4_3 131 /* The following definitions are for HPUX only. */ 132 133 /* The symbol in the kernel where the load average is found 134 is named _avenrun on this machine. */ 135 136 #define LDAV_SYMBOL "_avenrun" 137 138 /* This library is needed with -g, on the 200/300 only. */ 139 140 #if !defined(__GNUC__) || defined(__HPUX_ASM__) 141 #define LIBS_DEBUG /usr/lib/end.o 142 #endif 143 144 /* The symbol FIONREAD is defined, but the feature does not work 145 on the 200/300. */ 146 147 #define BROKEN_FIONREAD 148 149 /* In older versions of hpux, for unknown reasons, S_IFLNK is defined 150 even though symbolic links do not exist. 151 Make sure our conditionals based on S_IFLNK are not confused. 152 153 Here we assume that stat.h is included before config.h 154 so that we can override it here. 155 156 Version 6 of HP-UX has symbolic links. */ 157 158 #ifdef HPUX_5 159 #undef S_IFLNK 160 #endif 161 162 /* Define the BSTRING functions in terms of the sysV functions. 163 Version 6 of HP-UX supplies these in the BSD library, 164 but that library has reported bugs in `signal'. */ 165 166 /* #ifdef HPUX_5 */ 167 #define bcopy(a,b,s) memcpy (b,a,s) 168 #define bzero(a,s) memset (a,0,s) 169 #define bcmp memcmp 170 /* #endif */ 171 172 /* On USG systems these have different names. 173 Version 6 of HP-UX supplies these in the BSD library, 174 which we currently want to avoid using. */ 175 176 /* #ifdef HPUX_5 */ 177 #define index strchr 178 #define rindex strrchr 179 /* #endif */ 180 181 /* Define C_SWITCH_MACHINE to be +X if you want the s200/300 182 * Emacs to run on both 68010 and 68020 based hp-ux's. 183 * 184 * Define OLD_HP_ASSEMBLER if you have an ancient assembler 185 * 186 * Define HPUX_68010 if you are using the new assembler but 187 * compiling for a s200 (upgraded) or s310. 68010 based 188 * processor without 68881. 189 */ 190 191 /* These switches increase the size of some internal C compiler tables. 192 They are required for compiling the X11 interface files. */ 193 194 #ifndef HPUX_5 195 #ifndef __GNUC__ 196 #define C_SWITCH_MACHINE -Wc,-Nd4000,-Ns3000 197 #endif 198 #endif 199 200 /* Define NEED_BSDTTY if you have such. */ 201 202 #ifndef NOMULTIPLEJOBS 203 #define NEED_BSDTTY 204 #endif 205 206 #endif /* not BSD4_3 */ 207