Debian Codegraph @

nx-X11/config/cf/Imake.cf

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