comparison src/s/hpux8.h @ 428:3ecd8885ac67 r21-2-22

Import from CVS: tag r21-2-22
author cvs
date Mon, 13 Aug 2007 11:28:15 +0200
parents
children
comparison
equal deleted inserted replaced
427:0a0253eac470 428:3ecd8885ac67
1 /* Synched up with: FSF 19.31. */
2
3 /* system description file for hpux version 8.
4 This contains changes that were suggested "for the hp700".
5 They were not needed for the 800.
6 Our conjecture that they are needed for hpux version 8,
7 which is what runs on the 700. */
8
9 /* XEmacs change -- suggested by hamish@bnr.ca */
10 #define DONT_DEFINE_NO_REMAP /* `static' hack not needed */
11
12 #include "hpux.h"
13
14 #define HPUX8
15
16 /* XEmacs change -- suggested by hamish@bnr.ca */
17 #undef HPUX_PRE_8_0
18
19 /* XEmacs change -- Ugly, nasty kludge to prevent X11R4 Xos.h from
20 redefining struct timeval and struct timezone. */
21 #define __TIMEVAL__
22
23 /* Don't use shared libraries. unexec doesn't handle them.
24 Note GCC automatically passes -a archive to ld, and it has its own
25 conflicting -a. */
26 #ifdef __GNUC__
27 /* No need to specify roundabout way of linking temacs. */
28 #define ORDINARY_LINK
29
30 #ifdef HPUX_USE_SHLIBS
31 #define LD_SWITCH_SYSTEM
32 #else
33 #define LD_SWITCH_SYSTEM "-Xlinker -a -Xlinker archive"
34 #endif
35
36 #else /* not __GNUC__ */
37
38 #if (defined(hp9000s700) || defined(__hp9000s700))
39 #ifdef HPUX_USE_SHLIBS
40 #define LD_SWITCH_SYSTEM "-L/lib/pa1.1"
41 #else
42 #define LD_SWITCH_SYSTEM "-a archive -L/lib/pa1.1"
43 #endif
44 #else /* not (defined(hp9000s700) || defined(__hp9000s700)) */
45 #ifdef HPUX_USE_SHLIBS
46 #define LD_SWITCH_SYSTEM
47 #else
48 #define LD_SWITCH_SYSTEM "-a archive"
49 #endif
50 #endif /* not (defined(hp9000s700) || defined(__hp9000s700)) */
51
52 #endif /* not __GNUC__ */
53
54 /* XEmacs change */
55 #ifndef __GNUC__
56 #define C_SWITCH_SYSTEM "-Aa -D_HPUX_SOURCE"
57 #endif
58
59 /* Some hpux 8 machines seem to have TIOCGWINSZ,
60 and none have sioctl.h, so might as well define this. */
61 #define NO_SIOCTL_H
62
63 #if 0 /* autoconf should be detecting the presence or absence of
64 random and srandom now. */
65 /* If you use X11R4 you must define this. If you use
66 X11R5 you must comment this out */
67 /* #define HAVE_RANDOM */
68 #define random foo_random
69 #define srandom foo_srandom
70 #endif
71
72 #if 0 /* This seems to be spurious. */
73 /* "X11R5" on hpux8 doesn't have this function, which is supposed to exist
74 in X11R5. Maybe things will work if we just don't call it. */
75 #define NO_XRM_SET_DATABASE
76 #endif
77
78 /* Enable a special hack in XTread_socket. */
79 /* XEmacs change: we don't use this. */
80 #if 0
81 #define X_IO_BUG
82 #endif