changeset 20310:9f1ee847e8ca

Add fallback on the (undocumented) x86-64 -march option in the non-runtime-cpudetection case for AMD64. patch by Zuxy Meng, zuxy.meng a.t gmail d.o.t com
author diego
date Fri, 20 Oct 2006 07:32:49 +0000
parents d4091cd48739
children f0533a075333
files configure
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Oct 19 22:46:48 2006 +0000
+++ b/configure	Fri Oct 20 07:32:49 2006 +0000
@@ -1153,9 +1153,12 @@
         _mcpu=""
         _march=""
       fi
-    else
-      _march=""
-      _mcpu=""
+    else # if test "$_runtime_cpudetection" = no
+      # x86-64 is an undocumented option, an intersection of k8 and nocona.
+      _march="-march=x86-64"
+      _mcpu="$cpuopt=x86-64"
+      cc_check $_mcpu || _mcpu=""
+      cc_check $_march $_mcpu || _march=""
     fi
     
     _optimizing=""