changeset 35321:fbcd69bb7d02

Move runtime cpu detection support until after we determined the target architecture.
author reimar
date Sat, 10 Nov 2012 16:05:12 +0000
parents 2ea8746871f2
children 5265ba612957
files configure
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Nov 10 15:51:19 2012 +0000
+++ b/configure	Sat Nov 10 16:05:12 2012 +0000
@@ -1651,11 +1651,6 @@
 echo >> "$TMPLOG"
 
 
-if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
-  die "Runtime CPU detection only works for x86, x86-64 and PPC!"
-fi
-
-
 # Checking CC version...
 # Intel C++ Compilers (no autoselect, use CC=/some/binary ./configure)
 if test "$(basename $_cc)" = "icc" || test "$(basename $_cc)" = "ecc"; then
@@ -1751,6 +1746,10 @@
 echo "Detected operating system: $system_name"
 echo "Detected host architecture: $host_arch"
 
+if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
+  die "Runtime CPU detection only works for x86, x86-64 and PPC!"
+fi
+
 echocheck "cross compilation"
 if test $_cross_compile = auto ; then
   _cross_compile=yes