changeset 24351:5a92d4b9f1fb

Use -march=native (avail. since gcc 4.2) when possible
author zuxy
date Sat, 08 Sep 2007 18:04:47 +0000
parents eb7b1f3327aa
children 9ee30cbeff75
files configure
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sat Sep 08 14:43:10 2007 +0000
+++ b/configure	Sat Sep 08 18:04:47 2007 +0000
@@ -1770,6 +1770,7 @@
 int main(void) { return 0; }
 EOF
   if test "$_runtime_cpudetection" = no ; then
+    cc_check -march=native && proc=native
     if test "$proc" = "k8"; then
       cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp
     fi
@@ -1915,6 +1916,7 @@
 EOF
     # This is a stripped-down version of the i386 fallback.
     if test "$_runtime_cpudetection" = no ; then
+      cc_check -march=native && proc=native
       # --- AMD processors ---
       if test "$proc" = "k8"; then
         cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp