Update years in copyright notice; nfc.
[bpt/emacs.git] / src / s / sco4.h
1 /* System description file for SCO 3.2v4.
2 Copyright (C) 1993, 1994, 2002, 2003, 2004,
3 2005, 2006 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 2, 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 /* Contributed by Ian Lance Taylor, ian@cygnus.com. */
23
24 /* SCO is sort of like SVR3. */
25 #include "usg5-3.h"
26 #define SCO_R4
27
28 #if 0 /* Turned off rather than make the Lisp code check for this. -- rms.
29 I am assuming that (at least most of) the tests for usg-unix-v
30 do the right thing for sco3.2v4 also. Things that *might* be wrong
31 as a result of turning off these lines include the values of
32 ange-ftp-remote-shell-file-name (now remsh)
33 dired-chown-program (now just chown)
34 lpr-command (now lp)
35 nntp-buggy-select (now t)
36 rmail-spool-directory (now /usr/mail?)
37 and the actions of the function print-region-1. */
38
39 /* SYSTEM_TYPE should indicate the kind of system you are using. */
40 #undef SYSTEM_TYPE
41 #define SYSTEM_TYPE "SCO 3.2v4"
42 #endif
43
44 /* SCO supports job control. */
45 #undef NOMULTIPLEJOBS
46
47 /* SCO has termios. */
48 #define HAVE_TERMIOS
49
50 /* SCO has ptys with unusual names. */
51 #define HAVE_PTYS
52
53 #define PTY_ITERATION \
54 for (i = 0; ; i++)
55 #define PTY_NAME_SPRINTF \
56 sprintf (pty_name, "/dev/ptyp%d", i);
57 #define PTY_TTY_NAME_SPRINTF \
58 sprintf (pty_name, "/dev/ttyp%d", i);
59
60 /* Sockets are an option on SCO. If you have X, you have them.
61 They also exist if you have TCP, but we don't know how to test
62 for that. */
63 #ifdef HAVE_X_WINDOWS
64 #define HAVE_SOCKETS
65 #endif
66
67 /* Must use 'cc' to link when build with motif toolkit. */
68 #ifndef __GNUC__
69 #define LINKER cc
70 #endif
71
72 /* This is safe since we already assumed HAVE_SOCKET
73 if using X windows. */
74 #undef LIBX11_SYSTEM
75 #define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket
76
77 /* Motif needs -lintl on some (maybe all) ofthese systems. */
78 #ifdef HAVE_LIBINTL
79 #define LIB_MOTIF -lXm -lintl
80 #endif
81
82 #ifdef HAVE_INET_SOCKETS /* This comes from autoconf. */
83 #define HAVE_SOCKETS
84 #endif
85
86 #ifdef HAVE_SOCKETS
87 #define LIBS_SYSTEM -lsocket -lPW
88
89 /* SCO has gettimeofday in socket library */
90 /* Autoconf should determine this, but for now,
91 play safe to avoid error rather than deleting this
92 and risking the wrong result. */
93 #ifndef HAVE_GETTIMEOFDAY
94 #define HAVE_GETTIMEOFDAY
95 #endif
96 #endif
97
98 /* This enables configure to tell that we have alloca. */
99 #ifndef LIBS_SYSTEM
100 #define LIBS_SYSTEM -lPW
101 #endif
102
103 #ifdef HAVE_X11R5
104 /* configure can't get this right linking fails unless -lsocket is used. */
105 #undef HAVE_XSCREENNUMBEROFSCREEN
106 #define HAVE_XSCREENNUMBEROFSCREEN
107 #endif
108
109 /* We don't have -loldX, and we don't need it. */
110 #define LIB_XMENU_LIB
111
112 /* SCO does have TIOCGWINSZ. */
113 #undef BROKEN_TIOCGWINSZ
114 #define NEED_PTEM_H
115
116 /* We need to link with crt1.o and crtn.o. */
117 #define START_FILES pre-crt0.o /lib/crt1.o
118 #define LIB_STANDARD -lc /lib/crtn.o
119
120 /* Send signals to subprocesses by "typing" signal chars at them. */
121 #define SIGNALS_VIA_CHARACTERS
122
123 /* Specify program for etc/fakemail to run. Define SMAIL if you are
124 using smail, don't for MMDF. */
125
126 #ifdef SMAIL
127 #define MAIL_PROGRAM_NAME "/bin/smail -q0"
128 #else
129 #define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
130 #endif
131
132 /* Tell process_send_signal to use VSUSP instead of VSWTCH. */
133 #define PREFER_VSUSP
134
135 /* wjs@wang.com (William Smith) says this is needed on 3.2.4.2. */
136 #define POSIX_SIGNALS
137
138 /* wjs@wiis.wang.com says SCO 3.2 v4.2 "has sockets",
139 but only for network connections.
140 It doesn't have the kind of sockets that emacsclient.c
141 and emacsserver.c would use. */
142 #define NO_SOCKETS_IN_FILE_SYSTEM
143
144 #define NARROWPROTO 1
145
146 /* arch-tag: 4dd6fe94-bcb7-4be0-942a-ff4bc3cd914e
147 (do not change this comment) */