diff options
author | Leon van Stuivenberg <leonvs@iae.nl> | 2002-09-23 08:44:24 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-09-23 08:44:24 +0000 |
commit | d46aba2642a075635d521628be7ea16ceaa1c95d (patch) | |
tree | 6f247c740dcaaaa0a82af9f2b86fd60d1153a857 /configure | |
parent | 18a7b2a8734c0b14aa8b0b57e5f5ba0f3c688a9f (diff) | |
download | ffmpeg-d46aba2642a075635d521628be7ea16ceaa1c95d.tar.gz |
ps2 idct patch by (Leon van Stuivenberg <leonvs at iae dot nl>)
Originally committed as revision 963 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -27,6 +27,7 @@ strip="strip" cpu=`uname -m` mmx="default" altivec="default" +mmi="default" case "$cpu" in i386|i486|i586|i686|i86pc|BePC) cpu="x86" @@ -40,6 +41,9 @@ case "$cpu" in "Power Macintosh"|ppc) cpu="powerpc" ;; + mips) + cpu="mips" + ;; *) cpu="unknown" ;; @@ -226,6 +230,26 @@ EOF $cc -o $TMPO $TMPC -faltivec 2> /dev/null || altivec="no" fi +# Can only do mmi on mips +if test $mmi = "default"; then + if test $cpu = "mips"; then + mmi="yes" + else + mmi="no" + fi +fi + +# See does our compiler support mmi +if test $mmi = "yes"; then +cat > $TMPC << EOF +int main(void) { + __asm__ ("lq \$2, 0(\$2)"); + return 0; +} +EOF +$cc -o $TMPO $TMPC 2> /dev/null || mmi="no" +fi + # Checking for CFLAGS if test -z "$CFLAGS"; then CFLAGS="-O3" @@ -372,6 +396,7 @@ echo "make $make" echo "CPU $cpu" echo "Big Endian $bigendian" echo "MMX enabled $mmx" +echo "MMI enabled $mmi" echo "AltiVec enabled $altivec" echo "gprof enabled $gprof" echo "zlib enabled $zlib" @@ -411,6 +436,9 @@ elif test "$cpu" = "alpha" ; then elif test "$cpu" = "powerpc" ; then echo "TARGET_ARCH_POWERPC=yes" >> config.mak echo "#define ARCH_POWERPC 1" >> $TMPH +elif test "$cpu" = "mips" ; then + echo "TARGET_ARCH_MIPS=yes" >> config.mak + echo "#define ARCH_MIPS 1" >> $TMPH fi if test "$bigendian" = "yes" ; then echo "WORDS_BIGENDIAN=yes" >> config.mak @@ -420,6 +448,10 @@ if test "$mmx" = "yes" ; then echo "TARGET_MMX=yes" >> config.mak echo "#define HAVE_MMX 1" >> $TMPH fi +if test "$mmi" = "yes" ; then + echo "TARGET_MMI=yes" >> config.mak + echo "#define HAVE_MMI 1" >> $TMPH +fi if test "$altivec" = "yes" ; then echo "TARGET_ALTIVEC=yes" >> config.mak echo "#define HAVE_ALTIVEC 1" >> $TMPH |