]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/hp.cf
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / hp.cf
1 XCOMM platform:  $TOG: hp.cf /main/85 1997/04/17 14:11:34 barstow $
2
3 #ifndef OSName
4 # define OSName         DefaultOSName
5 #endif
6 #ifndef OSMajorVersion
7 # define OSMajorVersion DefaultOSMajorVersion
8 #endif
9 #ifndef OSMinorVersion
10 # define OSMinorVersion DefaultOSMinorVersion
11 #endif
12 #ifndef OSTeenyVersion
13 # define OSTeenyVersion DefaultOSTeenyVersion
14 #endif
15 XCOMM operating system:  OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion)
16
17
18 /* The default yacc options are too small for Uil.y. */
19 #define YaccFlags -Nm15000
20
21 /*
22  * C++ compiler setup.  This file knows what options to use with 
23  * certain compilers, including HP C++ and CenterLine C++.
24  * 
25  * For HP C++, define HasHPCplusplus to YES in site.def.  
26  * For CenterLine C++, define HasCenterLineCplusplus to YES in site.def.
27  * For other compilers, define HasCplusplus to YES in site.def, and 
28  *    check to see if you need to provide values for CplusplusOptions
29  *    and/or DefaultCplusplusOptions.
30  *
31  * In any case, you may also need to set CplusplusDependIncludes.
32  */
33
34 #if HasHPCplusplus
35 # ifndef  HasCplusplus
36 #  define HasCplusplus YES
37 # endif
38 # ifndef  DefaultCplusplusOptions
39 #  define DefaultCplusplusOptions       -Aa
40 # endif
41 # ifndef  CplusplusOptions
42 #  define CplusplusOptions              -Aa
43 # endif
44 # ifndef  CplusplusCmd
45 #  define CplusplusCmd                  /opt/CC/bin/CC
46 # endif
47 # ifndef  CplusplusDependIncludes 
48 #  define CplusplusDependIncludes       -I/opt/CC/include/CC
49 # endif
50 #endif
51
52 #ifndef  CcCmd
53 # define CcCmd                  /opt/ansic/bin/cc
54 #endif
55 #ifndef  YaccCmd
56 # define YaccCmd                /opt/langtools/bin/yacc
57 #endif
58 #ifndef  LexCmd
59 # define LexCmd                 /opt/langtools/bin/lex
60 #endif
61 #ifndef  LintCmd
62 # define LintCmd                /opt/ansic/bin/lint
63 #endif
64
65 #if HasCenterLineCplusplus
66 # ifndef HasCplusplus
67 #  define HasCplusplus                  YES
68 # endif
69 # ifndef OptimizedCplusplusDebugFlags
70 #  define OptimizedCplusplusDebugFlags  -O
71 # endif
72 # ifndef CplusplusDependIncludes 
73 #  define CplusplusDependIncludes -I/usr/local/CenterLine/clc++/pa-hpux8/incl
74 # endif
75 #endif
76
77
78 #define SystemV                         YES
79 #define Malloc0ReturnsNull              YES
80
81 #ifdef __hp9000s800
82 # ifndef OptimizedCDebugFlags
83 #  define OptimizedCDebugFlags          +O1
84 # endif
85 # ifndef DefaultCCOptions
86 #  define DefaultCCOptions              -Ae +ESlit
87 # endif
88 # ifndef SharedLibraryCCOptions
89 #  define SharedLibraryCCOptions        -Ae
90 # endif
91 # define StandardDefines                -Dhpux -DSYSV
92 # define ServerExtraDefines             -DXOS -DBSTORE -DSOFTWARE_CURSOR -DNO_ALLOCA -DSCREEN_PIXMAPS -DMERGE_SAVE_UNDERS -DHAS_IFREQ -DFORCE_SEPARATE_PRIVATE
93
94 # if OSMajorVersion > 9
95 #  include <hpLib.rules>
96 # endif
97
98 #else /* __hp9000s800 */
99 # define StandardDefines        -Dhpux -DSYSV
100 # if OSMajorVersion < 8
101 #  define DefaultCCOptions      -Wc,-Nd4000,-Ns4100,-Ne700,-Np200,-Nw300
102 #  define PexCCOptions          -Wp,-H150000 -Wc,-Nd4000,-Ns8100,-Ne700,-Np200
103 # else
104 #  define OptimizedCDebugFlags  +O1
105 #  define PexCCOptions          -Wp,-H250000
106 # endif
107 # define PexShmIPC              NO
108 # define LintOpts               -ax -Nd4000 -Ns8000 -Ne700 -Np200 -Na25000
109 #endif
110 #define MvCmd                   mv -f
111 #define LdCombineFlags          -r
112 #define ExecableScripts         YES
113 #define HasVFork                YES
114 #define HasPoll                 YES
115 #define RemoveTargetProgramByMoving     YES
116 #define ExpandManNames          YES
117 #define HasPutenv               YES
118 #define HasNdbm                 YES
119 #define DBMLibrary              /usr/lib/libdbm.a
120 #define PrimaryScreenResolution 91
121 #define ExtensionOSDefines      -DHPINPUT # -DXTESTEXT1
122 #define XhpServer               NO
123 #define ServerExtraSysLibs      -ldld
124 #ifndef BuildXInputExt
125 # define BuildXInputExt         NO
126 #endif
127 #define BuildPex NO 
128 #define BuildPexExt NO 
129 #define XvncServer YES 
130 #define HPFastScrolling         YES
131 #ifndef BuildServer
132 # define BuildServer            __hp9000s700
133 #endif
134 #define NeedBerklib             NO
135 #define XawI18nDefines          -DHAS_WCHAR_H -DHAS_ISW_FUNCS
136
137 #if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
138 # define ConnectionFlags        -DTCPCONN       /* no unix sockets */
139 #endif
140
141 #if OSMajorVersion > 8
142 #define HasWChar32             YES
143 #define HasPlugin              YES
144 #endif
145
146 #ifdef __hp9000s300
147 # ifndef CompatabilityDefines
148 #  define CompatabilityDefines -D__hp9000s300 -Dhp9000s300
149 # endif
150 #elif defined(__hp9000s700)
151 # ifndef CompatabilityDefines
152 #  define CompatabilityDefines -D__hp9000s800 -Dhp9000s800 -D__hp9000s700
153 # endif
154 #else
155 # ifndef CompatabilityDefines
156 #  define CompatabilityDefines -D__hp9000s800 -Dhp9000s800
157 # endif
158 #endif
159
160 #ifndef OsDefines
161 # if OSMajorVersion > 9
162 #  define OsDefines     -DhpV4 -DHPUX
163 # else
164 #  define OsDefines     -DHPUX
165 # endif
166 #endif
167
168 #if OSMajorVersion > 9
169 # if ThreadedX
170 #  define MTSafeAPIDefines      -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
171 # endif
172 # define CppCmd                 /opt/langtools/lbin/cpp
173 #endif
174
175 /* CC does not recognize -Ae, and has a different meaning for +e. */
176 /* +e also confuses cpp. */
177 #define AnsiDefines             -Ae -D_HPUX_SOURCE
178 #define CplusplusAnsiDefines    -Aa -D_HPUX_SOURCE
179
180 #define BuildLibPathVar SHLIB_PATH
181
182 #define CdeBaseProjectDefines \
183         -DNLS16 -DMALLOC_0_RETURNS_NULL -DMERGE -D__hpux \
184         -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion \
185         CompatabilityDefines OsDefines
186
187 #define CdeProjectDefines       CdeBaseProjectDefines AnsiDefines
188 #define CdeCplusplusProjectDefines      \
189                                 CdeBaseProjectDefines CplusplusAnsiDefines
190
191 #define DtSvcDefines            -DXK_MISCELLANY -DMULTIBYTE -DMESSAGE_CAT
192 #define DtSearchDefines         -DI18N_MSG DtSvcDefines
193 #define DtWidgetDefines         DtSearchDefines
194 #define DtPrintDefines          DtSearchDefines
195 #if OSMajorVersion > 9
196 #define DtMailDefines           \
197   -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
198   -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\"
199 #else
200 #define DtMailDefines           \
201   -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
202   -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/usr/mail/%s\"
203 #endif
204
205 #define ArchitectureDefines     -DHP_ARCHITECTURE
206
207 #define ExportListGenSource     elistgen.hp