[MPlayer-dev-eng] [PATCH] use TOOLS/cpuinfo instead of /proc/cpuinfo on Cygwin

Diego Biurrun diego at biurrun.de
Tue Oct 14 03:04:10 CEST 2003


Hi!

Cygwin has implemented /proc/cpuinfo not very long ago, but
unfortunately it only works for Intel CPUs.  Thus TOOLS/cpuinfo is a
better choice under Cygwin if you have an AMD CPU like I do.  This
should not hurt Intel, so I would like to commit this.

Diego

--- configure	11 Oct 2003 19:31:29 -0000	1.783
+++ configure	14 Oct 2003 00:42:05 -0000
@@ -566,7 +566,9 @@
 
 # XXX: this should be ok..
 _cpuinfo="echo"
-if test -r /proc/cpuinfo ; then
+# Cygwin has /proc/cpuinfo, but only supports Intel CPUs
+# FIXME: Remove the cygwin check once AMD CPUs are supported
+if test -r /proc/cpuinfo && not cygwin; then
   # Linux with /proc mounted, extract CPU information from it
   _cpuinfo="cat /proc/cpuinfo"
 elif test -r /compat/linux/proc/cpuinfo ; then



More information about the MPlayer-dev-eng mailing list