[MPlayer-dev-eng] [PATCH] Fix --enable-runtime-cpudetection under MinGW
Björn Sandell
biorn at chalmers.se
Fri Jan 5 21:21:35 CET 2007
On Fri, 5 Jan 2007 11:12:26 +0100
Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> Hello,
> On Fri, Jan 05, 2007 at 10:36:35AM +0100, Gianluigi Tiesi wrote:
> > On Fri, Dec 29, 2006 at 02:18:46PM +0600, Vladimir Voroshilov wrote:
> > > Currently, under MinGW on Pentium4, running ./configure
> > > --enable-runtime-cpudetection gives following error message:
> > > =============cut=====================
> > > Error: Runtime CPU detection only works for x86, x86-64 and PPC!
> > >
> > > Check "" if you do not understand why it failed.
> > > =============cut=====================
> >
> >
> > This patch doesn't work for me:
> > #define __CPU__
> >
> > in libavutil/bswap.h
> > there is:
> >
> > #if __CPU__ != 386
> >
> > that fails to compile
>
> Please be more specific, I do not have any problem.
The problem is that if --enable-runtime-cpudetection is used "iproc"
won't be set by configure an we'll end up with the situation above. A
simple fix would be to default iproc to i386, eg
Index: configure
===================================================================
--- configure (revision 21830)
+++ configure (working copy)
@@ -879,6 +879,7 @@
fi # test "$_runtime_cpudetection" = no
+iproc=386
case "$host_arch" in
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
More information about the MPlayer-dev-eng
mailing list