1XCOMM $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 */
20XCOMM $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 __DragonFly__
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 __x86_64__
210#  ifndef x86_64Architecture
211#   define x86_64Architecture
212#  endif
213#  undef __x86_64__
214# endif
215# ifdef __alpha__
216#  define AlphaBsdArchitecture
217#  define AlphaArchitecture
218#  undef __alpha__
219# endif
220#endif /* __FreeBSD__ */
221
222#ifdef AMOEBA
223 /* Should be before the 'sun' entry because we may be cross-compiling */
224# define MacroIncludeFile <Amoeba.cf>
225# define MacroFile Amoeba.cf
226# if defined(i80386) || defined(__i80386__)
227#  undef i80386
228#  define i386Architecture
229# else
230#  if defined(mc68000) || defined(__mc68000__)
231#   undef mc68000
232#   define Sun3Architecture
233#   define SunArchitecture
234#  else
235#   if defined(sparc) || defined(__sparc__)
236#    undef sparc
237#    define SparcArchitecture
238#    define SunArchitecture
239#   endif
240#  endif
241#  undef sun
242# endif
243#endif /* AMOEBA */
244
245#ifdef sun
246# define MacroIncludeFile <sun.cf>
247# define MacroFile sun.cf
248# ifdef SVR4
249#  undef SVR4
250#  define SVR4Architecture
251# endif
252# ifdef sparc
253#  undef sparc
254# define SparcArchitecture
255# endif
256# ifdef mc68000
257#  undef mc68000
258# define Sun3Architecture
259# endif
260# ifdef i386
261#  undef i386
262#  define i386Architecture
263# endif
264# undef sun
265# define SunArchitecture
266#endif /* sun */
267
268#ifdef __hpux
269# define MacroIncludeFile <hp.cf>
270# define MacroFile hp.cf
271# undef __hpux
272# define HPArchitecture
273#endif /* __hpux */
274
275#ifdef sco
276# define MacroIncludeFile <sco5.cf>
277# define MacroFile sco5.cf
278# undef sco
279# undef USL
280# undef SYSV
281# undef i386
282# undef SCO
283# undef SVR4
284# define i386Architecture
285# define SCOArchitecture
286# define i386SVR3Architecture
287# define SVR3Architecture
288# define i386ScoArchitecture
289# define i386Sco325Architecture
290#endif /* sco - SCO Open Server 5 */
291
292#ifdef USL
293# define MacroIncludeFile <usl.cf>
294# define MacroFile usl.cf
295# undef USL
296# undef SVR4
297# undef i386
298# define SVR4Architecture
299# define i386Architecture
300# define USLArchitecture
301#endif /* USL */
302
303#ifdef NCR
304# define MacroIncludeFile <ncr.cf>
305# define MacroFile ncr.cf
306# undef NCR
307# undef SVR4
308# undef i386
309# define SVR4Architecture
310# define i386Architecture
311# define NCRArchitecture
312#endif /* NCR */
313
314#ifdef apollo
315# define MacroIncludeFile <apollo.cf>
316# define MacroFile apollo.cf
317# undef apollo
318# define ApolloArchitecture
319#endif /* apollo */
320
321#ifdef sony
322# define MacroIncludeFile <sony.cf>
323# define MacroFile sony.cf
324# undef sony
325# undef sony_news
326# define SonyArchitecture
327# ifdef mc68020
328#  undef mc68020
329#  undef mc68030
330#  define Mc68020Architecture
331# endif
332# ifdef mips
333#  undef mips
334#  define MipsArchitecture
335# endif
336# ifdef __svr4
337#  define SVR4Architecture
338# else
339#  if !defined(bsd43) || defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
340#   define SonySysvArchitecture
341#  else
342#   define SonyBsdArchitecture
343#  endif
344# endif
345#endif /* sony */
346
347#ifdef M4310
348# define MacroIncludeFile <pegasus.cf>
349# define MacroFile pegasus.cf
350# undef M4310
351# define PegasusArchitecture
352#endif /* M4310 */
353
354#ifdef M4330
355# define MacroIncludeFile <m4330.cf>
356# define MacroFile m4330.cf
357# undef  M4330
358# define M4330Architecture
359#endif /* M4330 */
360
361#ifdef macII
362# define MacroIncludeFile <macII.cf>
363# define MacroFile macII.cf
364# undef  macII
365# define MacIIArchitecture
366#endif /* macII */
367
368#ifdef _CRAY
369# define MacroIncludeFile <cray.cf>
370# define MacroFile cray.cf
371# undef cray
372# undef CRAY
373# undef CRAY1
374# undef CRAY2
375# undef YMP
376# define CrayArchitecture
377#endif /* _CRAY */
378
379#ifdef sgi
380# define MacroIncludeFile <sgi.cf>
381# define MacroFile sgi.cf
382# undef sgi
383# define SGIArchitecture
384# undef mips
385# undef __mips
386# define MipsArchitecture
387# ifdef _SVR4
388#  undef _SVR4
389#  define SVR4Architecture
390# endif
391# ifdef _SYSTYPE_SVR4
392#  undef _SYSTYPE_SVR4
393#  define SVR4Architecture
394# endif
395#endif /* sgi */
396
397#ifdef stellar
398# define MacroIncludeFile <stellar.cf>
399# define MacroFile stellar.cf
400# undef stellar
401# define StellarArchitecture
402#endif /* stellar */
403
404#if defined(ibm) || defined(_IBMR2) || defined(ibm032) || defined(aix)
405# define MacroIncludeFile <ibm.cf>
406# define MacroFile ibm.cf
407# ifdef ibm
408#  undef ibm
409# endif
410# define IBMArchitecture
411# ifdef i386
412#  undef i386
413#  define PS2Architecture
414# endif
415# ifdef ibm032
416#  undef ibm032
417#  define RtArchitecture
418# endif
419# ifdef aix
420#  undef aix
421#  define AIXArchitecture
422# endif
423# ifdef _IBMR2
424#  undef _IBMR2
425#  define RsArchitecture
426# endif
427#endif /* ibm */
428
429#ifdef luna
430# undef luna
431# define MacroIncludeFile <luna.cf>
432# define MacroFile luna.cf
433# define LunaArchitecture
434# ifdef mc68000
435#  undef mc68000
436#  define Mc68000Architecture
437# else
438#  undef mc88000
439#  define Mc88000Architecture
440# endif
441#endif /* luna */
442
443#ifdef Mips
444#  define MacroIncludeFile <Mips.cf>
445#  define MacroFile Mips.cf
446#  undef Mips
447#  undef mips
448#  if defined(SYSTYPE_BSD43) || defined(BSD) || defined(BSD43)
449#    define MipsBsdArchitecture
450#  else /* BSD */
451#    define MipsSysvArchitecture
452#  endif /* BSD */
453#endif /* Mips */
454
455#ifdef MOTOROLA
456# define MacroIncludeFile <moto.cf>
457# define MacroFile moto.cf
458# undef MOTOROLA
459# ifdef SYSV
460#  define MotoR3Architecture
461# endif
462# ifdef SVR4
463#  define MotoR4Architecture
464# endif
465#endif /* MOTOROLA */
466
467#if defined(SVR4) && !defined(DGUX)
468# ifdef i386
469#  define i386Architecture
470#  undef i386
471# endif
472# ifdef PC98
473#  define PANIX98Architecture
474#  undef PC98
475# endif
476# define SVR4Architecture
477# define MacroIncludeFile <svr4.cf>
478# define MacroFile svr4.cf
479# undef SVR4
480#endif /* SVR4 */
481
482#ifdef SYSV
483# ifdef i386
484# undef i386
485#  ifdef ISC
486#   define i386Architecture
487#   define i386SVR3Architecture
488#   define MacroIncludeFile <isc.cf>
489#   define MacroFile isc.cf
490#   define i386IscArchitecture
491#   undef ISC
492#   ifdef ISC202
493#    define IscVersion 202
494#    undef ISC202
495#   else
496#    ifdef ISC30
497#     define IscVersion 300
498#     undef ISC30
499#    else
500#     ifdef ISC40
501#      define IscVersion 400
502#      undef ISC40
503#     else
504#      define IscVersion 221
505#     endif /* ISC40 */
506#    endif /* ISC30 */
507#   endif /* ISC202 */
508#  endif /* ISC */
509#  ifndef MacroFile
510#   define i386SVR3Architecture
511#   define MacroIncludeFile <x386.cf>
512#   define MacroFile x386.cf
513#  endif /* MacroFile */
514# endif /* i386 */
515#endif /* SYSV */
516
517/* SYSV386 is here for backward compatibility only */
518#ifdef SYSV386
519# undef i386
520# ifdef SVR4
521#  define i386Architecture
522#  define SVR4Architecture
523#  define i386SVR4Architecture
524#  define MacroIncludeFile <svr4.cf>
525#  define MacroFile svr4.cf
526#  undef SVR4
527# else /* ! SVR4 */
528#  ifdef ISC
529#   define i386Architecture
530#   define i386SVR3Architecture
531#   define MacroIncludeFile <isc.cf>
532#   define MacroFile isc.cf
533#   define i386IscArchitecture
534#   undef ISC
535#   ifdef ISC202
536#    define IscVersion 202
537#    undef ISC202
538#   else
539#    ifdef ISC30
540#     define IscVersion 300
541#     undef ISC30
542#    else
543#     ifdef ISC40
544#      define IscVersion 400
545#      undef ISC40
546#     else
547#      define IscVersion 221
548#     endif /* ISC40 */
549#    endif /* ISC30 */
550#   endif /* ISC202 */
551#  endif /* ISC */
552#  ifndef MacroFile
553#   define i386SVR3Architecture
554#   define MacroIncludeFile <x386.cf>
555#   define MacroFile x386.cf
556#  endif /* MacroFile */
557# endif /* ! SVR4 */
558#endif /* SYSV386 */
559
560#ifdef DGUX
561# define i386Architecture
562# define SVR4Architecture
563# define MacroIncludeFile <DGUX.cf>
564# define MacroFile DGUX.cf
565# undef DGUX
566# define DguxArchitecture
567#endif /* DGUX */
568
569#ifdef __convex__
570# define MacroIncludeFile <convex.cf>
571# define MacroFile convex.cf
572# ifdef convex
573#  undef convex
574# endif
575# define ConvexArchitecture
576#endif /* _convex_ */
577
578#ifdef __osf__
579# define MacroIncludeFile <osf1.cf>
580# define MacroFile osf1.cf
581# define OSF1Architecture
582# undef __osf__
583# ifdef __mips__
584#  undef __mips__
585#  define MipsArchitecture
586#  define MipselArchitecture
587# endif
588# ifdef __alpha
589#  undef __alpha
590#  define AlphaArchitecture
591# endif
592#endif /* __osf__ */
593
594#ifdef Oki
595# define MacroIncludeFile <Oki.cf>
596# define MacroFile Oki.cf
597# undef Oki
598# define i860SVR4Architecture
599# define SVR4Architecture
600# undef SVR4
601#endif /* Oki */
602
603#ifdef WIN32
604# define MacroIncludeFile <Win32.cf>
605# define MacroFile Win32.cf
606# define Win32Architecture
607#endif /* WIN32 */
608
609#ifdef linux
610# define MacroIncludeFile <linux.cf>
611# define MacroFile linux.cf
612# undef linux
613# define LinuxArchitecture
614# ifdef i386
615#  ifndef i386Architecture
616#   define i386Architecture
617#  endif
618#  undef i386
619XCOMM Keep cpp from replacing path elements containing i486/i586/i686
620#  ifdef i486
621#  ifndef i386Architecture
622#   define i386Architecture
623#  endif
624#   undef i486
625#  endif
626#  ifdef i586
627#  ifndef i386Architecture
628#   define i386Architecture
629#  endif
630#   undef i586
631#  endif
632#  ifdef i686
633#  ifndef i386Architecture
634#   define i386Architecture
635#  endif
636#   undef i686
637#  endif
638#  ifdef k6
639#  ifndef i386Architecture
640#   define i386Architecture
641#  endif
642#   undef k6
643#  endif
644# endif /* k6 */
645# ifdef __i386__
646#  ifndef i386Architecture
647#   define i386Architecture
648#  endif
649#  undef __i386__
650# endif /* __i386__ */
651# ifdef __i486__
652#  ifndef i386Architecture
653#   define i386Architecture
654#  endif
655#  undef __i486__
656# endif /* __i486__ */
657# ifdef __i586__
658#  ifndef i386Architecture
659#   define i386Architecture
660#  endif
661#  undef __i586__
662# endif /* __i586__ */
663# ifdef __i686__
664#  ifndef i386Architecture
665#   define i386Architecture
666#  endif
667#  undef __i686__
668# endif /* __i686__ */
669# ifdef __k6__
670#  ifndef i386Architecture
671#   define i386Architecture
672#  endif
673#  undef __k6__
674# endif /* __k6__ */
675# ifdef __i386
676#  ifndef i386Architecture
677#   define i386Architecture
678#  endif
679#  undef __i386
680# endif /* __i386 */
681# ifdef __i486
682#  ifndef i386Architecture
683#   define i386Architecture
684#  endif
685#  undef __i486
686# endif /* __i486 */
687# ifdef __i586
688#  ifndef i386Architecture
689#   define i386Architecture
690#  endif
691#  undef __i586
692# endif /* __i586 */
693# ifdef __i686
694#  ifndef i386Architecture
695#   define i386Architecture
696#  endif
697#  undef __i686
698# endif /* __i686 */
699# ifdef __k6
700#  ifndef i386Architecture
701#   define i386Architecture
702#  endif
703#  undef __k6
704# endif /* __k6 */
705# ifdef __s390__
706#   define s390Architecture
707#  undef __s390__
708# endif /* s390 */
709# ifdef __alpha
710#  define AlphaArchitecture
711#  undef __alpha
712# endif /* __alpha */
713# ifdef __alpha__
714#  ifndef AlphaArchitecture
715#   define AlphaArchitecture
716#  endif
717#  undef __alpha__
718# endif /* __alpha__ */
719# ifdef __arm__
720#  define Arm32Architecture
721#  undef arm
722#  undef __arm
723#  undef __arm__
724# endif
725# ifdef mc68000
726#  define Mc68020Architecture
727#  undef mc68000
728# endif /* mc68000 */
729# ifdef powerpc
730#  define PpcArchitecture
731#  undef powerpc
732# endif
733# ifdef __powerpc__
734#  ifndef PpcArchitecture
735#   define PpcArchitecture
736#  endif
737#  undef __powerpc__
738# endif
739# ifdef sparc
740#  define SparcArchitecture
741#  undef sparc
742# endif
743# ifdef __sparc__
744#  ifndef SparcArchitecture
745#   define SparcArchitecture
746#  endif
747#  undef __sparc__
748# endif
749# ifdef x86_64
750#  define x86_64Architecture
751#  undef x86_64
752# endif
753# ifdef __x86_64__
754#  ifndef x86_64Architecture
755#   define x86_64Architecture
756#  endif
757#  undef __x86_64__
758# endif
759# ifdef ia64
760#  define ia64Architecture
761#  undef ia64
762# endif
763# ifdef __ia64__
764#  ifndef ia64Architecture
765#   define ia64Architecture
766#  endif
767#  undef __ia64__
768# endif
769# if defined(mips) || defined(__mips__)
770#  define MipsArchitecture
771#  undef mips
772#  undef __mips__
773#  if defined(MIPSEL) || defined(_MIPSEL)
774#   define MipselArchitecture
775#  endif
776#  undef MIPSEL
777#  undef _MIPSEL
778# endif
779# ifdef __hppa__
780#  ifndef HPArchitecture
781#   define HPArchitecture
782#  endif
783#  undef __hppa__
784# endif /* __hppa__ */
785# ifdef __sh__
786#  ifndef SuperHArchitecture
787#   define SuperHArchitecture
788#  endif
789#  ifdef __BIG_ENDIAN__
790#   ifndef SuperHebArchitecture
791#    define SuperHebArchitecture
792#   endif
793#  endif
794#  undef __sh__
795# endif /* __sh__ */
796# if defined(__SH3__) || defined(__sh3__)
797#  ifndef SuperH3Architecture
798#   define SuperH3Architecture
799#  endif
800#  undef __SH3__
801#  undef __sh3__
802# endif /* __SH3__ or __sh3__ */
803# ifdef __SH4__
804#  ifdef __SH4_NOFPU__
805#   ifndef SuperH4NOFPUArchitecture
806#    define SuperH4NOFPUArchitecture
807#   endif
808#   undef __SH4_NOFPU__
809#  else
810#   ifndef SuperH4Architecture
811#    define SuperH4Architecture
812#   endif
813#  endif
814#  undef __SH4__
815# endif /* __SH4__ */
816XCOMM  for compatibility with 3.3.x
817# ifdef PpcArchitecture
818#  define PowerPCArchitecture
819# endif
820#endif /* linux */
821
822#if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc))
823# define MacroIncludeFile <lynx.cf>
824# define MacroFile lynx.cf
825# define LynxOSArchitecture
826# undef __Lynx__
827# undef Lynx
828# undef lynx
829# if defined(i386) || defined(__i386__) || defined(__x86__)
830#  define i386Architecture
831#  undef i386
832#  undef __i386__
833#  undef __x86__
834# endif
835# ifdef __powerpc__
836#  define PpcArchitecture
837#  undef __powerpc__
838# endif
839# if defined(sparc) || defined(__sparc__)
840#  define SparcArchitecture
841#  undef sparc
842#  undef __sparc__
843# endif
844/* for compatibility with 3.3.x */
845# ifdef PpcArchitecture
846#  define PowerPCArchitecture
847# endif
848#endif /* LynxOS AT/PPC/microSPARC */
849
850#ifdef __uxp__
851# define MacroIncludeFile <fujitsu.cf>
852# define MacroFile fujitsu.cf
853# define FujitsuArchitecture
854# undef __uxp__
855# define UXPArchitecture
856# define SVR4Architecture
857# ifdef sparc
858#  undef sparc
859#  define SparcArchitecture
860# endif
861#endif /* __uxp__ */
862
863#ifdef __sxg__
864# define MacroIncludeFile <fujitsu.cf>
865# define MacroFile fujitsu.cf
866# define FujitsuArchitecture
867# undef __sxg__
868# define mc68000Architecture
869#endif /* __sxg__ */
870
871#ifdef _SEQUENT_
872/* undefine assignments resulting from -DSVR4 */
873# undef MacroIncludeFile
874# define MacroIncludeFile <sequent.cf>
875# undef MacroFile
876# define MacroFile sequent.cf
877# undef _SEQUENT_
878# define DynixPtxArchitecture
879# define SequentArchitecture
880#endif
881
882#if defined(_nec_ews_svr4) || defined(nec_ews_svr4) || defined(nec_ews_svr2) || defined(SX) || defined(_nec_up) || defined(_nec_ft) || defined(PC_UX)
883# ifdef nec
884#  undef nec
885# endif
886# define MacroIncludeFile <nec.cf>
887# define MacroFile nec.cf
888# define NecArchitecture
889#endif
890
891#ifdef minix
892#define MacroIncludeFile <minix.cf>
893#define MacroFile minix.cf
894#undef minix
895#define MinixArchitecture
896#define i386Architecture
897#endif /* minix */
898
899#ifdef MACH
900#ifdef __GNU__
901#define MacroIncludeFile <gnu.cf>
902#define MacroFile gnu.cf
903#define GNUMachArchitecture
904#else
905#define MacroIncludeFile <mach.cf>
906#define MacroFile mach.cf
907#endif
908#undef MACH
909#ifdef	i386
910#define i386MachArchitecture
911#define i386Architecture
912#endif	/* i386 */
913#undef i386
914#endif /* MACH */
915
916/* On NetBSD, `unix' is not defined, and cpp emits a warning every time
917 * it sees a test using the `unix' symbol */
918#if !defined(NetBSDArchitecture) || (defined(NetBSDArchitecture) && DefaultOSMajorVersion == 1 && DefaultOSMinorVersion <= 3)
919#ifdef unix
920#undef unix
921#endif
922#endif
923
924#ifdef emxos2
925#define MacroIncludeFile <os2.cf>
926#define MacroFile os2.cf
927#define OS2Architecture
928#define i386Architecture
929#endif /* emxos2 */
930
931#if defined(__QNX__) && !defined(__QNXNTO__)
932#define MacroIncludeFile <QNX4.cf>
933#define MacroFile QNX4.cf
934#define QNX4Architecture
935#define i386Architecture
936#endif /* QNX4 */
937
938#ifdef __QNXNTO__
939#define MacroIncludeFile <nto.cf>
940#define MacroFile nto.cf
941#define NTOArchitecture
942#ifdef PPC
943# define PPCArchitecture
944# undef PPC
945#else
946#ifdef MIPS
947# define mipsArchitecture
948# undef MIPS
949#else
950#ifdef i386
951# define i386Architecture
952# undef i386
953#endif
954#endif
955#endif
956#endif /* QNX/Neutrino */
957
958#ifdef SparcArchitecture
959# if defined(__sparc_v9) || defined(__arch64__)
960#  define Sparc64Architecture
961# endif
962#endif
963
964#ifndef MacroIncludeFile
965XCOMM WARNING:  Imake.cf not configured; guessing at definitions!!!
966XCOMM This might mean that BOOTSTRAPCFLAGS was not set when building imake.
967#define MacroIncludeFile <generic.cf>
968#define MacroFile generic.cf
969#endif
970