[MPlayer-dev-eng] [PATCH] disable /proc/cpuinfo on Cygwin, fall back to TOOLS/cpuinfo instead

Diego Biurrun diego at biurrun.de
Wed Oct 8 11:40:39 CEST 2003


Hi!

Cygwin has /proc/cpuinfo but only properly supports Intel CPUs. 
Therefore we should fall back to TOOLS/cpuinfo under Cygwin.  The 
following small patch does the trick.  If nobody shouts I'll commit 
during the next days.

Diego

--- configure   6 Oct 2003 07:21:01 -0000       1.782
+++ configure   8 Oct 2003 11:36:20 -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