support compiling on unknown architectures
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Mar 2010 19:04:11 +0000 (14:04 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Mon, 1 Mar 2010 19:04:11 +0000 (14:04 -0500)
The new defaults mean that, for example, ia64 support comes for free.

[edit by Mathieu Desnoyers]

defaults -> generic

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac

index 1ce19d0c51b6fbc56ec0a019e3c60cecb2899d57..e33e82131acbd60995bf2c08e2a283fd69a5f254 100644 (file)
@@ -54,11 +54,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_generic.h
+       ARCHSRC=urcu/arch_generic.h
 fi
-UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h
-ARCHSRC=urcu/arch_$ARCHTYPE.h
 if test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc; then
        APISRC=tests/api_gcc.h
 else
This page took 0.031686 seconds and 4 git commands to generate.