[MPlayer-dev-eng] Re: [PATCH] configure: enhancement for runtime cpu detection and --target support under x86

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Tue Dec 12 13:52:42 CET 2006


On Monday, 11 December 2006 at 02:31, Zuxy Meng wrote:
> Hi,
> 
> 2006/12/4, Zuxy Meng <zuxy.meng at gmail.com>:
> >Hi,
> >
> >Currently configure will check for host's cpu type even if
> >--enable-cpudetection or --target is specified. Moreover, if the user
> >has also specified --disable-[mmx|3dnow|sse, etc.], link error will
> >occur.
> >
> >This patch will chiefly help those who are preparing a binary release by:
> >1. --enable-cpudetection or --target will inhibit any cpu
> >identification, so the binary won't be affected by the type of host
> >CPU.
> >2. --enable-cpudetection enables all cpu capabilities (except cmov
> >under x86) even with --disable-mmx, --disable-sse, etc..
> >3. --target disables all cpu capabilities by default; like
> >--enable-cpudetection, the use of --target will cause configure to
> >skip any "kernel support" checking. Proper use of "--target" will
> >enable a user to generate a binary best suited for another machine.
> >For example, the user can use "configure --target=athlon-linux
> >--enable-3dnowext --enable-cmov --enable-mtrr" even on a Pentium 4
> >which doesn't support 3DNow!.
> >
> >TODO:
> >Runtime cpu detection support for ppc is as good as x86's in the
> >current configure: the resulting CFLAGS still depends on the type of
> >host CPU, but I don't have a ppc to play around.
> >
> >Comments!:-)
> 
> Any comments on this?

I say, threaten to commit if nobody objects. ;)

Regards,
R.

-- 
MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-dev-eng mailing list