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