Add --bzip2. Update copyright.
[bpt/emacs.git] / src / s / osf1.h
CommitLineData
6e0394c0
GM
1/* Definitions file for GNU Emacs running on osf1.
2 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006,
3 2007 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
7GNU Emacs is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
4a9f99bd 9the Free Software Foundation; either version 3, or (at your option)
6e0394c0
GM
10any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs; see the file COPYING. If not, write to
19the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA. */
21
22
c027d070 23#include "bsd4-3.h"
ec558adc
JB
24
25/* Identify OSF1 for the m- files. */
26
27#define OSF1
28
ec558adc
JB
29#define C_SWITCH_SYSTEM -D_BSD
30#define LIBS_SYSTEM -lbsd
ed4e8e40 31
2132af72
RS
32#define GETPGRP_NO_ARG
33
ec558adc 34#define SYSV_SYSTEM_DIR
70efb613
KH
35
36/* If your system uses COFF (Common Object File Format) then define the
37 preprocessor symbol "COFF". */
38
39#define COFF
143305ce
RS
40
41/* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
42 says where to find X windows at run time. We convert it to a -rpath option
43 which is what OSF1 uses. */
44#define LD_SWITCH_SYSTEM `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
92d225d1
KH
45
46#define HAVE_TERMIOS
47
1a7c1bba
DL
48#ifndef __GNUC__
49/* Optimize, inaccurate debugging. */
50#define C_DEBUG_SWITCH -g3
51#endif
2e83e1e1 52
a61f217b 53#ifndef NOT_C_CODE
2e83e1e1
DL
54#ifndef OSF5 /* fixed in 5.0 */
55/* Hack alert! For reasons unknown to mankind the string.h file insists
56 on defining bcopy etc. as taking char pointers as arguments. With
57 Emacs this produces an endless amount of warning which are harmless,
58 but tends to flood the real errors. This hack works around this problem
59 by not prototyping. */
60#define bcopy string_h_bcopy
61#define bzero string_h_bzero
62#define bcmp string_h_bcmp
63#include <string.h>
64#undef bcopy
65#undef bzero
66#undef bcmp
67#endif
a61f217b 68#endif
1d899485
DL
69
70#define ORDINARY_LINK
71
72/* Some systems seem to have this, others don't. */
73#ifdef HAVE_LIBDNET
74#define LIBS_MACHINE -ldnet
75#else
76#define LIBS_MACHINE -ldnet_stub
77#endif
78
79#define LIBS_DEBUG
80#define START_FILES pre-crt0.o
81
82#define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */
83#define PTY_NAME_SPRINTF /* none */
84#define PTY_TTY_NAME_SPRINTF /* none */
85#define PTY_OPEN \
86 do \
87 { \
88 int dummy; \
89 SIGMASKTYPE mask; \
90 mask = sigblock (sigmask (SIGCHLD)); \
91 if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \
92 fd = -1; \
93 sigsetmask (mask); \
94 emacs_close (dummy); \
95 } \
96 while (0)
ab5796a9
MB
97
98/* arch-tag: 65eaea67-fcc3-4de7-8574-d46beb82d4ed
99 (do not change this comment) */