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

Zuxy Meng zuxy.meng at gmail.com
Mon Dec 11 02:31:35 CET 2006


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?
-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6



More information about the MPlayer-dev-eng mailing list