[MPlayer-cygwin] MPlayer ignoring configure flags
Diego Biurrun
diego at biurrun.de
Mon Nov 25 14:23:34 CET 2002
MAL wrote:
> I wonder if anyone can answer this question..
>
> My configure line is:
>
> ./configure --disable-win32 --disable-gl --disable-mpdvdkit --datadir=.
> --confdir=. --disable-3dnow --disable-3dnowex --disable-mmx2
> --disable-sse --disable-sse2 --disable-ossaudio --disable-libavcodec
> --disable-tv --disable-mencoder --disable-streaming --disable-sdl
>
> and, regardless of the --disable-mmx2 etc., the configure scripts still
> says, (at the end):
>
> Optimizing for: pentium3 mmx mmx2 sse mtrr
>
> I have even tried adding CFLAGS="-mcpu=i386" CXXFLAGS="-mcpu=i386"
> before configure, and it still detects the extensions.
> Do I really need to hack the configure script to disable them?
This is a bug in configure I have been trying to debug lately. I stared
at it again and finally found the reason:
The CPU options are configured before the command line options are
parsed. This is, of course, wrong. The following patch works around
this, but it is not a clean solution IMHO. Anyone have any better ideas?
Diego
--- ../main/configure 2002-11-25 03:47:08.000000000 +0100
+++ configure 2002-11-25 14:18:31.000000000 +0100
@@ -568,6 +568,27 @@
fi
+# CPU options should get set here ...
+for ac_option do
+ case "$ac_option" in
+ --enable-sse) _sse=yes ;;
+ --disable-sse) _sse=no ;;
+ --enable-sse2) _sse2=yes ;;
+ --disable-sse2) _sse2=no ;;
+ --enable-mmx2) _mmx2=yes ;;
+ --disable-mmx2) _mmx2=no ;;
+ --enable-3dnow) _3dnow=yes ;;
+ --disable-3dnow) _3dnow=no _3dnowex=no ;;
+ --enable-3dnowex) _3dnow=yes _3dnowex=yes ;;
+ --disable-3dnowex) _3dnowex=no ;;
+ --enable-altivec) _altivec=yes ;;
+ --disable-altivec) _altivec=no ;;
+ --enable-mmx) _mmx=yes ;;
+ --disable-mmx) # without mmx 3Dnow! and stuff is also not possible
+ _3dnow=no _3dnowex=no _mmx=no _mmx2=no ;;
+ esac
+done
+
if [ "$host_arch" = alpha ]; then
echocheck "CPU type"
More information about the MPlayer-cygwin
mailing list