aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/config/cf/Imake.cf
blob: 2387e8067c801e8cd85da811a022605bd6f1b6cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
/*
 * To add support for another platform:
 * 
 *     1.  Identify a machine-specific cpp symbol.  If your preprocessor 
 *         does not have any built in, you will need to add the symbol to the
 *         cpp_argv table in config/imake/imakemdep.h and rebuild imake with
 *         the BOOTSTRAPCFLAGS variable set (see the macII for an example).
 *
 *     2.  Add all machine-specific cpp symbols (either defined by you or by
 *         the preprocessor or compiler) to the predefs table in 
 *         config/imake/imakemdep.h.
 *
 *     3.  But a new #ifdef block below that defines MacroIncludeFile and
 *         MacroFile for your new platform and then #undefs the machine-
 *         specific preprocessor symbols (to avoid problems with file names).
 *
 *     4.  Create a .cf file with the name given by MacroFile.
 */

#if defined(__APPLE__)
# undef __APPLE__
# define MacroIncludeFile <darwin.cf>
# define MacroFile darwin.cf
# define DarwinArchitecture
# ifdef __ppc__
#  define PpcDarwinArchitecture
#  undef __ppc__
# endif
# ifdef __i386__
#  define i386DarwinArchitecture
#  undef __i386__
# endif
#endif

#if defined(clipper) || defined(__clipper__)
# undef clipper
# define MacroIncludeFile <ingr.cf>
# define MacroFile ingr.cf
# define IngrArchitecture
#endif /* clipper */

#ifdef __CYGWIN__
#define MacroIncludeFile <cygwin.cf>
#define MacroFile cygwin.cf
#define cygwinArchitecture
#define i386Architecture
#undef i386
#undef i486
#undef i586
#undef i686
#undef __i386__
#undef _X86_
#undef __CYGWIN__
#endif /* CYGWIN */

#ifdef ultrix
# define MacroIncludeFile <ultrix.cf>
# define MacroFile ultrix.cf
# ifdef vax
#  undef vax
#  define VaxArchitecture
# endif
# ifdef mips
#  undef mips
#  define MipsArchitecture
#  define MipselArchitecture
# endif
# undef ultrix
# define UltrixArchitecture
#endif /* ultrix */

#if defined(vax) && !defined(UltrixArchitecture) && !defined(__OpenBSD__)
# define MacroIncludeFile <bsd.cf>
# define MacroFile bsd.cf
# undef vax
# define BSDArchitecture
# define VaxArchitecture
#endif /* vax */

#ifdef __bsdi__
# define MacroIncludeFile <bsdi.cf>
# define MacroFile bsdi.cf
# undef __bsdi__
# ifdef bsdi
#  undef bsdi
# endif
# define BSDOSArchitecture
# if defined(__i386__) || defined(i386)
#  define i386BsdArchitecture
#  define i386Architecture
#  undef i386
#  undef __i386__
# endif
# if defined(__ppc__) || defined(ppc)
#  define PpcBsdArchitecture
#  define PpcArchitecture
#  undef ppc
#  undef __ppc__
# endif
# if defined(__sparc__) || defined(__sparc_v9__) || defined(sparc)
#  define SparcBsdArchitecture
#  define SparcArchitecture
#  undef sparc
#  undef __sparc__
#  undef __sparc_v9__
# endif
#endif /* bsdi */

#ifdef __OpenBSD__
# undef __OpenBSD__
# undef __NetBSD__
# define OpenBSDArchitecture
# define KOpenBSDArchitecture
# define MacroIncludeFile <OpenBSD.cf>
# define MacroFile OpenBSD.cf
# ifdef __i386__
#  define i386BsdArchitecture
#  define i386Architecture
#  undef i386
# endif
# if defined(__sparc__) || defined(sparc)
#  if !defined(__arch64__)
#   define SparcArchitecture
#  else
#   define Sparc64Architecture
#  endif
#  undef sparc
# endif
# if defined(__mips__) || defined(mips)
#   define MipsArchitecture
#   ifdef arc
#     define ArcArchitecture
#     undef arc
#   endif
#   ifdef pmax
#     define PmaxArchitecture
#     undef pmax
#   endif
#   undef mips
# endif
# if defined(__alpha__) || defined(alpha)
#   define AlphaArchitecture
#   undef __alpha__
#   undef alpha
# endif
# if defined(__amd64__) || defined(__x86_64__)
#   define AMD64Architecture
#   undef __amd64__
#   undef __x86_64__
#   undef amd64
# endif
# if defined(__mc68020__) || defined(mc68020)
#  define Mc68020Architecture
#  if defined(amiga)
#   define AmigaArchitecture
#   undef amiga
#  endif
#  if defined(hp300)
#   define Hp300Architecture
#   undef hp300
#  endif
#  if defined(mac68k)
#    define Mac68kArchitecture
#    undef mac68k
#  endif
#  if defined(mvme68k)
#   define Mvme68kArchitecture
#   undef mvme68k
#  endif
#  if defined(sun3) 
#   define Sun3Architecture
#   undef sun3
#  endif
#  undef mc68000
# endif
# ifdef __powerpc__
#  define PpcArchitecture
#  undef __powerpc__
#  undef __macppc__
#  undef macppc
# endif
# ifdef __vax__
#  undef vax
#  undef __vax__
#  define VaxArchitecture
# endif
#endif /* OpenBSD */

/* Systems based on kernel of OpenBSD */
#if defined(__OpenBSD_kernel__)
#define KOpenBSDArchitecture
#endif

#ifdef __NetBSD__
# define MacroIncludeFile <NetBSD.cf>
# define MacroFile NetBSD.cf
# undef __NetBSD__
# define NetBSDArchitecture
# define KNetBSDArchitecture
# ifdef __i386__
#  define i386BsdArchitecture
#  define i386Architecture
#  undef i386
# endif
# if defined(__sparc64__) || defined(__sparc_v9__) || defined(__arch64__)
#  define Sparc64Architecture
# endif
# if defined(__sparc__) || defined(sparc)
#  define SparcArchitecture
#  undef sparc
#  if defined(__sparc_v9__) || defined(__arch64__)
#    define Sparc64Architecture
#  endif
# endif
# ifdef mips
#   define MipsArchitecture
#   define ArcArchitecture
#   undef mips
# endif
# ifdef __alpha__
#   define AlphaArchitecture
#   define AlphaBsdArchitecture
#   undef __alpha__
# endif
# ifdef mc68000
#   define Mc68020Architecture
# endif
# ifdef __arm32__
#   define Arm32Architecture
#   undef __arm32__
# endif
# ifdef __vax__
#   define VaxArchitecture
#   undef __vax__
# endif
# ifdef __powerpc__
#   define PpcArchitecture
#   undef __powerpc__
# endif
#endif /* NetBSD */

/* Systems based on kernel of NetBSD */
#if defined(__NetBSD_kernel__)
#define KNetBSDArchitecture
#endif

#ifdef __DragonFly__
# define MacroIncludeFile <DragonFly.cf>
# define MacroFile DragonFly.cf
# undef __DragonFly__
# undef __FreeBSD__
# define DragonFlyArchitecture
# define FreeBSDArchitecture
# ifdef __i386__
#  define i386BsdArchitecture
#  define i386Architecture
#  undef i386
# endif
# ifdef __sparc64__
#  define Sparc64Architecture
#  undef __sparc64__
# endif
# ifdef __ia64__
#  define ia64Architecture
#  undef __ia64__
# endif
# ifdef __amd64__
#  define x86_64Architecture
#  undef __amd64__
#  undef __x86_64__
# endif
#endif /* __DragonFly__ */

#ifdef __FreeBSD__
# define MacroIncludeFile <FreeBSD.cf>
# define MacroFile FreeBSD.cf
# undef __FreeBSD__
# define FreeBSDArchitecture
# define KFreeBSDArchitecture
# ifdef __i386__
#  define i386BsdArchitecture
#  define i386Architecture
#  undef i386
# endif
# ifdef __alpha__
#  define AlphaBsdArchitecture
#  define AlphaArchitecture
#  undef __alpha__
# endif
# ifdef __sparc64__
#  define Sparc64Architecture
#  undef __sparc64__
# endif
# ifdef __ia64__
#  define ia64Architecture
#  undef __ia64__
# endif
# ifdef __amd64__
#  define AMD64Architecture
#  undef __amd64__
#  undef __x86_64__
# endif
# ifdef __powerpc__
#  define PpcArchitecture
#  undef __powerpc__
# endif
#endif /* __FreeBSD__ */

/* Systems based on kernel of FreeBSD */
#if defined(__FreeBSD_kernel__)
#define KFreeBSDArchitecture
#endif

#ifdef AMOEBA
 /* Should be before the 'sun' entry because we may be cross-compiling */
# define MacroIncludeFile <Amoeba.cf>
# define MacroFile Amoeba.cf
# if defined(i80386) || defined(__i80386__)
#  undef i80386
#  define i386Architecture
# else
#  if defined(mc68000) || defined(__mc68000__)
#   undef mc68000
#   define Sun3Architecture
#   define SunArchitecture
#  else
#   if defined(sparc) || defined(__sparc__)
#    undef sparc
#    define SparcArchitecture
#    define SunArchitecture
#   endif
#  endif
#  undef sun
# endif
#endif /* AMOEBA */

#ifdef sun
# define MacroIncludeFile <sun.cf>
# define MacroFile sun.cf
# ifdef SVR4
#  undef SVR4
#  define SVR4Architecture
# endif
# ifdef sparc
#  undef sparc
#  define SparcArchitecture
# endif
# ifdef __sparcv9
#  undef __sparcv9
#  define Sparc64Architecture
# endif
# ifdef mc68000
#  undef mc68000
#  define Sun3Architecture
# endif
# if defined(__amd64) || defined(__x86_64)
#  undef __amd64
#  undef __x86_64
#  undef amd64
#  undef i386
#  define AMD64Architecture
# endif
# ifdef i386
#  undef i386
#  define i386Architecture
# endif
# undef sun
# define SunArchitecture
#endif /* sun */

#ifdef __SCO__
# define MacroIncludeFile <sco5.cf>
# define MacroFile sco5.cf
# undef __SCO__
# undef sco
# undef USL
# undef SYSV
# undef i386
# undef SCO
# undef SVR4
# define i386Architecture
# define SCOArchitecture
# define i386SVR3Architecture
# define SVR3Architecture
# define i386ScoArchitecture
# define i386Sco325Architecture
# undef i386
# undef i486
# undef i586
# undef i686
# undef k6
# undef __i386__
# undef __i486__
# undef __i586__
# undef __i686__
# undef __k6__
# undef __i386
# undef __i486
# undef __i586
# undef __i686
# undef __k6
# undef pentium
# undef __pentium
# undef pentiumpro
# undef __pentiumpro
#endif /* __SCO__ - SCO Open Server 5 */

#ifdef __UNIXWARE__
# define MacroIncludeFile <usl.cf>
# define MacroFile usl.cf
# undef __UNIXWARE__
# undef USL
# undef SVR4
# undef i386
# undef SVR5
# undef SYSV5
# define SVR4Architecture
# define i386Architecture
# define USLArchitecture
# define UnixWareArchitecture
# undef i386
# undef i486
# undef i586
# undef i686
# undef k6
# undef __i386__
# undef __i486__
# undef __i586__
# undef __i686__
# undef __k6__
# undef __i386
# undef __i486
# undef __i586
# undef __i686
# undef __k6
# undef pentium
# undef __pentium
# undef pentiumpro
# undef __pentiumpro
#endif /* __UNIXWARE__ */

#ifdef NCR
# define MacroIncludeFile <ncr.cf>
# define MacroFile ncr.cf
# undef NCR
# undef SVR4
# undef i386
# define SVR4Architecture
# define i386Architecture
# define NCRArchitecture
#endif /* NCR */

#ifdef apollo
# define MacroIncludeFile <apollo.cf>
# define MacroFile apollo.cf
# undef apollo
# define ApolloArchitecture
#endif /* apollo */

#ifdef sony
# define MacroIncludeFile <sony.cf>
# define MacroFile sony.cf
# undef sony
# undef sony_news
# define SonyArchitecture
# ifdef mc68020
#  undef mc68020
#  undef mc68030
#  define Mc68020Architecture
# endif
# ifdef mips
#  undef mips
#  define MipsArchitecture
# endif
# ifdef __svr4
#  define SVR4Architecture
# else
#  if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
#   define SonySysvArchitecture
#  else
#   define SonyBsdArchitecture
#  endif
# endif
#endif /* sony */

#ifdef M4310
# define MacroIncludeFile <pegasus.cf>
# define MacroFile pegasus.cf
# undef M4310
# define PegasusArchitecture
#endif /* M4310 */

#ifdef M4330
# define MacroIncludeFile <m4330.cf>
# define MacroFile m4330.cf
# undef  M4330
# define M4330Architecture
#endif /* M4330 */

#ifdef macII
# define MacroIncludeFile <macII.cf>
# define MacroFile macII.cf
# undef  macII
# define MacIIArchitecture
#endif /* macII */

#ifdef sgi
# define MacroIncludeFile <sgi.cf>
# define MacroFile sgi.cf
# undef sgi
# define SGIArchitecture
# undef mips
# undef __mips
# define MipsArchitecture
# ifdef _SVR4
#  undef _SVR4
#  define SVR4Architecture
# endif
# ifdef _SYSTYPE_SVR4
#  undef _SYSTYPE_SVR4
#  define SVR4Architecture
# endif
#endif /* sgi */

#ifdef stellar
# define MacroIncludeFile <stellar.cf>
# define MacroFile stellar.cf
# undef stellar
# define StellarArchitecture
#endif /* stellar */

#if defined(ibm) || defined(_IBMR2) || defined(ibm032)
# define MacroIncludeFile <ibm.cf>
# define MacroFile ibm.cf
# ifdef ibm
#  undef ibm
# endif
# define IBMArchitecture
# ifdef i386
#  undef i386
#  define PS2Architecture
# endif
# ifdef ibm032
#  undef ibm032
#  define RtArchitecture
# endif
# ifdef _IBMR2
#  undef _IBMR2
#  if (DefaultOSMajorVersion < 5)
#   define RsArchitecture
#  else
#   define PpcArchitecture
#  endif
# endif
#endif /* ibm */

#ifdef luna
# undef luna
# define MacroIncludeFile <luna.cf>
# define MacroFile luna.cf
# define LunaArchitecture
# ifdef mc68000
#  undef mc68000
#  define Mc68000Architecture
# else
#  undef mc88000
#  define Mc88000Architecture
# endif
#endif /* luna */

#ifdef Mips
#  define MacroIncludeFile <Mips.cf>
#  define MacroFile Mips.cf
#  undef Mips
#  undef mips
#  if defined(SYSTYPE_BSD43) || defined(BSD) || defined(BSD43)
#    define MipsBsdArchitecture
#  else /* BSD */
#    define MipsSysvArchitecture
#  endif /* BSD */
#endif /* Mips */

#ifdef MOTOROLA
# define MacroIncludeFile <moto.cf>
# define MacroFile moto.cf
# undef MOTOROLA	
# ifdef SYSV
#  define MotoR3Architecture
# endif
# ifdef SVR4
#  define MotoR4Architecture
# endif
#endif /* MOTOROLA */

#if defined(SVR4)
# ifdef i386
#  define i386Architecture
#  undef i386
# endif
# ifdef PC98
#  define PANIX98Architecture
#  undef PC98
# endif
# define SVR4Architecture
# define MacroIncludeFile <svr4.cf>
# define MacroFile svr4.cf
# undef SVR4
#endif /* SVR4 */

#ifdef SYSV
# ifdef i386
# undef i386
#  ifdef ISC
#   define i386Architecture	
#   define i386SVR3Architecture	
#   define MacroIncludeFile <isc.cf>
#   define MacroFile isc.cf
#   define i386IscArchitecture
#   undef ISC
#   ifdef ISC202
#    define IscVersion 202
#    undef ISC202
#   else
#    ifdef ISC30
#     define IscVersion 300
#     undef ISC30
#    else
#     ifdef ISC40
#      define IscVersion 400
#      undef ISC40
#     else
#      define IscVersion 221
#     endif /* ISC40 */
#    endif /* ISC30 */
#   endif /* ISC202 */
#  endif /* ISC */
#  ifndef MacroFile
#   define i386SVR3Architecture
#   define MacroIncludeFile <x386.cf>
#   define MacroFile x386.cf
#  endif /* MacroFile */
# endif /* i386 */
#endif /* SYSV */

/* SYSV386 is here for backward compatibility only */
#ifdef SYSV386
# undef i386
# ifdef SVR4
#  define i386Architecture
#  define SVR4Architecture
#  define i386SVR4Architecture
#  define MacroIncludeFile <svr4.cf>
#  define MacroFile svr4.cf
#  undef SVR4
# else /* ! SVR4 */
#  ifdef ISC
#   define i386Architecture	
#   define i386SVR3Architecture	
#   define MacroIncludeFile <isc.cf>
#   define MacroFile isc.cf
#   define i386IscArchitecture
#   undef ISC
#   ifdef ISC202
#    define IscVersion 202
#    undef ISC202
#   else
#    ifdef ISC30
#     define IscVersion 300
#     undef ISC30
#    else
#     ifdef ISC40
#      define IscVersion 400
#      undef ISC40
#     else
#      define IscVersion 221
#     endif /* ISC40 */
#    endif /* ISC30 */
#   endif /* ISC202 */
#  endif /* ISC */
#  ifndef MacroFile
#   define i386SVR3Architecture
#   define MacroIncludeFile <x386.cf>
#   define MacroFile x386.cf
#  endif /* MacroFile */
# endif /* ! SVR4 */
#endif /* SYSV386 */

#ifdef __convex__
# define MacroIncludeFile <convex.cf>
# define MacroFile convex.cf
# ifdef convex
#  undef convex
# endif
# define ConvexArchitecture
#endif /* _convex_ */

#ifdef Oki
# define MacroIncludeFile <Oki.cf>
# define MacroFile Oki.cf
# undef Oki
# define i860SVR4Architecture
# define SVR4Architecture
# undef SVR4
#endif /* Oki */

#if defined(WIN32) && !defined(__GNUC__)
# define MacroIncludeFile <Win32.cf>
# define MacroFile Win32.cf
# define Win32Architecture
#endif /* WIN32 */

#if defined(WIN32) && defined(__GNUC__)
#define MacroIncludeFile <mingw.cf>
#define MacroFile mingw.cf
#define Win32Architecture
#define mingwArchitecture
#define i386Architecture
#undef i386
#undef i486
#undef i586
#undef i686
#undef __i386__
#undef _X86_
#undef __MINGW32__
#endif /* CYGWIN */

#if defined(linux) || defined(__GLIBC__)
# define MacroIncludeFile <linux.cf>
# define MacroFile linux.cf
# undef linux
# ifdef __linux__
#  define LinuxArchitecture
# endif
# ifdef i386
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef i386
XCOMM Keep cpp from replacing path elements containing i486/i586/i686
#  ifdef i486
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#   undef i486
#  endif
#  ifdef i586
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#   undef i586
#  endif
#  ifdef i686
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#   undef i686
#  endif
#  ifdef k6
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#   undef k6
#  endif
# endif /* k6 */
# ifdef __i386__
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i386__
# endif /* __i386__ */
# ifdef __i486__
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i486__
# endif /* __i486__ */
# ifdef __i586__
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i586__
# endif /* __i586__ */
# ifdef __i686__
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i686__
# endif /* __i686__ */
# ifdef __k6__
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __k6__
# endif /* __k6__ */
# ifdef __i386
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i386
# endif /* __i386 */
# ifdef __i486
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i486
# endif /* __i486 */
# ifdef __i586
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i586
# endif /* __i586 */
# ifdef __i686
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __i686
# endif /* __i686 */
# ifdef __k6
#  ifndef i386Architecture
#   define i386Architecture
#  endif
#  undef __k6
# endif /* __k6 */
/* Keep this order! s390x has also __s390__ defined */
# if defined(__s390x__)
#  define s390xArchitecture
#  undef __s390x__
#  undef __s390__
# endif
# ifdef __s390__
#   define s390Architecture
#  undef __s390__
# endif /* s390 */
# ifdef __alpha
#  define AlphaArchitecture
#  undef __alpha
# endif /* __alpha */
# ifdef __alpha__
#  ifndef AlphaArchitecture
#   define AlphaArchitecture
#  endif
#  undef __alpha__
# endif /* __alpha__ */
# ifdef __arm__
#  define Arm32Architecture
#  undef arm
#  undef __arm
#  undef __arm__
#  if defined(__ARMEB__)
#   define Arm32ebArchitecture
#  endif
#  undef __ARMEB__
# endif
# ifdef __aarch64__
#  define Arm64Architecture
# endif
# ifdef mc68000
#  define Mc68020Architecture
#  undef mc68000
# endif /* mc68000 */
# if defined (powerpc) && !defined(__powerpc64__) && !defined (powerpc64)
#  define PpcArchitecture
#  undef powerpc
# endif
# if defined (__powerpc__) && !defined(__powerpc64__) && !defined (powerpc64)
#  ifndef PpcArchitecture
#   define PpcArchitecture
#  endif
#  undef __powerpc__
# endif
# ifdef __powerpc64__
#  ifndef Ppc64Architecture
#   define Ppc64Architecture
#  endif
#  undef __powerpc64__
# endif
# ifdef sparc
#  define SparcArchitecture
#  undef sparc
# endif
# ifdef __sparc__
#  ifndef SparcArchitecture
#   define SparcArchitecture
#  endif
#  undef __sparc__
# endif
# ifdef ia64 
#  define ia64Architecture
#  undef ia64 
# endif
# ifdef __ia64__
#  ifndef ia64Architecture
#   define ia64Architecture
#  endif
#  undef __ia64__
# endif
# if defined(mips) || defined(__mips__)
#  define MipsArchitecture
#  undef mips
#  undef __mips__
#  if defined(MIPSEL) || defined(_MIPSEL)
#   define MipselArchitecture
#  endif
#  undef MIPSEL
#  undef _MIPSEL
# endif
# ifdef __sh__
#  ifndef SuperHArchitecture
#   define SuperHArchitecture
#  endif
#  ifdef __BIG_ENDIAN__
#   ifndef SuperHebArchitecture
#    define SuperHebArchitecture
#   endif
#  endif
#  undef __sh__
# endif /* __sh__ */
# if defined(__SH3__) || defined(__sh3__)
#  ifndef SuperH3Architecture
#   define SuperH3Architecture
#  endif
#  undef __SH3__
#  undef __sh3__
# endif /* __SH3__ or __sh3__ */
# ifdef __SH4__
#  ifdef __SH4_NOFPU__
#   ifndef SuperH4NOFPUArchitecture
#    define SuperH4NOFPUArchitecture
#   endif
#   undef __SH4_NOFPU__
#  else
#   ifndef SuperH4Architecture
#    define SuperH4Architecture
#   endif
#  endif
#  undef __SH4__
# endif /* __SH4__ */
/* for compatibility with 3.3.x */
# ifdef PpcArchitecture
#  define PowerPCArchitecture
# endif
# if defined(__s390x__)
#  define s390xArchitecture
#  undef __s390x__
# endif
# if defined(__amd64__) || defined (__x86_64__)
#  undef __amd64__
#  undef __x86_64__
#  define AMD64Architecture
# endif
# if defined(amd64__) || defined (x86_64__)
#  undef amd64__
#  undef x86_64__
#  ifndef AMD64Architecture
#   define AMD64Architecture
#  endif
# endif
#endif /* linux || __GLIBC__ */

#ifdef __uxp__
# define MacroIncludeFile <fujitsu.cf>
# define MacroFile fujitsu.cf
# define FujitsuArchitecture
# undef __uxp__
# define UXPArchitecture
# define SVR4Architecture
# ifdef sparc
#  undef sparc
#  define SparcArchitecture
# endif
#endif /* __uxp__ */

#ifdef __sxg__
# define MacroIncludeFile <fujitsu.cf>
# define MacroFile fujitsu.cf
# define FujitsuArchitecture
# undef __sxg__
# define mc68000Architecture
#endif /* __sxg__ */

#ifdef _SEQUENT_
/* undefine assignments resulting from -DSVR4 */
# undef MacroIncludeFile
# define MacroIncludeFile <sequent.cf>
# undef MacroFile
# define MacroFile sequent.cf
# undef _SEQUENT_
# define DynixPtxArchitecture
# define SequentArchitecture
#endif

#if defined(_nec_ews_svr4) || defined(nec_ews_svr4) || defined(nec_ews_svr2) || defined(SX) || defined(_nec_up) || defined(_nec_ft) || defined(PC_UX)
# ifdef nec
#  undef nec
# endif
# define MacroIncludeFile <nec.cf>
# define MacroFile nec.cf
# define NecArchitecture
#endif

#ifdef minix 
#define MacroIncludeFile <minix.cf>
#define MacroFile minix.cf
#undef minix
#define MinixArchitecture
#define i386Architecture
#endif /* minix */

/* Systems with GNU libc and userland */
#if defined(__GNU__)
#define GNUArchitecture
#define MacroIncludeFile <gnu.cf>
#define MacroFile gnu.cf
#ifdef __i386__
#define i386Architecture
#endif
#endif

#ifdef MACH
#ifdef __GNU__
/* Mach-based GNU system */
#define GNUMachArchitecture
#else
#define MacroIncludeFile <mach.cf>
#define MacroFile mach.cf
#endif
#undef MACH
#ifdef	i386
#define i386MachArchitecture
#define i386Architecture
#endif	/* i386 */
#undef i386
#endif /* MACH */

/* On NetBSD, `unix' is not defined, and cpp emits a warning every time
 * it sees a test using the `unix' symbol */
#if !defined(NetBSDArchitecture) || (defined(NetBSDArchitecture) && DefaultOSMajorVersion == 1 && DefaultOSMinorVersion <= 3)
#ifdef unix
#undef unix
#endif
#endif

#ifdef SparcArchitecture
# if defined(__sparc_v9) || defined(__arch64__)
#  define Sparc64Architecture
# endif
#endif

#ifndef MacroIncludeFile
XCOMM WARNING:  Imake.cf not configured; guessing at definitions!!!
XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake.
#define MacroIncludeFile <generic.cf>
#define MacroFile generic.cf
#endif