[ltt-dev] [PATCH 11/11] support compiling on unknown architectures

Paolo Bonzini pbonzini at redhat.com
Sat Feb 13 12:16:31 EST 2010


The new defaults mean that, for example, ia64 support comes for free.

Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
 configure.ac |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 4580f38..5fade2c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,11 +53,13 @@ case $host_cpu in
 	*) ARCHTYPE="unknown";;
 esac
 
-if test "$ARCHTYPE" = "unknown"; then
-	AC_MSG_ERROR([Unable to detect the architecture.])
+if test "$ARCHTYPE" != "unknown"; then
+	UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h
+	ARCHSRC=urcu/arch_$ARCHTYPE.h
+else
+	UATOMICSRC=urcu/uatomic_gcc.h
+	ARCHSRC=urcu/arch_defaults.h
 fi
-UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h
-ARCHSRC=urcu/arch_$ARCHTYPE.h
 AC_SUBST(ARCHTYPE)
 AC_SUBST(SUBARCHTYPE)
 
-- 
1.6.6






More information about the lttng-dev mailing list