]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/Imake.cf
2c3a71b48899669168fac98e18837b158b16d376
[rdpsrv] / Xserver / config / cf / Imake.cf
1 XCOMM $Xorg: Imake.cf,v 1.4 2000/08/17 19:41:45 cpqbld Exp $
2 /*
3  * To add support for another platform:
4  * 
5  *     1.  Identify a machine-specific cpp symbol.  If your preprocessor 
6  *         does not have any built in, you will need to add the symbol to the
7  *         cpp_argv table in config/imake/imakemdep.h and rebuild imake with
8  *         the BOOTSTRAPCFLAGS variable set (see the macII for an example).
9  *
10  *     2.  Add all machine-specific cpp symbols (either defined by you or by
11  *         the preprocessor or compiler) to the predefs table in 
12  *         config/imake/imakemdep.h.
13  *
14  *     3.  But a new #ifdef block below that defines MacroIncludeFile and
15  *         MacroFile for your new platform and then #undefs the machine-
16  *         specific preprocessor symbols (to avoid problems with file names).
17  *
18  *     4.  Create a .cf file with the name given by MacroFile.
19  */
20 XCOMM $XFree86: xc/config/cf/Imake.cf,v 3.66 2001/04/18 16:13:17 dawes Exp $
21
22 #if defined(__APPLE__)
23 # undef __APPLE__
24 # define MacroIncludeFile <darwin.cf>
25 # define MacroFile darwin.cf
26 # define DarwinArchitecture
27 # ifdef __ppc__
28 #  define PpcDarwinArchitecture
29 #  undef __ppc__
30 # endif
31 # ifdef __i386__
32 #  define i386DarwinArchitecture
33 #  undef __i386__
34 # endif
35 #endif
36
37 #if defined(clipper) || defined(__clipper__)
38 # undef clipper
39 # define MacroIncludeFile <ingr.cf>
40 # define MacroFile ingr.cf
41 # define IngrArchitecture
42 #endif /* clipper */
43
44 #ifdef __CYGWIN__
45 #define MacroIncludeFile <cygwin.cf>
46 #define MacroFile cygwin.cf
47 #define cygwinArchitecture
48 #define i386Architecture
49 #undef i386
50 #undef __i386__
51 #undef _X86_
52 #undef __CYGWIN__
53 #endif /* CYGWIN */
54
55 #ifdef ultrix
56 # define MacroIncludeFile <ultrix.cf>
57 # define MacroFile ultrix.cf
58 # ifdef vax
59 #  undef vax
60 #  define VaxArchitecture
61 # endif
62 # ifdef mips
63 #  undef mips
64 #  define MipsArchitecture
65 #  define MipselArchitecture
66 # endif
67 # undef ultrix
68 # define UltrixArchitecture
69 #endif /* ultrix */
70
71 #if defined(vax) && !defined(UltrixArchitecture)
72 # define MacroIncludeFile <bsd.cf>
73 # define MacroFile bsd.cf
74 # undef vax
75 # define BSDArchitecture
76 # define VaxArchitecture
77 #endif /* vax */
78
79 #ifdef bsdi
80 # define MacroIncludeFile <bsdi.cf>
81 # define MacroFile bsdi.cf
82 # undef bsdi
83 # define BSDOSArchitecture
84 # if defined(__i386__) || defined(i386)
85 #  define i386BsdArchitecture
86 #  define i386Architecture
87 #  undef i386
88 #  undef __i386__
89 # endif
90 # if defined(__sparc__) || defined(__sparc_v9__) || defined(sparc)
91 #  define SparcArchitecture
92 #  undef sparc
93 #  undef __sparc__
94 #  undef __sparc_v9__
95 # endif
96 #endif /* bsdi */
97
98 #ifdef __OpenBSD__
99 # undef __OpenBSD__
100 # undef __NetBSD__
101 # define OpenBSDArchitecture
102 # define MacroIncludeFile <OpenBSD.cf>
103 # define MacroFile OpenBSD.cf
104 # ifdef __i386__
105 #  define i386BsdArchitecture
106 #  define i386Architecture
107 #  undef i386
108 # endif
109 # if defined(__sparc__) || defined(sparc)
110 #  define SparcArchitecture
111 #  undef sparc
112 # endif
113 # ifdef mips
114 #   define MipsArchitecture
115 #   ifdef arc
116 #     define ArcArchitecture
117 #     undef arc
118 #   endif
119 #   ifdef pmax
120 #     define PmaxArchitecture
121 #     undef pmax
122 #   endif
123 #   undef mips
124 # endif
125 # ifdef __alpha__
126 #   define AlphaArchitecture
127 #   undef __alpha__
128 # endif
129 # ifdef mc68020
130 #  define Mc68020Architecture
131 #  if defined(amiga)
132 #   define AmigaArchitecture
133 #   undef amiga
134 #  endif
135 #  if defined(hp300)
136 #   define Hp300Architecture
137 #   undef hp300
138 #  endif
139 #  if defined(mac68k)
140 #    define Mac68kArchitecture
141 #    undef mac68k
142 #  endif
143 #  if defined(mvme68k)
144 #   define Mvme68kArchitecture
145 #   undef mvme68k
146 #  endif
147 #  if defined(sun3) 
148 #   define Sun3Architecture
149 #   undef sun3
150 #  endif
151 #  undef mc68000
152 # endif
153 # ifdef __powerpc__
154 #  define PpcArchitecture
155 #  undef __powerpc__
156 # endif
157 #endif /* OpenBSD */
158
159 #ifdef __NetBSD__
160 # define MacroIncludeFile <NetBSD.cf>
161 # define MacroFile NetBSD.cf
162 # undef __NetBSD__
163 # define NetBSDArchitecture
164 # ifdef __i386__
165 #  define i386BsdArchitecture
166 #  define i386Architecture
167 #  undef i386
168 # endif
169 # if defined(__sparc__) || defined(sparc)
170 #  define SparcArchitecture
171 #  undef sparc
172 # endif
173 # ifdef mips
174 #   define MipsArchitecture
175 #   define ArcArchitecture
176 #   undef mips
177 # endif
178 # ifdef __alpha__
179 #   define AlphaArchitecture
180 #   undef __alpha__
181 # endif
182 # ifdef mc68000
183 #   define Mc68020Architecture
184 # endif
185 # ifdef __arm32__
186 #   define Arm32Architecture
187 #   undef __arm32__
188 # endif
189 # ifdef __vax__
190 #   define VaxArchitecture
191 #   undef __vax__
192 # endif
193 # ifdef __powerpc__
194 #   define PpcArchitecture
195 #   undef __powerpc__
196 # endif
197 #endif /* NetBSD */
198
199 #ifdef __FreeBSD__
200 # define MacroIncludeFile <FreeBSD.cf>
201 # define MacroFile FreeBSD.cf
202 # undef __FreeBSD__
203 # define FreeBSDArchitecture
204 # ifdef __i386__
205 #  define i386BsdArchitecture
206 #  define i386Architecture
207 #  undef i386
208 # endif
209 # ifdef __alpha__
210 #  define AlphaBsdArchitecture
211 #  define AlphaArchitecture
212 #  undef __alpha__
213 # endif
214 #endif /* __FreeBSD__ */
215
216 #ifdef AMOEBA
217  /* Should be before the 'sun' entry because we may be cross-compiling */
218 # define MacroIncludeFile <Amoeba.cf>
219 # define MacroFile Amoeba.cf
220 # if defined(i80386) || defined(__i80386__)
221 #  undef i80386
222 #  define i386Architecture
223 # else
224 #  if defined(mc68000) || defined(__mc68000__)
225 #   undef mc68000
226 #   define Sun3Architecture
227 #   define SunArchitecture
228 #  else
229 #   if defined(sparc) || defined(__sparc__)
230 #    undef sparc
231 #    define SparcArchitecture
232 #    define SunArchitecture
233 #   endif
234 #  endif
235 #  undef sun
236 # endif
237 #endif /* AMOEBA */
238
239 #ifdef sun
240 # define MacroIncludeFile <sun.cf>
241 # define MacroFile sun.cf
242 # ifdef SVR4
243 #  undef SVR4
244 #  define SVR4Architecture
245 # endif
246 # ifdef sparc
247 #  undef sparc
248 # define SparcArchitecture
249 # endif
250 # ifdef mc68000
251 #  undef mc68000
252 # define Sun3Architecture
253 # endif
254 # ifdef i386
255 #  undef i386
256 #  define i386Architecture
257 # endif
258 # undef sun
259 # define SunArchitecture
260 #endif /* sun */
261
262 #ifdef hpux
263 # define MacroIncludeFile <hp.cf>
264 # define MacroFile hp.cf
265 # undef hpux
266 # define HPArchitecture
267 #endif /* hpux */
268
269 #ifdef sco
270 # define MacroIncludeFile <sco5.cf>
271 # define MacroFile sco5.cf
272 # undef sco
273 # undef USL
274 # undef SYSV
275 # undef i386
276 # undef SCO
277 # undef SVR4
278 # define i386Architecture
279 # define SCOArchitecture
280 # define i386SVR3Architecture
281 # define SVR3Architecture
282 # define i386ScoArchitecture
283 # define i386Sco325Architecture
284 #endif /* sco - SCO Open Server 5 */
285
286 #ifdef USL
287 # define MacroIncludeFile <usl.cf>
288 # define MacroFile usl.cf
289 # undef USL
290 # undef SVR4
291 # undef i386
292 # define SVR4Architecture
293 # define i386Architecture
294 # define USLArchitecture
295 #endif /* USL */
296
297 #ifdef NCR
298 # define MacroIncludeFile <ncr.cf>
299 # define MacroFile ncr.cf
300 # undef NCR
301 # undef SVR4
302 # undef i386
303 # define SVR4Architecture
304 # define i386Architecture
305 # define NCRArchitecture
306 #endif /* NCR */
307
308 #ifdef apollo
309 # define MacroIncludeFile <apollo.cf>
310 # define MacroFile apollo.cf
311 # undef apollo
312 # define ApolloArchitecture
313 #endif /* apollo */
314
315 #ifdef sony
316 # define MacroIncludeFile <sony.cf>
317 # define MacroFile sony.cf
318 # undef sony
319 # undef sony_news
320 # define SonyArchitecture
321 # ifdef mc68020
322 #  undef mc68020
323 #  undef mc68030
324 #  define Mc68020Architecture
325 # endif
326 # ifdef mips
327 #  undef mips
328 #  define MipsArchitecture
329 # endif
330 # ifdef __svr4
331 #  define SVR4Architecture
332 # else
333 #  if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
334 #   define SonySysvArchitecture
335 #  else
336 #   define SonyBsdArchitecture
337 #  endif
338 # endif
339 #endif /* sony */
340
341 #ifdef M4310
342 # define MacroIncludeFile <pegasus.cf>
343 # define MacroFile pegasus.cf
344 # undef M4310
345 # define PegasusArchitecture
346 #endif /* M4310 */
347
348 #ifdef M4330
349 # define MacroIncludeFile <m4330.cf>
350 # define MacroFile m4330.cf
351 # undef  M4330
352 # define M4330Architecture
353 #endif /* M4330 */
354
355 #ifdef macII
356 # define MacroIncludeFile <macII.cf>
357 # define MacroFile macII.cf
358 # undef  macII
359 # define MacIIArchitecture
360 #endif /* macII */
361
362 #ifdef _CRAY
363 # define MacroIncludeFile <cray.cf>
364 # define MacroFile cray.cf
365 # undef cray
366 # undef CRAY
367 # undef CRAY1
368 # undef CRAY2
369 # undef YMP
370 # define CrayArchitecture
371 #endif /* _CRAY */
372
373 #ifdef sgi
374 # define MacroIncludeFile <sgi.cf>
375 # define MacroFile sgi.cf
376 # undef sgi
377 # define SGIArchitecture
378 # undef mips
379 # undef __mips
380 # define MipsArchitecture
381 # ifdef _SVR4
382 #  undef _SVR4
383 #  define SVR4Architecture
384 # endif
385 # ifdef _SYSTYPE_SVR4
386 #  undef _SYSTYPE_SVR4
387 #  define SVR4Architecture
388 # endif
389 #endif /* sgi */
390
391 #ifdef stellar
392 # define MacroIncludeFile <stellar.cf>
393 # define MacroFile stellar.cf
394 # undef stellar
395 # define StellarArchitecture
396 #endif /* stellar */
397
398 #if defined(ibm) || defined(_IBMR2) || defined(ibm032) || defined(aix)
399 # define MacroIncludeFile <ibm.cf>
400 # define MacroFile ibm.cf
401 # ifdef ibm
402 #  undef ibm
403 # endif
404 # define IBMArchitecture
405 # ifdef i386
406 #  undef i386
407 #  define PS2Architecture
408 # endif
409 # ifdef ibm032
410 #  undef ibm032
411 #  define RtArchitecture
412 # endif
413 # ifdef aix
414 #  undef aix
415 #  define AIXArchitecture
416 # endif
417 # ifdef _IBMR2
418 #  undef _IBMR2
419 #  define RsArchitecture
420 # endif
421 #endif /* ibm */
422
423 #ifdef luna
424 # undef luna
425 # define MacroIncludeFile <luna.cf>
426 # define MacroFile luna.cf
427 # define LunaArchitecture
428 # ifdef mc68000
429 #  undef mc68000
430 #  define Mc68000Architecture
431 # else
432 #  undef mc88000
433 #  define Mc88000Architecture
434 # endif
435 #endif /* luna */
436
437 #ifdef Mips
438 #  define MacroIncludeFile <Mips.cf>
439 #  define MacroFile Mips.cf
440 #  undef Mips
441 #  undef mips
442 #  if defined(SYSTYPE_BSD43) || defined(BSD) || defined(BSD43)
443 #    define MipsBsdArchitecture
444 #  else /* BSD */
445 #    define MipsSysvArchitecture
446 #  endif /* BSD */
447 #endif /* Mips */
448
449 #ifdef MOTOROLA
450 # define MacroIncludeFile <moto.cf>
451 # define MacroFile moto.cf
452 # undef MOTOROLA        
453 # ifdef SYSV
454 #  define MotoR3Architecture
455 # endif
456 # ifdef SVR4
457 #  define MotoR4Architecture
458 # endif
459 #endif /* MOTOROLA */
460
461 #if defined(SVR4) && !defined(DGUX)
462 # ifdef i386
463 #  define i386Architecture
464 #  undef i386
465 # endif
466 # ifdef PC98
467 #  define PANIX98Architecture
468 #  undef PC98
469 # endif
470 # define SVR4Architecture
471 # define MacroIncludeFile <svr4.cf>
472 # define MacroFile svr4.cf
473 # undef SVR4
474 #endif /* SVR4 */
475
476 #ifdef SYSV
477 # ifdef i386
478 # undef i386
479 #  ifdef ISC
480 #   define i386Architecture     
481 #   define i386SVR3Architecture 
482 #   define MacroIncludeFile <isc.cf>
483 #   define MacroFile isc.cf
484 #   define i386IscArchitecture
485 #   undef ISC
486 #   ifdef ISC202
487 #    define IscVersion 202
488 #    undef ISC202
489 #   else
490 #    ifdef ISC30
491 #     define IscVersion 300
492 #     undef ISC30
493 #    else
494 #     ifdef ISC40
495 #      define IscVersion 400
496 #      undef ISC40
497 #     else
498 #      define IscVersion 221
499 #     endif /* ISC40 */
500 #    endif /* ISC30 */
501 #   endif /* ISC202 */
502 #  endif /* ISC */
503 #  ifndef MacroFile
504 #   define i386SVR3Architecture
505 #   define MacroIncludeFile <x386.cf>
506 #   define MacroFile x386.cf
507 #  endif /* MacroFile */
508 # endif /* i386 */
509 #endif /* SYSV */
510
511 /* SYSV386 is here for backward compatibility only */
512 #ifdef SYSV386
513 # undef i386
514 # ifdef SVR4
515 #  define i386Architecture
516 #  define SVR4Architecture
517 #  define i386SVR4Architecture
518 #  define MacroIncludeFile <svr4.cf>
519 #  define MacroFile svr4.cf
520 #  undef SVR4
521 # else /* ! SVR4 */
522 #  ifdef ISC
523 #   define i386Architecture     
524 #   define i386SVR3Architecture 
525 #   define MacroIncludeFile <isc.cf>
526 #   define MacroFile isc.cf
527 #   define i386IscArchitecture
528 #   undef ISC
529 #   ifdef ISC202
530 #    define IscVersion 202
531 #    undef ISC202
532 #   else
533 #    ifdef ISC30
534 #     define IscVersion 300
535 #     undef ISC30
536 #    else
537 #     ifdef ISC40
538 #      define IscVersion 400
539 #      undef ISC40
540 #     else
541 #      define IscVersion 221
542 #     endif /* ISC40 */
543 #    endif /* ISC30 */
544 #   endif /* ISC202 */
545 #  endif /* ISC */
546 #  ifndef MacroFile
547 #   define i386SVR3Architecture
548 #   define MacroIncludeFile <x386.cf>
549 #   define MacroFile x386.cf
550 #  endif /* MacroFile */
551 # endif /* ! SVR4 */
552 #endif /* SYSV386 */
553
554 #ifdef DGUX
555 # define i386Architecture
556 # define SVR4Architecture
557 # define MacroIncludeFile <DGUX.cf>
558 # define MacroFile DGUX.cf
559 # undef DGUX
560 # define DguxArchitecture
561 #endif /* DGUX */
562
563 #ifdef __convex__
564 # define MacroIncludeFile <convex.cf>
565 # define MacroFile convex.cf
566 # ifdef convex
567 #  undef convex
568 # endif
569 # define ConvexArchitecture
570 #endif /* _convex_ */
571
572 #ifdef __osf__
573 # define MacroIncludeFile <osf1.cf>
574 # define MacroFile osf1.cf
575 # define OSF1Architecture
576 # undef __osf__
577 # ifdef __mips__
578 #  undef __mips__
579 #  define MipsArchitecture
580 #  define MipselArchitecture
581 # endif
582 # ifdef __alpha
583 #  undef __alpha
584 #  define AlphaArchitecture
585 # endif
586 #endif /* __osf__ */
587
588 #ifdef Oki
589 # define MacroIncludeFile <Oki.cf>
590 # define MacroFile Oki.cf
591 # undef Oki
592 # define i860SVR4Architecture
593 # define SVR4Architecture
594 # undef SVR4
595 #endif /* Oki */
596
597 #ifdef WIN32
598 # define MacroIncludeFile <Win32.cf>
599 # define MacroFile Win32.cf
600 # define Win32Architecture
601 #endif /* WIN32 */
602
603 #ifdef linux 
604 # define MacroIncludeFile <linux.cf>
605 # define MacroFile linux.cf
606 # undef linux
607 # define LinuxArchitecture
608 # ifdef i386
609 #  ifndef i386Architecture
610 #   define i386Architecture
611 #  endif
612 #  undef i386
613 XCOMM Keep cpp from replacing path elements containing i486/i586/i686
614 #  ifdef i486
615 #  ifndef i386Architecture
616 #   define i386Architecture
617 #  endif
618 #   undef i486
619 #  endif
620 #  ifdef i586
621 #  ifndef i386Architecture
622 #   define i386Architecture
623 #  endif
624 #   undef i586
625 #  endif
626 #  ifdef i686
627 #  ifndef i386Architecture
628 #   define i386Architecture
629 #  endif
630 #   undef i686
631 #  endif
632 #  ifdef k6
633 #  ifndef i386Architecture
634 #   define i386Architecture
635 #  endif
636 #   undef k6
637 #  endif
638 # endif /* k6 */
639 # ifdef __i386__
640 #  ifndef i386Architecture
641 #   define i386Architecture
642 #  endif
643 #  undef __i386__
644 # endif /* __i386__ */
645 # ifdef __i486__
646 #  ifndef i386Architecture
647 #   define i386Architecture
648 #  endif
649 #  undef __i486__
650 # endif /* __i486__ */
651 # ifdef __i586__
652 #  ifndef i386Architecture
653 #   define i386Architecture
654 #  endif
655 #  undef __i586__
656 # endif /* __i586__ */
657 # ifdef __i686__
658 #  ifndef i386Architecture
659 #   define i386Architecture
660 #  endif
661 #  undef __i686__
662 # endif /* __i686__ */
663 # ifdef __k6__
664 #  ifndef i386Architecture
665 #   define i386Architecture
666 #  endif
667 #  undef __k6__
668 # endif /* __k6__ */
669 # ifdef __i386
670 #  ifndef i386Architecture
671 #   define i386Architecture
672 #  endif
673 #  undef __i386
674 # endif /* __i386 */
675 # ifdef __i486
676 #  ifndef i386Architecture
677 #   define i386Architecture
678 #  endif
679 #  undef __i486
680 # endif /* __i486 */
681 # ifdef __i586
682 #  ifndef i386Architecture
683 #   define i386Architecture
684 #  endif
685 #  undef __i586
686 # endif /* __i586 */
687 # ifdef __i686
688 #  ifndef i386Architecture
689 #   define i386Architecture
690 #  endif
691 #  undef __i686
692 # endif /* __i686 */
693 # ifdef __k6
694 #  ifndef i386Architecture
695 #   define i386Architecture
696 #  endif
697 #  undef __k6
698 # endif /* __k6 */
699 # ifdef __s390__
700 #   define s390Architecture
701 #  undef __s390__
702 # endif /* s390 */
703 # ifdef __alpha
704 #  define AlphaArchitecture
705 #  undef __alpha
706 # endif /* __alpha */
707 # ifdef __alpha__
708 #  ifndef AlphaArchitecture
709 #   define AlphaArchitecture
710 #  endif
711 #  undef __alpha__
712 # endif /* __alpha__ */
713 # ifdef __arm__
714 #  define Arm32Architecture
715 #  undef arm
716 #  undef __arm
717 #  undef __arm__
718 # endif
719 # ifdef mc68000
720 #  define Mc68020Architecture
721 #  undef mc68000
722 # endif /* mc68000 */
723 # ifdef powerpc
724 #  define PpcArchitecture
725 #  undef powerpc
726 # endif
727 # ifdef __powerpc__
728 #  ifndef PpcArchitecture
729 #   define PpcArchitecture
730 #  endif
731 #  undef __powerpc__
732 # endif
733 # ifdef sparc
734 #  define SparcArchitecture
735 #  undef sparc
736 # endif
737 # ifdef __sparc__
738 #  ifndef SparcArchitecture
739 #   define SparcArchitecture
740 #  endif
741 #  undef __sparc__
742 # endif
743 # ifdef x86_64 
744 #  define x86_64Architecture
745 #  undef x86_64 
746 # endif
747 # ifdef __x86_64__
748 #  ifndef x86_64Architecture
749 #   define x86_64Architecture
750 #  endif
751 #  undef __x86_64__
752 # endif
753 # ifdef ia64 
754 #  define ia64Architecture
755 #  undef ia64 
756 # endif
757 # ifdef __ia64__
758 #  ifndef ia64Architecture
759 #   define ia64Architecture
760 #  endif
761 #  undef __ia64__
762 # endif
763 # if defined(mips) || defined(__mips__)
764 #  define MipsArchitecture
765 #  undef mips
766 #  undef __mips__
767 #  if defined(MIPSEL) || defined(_MIPSEL)
768 #   define MipselArchitecture
769 #  endif
770 #  undef MIPSEL
771 #  undef _MIPSEL
772 # endif
773 # ifdef __hppa__
774 #  ifndef HPArchitecture
775 #   define HPArchitecture
776 #  endif
777 #  undef __hppa__
778 # endif /* __hppa__ */
779 # ifdef __sh__
780 #  ifndef SuperHArchitecture
781 #   define SuperHArchitecture
782 #  endif
783 #  ifdef __BIG_ENDIAN__
784 #   ifndef SuperHebArchitecture
785 #    define SuperHebArchitecture
786 #   endif
787 #  endif
788 #  undef __sh__
789 # endif /* __sh__ */
790 # if defined(__SH3__) || defined(__sh3__)
791 #  ifndef SuperH3Architecture
792 #   define SuperH3Architecture
793 #  endif
794 #  undef __SH3__
795 #  undef __sh3__
796 # endif /* __SH3__ or __sh3__ */
797 # ifdef __SH4__
798 #  ifdef __SH4_NOFPU__
799 #   ifndef SuperH4NOFPUArchitecture
800 #    define SuperH4NOFPUArchitecture
801 #   endif
802 #   undef __SH4_NOFPU__
803 #  else
804 #   ifndef SuperH4Architecture
805 #    define SuperH4Architecture
806 #   endif
807 #  endif
808 #  undef __SH4__
809 # endif /* __SH4__ */
810 XCOMM  for compatibility with 3.3.x 
811 # ifdef PpcArchitecture
812 #  define PowerPCArchitecture
813 # endif
814 #endif /* linux */
815
816 #if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc))
817 # define MacroIncludeFile <lynx.cf>
818 # define MacroFile lynx.cf
819 # define LynxOSArchitecture
820 # undef __Lynx__
821 # undef Lynx
822 # undef lynx
823 # if defined(i386) || defined(__i386__) || defined(__x86__)
824 #  define i386Architecture
825 #  undef i386
826 #  undef __i386__
827 #  undef __x86__
828 # endif
829 # ifdef __powerpc__
830 #  define PpcArchitecture
831 #  undef __powerpc__
832 # endif
833 # if defined(sparc) || defined(__sparc__)
834 #  define SparcArchitecture
835 #  undef sparc
836 #  undef __sparc__
837 # endif
838 /* for compatibility with 3.3.x */
839 # ifdef PpcArchitecture
840 #  define PowerPCArchitecture
841 # endif
842 #endif /* LynxOS AT/PPC/microSPARC */
843
844 #ifdef __uxp__
845 # define MacroIncludeFile <fujitsu.cf>
846 # define MacroFile fujitsu.cf
847 # define FujitsuArchitecture
848 # undef __uxp__
849 # define UXPArchitecture
850 # define SVR4Architecture
851 # ifdef sparc
852 #  undef sparc
853 #  define SparcArchitecture
854 # endif
855 #endif /* __uxp__ */
856
857 #ifdef __sxg__
858 # define MacroIncludeFile <fujitsu.cf>
859 # define MacroFile fujitsu.cf
860 # define FujitsuArchitecture
861 # undef __sxg__
862 # define mc68000Architecture
863 #endif /* __sxg__ */
864
865 #ifdef _SEQUENT_
866 /* undefine assignments resulting from -DSVR4 */
867 # undef MacroIncludeFile
868 # define MacroIncludeFile <sequent.cf>
869 # undef MacroFile
870 # define MacroFile sequent.cf
871 # undef _SEQUENT_
872 # define DynixPtxArchitecture
873 # define SequentArchitecture
874 #endif
875
876 #if defined(_nec_ews_svr4) || defined(nec_ews_svr4) || defined(nec_ews_svr2) || defined(SX) || defined(_nec_up) || defined(_nec_ft) || defined(PC_UX)
877 # ifdef nec
878 #  undef nec
879 # endif
880 # define MacroIncludeFile <nec.cf>
881 # define MacroFile nec.cf
882 # define NecArchitecture
883 #endif
884
885 #ifdef minix 
886 #define MacroIncludeFile <minix.cf>
887 #define MacroFile minix.cf
888 #undef minix
889 #define MinixArchitecture
890 #define i386Architecture
891 #endif /* minix */
892
893 #ifdef MACH
894 #ifdef __GNU__
895 #define MacroIncludeFile <gnu.cf>
896 #define MacroFile gnu.cf
897 #define GNUMachArchitecture
898 #else
899 #define MacroIncludeFile <mach.cf>
900 #define MacroFile mach.cf
901 #endif
902 #undef MACH
903 #ifdef  i386
904 #define i386MachArchitecture
905 #define i386Architecture
906 #endif  /* i386 */
907 #undef i386
908 #endif /* MACH */
909
910 /* On NetBSD, `unix' is not defined, and cpp emits a warning every time
911  * it sees a test using the `unix' symbol */
912 #if !defined(NetBSDArchitecture) || (defined(NetBSDArchitecture) && DefaultOSMajorVersion == 1 && DefaultOSMinorVersion <= 3)
913 #ifdef unix
914 #undef unix
915 #endif
916 #endif
917
918 #ifdef emxos2
919 #define MacroIncludeFile <os2.cf>
920 #define MacroFile os2.cf
921 #define OS2Architecture
922 #define i386Architecture
923 #endif /* emxos2 */
924
925 #if defined(__QNX__) && !defined(__QNXNTO__)
926 #define MacroIncludeFile <QNX4.cf>
927 #define MacroFile QNX4.cf
928 #define QNX4Architecture
929 #define i386Architecture
930 #endif /* QNX4 */
931
932 #ifdef __QNXNTO__
933 #define MacroIncludeFile <nto.cf>
934 #define MacroFile nto.cf
935 #define NTOArchitecture
936 #ifdef PPC
937 # define PPCArchitecture
938 # undef PPC
939 #else
940 #ifdef MIPS
941 # define mipsArchitecture
942 # undef MIPS
943 #else
944 #ifdef i386
945 # define i386Architecture
946 # undef i386
947 #endif
948 #endif
949 #endif
950 #endif /* QNX/Neutrino */
951
952 #ifdef SparcArchitecture
953 # if defined(__sparc_v9) || defined(__arch64__)
954 #  define Sparc64Architecture
955 # endif
956 #endif
957
958 #ifndef MacroIncludeFile
959 XCOMM WARNING:  Imake.cf not configured; guessing at definitions!!!
960 XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake.
961 #define MacroIncludeFile <generic.cf>
962 #define MacroFile generic.cf
963 #endif