$NetBSD: patch-aa,v 1.4 2015/12/27 11:31:54 wiz Exp $ --- NetBSD.cf.orig 2009-10-16 21:45:42.000000000 +0000 +++ NetBSD.cf @@ -126,7 +126,7 @@ # if ((OSMajorVersion == 2 && OSMinorVersion == 99 && OSTeenyVersion < 11) || \ (OSMajorVersion == 2 && OSMinorVersion < 99) || \ (OSMajorVersion < 2)) -# define LibraryMTDefines -DUSE_NBSD_THREADLIB +# define LibraryMTDefines @@NETBSD_THREADLIB@@ # endif # define SystemMTDefines -D_REENTRANT # define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI @@ -150,7 +150,7 @@ #define MkdirHierCmd mkdir -p #undef CcCmd -#define CcCmd gcc +#define CcCmd @@PKGSRC_CC@@ #ifndef DefaultCCOptions #if defined(UseInstalled) #define DefaultCCOptions /**/ @@ -166,7 +166,7 @@ #endif #endif -#define CppCmd cpp +#define CppCmd @@PKGSRC_CPP@@ #define StandardCppOptions -traditional #define StandardCppDefines /**/ #define PreProcessCmd CcCmd -E @@ -199,6 +199,8 @@ # ifndef DoLoadableServer # define DoLoadableServer YES # endif +#elif defined(ia64Architecture) || defined(AMD64Architecture) +#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64 #else # ifndef DoLoadableServer # define DoLoadableServer NO @@ -344,6 +346,10 @@ #define HasPerl NO #endif +#if defined(AMD64Architecture) +# define HasMTRRBuiltin YES +#endif + /* * NetBSD doesn't have gperf in default system * you may override this in host.def if you installed perl from the packages