Fix.
[emacs.git] / src / s / hpux8.h
bloba151769fcf946c4621d0cf78696aca0e18061168
1 /* system description file for hpux version 8.
2 This contains changes that were suggested "for the hp700".
3 They were not needed for the 800.
4 Our conjecture that they are needed for hpux version 8,
5 which is what runs on the 700. */
7 #define HPUX8
9 #include "hpux.h"
11 /* dob@inel.gov says HPUX 8.07 needs this. He was using X11R5, I think. */
12 #define LIBX11_SYSTEM -lXext
14 #define LIB_X11_LIB -L/usr/lib/X11R5 -L/usr/lib/X11R4 -lX11
15 #define C_SWITCH_X_SYSTEM -I/usr/include/X11R5 -I/usr/include/X11R4
16 #define LD_SWITCH_X_DEFAULT -L/usr/lib/X11R5 -L/usr/lib/X11R4
18 /* Don't use shared libraries. unexec doesn't handle them.
19 Note GCC automatically passes -a archive to ld, and it has its own
20 conflicting -a. */
21 #ifdef __GNUC__
22 /* No need to specify roundabout way of linking temacs. */
23 #define ORDINARY_LINK
25 #ifdef HPUX_USE_SHLIBS
26 #define LD_SWITCH_SYSTEM_TEMACS
27 #else
28 #define LD_SWITCH_SYSTEM_TEMACS -Xlinker -a -Xlinker archive
29 #endif
31 #else /* not __GNUC__ */
32 /* Note, -a only works for hpux ld, not cc. And "cc LD_SWITCH_SYSTEM"
33 is used in configure's $ac_link to do various autoconf checks.
34 Since we only need -a when unexec'ing, only pass in -a to
35 "ld temacs" (ghazi@caip.rutgers.edu 7/10/97). */
36 #if (defined(hp9000s700) || defined(__hp9000s700))
37 #ifdef HPUX_USE_SHLIBS
38 #define LD_SWITCH_SYSTEM_TEMACS -L/lib/pa1.1
39 #else
40 #define LD_SWITCH_SYSTEM_TEMACS -a archive -L/lib/pa1.1
41 #endif
42 #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */
43 #ifdef HPUX_USE_SHLIBS
44 #define LD_SWITCH_SYSTEM_TEMACS
45 #else
46 #define LD_SWITCH_SYSTEM_TEMACS -a archive
47 #endif
48 #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */
49 #endif /* not __GNUC__ */
51 /* Some hpux 8 machines seem to have TIOCGWINSZ,
52 and none have sioctl.h, so might as well define this. */
53 #define NO_SIOCTL_H
55 #if 0 /* autoconf should be detecting the presence or absence of
56 random and srandom now. */
57 /* If you use X11R4 you must define this. If you use
58 X11R5 you must comment this out */
59 /* #define HAVE_RANDOM */
60 #define random foo_random
61 #define srandom foo_srandom
62 #endif
64 #if 0 /* This seems to be spurious. */
65 /* "X11R5" on hpux8 doesn't have this function, which is supposed to exist
66 in X11R5. Maybe things will work if we just don't call it. */
67 #define NO_XRM_SET_DATABASE
68 #endif
70 /* Enable a special hack in XTread_socket. */
71 #define X_IO_BUG