$NetBSD: patch-aj,v 1.2 2005/12/02 22:59:40 joerg Exp $ --- config/cf/Imake.cf.orig 2005-05-07 21:33:29.000000000 -0500 +++ config/cf/Imake.cf @@ -19,6 +19,21 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v * 4. Create a .cf file with the name given by MacroFile. */ +#if defined(__APPLE__) +# undef __APPLE__ +# define MacroIncludeFile +# 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 @@ -264,9 +279,30 @@ XCOMM $XFree86: xc/config/cf/Imake.cf,v # define playstation2Architecture # undef playstation2 # endif +# ifdef __x86_64__ +# define AMD64Architecture +# undef __x86_64__ +# endif #endif /* NetBSD */ -#ifdef __FreeBSD__ +#ifdef __DragonFly__ +# define MacroIncludeFile +# define MacroFile DragonFly.cf +# undef __DragonFly__ +# define DragonFlyArchitecture +# define FreeBSDArchitecture +# define KFreeBSDArchitecture +# ifdef __i386__ +# define i386BsdArchitecture +# define i386Architecture +# undef i386 +# endif +# ifdef __amd64__ +# define AMD64Architecture +# undef __amd64__ +# undef __x86_64__ +# endif +#elif defined __FreeBSD__ # define MacroIncludeFile # define MacroFile FreeBSD.cf # undef __FreeBSD__