[MPlayer-cvslog] r24371 - trunk/configure

zuxy subversion at mplayerhq.hu
Sat Sep 8 20:04:48 CEST 2007


Author: zuxy
Date: Sat Sep  8 20:04:47 2007
New Revision: 24371

Log:
Use -march=native (avail. since gcc 4.2) when possible


Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Sat Sep  8 20:04:47 2007
@@ -1770,6 +1770,7 @@ cat > $TMPC << EOF
 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 @@ int main(void) { return 0; }
 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



More information about the MPlayer-cvslog mailing list