linux.cf: with fds_bits fixes, stop using _POSIX_C_SOURCE=199309L and _XOPEN_SOURCE...
[oweals/cde.git] / cde / config / cf / xfree86.cf
1 XCOMM $XFree86: xc/config/cf/xfree86.cf,v 3.117 1996/10/19 15:12:31 dawes Exp $
2 /*
3  * This configuration file contains all of the configuration
4  * information for the XFree86 based X Servers.
5  *
6  * Most of these settings can be overridden in a vendor.cf or the
7  * BeforeVendor part of the site.def file.
8  */
9 XCOMM $TOG: xfree86.cf /main/38 1997/10/22 13:01:59 kaleb $
10
11 /*
12  * The LinkKit needs to inherit some settings (from the xc build that
13  * generated it) before we go too much further...
14  */
15 #ifndef XF86LinkKit
16 #define XF86LinkKit     NO
17 #endif
18 #if XF86LinkKit
19 #include <LinkKit.tmpl>
20 #endif
21
22 /*
23  * Default settings for which X Servers to build.
24  */
25 #ifndef XF86SVGAServer
26 # define XF86SVGAServer         YES
27 #endif
28
29 #ifndef XF86VGA16Server
30 # define XF86VGA16Server        NO
31 # ifndef XF86VGA16DualServer
32 #  define XF86VGA16DualServer   NO
33 # endif
34 #endif
35
36 #ifndef XF86MonoServer
37 # define XF86MonoServer         NO
38 # ifndef XF86MonoDualServer
39 #  define XF86MonoDualServer    NO
40 # endif
41 #endif
42
43 #ifndef XF86S3Server
44 # define XF86S3Server           NO
45 #endif
46
47 #ifndef XF86S3VServer
48 # define XF86S3VServer          NO
49 #endif
50
51 #ifndef XF86I8514Server
52 # define XF86I8514Server        NO
53 #endif
54
55 #ifndef XF86Mach8Server
56 # define XF86Mach8Server        NO
57 #endif
58
59 #ifndef XF86Mach32Server
60 # define XF86Mach32Server       NO
61 #endif
62
63 #ifndef XF86Mach64Server
64 # define XF86Mach64Server       NO
65 #endif
66
67 #ifndef XF86AGXServer
68 # define XF86AGXServer          NO
69 #endif
70
71 #ifndef XF86P9000Server
72 # define XF86P9000Server        NO
73 #endif
74
75 #ifndef XF86W32Server
76 # define XF86W32Server          NO
77 #endif
78
79 #ifndef XF86I128Server
80 # define XF86I128Server         NO
81 #endif
82
83 #ifndef XF86TGAServer
84 # define XF86TGAServer          NO
85 #endif
86
87 #if XF86S3Server
88 # define XF86S3Dir              s3
89 #else
90 # define XF86S3Dir              /**/
91 #endif
92
93 #if XF86S3VServer
94 # define XF86S3VDir             s3_virge
95 #else
96 # define XF86S3VDir             /**/
97 #endif
98
99 #if XF86I8514Server
100 # define XF86I8514Dir           ibm8514
101 #else
102 # define XF86I8514Dir           /**/
103 #endif
104
105 #if XF86Mach8Server
106 # define XF86Mach8Dir           mach8
107 #else
108 # define XF86Mach8Dir           /**/
109 #endif
110
111 #if XF86Mach32Server
112 # define XF86Mach32Dir          mach32
113 #else
114 # define XF86Mach32Dir          /**/
115 #endif
116
117 #if XF86Mach64Server
118 # define XF86Mach64Dir          mach64
119 #else
120 # define XF86Mach64Dir          /**/
121 #endif
122
123 #if XF86P9000Server
124 # define XF86P9000Dir           p9000
125 #else
126 # define XF86P9000Dir           /**/
127 #endif
128
129 #if XF86AGXServer
130 # define XF86AGXDir             agx
131 #else
132 # define XF86AGXDir             /**/
133 #endif
134
135 #if XF86W32Server
136 # define XF86W32Dir             et4000w32
137 #else
138 # define XF86W32Dir             /**/
139 #endif
140
141 #if XF86I128Server
142 # define XF86I128Dir            i128
143 #else
144 # define XF86I128Dir            /**/
145 #endif
146
147 #if XF86TGAServer
148 # define XF86TGADir             tga
149 #else
150 # define XF86TGADir             /**/
151 #endif
152
153 #ifndef XF98GANBWAPServer
154 # define XF98GANBWAPServer      NO      
155 #endif
156
157 #ifndef XF98NEC480Server
158 # define XF98NEC480Server       NO
159 #endif
160
161 #ifndef XF98NKVNECServer
162 # define XF98NKVNECServer       NO
163 #endif
164
165 #ifndef XF98WABSServer
166 # define XF98WABSServer         NO      
167 #endif
168
169 #ifndef XF98SVGAServer
170 # define XF98SVGAServer         NO      
171 #endif
172
173 #ifndef XF98TGUIServer
174 # define XF98TGUIServer         NO
175 #endif
176
177 #ifndef XF98EGCServer
178 # define XF98EGCServer          NO
179 #endif
180
181 #ifndef XF98NECS3Server
182 # define XF98NECS3Server        NO      
183 #endif
184
185 #ifndef XF98PWSKBServer
186 # define XF98PWSKBServer        NO
187 #endif
188
189 #ifndef XF98PWLBServer
190 #define XF98PWLBServer          NO
191 #endif
192
193 #if XF98NECS3Server
194 # define XF98NECS3Dir           s3nec
195 #else
196 # define XF98NECS3Dir           /**/
197 #endif
198
199 #if XF98PWSKBServer
200 # define XF98PWSKBDir           s3pwskb
201 #else
202 # define XF98PWSKBDir           /**/
203 #endif
204
205 #if XF98PWLBServer
206 # define XF98PWLBDir            s3pwlb
207 #else
208 # define XF98PWLBDir            /**/
209 #endif
210
211 #undef XF86AccelServerDirs
212 #define XF86AccelServerDirs     XF86S3Dir XF86S3VDir XF86I8514Dir \
213                                 XF86Mach8Dir XF86Mach32Dir XF86Mach64Dir \
214                                 XF86P9000Dir XF86AGXDir XF86W32Dir \
215                                 XF86I128Dir XF86TGADir
216
217 #undef XF86AccelServer
218 #if XF86S3Server || XF86S3VServer || XF86I8514Server || XF86Mach8Server || \
219     XF86Mach32Server || XF86Mach64Server || XF86P9000Server || \
220     XF86AGXServer || XF86W32Server || XF86I128Server || XF86TGAServer
221 # define XF86AccelServer        YES
222 #else
223 # define XF86AccelServer        NO
224 #endif
225
226 #undef XF98AccelServerDirs
227 #define XF98AccelServerDirs   XF98NECS3Dir XF98PWSKBDir XF98PWLBDir
228
229 #undef XF98AccelServer
230 #if XF98NECS3Server || XF98PWSKBServer || XF98PWLBServer
231 # define XF98AccelServer        YES
232 #else
233 # define XF98AccelServer        NO
234 #endif
235
236 /*
237  * Driver list for several of the X Servers.
238  */
239 #ifndef XF86SvgaDrivers
240 # define XF86SvgaDrivers        nv et4000 et3000 pvga1 gvga ati sis tvga8900 \
241                                 cirrus ncr77c22 /*compaq*/ mga oak mx al2101 \
242                                 ali cl64xx video7 chips ark realtek apm \
243                                 s3_svga generic
244 #endif
245
246 #ifndef XF98SvgaDrivers
247 # define XF98SvgaDrivers        generic
248 #endif
249
250 #ifndef XF86Vga16Drivers
251 # define XF86Vga16Drivers       et4000 ncr77c22 ati sis tvga8900 oak cl64xx \
252                                 generic
253 #endif
254
255 #ifndef XF98Vga16Drivers
256 # define XF98Vga16Drivers       generic
257 #endif
258
259 #ifndef XF86Vga2Drivers
260 # define XF86Vga2Drivers        et4000 et3000 pvga1 gvga ati sis tvga8900 \
261                                 cirrus ncr77c22 /*compaq*/ oak cl64xx generic
262 #endif
263
264 #ifndef XF86Vga2Banked
265 # define XF86Vga2Banked         YES
266 #endif
267
268 #ifndef XF86MonoDrivers
269 # define XF86MonoDrivers        hgc1280 sigma apollo /*hercules*/
270 #endif
271
272 /* This doesn't do anything (yet) */
273 #ifndef XF86S3Drivers
274 # if !defined(AlphaArchitecture)
275 #  define XF86S3Drivers         newmmio mmio_928 s3_generic
276 # else
277 #  define XF86S3Drivers         mmio_928 s3_generic newmmio
278 # endif
279 #endif
280
281 #ifndef XF86S3VDrivers
282 # define XF86S3VDrivers         s3_virge
283 #endif
284
285 #ifndef XF86W32Drivers
286 # define XF86W32Drivers         et4000w32
287 #endif
288
289 #ifndef XF98S3Drivers
290 # define XF98S3Drivers          mmio_928 s3_generic
291 #endif
292
293 /*
294  * By default, build all of the fonts.
295  */
296 #ifndef Build75Dpi
297 #define Build75Dpi              YES
298 #endif
299 #ifndef Build100Dpi
300 #define Build100Dpi             YES
301 #endif
302 #ifndef BuildSpeedo
303 #define BuildSpeedo             YES
304 #endif
305 #ifndef BuildType1
306 #define BuildType1              YES
307 #endif
308
309 #ifndef BuildScanpci
310 #if SystemV || SystemV4 || (defined(LinuxArchitecture) && !defined(Mc68020Architecture)) || defined(i386BsdArchitecture) || defined(LynxOSArchitecture) || defined(OS2Architecture)
311 #define BuildScanpci            YES
312 #else
313 #define BuildScanpci            NO
314 #endif
315 #endif
316
317 #ifndef BuildXF86DGA
318 #define BuildXF86DGA            NO
319 #endif
320
321 #ifndef CompressAllFonts
322 #define CompressAllFonts        YES
323 #endif
324
325 #ifndef HasLinuxDoc
326 #define HasLinuxDoc             NO
327 #endif
328
329 #ifndef InstallJapaneseDocs
330 #define InstallJapaneseDocs     NO
331 #endif
332
333 #if BuildXF86DGA
334 #define XFree86DGADefines       -DXFreeXDGA
335 #else
336 #define XFree86DGADefines       /**/
337 #endif
338
339 /* Server defines required for all OSs */
340 #ifndef XFree86ServerDefines
341 #define XFree86ServerDefines    -DSTATIC_COLOR -DAVOID_GLYPHBLT -DPIXPRIV LinkKitDefines XFree86DGADefines
342 #endif
343
344 #ifndef XFree86ServerOSDefines
345 #define XFree86ServerOSDefines  -DDDXOSINIT -DSERVER_LOCK
346 #endif
347
348 #ifndef XFree86ConsoleDefines
349 #ifdef i386BsdArchitecture
350 #define XFree86ConsoleDefines   -DPCCONS_SUPPORT -DSYSCONS_SUPPORT -DPCVT_SUPPORT
351 #else
352 #define XFree86ConsoleDefines   /**/
353 #endif
354 #endif
355
356 #ifndef UseServerLock
357 #define UseServerLock   YES
358 #endif
359
360 #ifndef XF86LinkKit
361 #define XF86LinkKit     NO
362 #endif
363
364 #if XF86LinkKit
365 /*
366  * Definitions for LinkKit self-containment.  This should work whether or not
367  * UseInstalled is defined.
368  */
369 # ifndef HasLdRunPath
370 #  define HasLdRunPath        NO
371 # endif
372
373 # ifndef TopIncludes
374 #  ifdef IncRoot
375 #   define TopIncludes        -I$(INCROOT)
376 #  else
377 #   define TopIncludes        /**/
378 #  endif
379 # endif
380 # ifndef ClientLibDir
381 #  if defined(UsrLibDir) || HasLdRunPath
382 #   define ClientLibDir       /**/
383 #  else
384 #   define ClientLibDir       -L$(USRLIBDIR)
385 #  endif
386 # endif
387 # ifndef LdPreLib
388 #  if defined(LdPostLib) && defined(UsrLibDir) && !HasLdRunPath
389 #   define LdPreLib   -L$(USRLIBDIR)
390 #  else
391 #   define LdPreLib   /**/
392 #  endif
393 # endif
394 # ifndef LdPostLib
395 #  if defined(UsrLibDir) && !HasLdRunPath
396 #   define LdPostLib  -L$(USRLIBDIR)
397 #  else
398 #   define LdPostLib  /**/
399 #  endif
400 # endif
401
402 #endif
403
404 #ifndef LinkKitDefines
405 #if XF86LinkKit
406 #define LinkKitDefines  -DLINKKIT
407 #else
408 #define LinkKitDefines  /**/
409 #endif
410 #endif
411
412 #ifndef ServerExtraDefines
413 #define ServerExtraDefines      XFree86ServerDefines
414 #endif
415
416 #ifndef ServerOSDefines
417 #define ServerOSDefines         XFree86ServerOSDefines
418 #endif
419
420 #ifndef LinkKitDir
421 #define LinkKitDir      $(USRLIBDIR)/Server
422 #endif
423
424 LINKKITDIR = LinkKitDir
425 XF98LINKKITDIR = LinkKitDir
426
427 #ifndef HasDlsymBug
428 #define HasDlsymBug             NO
429 #endif
430
431 /*
432  * Some commonly refered to directories are defined here.
433  */
434
435 #if XF86LinkKit
436        XF86SRC = $(TOP)
437   XF86ACCELSRC = $(XF86SRC)/lib86
438     XF86COMSRC = $(XF86SRC)/lib86
439  XF86CONFIGSRC = $(XF86SRC)
440      XF86HWSRC = $(XF86SRC)/lib86
441      XF86OSSRC = $(XF86SRC)/lib86
442      DRIVERSRC = $(XF86SRC)/drivers
443   VGADRIVERSRC = $(XF86SRC)/drivers/vga256
444 VGA16DRIVERSRC = $(XF86SRC)/drivers/vga16
445  VGA2DRIVERSRC = $(XF86SRC)/drivers/vga2
446  MONODRIVERSRC = $(XF86SRC)/drivers/mono
447    S3DRIVERSRC = $(XF86SRC)/drivers/s3
448   S3VDRIVERSRC = $(XF86SRC)/drivers/s3_virge
449
450            XF98SRC = $(TOP)
451       XF98ACCELSRC = $(XF98SRC)/lib98
452         XF98COMSRC = $(XF98SRC)/lib98
453      XF98CONFIGSRC = $(XF98SRC)
454          XF98HWSRC = $(XF98SRC)/lib98
455       XF98HWNECSRC = $(XF98SRC)/lib98
456     XF98HWPWSKBSRC = $(XF98SRC)/lib98
457      XF98HWPWLBSRC = $(XF98SRC)/lib98
458     XF98HWGA968SRC = $(XF98SRC)/lib98
459          XF98OSSRC = $(XF98SRC)/lib98
460      XF98DRIVERSRC = $(XF98SRC)/drivers98
461   XF98VGADRIVERSRC = $(XF98SRC)/drivers98/vga256
462 XF98VGA16DRIVERSRC = $(XF98SRC)/drivers98/vga16
463  XF98VGA2DRIVERSRC = $(XF98SRC)/drivers98/vga2
464  XF98MONODRIVERSRC = $(XF98SRC)/drivers98/mono
465 XF98NECS3DRIVERSRC = $(XF98SRC)/drivers98/s3nec
466 XF98PWSKBDRIVERSRC = $(XF98SRC)/drivers98/s3pwskb
467  XF98PWLBDRIVERSRC = $(XF98SRC)/drivers98/s3pwlb
468 XF98GA968DRIVERSRC = $(XF98SRC)/drivers98/s3ga968
469
470 #ifdef SiteIConfigFiles
471 #undef SiteIConfigFiles
472 #endif
473 #define SiteIConfigFiles $(TOP)/xf86site.def $(TOP)/Imakefile $(IRULESSRC)/host.def
474 #else
475        XF86SRC = $(SERVERSRC)/hw/xfree86
476   XF86ACCELSRC = $(XF86SRC)/accel
477     XF86COMSRC = $(XF86SRC)/common
478  XF86CONFIGSRC = $(XF86COMSRC)
479      XF86HWSRC = $(XF86SRC)/common_hw
480      XF86OSSRC = $(XF86SRC)/os-support
481   VGADRIVERSRC = $(XF86SRC)/vga256/drivers
482 VGA16DRIVERSRC = $(XF86SRC)/vga16/drivers
483  VGA2DRIVERSRC = $(XF86SRC)/vga2/drivers
484  MONODRIVERSRC = $(XF86SRC)/mono/drivers
485    S3DRIVERSRC = $(XF86SRC)/accel/s3/drivers
486   S3VDRIVERSRC = $(XF86SRC)/accel/s3_virge/drivers
487
488            XF98SRC = $(SERVERSRC)/hw/xfree98
489       XF98ACCELSRC = $(XF98SRC)/accel
490         XF98COMSRC = $(XF98SRC)/common
491      XF98CONFIGSRC = $(XF98COMSRC)
492          XF98HWSRC = $(XF98SRC)/common_hw/generic
493       XF98HWNECSRC = $(XF98SRC)/common_hw/nec
494     XF98HWPWSKBSRC = $(XF98SRC)/common_hw/pwskb
495      XF98HWPWLBSRC = $(XF98SRC)/common_hw/pwlb
496          XF98OSSRC = $(XF98SRC)/os-support
497   XF98VGADRIVERSRC = $(XF98SRC)/vga256/drivers
498 XF98VGA16DRIVERSRC = $(XF98SRC)/vga16/drivers
499  XF98VGA2DRIVERSRC = $(XF98SRC)/vga2/drivers
500  XF98MONODRIVERSRC = $(XF98SRC)/mono/drivers
501 XF98NECS3DRIVERSRC = $(XF98SRC)/accel/s3nec/drivers
502 XF98PWSKBDRIVERSRC = $(XF98SRC)/accel/s3pwskb/drivers
503  XF98PWLBDRIVERSRC = $(XF98SRC)/accel/s3pwlb/drivers
504 #endif
505
506 /*
507  * Installed location of the XFree86 documentation
508  */
509
510         XFREE86DOCDIR = $(LIBDIR)/doc
511       XFREE86PSDOCDIR = $(XFREE86DOCDIR)/PostScript
512     XFREE86HTMLDOCDIR = $(XFREE86DOCDIR)/html
513 XFREE86JAPANESEDOCDIR = $(XFREE86DOCDIR)/Japanese
514
515 /*
516  * Other stuff used in the X Server source.
517  */
518
519 #ifndef AsmDefines
520 #define AsmDefines /**/
521 #endif
522
523 #ifndef XFree86Version
524 #define XFree86Version  3310
525 #endif
526
527 #ifndef XVendorString
528 #define XVendorString   "The Open Group / The XFree86 Project, Inc"
529 #endif
530
531 #if 0
532 #ifndef XVendorRelease
533 #define XVendorRelease  XFree86Version
534 #endif
535 #endif
536
537 #ifndef UseRgbTxt
538 #define UseRgbTxt       YES
539 #endif
540
541
542 /*
543  * GNU Compiler stuff
544  */
545 #ifndef HasGcc2
546 #define HasGcc2 NO
547 #endif
548 #ifndef HasGcc
549 #define HasGcc HasGcc2
550 #endif
551 #ifndef HasGcc2ForCplusplus
552 #define HasGcc2ForCplusplus HasGcc2
553 #endif
554
555 #if HasGcc
556 #ifndef DefaultCCOptions
557 #ifdef UseInstalled
558 #define DefaultCCOptions -ansi
559 #else
560 #define DefaultCCOptions -ansi -pedantic
561 #endif
562 #endif
563 #endif
564
565 #if HasGcc2 && (defined(i386Architecture) || defined(AMD64Architecture))
566 #ifndef DefaultGcc2i386Opt
567 #define DefaultGcc2i386Opt -O2 -fno-strength-reduce
568 #endif
569 #endif
570
571 #ifndef BuildLBXCompatible
572 #define BuildLBXCompatible NO
573 #endif
574
575 #if BuildLBXCompatible
576 #define LbxDefines -DLBX_COMPAT
577 #endif
578
579 #define VidTuneExtensionDefines -DXF86VIDMODE
580
581 #include <xf86.rules>