diff configure @ 30942:2c04ca7b638c

Do not try -march=native for icc.
author cehoyos
date Fri, 02 Apr 2010 10:13:08 +0000
parents 2852fa664021
children 84fac82eca0b
line wrap: on
line diff
--- a/configure	Fri Apr 02 07:14:21 2010 +0000
+++ b/configure	Fri Apr 02 10:13:08 2010 +0000
@@ -1912,7 +1912,9 @@
 int main(void) { return 0; }
 EOF
   if test "$_runtime_cpudetection" = no ; then
+    if test $cc_vendor != "intel" ; then
     cc_check -march=native && proc=native
+    fi
     if test "$proc" = "k8"; then
       cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp
     fi
@@ -2060,7 +2062,9 @@
 EOF
     # This is a stripped-down version of the i386 fallback.
     if test "$_runtime_cpudetection" = no ; then
+      if test $cc_vendor != "intel" ; then
       cc_check -march=native && proc=native
+      fi
       # --- AMD processors ---
       if test "$proc" = "k8"; then
         cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp