]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/isc.cf
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / config / cf / isc.cf
1 XCOMM $XConsortium: isc.cf /main/1 1996/10/31 14:45:18 kaleb $
2
3
4
5 XCOMM platform:  $XFree86: xc/config/cf/isc.cf,v 3.11.2.1 1998/02/15 16:08:33 hohndel Exp $
6
7 #ifndef HasGcc2
8 #define HasGcc2                 YES
9 #endif
10
11 /* INTERACTIVE UNIX SYSTEM (IUS) Version 3.x 4.x */
12
13 #if IscVersion > 300
14 # define ISCVerDef -DISC40 -DISC30
15 # define OSVendor               (IUS Version 4.x)
16 #else
17 # if IscVersion == 300
18 #  define ISCVerDef -DISC30
19 #  define OSVendor              (ISC Version 3.0)
20 # else
21 #  if IscVersion == 202
22 #   define OSVendor             (ISC Version 2.0.2)
23 #   define ISCVerDef -DISC202
24 #  else
25 #   define OSVendor             (ISC Version 2.2.1)
26 #   define ISCVerDef -DISC22
27 #  endif
28 # endif
29 #endif
30
31 /* gcc 2.7.2 tested Optimization Flags                               */
32 #ifndef DefaultGcc2i386Opt
33 # define DefaultGcc2i386Opt     -m486 -O2 -fno-strength-reduce -malign-loops=2 -malign-jumps=2 -malign-functions=2
34 /* -fomit-frame-pointer */ 
35 #endif
36
37 /* For a POSIXized build on Interactive maybe needed to use gcc2.7.2 */
38 #ifndef UsePosix
39 # define UsePosix               YES
40 #endif
41
42 /* ISC 4.1Mu 
43 #define IscCompileVersion       410
44 */
45
46 #if !defined(IscCompileVersion) && IscVersion < 410
47 /* ISC 4.0 compatible */
48 #define IscCompileVersion       400
49 #endif
50
51 #if IscCompileVersion == 400
52
53 /* binaries which should run on ISC 4.0 or for the build on a real 4.0 System */
54 # define UseChmod               YES
55
56 /* for compatibility with ISC 4.0 - reported by Ami Fischmann            */
57 /* troubles when linking with libX11.a build on ISC4.1 and used with 4.0 */
58 # define HasSnprintf            NO
59 # define UseXwctomb             YES
60
61 #endif
62
63 #if defined(UseXwctomb)
64 # define XwctombDefine  -DUSE_XMBTOWC 
65 #else
66 # define XwctombDefine  
67 #endif 
68
69 #if defined(UseChmod)
70 # define IscCompatDefines       XwctombDefine -DUSE_CHMOD
71 #else
72 # define IscCompatDefines       XwctombDefine
73 #endif 
74
75 #ifdef UsePosix
76 # define PosixDefines           -posix -D_SYSV3 -D_POSIX_SOURCE 
77 #else
78 # define PosixDefines
79 #endif
80
81 #define OSDefines               -DISC ISCVerDef IscCompatDefines
82
83 /*
84 #define OSName                  Unix System V/386 Release 3.2
85 #define OSMajorVersion          3
86 #define OSMinorVersion          2
87 */
88 #ifndef OSMajorVersion
89 #define OSMajorVersion          DefaultOSMajorVersion
90 #endif
91 #ifndef OSMinorVersion
92 #define OSMinorVersion          DefaultOSMinorVersion
93 #endif
94 #ifndef OSTeenyVersion
95 #define OSTeenyVersion          DefaultOSTeenyVersion
96 #endif
97
98 #ifndef OSName
99 #define OSName                  INTERACTIVE UNIX System V/386 Release 3.2
100 #endif
101
102 XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
103
104 /* Note, cpp already does -Di386 */
105 #define BootstrapCFlags         OSDefines -DSYSV
106
107 #if IscVersion > 202
108 # define LocalLibraries -lpt
109 # define PosixLibraries -lcposix
110 #else
111 # define LocalLibraries        MallocLibrary -lpt
112 # define PosixLibraries
113 #endif
114
115 #define SocketLibraries         -linet
116
117 #ifndef GnuMallocLibrary
118 #ifndef UseIscLd
119 # define GnuMallocLibrary       -L/usr/local/lib -lgmalloc
120 #else
121 # define GnuMallocLibrary       /usr/local/lib/libgmalloc.a
122 #endif
123 #endif
124
125 #ifndef MallocLibrary
126 # if UseGnuMalloc
127 #  define MallocLibrary         GnuMallocLibrary
128 # else
129 #  define MallocLibrary         -lmalloc
130 # endif
131 #endif
132
133 #ifndef ExtraLibraries
134 # if UseGnuMalloc
135 #  define ExtraLibraries SocketLibraries LocalLibraries MallocLibrary PosixLibraries
136 # else
137 #  define ExtraLibraries SocketLibraries LocalLibraries PosixLibraries
138 # endif
139 #endif
140
141 /* Don't know if this is necessary, but it avoids breaking the current setup */
142 #define MallocLibraries         /**/
143
144 #if UseXwctomb
145 #define XawI18nDefines          -DUSE_XWCHAR_STRING
146 #else
147 #define XawI18nDefines          -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
148 #endif
149
150 #if HasCbrt
151 #define MathLibrary -loptm
152 #endif
153
154 #ifdef UseInlineMath
155 #define InlineMathDefines       -DUseInlineMath
156 #if !HasCbrt
157 #define ServerExtraSysLibs      $(CBRT) MathLibrary
158 #endif
159 #endif
160
161 #ifndef ServerExtraSysLibs
162 #define ServerExtraSysLibs      $(CBRT)
163 #endif
164
165 #define ServerExtraDefines      SVR3mmapFlags XFree86ServerDefines
166
167 #if IscVersion > 300
168 # ifndef HasSymLinks
169 #  define HasSymLinks           YES
170 # endif
171 #endif
172
173 #define HasShm                  YES
174
175 #ifndef HasSnprintf
176 #define HasSnprintf             YES
177 #endif
178
179 #ifndef HasLibCrypt
180 #define HasLibCrypt             YES
181 #define SpecialLibCrypt        -lcrypt
182 #endif
183
184 #ifndef DefaultCDebugFlags
185 # if HasGcc2
186 #  define DefaultCDebugFlags DefaultGcc2i386Opt PosixDefines InlineMathDefines
187 # else
188 #  define DefaultCDebugFlags -O PosixDefines InlineMathDefines
189 # endif
190 #endif
191
192 #if HasGcc2
193 # define CcCmd gcc 
194 #endif
195
196 #ifndef DefaultCplusplusOptions
197 #define DefaultCplusplusOptions -fno-implicit-templates
198 #endif
199
200 #ifndef ConnectionFlags
201 #define ConnectionFlags -DLOCALCONN -DTCPCONN 
202 /* -DSTREAMSCONN -DUNIXCONN -- does not work on ISC SVR3 */
203 #endif
204
205 #define CompressManCmd $(COMPRESS) -v
206
207 #define XmanSearchPath /usr/catman
208
209 #ifndef RemoveDSDENroffMacros
210 #define RemoveDSDENroffMacros   YES
211 #endif
212
213 #include <svr3.cf>
214