1/* s/ file for System V release 4.2.
2
3   Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4                 2007  Free Software Foundation, Inc.
5
6This file is part of GNU Emacs.
7
8GNU Emacs is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
10the Free Software Foundation; either version 2, or (at your option)
11any later version.
12
13GNU Emacs is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16GNU General Public License for more details.
17
18You should have received a copy of the GNU General Public License
19along with GNU Emacs; see the file COPYING.  If not, write to
20the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21Boston, MA 02110-1301, USA.  */
22
23
24#include "usg5-4.h"
25
26/* fnf@cygnus.com says these exist.  */
27#define HAVE_TCATTR
28#if 0 /* autoconf should take care of this.  */
29#define HAVE_GETHOSTNAME
30#define HAVE_RANDOM
31#endif
32/* #define HAVE_GETWD  (appears to be buggy on SVR4.2) */
33#undef HAVE_GETWD
34
35/* Info from fnf@cygnus.com suggests this is appropriate.  */
36#define POSIX_SIGNALS
37
38/* We don't need the definition from usg5-3.h with POSIX_SIGNALS.  */
39#undef sigsetmask
40#undef HAVE_SYSV_SIGPAUSE
41
42/* Motif needs -lgen.  */
43#undef LIBS_SYSTEM
44#define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen
45
46/* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
47   rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't
48   work if POSIX_SIGNALS is defined.  It may also be appropriate for SVR4.x
49   (x<2) but I'm not sure.   fnf@cygnus.com */
50/* This sets the name of the slave side of the PTY.  On SysVr4,
51   grantpt(3) forks a subprocess, so keep sigchld_handler() from
52   intercepting that death.  If any child but grantpt's should die
53   within, it should be caught after sigrelse(2). */
54
55#undef PTY_TTY_NAME_SPRINTF
56#define PTY_TTY_NAME_SPRINTF			\
57  {						\
58    char *ptsname(), *ptyname;			\
59						\
60    sigblock(sigmask(SIGCLD));			\
61    if (grantpt(fd) == -1)			\
62      fatal("could not grant slave pty");	\
63    sigunblock(sigmask(SIGCLD));		\
64    if (unlockpt(fd) == -1)			\
65      fatal("could not unlock slave pty");	\
66    if (!(ptyname = ptsname(fd)))		\
67      fatal ("could not enable slave pty");	\
68    strncpy(pty_name, ptyname, sizeof(pty_name)); \
69    pty_name[sizeof(pty_name) - 1] = 0;		\
70  }
71
72/* Use libw.a along with X11R6 Xt.  */
73#define NEED_LIBW
74
75/* ryanr@ellingtn.ftc.nrcs.usda.gov (Richard Anthony Ryan) says -lXimp
76   is needed in UNIX_SV ... 4.2 1.1.2.  */
77#define LIB_MOTIF -lXm -lXimp
78
79/* arch-tag: 9bbfcfc1-19be-45a1-9699-af57b87da2c6
80   (do not change this comment) */
81