diff options
| author | Richard M. Stallman | 1996-06-20 17:24:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-20 17:24:47 +0000 |
| commit | 5c5eb33532375e6c7ee7ea5e7f690aeba13cff5e (patch) | |
| tree | 5be0774963c52784bbb6309e5791672cbe08d71d /src/s | |
| parent | 1ea7ac3f8dbffdd7e41a058d39cac8b94ab89897 (diff) | |
| download | emacs-5c5eb33532375e6c7ee7ea5e7f690aeba13cff5e.tar.gz emacs-5c5eb33532375e6c7ee7ea5e7f690aeba13cff5e.zip | |
Initial revision
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/sco5.h | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/src/s/sco5.h b/src/s/sco5.h new file mode 100644 index 00000000000..6c32efa62ca --- /dev/null +++ b/src/s/sco5.h | |||
| @@ -0,0 +1,167 @@ | |||
| 1 | /* System description file for SCO 3.2v5. | ||
| 2 | Copyright (C) 1993, 1994 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 GNU Emacs; see the file COPYING. If not, write to | ||
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | ||
| 19 | |||
| 20 | /* Contributed by Ian Lance Taylor, ian@cygnus.com. */ | ||
| 21 | |||
| 22 | /* SCO is sort of like SVR3. */ | ||
| 23 | #include "usg5-3.h" | ||
| 24 | #define SCO_R5 | ||
| 25 | |||
| 26 | #if 0 /* Turned off rather than make the Lisp code check for this. -- rms. | ||
| 27 | I am assuming that (at least most of) the tests for usg-unix-v | ||
| 28 | do the right thing for sco3.2v4 also. Things that *might* be wrong | ||
| 29 | as a result of turning off these lines include the values of | ||
| 30 | ange-ftp-remote-shell-file-name (now remsh) | ||
| 31 | dired-chown-program (now just chown) | ||
| 32 | lpr-command (now lp) | ||
| 33 | nntp-buggy-select (now t) | ||
| 34 | rmail-spool-directory (now /usr/mail?) | ||
| 35 | and the actions of the function print-region-1. */ | ||
| 36 | |||
| 37 | /* SYSTEM_TYPE should indicate the kind of system you are using. */ | ||
| 38 | #undef SYSTEM_TYPE | ||
| 39 | #define SYSTEM_TYPE "SCO 3.2v4" | ||
| 40 | #endif | ||
| 41 | |||
| 42 | /* SCO supports job control. */ | ||
| 43 | #undef NOMULTIPLEJOBS | ||
| 44 | |||
| 45 | /* SCO has termios. */ | ||
| 46 | #define HAVE_TERMIOS | ||
| 47 | |||
| 48 | /* SCO has ptys with unusual names. */ | ||
| 49 | #define HAVE_PTYS | ||
| 50 | |||
| 51 | #define PTY_ITERATION \ | ||
| 52 | for (i = 0; ; i++) | ||
| 53 | #define PTY_NAME_SPRINTF \ | ||
| 54 | sprintf (pty_name, "/dev/ptyp%d", i); | ||
| 55 | #define PTY_TTY_NAME_SPRINTF \ | ||
| 56 | sprintf (pty_name, "/dev/ttyp%d", i); | ||
| 57 | |||
| 58 | /* Sockets are an option on SCO. If you have X, you have them. | ||
| 59 | They also exist if you have TCP, but we don't know how to test | ||
| 60 | for that. */ | ||
| 61 | #ifdef HAVE_X_WINDOWS | ||
| 62 | #define HAVE_SOCKETS | ||
| 63 | #endif | ||
| 64 | |||
| 65 | #ifndef __GNUC__ | ||
| 66 | #define LINKER ld | ||
| 67 | #endif | ||
| 68 | |||
| 69 | /* This is safe since we already assumed HAVE_SOCKET | ||
| 70 | if using X windows. */ | ||
| 71 | #undef LIBX11_SYSTEM | ||
| 72 | #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket | ||
| 73 | |||
| 74 | #undef LIB_X11_LIB | ||
| 75 | #define LIB_X11_LIB -lX11 | ||
| 76 | |||
| 77 | #ifdef HAVE_INET_SOCKETS /* This comes from autoconf. */ | ||
| 78 | #define HAVE_SOCKETS | ||
| 79 | #endif | ||
| 80 | |||
| 81 | #ifdef HAVE_SOCKETS | ||
| 82 | #define LIBS_SYSTEM -lsocket -lPW | ||
| 83 | #endif | ||
| 84 | |||
| 85 | #ifndef HAVE_GETTIMEOFDAY | ||
| 86 | #define HAVE_GETTIMEOFDAY | ||
| 87 | #endif | ||
| 88 | |||
| 89 | /* This enables configure to tell that we have alloca. */ | ||
| 90 | #ifndef LIBS_SYSTEM | ||
| 91 | #define LIBS_SYSTEM -lPW | ||
| 92 | #endif | ||
| 93 | |||
| 94 | #ifdef HAVE_X11R5 | ||
| 95 | /* configure can't get this right linking fails unless -lsocket is used. */ | ||
| 96 | #undef HAVE_XSCREENNUMBEROFSCREEN | ||
| 97 | #define HAVE_XSCREENNUMBEROFSCREEN | ||
| 98 | #endif | ||
| 99 | |||
| 100 | /* We don't have -loldX, and we don't need it. */ | ||
| 101 | #define LIB_XMENU_LIB | ||
| 102 | |||
| 103 | /* SCO does have TIOCGWINSZ. */ | ||
| 104 | #undef BROKEN_TIOCGWINSZ | ||
| 105 | #define NEED_PTEM_H | ||
| 106 | |||
| 107 | /* We need to link with crt1.o and crtn.o. */ | ||
| 108 | #define START_FILES pre-crt0.o /lib/crt1.o | ||
| 109 | #define LIB_STANDARD -lc /lib/crtn.o | ||
| 110 | |||
| 111 | /* Send signals to subprocesses by "typing" signal chars at them. */ | ||
| 112 | #define SIGNALS_VIA_CHARACTERS | ||
| 113 | |||
| 114 | /* Specify program for etc/fakemail to run. Define SMAIL if you are | ||
| 115 | using smail, don't for MMDF. */ | ||
| 116 | |||
| 117 | #ifdef SMAIL | ||
| 118 | #define MAIL_PROGRAM_NAME "/bin/smail -q0" | ||
| 119 | #else | ||
| 120 | #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail" | ||
| 121 | #endif | ||
| 122 | |||
| 123 | /* miano@acosta.enet.dec.com says these are needed. */ | ||
| 124 | #define bcopy(b1,b2,len) memmove (b2, b1, len) | ||
| 125 | #define bzero(b,len) memset (b, 0, len) | ||
| 126 | #define bcmp(b1,b2,len) memcmp (b1, b2, len) | ||
| 127 | |||
| 128 | /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ | ||
| 129 | #define PREFER_VSUSP | ||
| 130 | |||
| 131 | /* wjs@wang.com (William Smith) says this is needed on 3.2.4.2. */ | ||
| 132 | #define POSIX_SIGNALS | ||
| 133 | |||
| 134 | /* wjs@wiis.wang.com says SCO 3.2 v4.2 "has sockets", | ||
| 135 | but only for network connections. | ||
| 136 | It doesn't have the kind of sockets that emacsclient.c | ||
| 137 | and emacsserver.c would use. */ | ||
| 138 | #define NO_SOCKETS_IN_FILE_SYSTEM | ||
| 139 | |||
| 140 | #ifndef PENDING_OUTPUT_COUNT | ||
| 141 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->__ptr - (FILE)->__base) | ||
| 142 | #endif | ||
| 143 | |||
| 144 | #ifndef HAVE_VFORK | ||
| 145 | #define HAVE_VFORK | ||
| 146 | #endif | ||
| 147 | |||
| 148 | /* Use ELF and get real shared libraries */ | ||
| 149 | |||
| 150 | #undef COFF | ||
| 151 | #define ELF | ||
| 152 | |||
| 153 | #define UNEXEC unexelf.o | ||
| 154 | |||
| 155 | #define C_SWITCH_SYSTEM -belf | ||
| 156 | #define LD_SWITCH_SYSTEM -belf | ||
| 157 | |||
| 158 | /* SCO has a working alloca in libPW */ | ||
| 159 | #define HAVE_ALLOCA | ||
| 160 | |||
| 161 | /* Don't disable static function, as SCO's header files have some.*/ | ||
| 162 | #undef static | ||
| 163 | |||
| 164 | #undef START_FILES | ||
| 165 | #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/values-Xt.o | ||
| 166 | #undef LIB_STANDARD | ||
| 167 | #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o | ||