Initial revision
[bpt/emacs.git] / src / s / sco4.h
CommitLineData
1c71e0ff 1/* System description file for SCO 3.2v4.
3a22ee35 2 Copyright (C) 1993, 1994 Free Software Foundation, Inc.
1c71e0ff
JB
3
4This file is part of GNU Emacs.
5
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
3b7ad313
EN
18the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
1c71e0ff
JB
20
21/* Contributed by Ian Lance Taylor, ian@cygnus.com. */
22
23/* SCO is sort of like SVR3. */
24#include "usg5-3.h"
d5283a4c 25#define SCO_R4
1c71e0ff 26
b7e4bce2
RS
27#if 0 /* Turned off rather than make the Lisp code check for this. -- rms.
28 I am assuming that (at least most of) the tests for usg-unix-v
29 do the right thing for sco3.2v4 also. Things that *might* be wrong
30 as a result of turning off these lines include the values of
31 ange-ftp-remote-shell-file-name (now remsh)
32 dired-chown-program (now just chown)
33 lpr-command (now lp)
34 nntp-buggy-select (now t)
35 rmail-spool-directory (now /usr/mail?)
36 and the actions of the function print-region-1. */
37
1c71e0ff
JB
38/* SYSTEM_TYPE should indicate the kind of system you are using. */
39#undef SYSTEM_TYPE
40#define SYSTEM_TYPE "SCO 3.2v4"
b7e4bce2 41#endif
1c71e0ff
JB
42
43/* SCO supports job control. */
44#undef NOMULTIPLEJOBS
45
46/* SCO has termios. */
47#define HAVE_TERMIOS
48
1c71e0ff
JB
49/* SCO has ptys with unusual names. */
50#define HAVE_PTYS
51
0df1099d
RS
52#define PTY_ITERATION \
53 for (i = 0; ; i++)
1c71e0ff 54#define PTY_NAME_SPRINTF \
0df1099d 55 sprintf (pty_name, "/dev/ptyp%d", i);
1c71e0ff 56#define PTY_TTY_NAME_SPRINTF \
0df1099d 57 sprintf (pty_name, "/dev/ttyp%d", i);
1c71e0ff 58
0df1099d
RS
59/* Sockets are an option on SCO. If you have X, you have them.
60 They also exist if you have TCP, but we don't know how to test
61 for that. */
1c71e0ff
JB
62#ifdef HAVE_X_WINDOWS
63#define HAVE_SOCKETS
64#endif
65
635389e4
RS
66/* Must use 'cc' to link when build with motif toolkit. */
67#ifndef __GNUC__
68#define LINKER cc
69#endif
70
ec9d0f50
RS
71/* This is safe since we already assumed HAVE_SOCKET
72 if using X windows. */
73#undef LIBX11_SYSTEM
74#define LIBX11_SYSTEM -lpt -lnls -lnsl_s -lc_s -lsocket
75
fea0b06d
RS
76#ifdef HAVE_INET_SOCKETS /* This comes from autoconf. */
77#define HAVE_SOCKETS
78#endif
79
1c71e0ff 80#ifdef HAVE_SOCKETS
0952210a 81#define LIBS_SYSTEM -lsocket -lPW
0df1099d
RS
82
83/* SCO has gettimeofday in socket library */
5f5783ce
RS
84/* Autoconf should determine this, but for now,
85 play safe to avoid error rather than deleting this
86 and risking the wrong result. */
87#ifndef HAVE_GETTIMEOFDAY
0df1099d 88#define HAVE_GETTIMEOFDAY
1c71e0ff 89#endif
5f5783ce 90#endif
1c71e0ff 91
0952210a
RS
92/* This enables configure to tell that we have alloca. */
93#ifndef LIBS_SYSTEM
94#define LIBS_SYSTEM -lPW
95#endif
96
cd23c8db
RS
97#ifdef HAVE_X11R5
98/* configure can't get this right linking fails unless -lsocket is used. */
99#undef HAVE_XSCREENNUMBEROFSCREEN
100#define HAVE_XSCREENNUMBEROFSCREEN
101#endif
102
1c71e0ff
JB
103/* We don't have -loldX, and we don't need it. */
104#define LIB_XMENU_LIB
105
8db5fdf5
PE
106/* doug@zadall.com says SCO 3.2v4.2 mktime botches time arithmetic as used
107 by display-time. */
108#define BROKEN_MKTIME 1
109
1c71e0ff
JB
110/* SCO does have TIOCGWINSZ. */
111#undef BROKEN_TIOCGWINSZ
112#define NEED_PTEM_H
113
1c71e0ff
JB
114/* We need to link with crt1.o and crtn.o. */
115#define START_FILES pre-crt0.o /lib/crt1.o
116#define LIB_STANDARD -lc /lib/crtn.o
0df1099d
RS
117
118/* Send signals to subprocesses by "typing" signal chars at them. */
119#define SIGNALS_VIA_CHARACTERS
120
121/* Specify program for etc/fakemail to run. Define SMAIL if you are
122 using smail, don't for MMDF. */
123
124#ifdef SMAIL
125#define MAIL_PROGRAM_NAME "/bin/smail -q0"
126#else
127#define MAIL_PROGRAM_NAME "/usr/lib/mail/execmail"
128#endif
63456da5
RS
129
130/* miano@acosta.enet.dec.com says these are needed. */
131#define bcopy(b1,b2,len) memmove (b2, b1, len)
132#define bzero(b,len) memset (b, 0, len)
133#define bcmp(b1,b2,len) memcmp (b1, b2, len)
882d8079
RS
134
135/* Tell process_send_signal to use VSUSP instead of VSWTCH. */
136#define PREFER_VSUSP
88f7cc60
RS
137
138/* wjs@wang.com (William Smith) says this is needed on 3.2.4.2. */
139#define POSIX_SIGNALS
bf47de8e
RS
140
141/* wjs@wiis.wang.com says SCO 3.2 v4.2 "has sockets",
142 but only for network connections.
143 It doesn't have the kind of sockets that emacsclient.c
144 and emacsserver.c would use. */
145#define NO_SOCKETS_IN_FILE_SYSTEM