Adam Tkac 5e22ac
diff -up bind-9.7.0/configure.in.rh478718 bind-9.7.0/configure.in
Adam Tkac 5e22ac
--- bind-9.7.0/configure.in.rh478718	2010-03-01 14:50:02.331207076 +0100
Adam Tkac 5e22ac
+++ bind-9.7.0/configure.in	2010-03-01 14:50:21.501207488 +0100
Adam Tkac 5e22ac
@@ -2540,6 +2540,10 @@ main() {
Adam Tkac 5e22ac
 	AC_MSG_RESULT($arch)
Adam Tkac 5e22ac
 fi
Adam Tkac 5e22ac
 
Adam Tkac 5e22ac
+if test ! "$arch" = "x86_64" -a "$have_xaddq" = "yes"; then
Adam Tkac 5e22ac
+	AC_MSG_ERROR([XADDQ present but disabled by Fedora patch!])
Adam Tkac 5e22ac
+fi
Adam Tkac 5e22ac
+
Adam Tkac 5e22ac
 if test "$have_atomic" = "yes"; then
Adam Tkac 5e22ac
 	AC_MSG_CHECKING([compiler support for inline assembly code])
Adam Tkac 5e22ac
 
Adam Tkac 5e22ac
diff -up bind-9.7.0/lib/isc/include/isc/platform.h.in.rh478718 bind-9.7.0/lib/isc/include/isc/platform.h.in
Adam Tkac 5e22ac
--- bind-9.7.0/lib/isc/include/isc/platform.h.in.rh478718	2010-03-01 14:50:31.421207522 +0100
Adam Tkac 5e22ac
+++ bind-9.7.0/lib/isc/include/isc/platform.h.in	2010-03-01 14:50:40.313707286 +0100
Adam Tkac 5e22ac
@@ -255,7 +255,11 @@
Adam Tkac 5e22ac
  * If the "xaddq" operation (64bit xadd) is available on this architecture,
Adam Tkac 5e22ac
  * ISC_PLATFORM_HAVEXADDQ will be defined.
Adam Tkac 5e22ac
  */
Adam Tkac 5e22ac
-@ISC_PLATFORM_HAVEXADDQ@
Adam Tkac 5e22ac
+#ifdef __x86_64__
Adam Tkac 5e22ac
+#define ISC_PLATFORM_HAVEXADDQ 1
Adam Tkac 5e22ac
+#else
Adam Tkac 5e22ac
+#undef ISC_PLATFORM_HAVEXADDQ
Adam Tkac 5e22ac
+#endif
Adam Tkac 5e22ac
 
Adam Tkac 5e22ac
 /*
Adam Tkac 5e22ac
  * If the "atomic swap" operation is available on this architecture,