~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/config/cf/hp.cf

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XCOMM platform:  $Xorg: hp.cf,v 1.5 2000/08/17 19:41:47 cpqbld Exp $
 
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
#if OSMajorVersion > 9
 
81
# define AllocateLocalDefines           -DINCLUDE_ALLOCA_H
 
82
#else
 
83
# define AllocateLocalDefines           -DNO_ALLOCA
 
84
#endif
 
85
 
 
86
#ifdef __hp9000s800
 
87
# ifndef OptimizedCDebugFlags
 
88
#  define OptimizedCDebugFlags          +O1
 
89
# endif
 
90
# ifndef DefaultCCOptions
 
91
#  define DefaultCCOptions              -Ae +ESlit
 
92
# endif
 
93
# ifndef SharedLibraryCCOptions
 
94
#  define SharedLibraryCCOptions        -Ae
 
95
# endif
 
96
# define StandardDefines                -Dhpux -DSYSV
 
97
# define ServerExtraDefines             -DXOS -DBSTORE -DSOFTWARE_CURSOR -DSCREEN_PIXMAPS -DMERGE_SAVE_UNDERS -DHAS_IFREQ -DFORCE_SEPARATE_PRIVATE AllocateLocalDefines
 
98
 
 
99
# if OSMajorVersion > 9
 
100
#  include <hpLib.rules>
 
101
# endif
 
102
 
 
103
#else /* __hp9000s800 */
 
104
# define StandardDefines        -Dhpux -DSYSV
 
105
# if OSMajorVersion < 8
 
106
#  define DefaultCCOptions      -Wc,-Nd4000,-Ns4100,-Ne700,-Np200,-Nw300
 
107
#  define PexCCOptions          -Wp,-H150000 -Wc,-Nd4000,-Ns8100,-Ne700,-Np200
 
108
# else
 
109
#  define OptimizedCDebugFlags  +O1
 
110
#  define PexCCOptions          -Wp,-H250000
 
111
# endif
 
112
# define PexShmIPC              NO
 
113
# define LintOpts               -ax -Nd4000 -Ns8000 -Ne700 -Np200 -Na25000
 
114
#endif
 
115
#define MvCmd                   mv -f
 
116
#define LdCombineFlags          -r
 
117
#define ExecableScripts         YES
 
118
#define HasVFork                YES
 
119
#define HasPoll                 YES
 
120
#define RemoveTargetProgramByMoving     YES
 
121
#define ExpandManNames          YES
 
122
#define HasPutenv               YES
 
123
#define HasNdbm                 YES
 
124
#define DBMLibrary              /usr/lib/libdbm.a
 
125
#define PrimaryScreenResolution 91
 
126
#define ExtensionOSDefines      -DHPINPUT -DXTESTEXT1
 
127
#define XhpServer               YES
 
128
#define ServerExtraSysLibs      -ldld
 
129
#ifndef BuildXInputExt
 
130
# define BuildXInputExt         YES
 
131
#endif
 
132
#define HPFastScrolling         YES
 
133
#ifndef BuildServer
 
134
# define BuildServer            __hp9000s700
 
135
#endif
 
136
#if OSMajorVersion < 10
 
137
#define NeedBerklib             (BuildServer|BuildFontServer)
 
138
#endif
 
139
#define XawI18nDefines          -DHAS_WCHAR_H -DHAS_ISW_FUNCS
 
140
 
 
141
#if OSMajorVersion < 6 || (OSMajorVersion == 6 && OSMinorVersion < 2)
 
142
# define ConnectionFlags        -DTCPCONN       /* no unix sockets */
 
143
#endif
 
144
 
 
145
#if OSMajorVersion > 8
 
146
#define HasWChar32             YES
 
147
#define HasPlugin              YES
 
148
#endif
 
149
 
 
150
#ifdef __hp9000s300
 
151
# ifndef CompatabilityDefines
 
152
#  define CompatabilityDefines -D__hp9000s300 -Dhp9000s300
 
153
# endif
 
154
#elif defined(__hp9000s700)
 
155
# ifndef CompatabilityDefines
 
156
#  define CompatabilityDefines -D__hp9000s800 -Dhp9000s800 -D__hp9000s700
 
157
# endif
 
158
#else
 
159
# ifndef CompatabilityDefines
 
160
#  define CompatabilityDefines -D__hp9000s800 -Dhp9000s800
 
161
# endif
 
162
#endif
 
163
 
 
164
#ifndef OsDefines
 
165
# if OSMajorVersion > 9
 
166
#  define OsDefines     -DhpV4 -DHPUX
 
167
# else
 
168
#  define OsDefines     -DHPUX
 
169
# endif
 
170
#endif
 
171
 
 
172
#if OSMajorVersion > 9
 
173
# if ThreadedX
 
174
#  define MTSafeAPIDefines      -DXUSE_MTSAFE_API -DXUSE_NETDB_R_API
 
175
# endif
 
176
# ifndef CppCmd
 
177
#  define CppCmd                        /usr/ccs/lbin/cpp
 
178
# endif
 
179
#endif
 
180
 
 
181
/* CC does not recognize -Ae, and has a different meaning for +e. */
 
182
/* +e also confuses cpp. */
 
183
#define AnsiDefines             -Ae -D_HPUX_SOURCE
 
184
#define CplusplusAnsiDefines    -Aa -D_HPUX_SOURCE
 
185
 
 
186
#define BuildLibPathVar SHLIB_PATH
 
187
 
 
188
#define CdeBaseProjectDefines \
 
189
        -DNLS16 -DMALLOC_0_RETURNS_NULL -DMERGE -D__hpux \
 
190
        -DOSMAJORVERSION=OSMajorVersion -DOSMINORVERSION=OSMinorVersion \
 
191
        CompatabilityDefines OsDefines
 
192
 
 
193
#define CdeProjectDefines       CdeBaseProjectDefines AnsiDefines
 
194
#define CdeCplusplusProjectDefines      \
 
195
                                CdeBaseProjectDefines CplusplusAnsiDefines
 
196
 
 
197
#define DtSvcDefines            -DXK_MISCELLANY -DMULTIBYTE -DMESSAGE_CAT
 
198
#define DtSearchDefines         -DI18N_MSG DtSvcDefines
 
199
#define DtWidgetDefines         DtSearchDefines
 
200
#define DtPrintDefines          DtSearchDefines
 
201
#if OSMajorVersion > 9
 
202
#define DtMailDefines           \
 
203
  -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
 
204
  -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/var/mail/%s\"
 
205
#else
 
206
#define DtMailDefines           \
 
207
  -DBIG_ENDIAN -DDO_ANONYMOUS_MAP -DNEED_MMAP_WRAPPER -DSENDMAIL_LOCKS \
 
208
  -DMAILGROUP_REQUIRED -DMAIL_SPOOL_PATH=\"/usr/mail/%s\"
 
209
#endif
 
210
 
 
211
#define ArchitectureDefines     -DHP_ARCHITECTURE
 
212
 
 
213
#define ExportListGenSource     elistgen.hp