annotate src/s/hpux8.h @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 0132846995bd
children 6330739388db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* Synched up with: FSF 19.31. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 /* system description file for hpux version 8.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 This contains changes that were suggested "for the hp700".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 They were not needed for the 800.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 Our conjecture that they are needed for hpux version 8,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 which is what runs on the 700. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 /* XEmacs change -- suggested by hamish@bnr.ca */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 #define DONT_DEFINE_NO_REMAP /* `static' hack not needed */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 #include "hpux.h"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 #define HPUX8
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 /* XEmacs change -- suggested by hamish@bnr.ca */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 #undef HPUX_PRE_8_0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 /* XEmacs change -- Ugly, nasty kludge to prevent X11R4 Xos.h from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 redefining struct timeval and struct timezone. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #define __TIMEVAL__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 #if 0 /* RMSmacs */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 /* #### It appears that the FSF version of hpux8.h handles both
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 R4 and R5, while the XEmacs one handles only R4. Someone
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 fix this up. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 /* dob@inel.gov says HPUX 8.07 needs this. He was using X11R5, I think. */
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
29 #define LIBX11_SYSTEM "-lXext"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
31 #define LIB_X11_LIB "-L/usr/lib/X11R5 -L/usr/lib/X11R4 -lX11"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
32 #define C_SWITCH_X_SYSTEM "-I/usr/include/X11R5 -I/usr/include/X11R4"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
33 #define LD_SWITCH_X_DEFAULT "-L/usr/lib/X11R5 -L/usr/lib/X11R4"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 /* XEmacs change -- changed LIBX11_SYSTEM and C_SWITCH_X_SYSTEM */
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
37 #define C_SWITCH_X_SYSTEM "-I/usr/include/X11R4 -I/usr/include/Motif1.1"
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
38 #define LD_SWITCH_X_SYSTEM "-L/usr/lib/X11R4 -L/usr/lib/Motif1.1"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 /* Don't use shared libraries. unexec doesn't handle them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 Note GCC automatically passes -a archive to ld, and it has its own
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 conflicting -a. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #ifdef __GNUC__
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 /* No need to specify roundabout way of linking temacs. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 #define ORDINARY_LINK
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #ifdef HPUX_USE_SHLIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #define LD_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #else
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
50 #define LD_SWITCH_SYSTEM "-Xlinker -a -Xlinker archive"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 #else /* not __GNUC__ */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 #if (defined(hp9000s700) || defined(__hp9000s700))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 #ifdef HPUX_USE_SHLIBS
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
57 #define LD_SWITCH_SYSTEM "-L/lib/pa1.1"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #else
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
59 #define LD_SWITCH_SYSTEM "-a archive -L/lib/pa1.1"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 #ifdef HPUX_USE_SHLIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 #define LD_SWITCH_SYSTEM
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 #else
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
65 #define LD_SWITCH_SYSTEM "-a archive"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #endif /* not __GNUC__ */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 /* XEmacs change */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 #ifndef __GNUC__
163
0132846995bd Import from CVS: tag r20-3b8
cvs
parents: 155
diff changeset
73 #define C_SWITCH_SYSTEM "-Aa -D_HPUX_SOURCE"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 /* Some hpux 8 machines seem to have TIOCGWINSZ,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 and none have sioctl.h, so might as well define this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 #define NO_SIOCTL_H
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 #if 0 /* autoconf should be detecting the presence or absence of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 random and srandom now. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 /* If you use X11R4 you must define this. If you use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 X11R5 you must comment this out */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 /* #define HAVE_RANDOM */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 #define random foo_random
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 #define srandom foo_srandom
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 #if 0 /* This seems to be spurious. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 /* "X11R5" on hpux8 doesn't have this function, which is supposed to exist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 in X11R5. Maybe things will work if we just don't call it. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 #define NO_XRM_SET_DATABASE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 /* Enable a special hack in XTread_socket. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 /* XEmacs change: we don't use this. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 #if 0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 #define X_IO_BUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 #endif