[Mplayer-cvslog] CVS: main configure,1.455,1.456

Johannes Feigl jaf at mplayerhq.hu
Fri May 3 11:43:45 CEST 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv12673

Modified Files:
	configure 
Log Message:
add something like 'Optimizing for: i686 mmx mmx2 sse'

Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.455
retrieving revision 1.456
diff -u -r1.455 -r1.456
--- configure	2 May 2002 11:50:39 -0000	1.455
+++ configure	3 May 2002 09:43:36 -0000	1.456
@@ -522,6 +522,7 @@
     _sse=yes
     _sse2=yes
     _mtrr=yes
+    _optimizing="Runtime CPU-Detection enabled"
   fi
 
 fi
@@ -634,6 +635,7 @@
     else
       _march="-march=$proc"
       _mcpu="-mcpu=$proc"
+      _optimizing="$proc"
     fi
   else
     # i686 is probably the most common cpu - optimize to it
@@ -738,6 +740,7 @@
 
       if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then
         echores "yes"
+	_optimizing="$_optimizing $2"
         return 0
       else
         echores "failed"
@@ -750,14 +753,17 @@
   }
 
   extcheck $_mmx "mmx" "emms" || _mmx=no
+  extcheck $_mmx2 "mmx2" "sfence" || _mmx2=no
   extcheck $_3dnow "3dnow" "femms" || _3dnow=no
   extcheck $_3dnowex "3dnowex" "pswapd %%mm0, %%mm0" || _3dnowex=no
-  extcheck $_mmx2 "mmx2" "sfence" || _mmx2=no
   extcheck $_sse "sse" "xorps %%xmm0, %%xmm0" || _sse=no
   extcheck $_sse2 "sse2" "xorpd %%xmm0, %%xmm0" || _sse2=no
   echocheck "mtrr support"
   echores "$_mtrr"
 
+  if test "$_mtrr" = yes ; then
+    _optimizing="$_optimizing mtrr"
+  fi
 fi
 
 
@@ -4090,7 +4096,6 @@
 
 #############################################################################
 
-#FIXME: add something like "Optimizing for: i686 mmx mmx2 sse"
 cat << EOF
 
 Config files successfully generated by ./configure !
@@ -4099,6 +4104,8 @@
   Data directory: $_datadir
   Config direct.: $_confdir
 
+  Optimizing for: $_optimizing
+  
   Enabled optional drivers:
     Input: $_inputmodules
     Codecs: $_codecmodules




More information about the MPlayer-cvslog mailing list