Switch license to GPLv3 or later.
[bpt/emacs.git] / src / s / hpux10.h
CommitLineData
efc9f43a
GM
1/*
2Copyright (C) 1999, 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)
efc9f43a
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
2ace9a51
RS
23#include "hpux9shr.h"
24
c7ad3a83
RS
25#define HPUX10
26
2ace9a51
RS
27/* We have to go this route, rather than hpux9's approach of renaming the
28 functions via macros. The system's stdlib.h has fully prototyped
29 declarations, which yields a conflicting definition of srand48; it
30 tries to redeclare what was once srandom to be srand48. So we go
31 with HAVE_LRAND48 being defined. */
32#undef srandom
3d823709 33#undef random
2ace9a51 34#undef HAVE_RANDOM
3d823709 35
2ace9a51 36#define FORCE_ALLOCA_H
d7a28201 37
5fc9cabd
RS
38/* AlainF 20-Jul-1996 says this is right. */
39#undef KERNEL_FILE
40#define KERNEL_FILE "/stand/vmunix"
41
d7a28201
RS
42#ifdef LIBS_SYSTEM
43#undef LIBS_SYSTEM
44#endif
45#ifdef HPUX_NET
46#define LIBS_SYSTEM -ln -l:libdld.sl
47#else
48#define LIBS_SYSTEM -l:libdld.sl
49#endif
12c4b404 50
077c040b
GM
51/* Rainer Malzbender <rainer@displaytech.com> says definining
52 HAVE_XRMSETDATABASE allows Emacs to compile on HP-UX 10.20
53 using GCC. */
54
55#ifndef HAVE_XRMSETDATABASE
56#define HAVE_XRMSETDATABASE
57#endif
58
12c4b404 59/* Make sure we get select from libc rather than from libcurses
f846bc36
RS
60 because libcurses on HPUX 10.10 has a broken version of select.
61 We used to use -lc -lcurses, but this may be cleaner. */
62#define LIBS_TERMCAP -ltermcap
09af8ae6
RS
63
64#undef C_SWITCH_X_SYSTEM
65#undef LD_SWITCH_X_DEFAULT
66/* However, HPUX 10 puts Xaw and Xmu in a strange place
67 (if you install them at all). So search that place. */
050c9c68
KH
68#define C_SWITCH_X_SYSTEM -I/usr/include/X11R6 -I/usr/include/X11R5 -I/usr/include/Motif1.2 -I/usr/contrib/X11R6/include -I/usr/contrib/X11R5/include
69#define LD_SWITCH_X_DEFAULT -L/usr/lib/X11R6 -L/usr/lib/X11R5 -L/usr/lib/Motif1.2 -L/usr/contrib/X11R5/lib
06f68dd1 70
ff501f2b
DL
71/* 2000-11-21: Temporarily disable Unix 98 large file support found by
72 configure. It fails on HPUX 11, at least, because it enables
73 header sections which lose when `static' is defined away, as it is
74 on HP-UX. (You get duplicate symbol errors on linking). */
06f68dd1
GM
75
76#undef _FILE_OFFSET_BITS
3622bdf9
RS
77
78/* Don't define _BSD */
79#undef C_SWITCH_SYSTEM
d7efe3e1 80
9ded7072
JB
81/* HP-UX 10.10 seem to have problems with signals coming in
82 Causes "poll: interrupted system call" messages when Emacs is run
83 in an X window (see process.c) */
84#define POLL_INTERRUPTED_SYS_CALL
ab5796a9
MB
85
86/* arch-tag: 1b95d569-a3c1-4fb0-8f69-fef264c17c24
87 (do not change this comment) */