diff options
| author | Dan Nicolaescu | 2008-02-10 17:01:47 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-02-10 17:01:47 +0000 |
| commit | 13f6772b12f36c80de152b514c19764c1e4ec16b (patch) | |
| tree | ae86722a4f1a4c0e6404d4a0b40289ca1c2f0a33 /src/s/gnu-linux.h | |
| parent | eaf6a1df4b1f8e66353096a0baa36eaaafa58ddb (diff) | |
| download | emacs-13f6772b12f36c80de152b514c19764c1e4ec16b.tar.gz emacs-13f6772b12f36c80de152b514c19764c1e4ec16b.zip | |
* s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
* Makefile.in (GNUC): Remove support for gcc-1.x.
Diffstat (limited to 'src/s/gnu-linux.h')
| -rw-r--r-- | src/s/gnu-linux.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index 69ac9fc4c4f..e0388a67b89 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -39,19 +39,11 @@ Boston, MA 02110-1301, USA. */ | |||
| 39 | 39 | ||
| 40 | #define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */ | 40 | #define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */ |
| 41 | 41 | ||
| 42 | /* Check the version number of Linux--if it is at least 1.2.0, | ||
| 43 | it is safe to use SIGIO. */ | ||
| 44 | #ifndef NOT_C_CODE | 42 | #ifndef NOT_C_CODE |
| 45 | #ifdef emacs | 43 | #ifdef emacs |
| 46 | #ifdef HAVE_LINUX_VERSION_H | 44 | #ifdef HAVE_LINUX_VERSION_H |
| 47 | #include <linux/version.h> | 45 | #include <linux/version.h> |
| 48 | 46 | ||
| 49 | #if LINUX_VERSION_CODE > 0x10200 | ||
| 50 | #define LINUX_SIGIO_DOES_WORK | ||
| 51 | #endif /* LINUX_VERSION_CODE > 0x10200 */ | ||
| 52 | #if LINUX_VERSION_CODE >= 0x20000 | ||
| 53 | #define LINUX_MAP_SHARED_DOES_WORK | ||
| 54 | #endif /* LINUX_VERSION_CODE >= 0x20000 */ | ||
| 55 | #if LINUX_VERSION_CODE >= 0x20400 | 47 | #if LINUX_VERSION_CODE >= 0x20400 |
| 56 | #define LINUX_SIGNALS_VIA_CHARACTERS_DOES_WORK | 48 | #define LINUX_SIGNALS_VIA_CHARACTERS_DOES_WORK |
| 57 | #endif /* LINUX_VERSION_CODE >= 0x20400 */ | 49 | #endif /* LINUX_VERSION_CODE >= 0x20400 */ |
| @@ -188,14 +180,8 @@ Boston, MA 02110-1301, USA. */ | |||
| 188 | /* Ask GCC where to find libgcc.a. */ | 180 | /* Ask GCC where to find libgcc.a. */ |
| 189 | #define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name` | 181 | #define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name` |
| 190 | 182 | ||
| 191 | #ifndef __ELF__ | ||
| 192 | /* GNU/Linux usually has crt0.o in a non-standard place */ | ||
| 193 | #define START_FILES pre-crt0.o /usr/lib/crt0.o | ||
| 194 | #else | ||
| 195 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o | 183 | #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o |
| 196 | #endif | ||
| 197 | 184 | ||
| 198 | #ifdef __ELF__ | ||
| 199 | /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option | 185 | /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option |
| 200 | says where to find X windows at run time. */ | 186 | says where to find X windows at run time. */ |
| 201 | 187 | ||
| @@ -210,20 +196,9 @@ Boston, MA 02110-1301, USA. */ | |||
| 210 | switches, so this also works with older versions that don't implement | 196 | switches, so this also works with older versions that don't implement |
| 211 | -z combreloc. */ | 197 | -z combreloc. */ |
| 212 | #define LD_SWITCH_SYSTEM_TEMACS -z nocombreloc | 198 | #define LD_SWITCH_SYSTEM_TEMACS -z nocombreloc |
| 213 | #endif /* __ELF__ */ | ||
| 214 | 199 | ||
| 215 | /* As of version 1.1.51, Linux did not actually implement SIGIO. | ||
| 216 | But it works in newer versions. */ | ||
| 217 | #ifdef emacs | 200 | #ifdef emacs |
| 218 | #ifdef LINUX_SIGIO_DOES_WORK | ||
| 219 | #define INTERRUPT_INPUT | 201 | #define INTERRUPT_INPUT |
| 220 | #else | ||
| 221 | #define BROKEN_SIGIO | ||
| 222 | /* Some versions of Linux define SIGURG and SIGPOLL as aliases for SIGIO. | ||
| 223 | This prevents lossage in process.c. */ | ||
| 224 | #define BROKEN_SIGURG | ||
| 225 | #define BROKEN_SIGPOLL | ||
| 226 | #endif | ||
| 227 | #endif | 202 | #endif |
| 228 | 203 | ||
| 229 | /* This is needed for sysdep.c */ | 204 | /* This is needed for sysdep.c */ |
| @@ -239,13 +214,9 @@ Boston, MA 02110-1301, USA. */ | |||
| 239 | 214 | ||
| 240 | /* Best not to include -lg, unless it is last on the command line */ | 215 | /* Best not to include -lg, unless it is last on the command line */ |
| 241 | #define LIBS_DEBUG | 216 | #define LIBS_DEBUG |
| 242 | #ifndef __ELF__ | ||
| 243 | #define LIB_STANDARD -lc /* avoid -lPW */ | ||
| 244 | #else | ||
| 245 | #undef LIB_GCC | 217 | #undef LIB_GCC |
| 246 | #define LIB_GCC | 218 | #define LIB_GCC |
| 247 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o | 219 | #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o |
| 248 | #endif | ||
| 249 | 220 | ||
| 250 | /* Don't use -g in test compiles in configure. | 221 | /* Don't use -g in test compiles in configure. |
| 251 | This is so we will use the same shared libs for that linking | 222 | This is so we will use the same shared libs for that linking |
| @@ -286,46 +257,13 @@ Boston, MA 02110-1301, USA. */ | |||
| 286 | 257 | ||
| 287 | #define HAVE_SYSVIPC | 258 | #define HAVE_SYSVIPC |
| 288 | 259 | ||
| 289 | #ifdef __ELF__ | ||
| 290 | #define UNEXEC unexelf.o | 260 | #define UNEXEC unexelf.o |
| 291 | #ifndef LINUX_MAP_SHARED_DOES_WORK | ||
| 292 | #define UNEXEC_USE_MAP_PRIVATE | ||
| 293 | #endif | ||
| 294 | #endif | ||
| 295 | |||
| 296 | #ifdef LINUX_QMAGIC | ||
| 297 | |||
| 298 | #define HAVE_TEXT_START | ||
| 299 | #define UNEXEC unexsunos4.o | ||
| 300 | #define N_PAGSIZ(x) PAGE_SIZE | ||
| 301 | |||
| 302 | #else /* not LINUX_QMAGIC */ | ||
| 303 | 261 | ||
| 304 | #define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0) | 262 | #define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0) |
| 305 | #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) | 263 | #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) |
| 306 | #define ADJUST_EXEC_HEADER \ | 264 | #define ADJUST_EXEC_HEADER \ |
| 307 | unexec_text_start = N_TXTADDR(ohdr) + A_TEXT_OFFSET(ohdr) | 265 | unexec_text_start = N_TXTADDR(ohdr) + A_TEXT_OFFSET(ohdr) |
| 308 | 266 | ||
| 309 | #endif /* not LINUX_QMAGIC */ | ||
| 310 | |||
| 311 | #if 0 | ||
| 312 | /* In 19.23 and 19.24, configure sometimes fails to define these. | ||
| 313 | It has to do with the fact that configure uses CFLAGS when linking | ||
| 314 | while Makefile.in.in (erroneously) fails to do so when linking temacs. */ | ||
| 315 | #ifndef HAVE_GETTIMEOFDAY | ||
| 316 | #define HAVE_GETTIMEOFDAY | ||
| 317 | #endif | ||
| 318 | #ifndef HAVE_MKDIR | ||
| 319 | #define HAVE_MKDIR | ||
| 320 | #endif | ||
| 321 | #ifndef HAVE_RMDIR | ||
| 322 | #define HAVE_RMDIR | ||
| 323 | #endif | ||
| 324 | #ifndef HAVE_XSCREENNUMBEROFSCREEN | ||
| 325 | #define HAVE_XSCREENNUMBEROFSCREEN | ||
| 326 | #endif | ||
| 327 | #endif /* 0 */ | ||
| 328 | |||
| 329 | /* This is to work around mysterious gcc failures in some system versions. | 267 | /* This is to work around mysterious gcc failures in some system versions. |
| 330 | It is unlikely that Emacs changes will work around this problem; | 268 | It is unlikely that Emacs changes will work around this problem; |
| 331 | therefore, this should remain permanently. */ | 269 | therefore, this should remain permanently. */ |