configure
changeset 5389 24903690f48a
parent 5345 0202f62906ca
child 5408 35a63789c3f2
equal deleted inserted replaced
5388:6e586f65f8ef 5389:24903690f48a
  1512   --enable-atomic         Enable the atomic operations [default=yes]
  1512   --enable-atomic         Enable the atomic operations [default=yes]
  1513   --enable-assembly       Enable assembly routines [default=yes]
  1513   --enable-assembly       Enable assembly routines [default=yes]
  1514   --enable-ssemath        Allow GCC to use SSE floating point math
  1514   --enable-ssemath        Allow GCC to use SSE floating point math
  1515                           [default=no]
  1515                           [default=no]
  1516   --enable-mmx            use MMX assembly routines [default=yes]
  1516   --enable-mmx            use MMX assembly routines [default=yes]
       
  1517   --enable-3dnow          use MMX assembly routines [default=yes]
  1517   --enable-sse            use SSE assembly routines [default=yes]
  1518   --enable-sse            use SSE assembly routines [default=yes]
  1518   --enable-sse2           use SSE2 assembly routines [default=no]
  1519   --enable-sse2           use SSE2 assembly routines [default=no]
       
  1520   --enable-altivec        use Altivec assembly routines [default=yes]
  1519   --enable-oss            support the OSS audio API [default=yes]
  1521   --enable-oss            support the OSS audio API [default=yes]
  1520   --enable-alsa           support the ALSA audio API [default=yes]
  1522   --enable-alsa           support the ALSA audio API [default=yes]
  1521   --disable-alsatest      Do not try to compile and run a test Alsa program
  1523   --disable-alsatest      Do not try to compile and run a test Alsa program
  1522   --enable-alsa-shared    dynamically load ALSA audio support [default=yes]
  1524   --enable-alsa-shared    dynamically load ALSA audio support [default=yes]
  1523   --enable-esd            support the Enlightened Sound Daemon [default=yes]
  1525   --enable-esd            support the Enlightened Sound Daemon [default=yes]
  3766 if test "${lt_cv_nm_interface+set}" = set; then
  3768 if test "${lt_cv_nm_interface+set}" = set; then
  3767   echo $ECHO_N "(cached) $ECHO_C" >&6
  3769   echo $ECHO_N "(cached) $ECHO_C" >&6
  3768 else
  3770 else
  3769   lt_cv_nm_interface="BSD nm"
  3771   lt_cv_nm_interface="BSD nm"
  3770   echo "int some_variable = 0;" > conftest.$ac_ext
  3772   echo "int some_variable = 0;" > conftest.$ac_ext
  3771   (eval echo "\"\$as_me:3771: $ac_compile\"" >&5)
  3773   (eval echo "\"\$as_me:3773: $ac_compile\"" >&5)
  3772   (eval "$ac_compile" 2>conftest.err)
  3774   (eval "$ac_compile" 2>conftest.err)
  3773   cat conftest.err >&5
  3775   cat conftest.err >&5
  3774   (eval echo "\"\$as_me:3774: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3776   (eval echo "\"\$as_me:3776: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  3775   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3777   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3776   cat conftest.err >&5
  3778   cat conftest.err >&5
  3777   (eval echo "\"\$as_me:3777: output\"" >&5)
  3779   (eval echo "\"\$as_me:3779: output\"" >&5)
  3778   cat conftest.out >&5
  3780   cat conftest.out >&5
  3779   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3781   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3780     lt_cv_nm_interface="MS dumpbin"
  3782     lt_cv_nm_interface="MS dumpbin"
  3781   fi
  3783   fi
  3782   rm -f conftest*
  3784   rm -f conftest*
  4999   fi
  5001   fi
  5000   rm -rf conftest*
  5002   rm -rf conftest*
  5001   ;;
  5003   ;;
  5002 *-*-irix6*)
  5004 *-*-irix6*)
  5003   # Find out which ABI we are using.
  5005   # Find out which ABI we are using.
  5004   echo '#line 5004 "configure"' > conftest.$ac_ext
  5006   echo '#line 5006 "configure"' > conftest.$ac_ext
  5005   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5007   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5006   (eval $ac_compile) 2>&5
  5008   (eval $ac_compile) 2>&5
  5007   ac_status=$?
  5009   ac_status=$?
  5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5009   (exit $ac_status); }; then
  5011   (exit $ac_status); }; then
  7160    # The option is referenced via a variable to avoid confusing sed.
  7162    # The option is referenced via a variable to avoid confusing sed.
  7161    lt_compile=`echo "$ac_compile" | $SED \
  7163    lt_compile=`echo "$ac_compile" | $SED \
  7162    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7164    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7165    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7164    -e 's:$: $lt_compiler_flag:'`
  7166    -e 's:$: $lt_compiler_flag:'`
  7165    (eval echo "\"\$as_me:7165: $lt_compile\"" >&5)
  7167    (eval echo "\"\$as_me:7167: $lt_compile\"" >&5)
  7166    (eval "$lt_compile" 2>conftest.err)
  7168    (eval "$lt_compile" 2>conftest.err)
  7167    ac_status=$?
  7169    ac_status=$?
  7168    cat conftest.err >&5
  7170    cat conftest.err >&5
  7169    echo "$as_me:7169: \$? = $ac_status" >&5
  7171    echo "$as_me:7171: \$? = $ac_status" >&5
  7170    if (exit $ac_status) && test -s "$ac_outfile"; then
  7172    if (exit $ac_status) && test -s "$ac_outfile"; then
  7171      # The compiler can only warn and ignore the option if not recognized
  7173      # The compiler can only warn and ignore the option if not recognized
  7172      # So say no if there are warnings other than the usual output.
  7174      # So say no if there are warnings other than the usual output.
  7173      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7175      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7174      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7176      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7499    # The option is referenced via a variable to avoid confusing sed.
  7501    # The option is referenced via a variable to avoid confusing sed.
  7500    lt_compile=`echo "$ac_compile" | $SED \
  7502    lt_compile=`echo "$ac_compile" | $SED \
  7501    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7503    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7502    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7503    -e 's:$: $lt_compiler_flag:'`
  7505    -e 's:$: $lt_compiler_flag:'`
  7504    (eval echo "\"\$as_me:7504: $lt_compile\"" >&5)
  7506    (eval echo "\"\$as_me:7506: $lt_compile\"" >&5)
  7505    (eval "$lt_compile" 2>conftest.err)
  7507    (eval "$lt_compile" 2>conftest.err)
  7506    ac_status=$?
  7508    ac_status=$?
  7507    cat conftest.err >&5
  7509    cat conftest.err >&5
  7508    echo "$as_me:7508: \$? = $ac_status" >&5
  7510    echo "$as_me:7510: \$? = $ac_status" >&5
  7509    if (exit $ac_status) && test -s "$ac_outfile"; then
  7511    if (exit $ac_status) && test -s "$ac_outfile"; then
  7510      # The compiler can only warn and ignore the option if not recognized
  7512      # The compiler can only warn and ignore the option if not recognized
  7511      # So say no if there are warnings other than the usual output.
  7513      # So say no if there are warnings other than the usual output.
  7512      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7514      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7513      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7515      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7604    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7606    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7605    lt_compile=`echo "$ac_compile" | $SED \
  7607    lt_compile=`echo "$ac_compile" | $SED \
  7606    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7608    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7607    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7609    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7608    -e 's:$: $lt_compiler_flag:'`
  7610    -e 's:$: $lt_compiler_flag:'`
  7609    (eval echo "\"\$as_me:7609: $lt_compile\"" >&5)
  7611    (eval echo "\"\$as_me:7611: $lt_compile\"" >&5)
  7610    (eval "$lt_compile" 2>out/conftest.err)
  7612    (eval "$lt_compile" 2>out/conftest.err)
  7611    ac_status=$?
  7613    ac_status=$?
  7612    cat out/conftest.err >&5
  7614    cat out/conftest.err >&5
  7613    echo "$as_me:7613: \$? = $ac_status" >&5
  7615    echo "$as_me:7615: \$? = $ac_status" >&5
  7614    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7616    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7615    then
  7617    then
  7616      # The compiler can only warn and ignore the option if not recognized
  7618      # The compiler can only warn and ignore the option if not recognized
  7617      # So say no if there are warnings
  7619      # So say no if there are warnings
  7618      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7620      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7659    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7661    # with a dollar sign (not a hyphen), so the echo should work correctly.
  7660    lt_compile=`echo "$ac_compile" | $SED \
  7662    lt_compile=`echo "$ac_compile" | $SED \
  7661    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7663    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7662    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7664    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7663    -e 's:$: $lt_compiler_flag:'`
  7665    -e 's:$: $lt_compiler_flag:'`
  7664    (eval echo "\"\$as_me:7664: $lt_compile\"" >&5)
  7666    (eval echo "\"\$as_me:7666: $lt_compile\"" >&5)
  7665    (eval "$lt_compile" 2>out/conftest.err)
  7667    (eval "$lt_compile" 2>out/conftest.err)
  7666    ac_status=$?
  7668    ac_status=$?
  7667    cat out/conftest.err >&5
  7669    cat out/conftest.err >&5
  7668    echo "$as_me:7668: \$? = $ac_status" >&5
  7670    echo "$as_me:7670: \$? = $ac_status" >&5
  7669    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7671    if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7670    then
  7672    then
  7671      # The compiler can only warn and ignore the option if not recognized
  7673      # The compiler can only warn and ignore the option if not recognized
  7672      # So say no if there are warnings
  7674      # So say no if there are warnings
  7673      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7675      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 10417   lt_cv_dlopen_self=cross
 10419   lt_cv_dlopen_self=cross
 10418 else
 10420 else
 10419   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10421   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10420   lt_status=$lt_dlunknown
 10422   lt_status=$lt_dlunknown
 10421   cat > conftest.$ac_ext <<_LT_EOF
 10423   cat > conftest.$ac_ext <<_LT_EOF
 10422 #line 10422 "configure"
 10424 #line 10424 "configure"
 10423 #include "confdefs.h"
 10425 #include "confdefs.h"
 10424 
 10426 
 10425 #if HAVE_DLFCN_H
 10427 #if HAVE_DLFCN_H
 10426 #include <dlfcn.h>
 10428 #include <dlfcn.h>
 10427 #endif
 10429 #endif
 10513   lt_cv_dlopen_self_static=cross
 10515   lt_cv_dlopen_self_static=cross
 10514 else
 10516 else
 10515   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10517   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 10516   lt_status=$lt_dlunknown
 10518   lt_status=$lt_dlunknown
 10517   cat > conftest.$ac_ext <<_LT_EOF
 10519   cat > conftest.$ac_ext <<_LT_EOF
 10518 #line 10518 "configure"
 10520 #line 10520 "configure"
 10519 #include "confdefs.h"
 10521 #include "confdefs.h"
 10520 
 10522 
 10521 #if HAVE_DLFCN_H
 10523 #if HAVE_DLFCN_H
 10522 #include <dlfcn.h>
 10524 #include <dlfcn.h>
 10523 #endif
 10525 #endif
 14195    # The option is referenced via a variable to avoid confusing sed.
 14197    # The option is referenced via a variable to avoid confusing sed.
 14196    lt_compile=`echo "$ac_compile" | $SED \
 14198    lt_compile=`echo "$ac_compile" | $SED \
 14197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14199    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14200    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14199    -e 's:$: $lt_compiler_flag:'`
 14201    -e 's:$: $lt_compiler_flag:'`
 14200    (eval echo "\"\$as_me:14200: $lt_compile\"" >&5)
 14202    (eval echo "\"\$as_me:14202: $lt_compile\"" >&5)
 14201    (eval "$lt_compile" 2>conftest.err)
 14203    (eval "$lt_compile" 2>conftest.err)
 14202    ac_status=$?
 14204    ac_status=$?
 14203    cat conftest.err >&5
 14205    cat conftest.err >&5
 14204    echo "$as_me:14204: \$? = $ac_status" >&5
 14206    echo "$as_me:14206: \$? = $ac_status" >&5
 14205    if (exit $ac_status) && test -s "$ac_outfile"; then
 14207    if (exit $ac_status) && test -s "$ac_outfile"; then
 14206      # The compiler can only warn and ignore the option if not recognized
 14208      # The compiler can only warn and ignore the option if not recognized
 14207      # So say no if there are warnings other than the usual output.
 14209      # So say no if there are warnings other than the usual output.
 14208      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 14210      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 14209      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 14211      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 14294    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14296    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14295    lt_compile=`echo "$ac_compile" | $SED \
 14297    lt_compile=`echo "$ac_compile" | $SED \
 14296    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14297    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14298    -e 's:$: $lt_compiler_flag:'`
 14300    -e 's:$: $lt_compiler_flag:'`
 14299    (eval echo "\"\$as_me:14299: $lt_compile\"" >&5)
 14301    (eval echo "\"\$as_me:14301: $lt_compile\"" >&5)
 14300    (eval "$lt_compile" 2>out/conftest.err)
 14302    (eval "$lt_compile" 2>out/conftest.err)
 14301    ac_status=$?
 14303    ac_status=$?
 14302    cat out/conftest.err >&5
 14304    cat out/conftest.err >&5
 14303    echo "$as_me:14303: \$? = $ac_status" >&5
 14305    echo "$as_me:14305: \$? = $ac_status" >&5
 14304    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14306    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14305    then
 14307    then
 14306      # The compiler can only warn and ignore the option if not recognized
 14308      # The compiler can only warn and ignore the option if not recognized
 14307      # So say no if there are warnings
 14309      # So say no if there are warnings
 14308      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 14310      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 14346    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14348    # with a dollar sign (not a hyphen), so the echo should work correctly.
 14347    lt_compile=`echo "$ac_compile" | $SED \
 14349    lt_compile=`echo "$ac_compile" | $SED \
 14348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 14349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 14350    -e 's:$: $lt_compiler_flag:'`
 14352    -e 's:$: $lt_compiler_flag:'`
 14351    (eval echo "\"\$as_me:14351: $lt_compile\"" >&5)
 14353    (eval echo "\"\$as_me:14353: $lt_compile\"" >&5)
 14352    (eval "$lt_compile" 2>out/conftest.err)
 14354    (eval "$lt_compile" 2>out/conftest.err)
 14353    ac_status=$?
 14355    ac_status=$?
 14354    cat out/conftest.err >&5
 14356    cat out/conftest.err >&5
 14355    echo "$as_me:14355: \$? = $ac_status" >&5
 14357    echo "$as_me:14357: \$? = $ac_status" >&5
 14356    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14358    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 14357    then
 14359    then
 14358      # The compiler can only warn and ignore the option if not recognized
 14360      # The compiler can only warn and ignore the option if not recognized
 14359      # So say no if there are warnings
 14361      # So say no if there are warnings
 14360      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 14362      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 20691         if test x$have_gcc_mmx = xyes; then
 20693         if test x$have_gcc_mmx = xyes; then
 20692             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
 20694             EXTRA_CFLAGS="$EXTRA_CFLAGS $mmx_CFLAGS"
 20693         fi
 20695         fi
 20694     fi
 20696     fi
 20695 
 20697 
       
 20698     # Check whether --enable-3dnow was given.
       
 20699 if test "${enable_3dnow+set}" = set; then
       
 20700   enableval=$enable_3dnow;
       
 20701 else
       
 20702   enable_3dnow=yes
       
 20703 fi
       
 20704 
       
 20705     if test x$enable_3dnow = xyes; then
       
 20706         save_CFLAGS="$CFLAGS"
       
 20707         have_gcc_3dnow=no
       
 20708         { echo "$as_me:$LINENO: checking for GCC -m3dnow option" >&5
       
 20709 echo $ECHO_N "checking for GCC -m3dnow option... $ECHO_C" >&6; }
       
 20710         amd3dnow_CFLAGS="-m3dnow"
       
 20711         CFLAGS="$save_CFLAGS $amd3dnow_CFLAGS"
       
 20712 
       
 20713         cat >conftest.$ac_ext <<_ACEOF
       
 20714 /* confdefs.h.  */
       
 20715 _ACEOF
       
 20716 cat confdefs.h >>conftest.$ac_ext
       
 20717 cat >>conftest.$ac_ext <<_ACEOF
       
 20718 /* end confdefs.h.  */
       
 20719 
       
 20720         #include <mm3dnow.h>
       
 20721         #ifndef __3dNOW__
       
 20722         #error Assembler CPP flag not enabled
       
 20723         #endif
       
 20724 
       
 20725 int
       
 20726 main ()
       
 20727 {
       
 20728 
       
 20729 
       
 20730   ;
       
 20731   return 0;
       
 20732 }
       
 20733 _ACEOF
       
 20734 rm -f conftest.$ac_objext
       
 20735 if { (ac_try="$ac_compile"
       
 20736 case "(($ac_try" in
       
 20737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 20738   *) ac_try_echo=$ac_try;;
       
 20739 esac
       
 20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 20741   (eval "$ac_compile") 2>conftest.er1
       
 20742   ac_status=$?
       
 20743   grep -v '^ *+' conftest.er1 >conftest.err
       
 20744   rm -f conftest.er1
       
 20745   cat conftest.err >&5
       
 20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 20747   (exit $ac_status); } && {
       
 20748 	 test -z "$ac_c_werror_flag" ||
       
 20749 	 test ! -s conftest.err
       
 20750        } && test -s conftest.$ac_objext; then
       
 20751 
       
 20752         have_gcc_3dnow=yes
       
 20753 
       
 20754 else
       
 20755   echo "$as_me: failed program was:" >&5
       
 20756 sed 's/^/| /' conftest.$ac_ext >&5
       
 20757 
       
 20758 
       
 20759 fi
       
 20760 
       
 20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 20762         { echo "$as_me:$LINENO: result: $have_gcc_3dnow" >&5
       
 20763 echo "${ECHO_T}$have_gcc_3dnow" >&6; }
       
 20764         CFLAGS="$save_CFLAGS"
       
 20765 
       
 20766         if test x$have_gcc_3dnow = xyes; then
       
 20767             EXTRA_CFLAGS="$EXTRA_CFLAGS $amd3dnow_CFLAGS"
       
 20768         fi
       
 20769     fi
       
 20770 
 20696     # Check whether --enable-sse was given.
 20771     # Check whether --enable-sse was given.
 20697 if test "${enable_sse+set}" = set; then
 20772 if test "${enable_sse+set}" = set; then
 20698   enableval=$enable_sse;
 20773   enableval=$enable_sse;
 20699 else
 20774 else
 20700   enable_sse=yes
 20775   enable_sse=yes
 20852 echo "${ECHO_T}$have_gcc_sse2" >&6; }
 20927 echo "${ECHO_T}$have_gcc_sse2" >&6; }
 20853         CFLAGS="$save_CFLAGS"
 20928         CFLAGS="$save_CFLAGS"
 20854 
 20929 
 20855         if test x$have_gcc_sse2 = xyes; then
 20930         if test x$have_gcc_sse2 = xyes; then
 20856             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
 20931             EXTRA_CFLAGS="$EXTRA_CFLAGS $sse2_CFLAGS"
       
 20932         fi
       
 20933     fi
       
 20934 
       
 20935     # Check whether --enable-altivec was given.
       
 20936 if test "${enable_altivec+set}" = set; then
       
 20937   enableval=$enable_altivec;
       
 20938 else
       
 20939   enable_altivec=yes
       
 20940 fi
       
 20941 
       
 20942     if test x$enable_altivec = xyes; then
       
 20943         save_CFLAGS="$CFLAGS"
       
 20944         have_gcc_altivec=no
       
 20945         have_altivec_h_hdr=no
       
 20946         altivec_CFLAGS="-maltivec"
       
 20947         CFLAGS="$save_CFLAGS $altivec_CFLAGS"
       
 20948 
       
 20949         { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -maltivec option" >&5
       
 20950 echo $ECHO_N "checking for Altivec with GCC altivec.h and -maltivec option... $ECHO_C" >&6; }
       
 20951         cat >conftest.$ac_ext <<_ACEOF
       
 20952 /* confdefs.h.  */
       
 20953 _ACEOF
       
 20954 cat confdefs.h >>conftest.$ac_ext
       
 20955 cat >>conftest.$ac_ext <<_ACEOF
       
 20956 /* end confdefs.h.  */
       
 20957 
       
 20958         #include <altivec.h>
       
 20959         vector unsigned int vzero() {
       
 20960             return vec_splat_u32(0);
       
 20961         }
       
 20962 
       
 20963 int
       
 20964 main ()
       
 20965 {
       
 20966 
       
 20967 
       
 20968   ;
       
 20969   return 0;
       
 20970 }
       
 20971 _ACEOF
       
 20972 rm -f conftest.$ac_objext
       
 20973 if { (ac_try="$ac_compile"
       
 20974 case "(($ac_try" in
       
 20975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 20976   *) ac_try_echo=$ac_try;;
       
 20977 esac
       
 20978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 20979   (eval "$ac_compile") 2>conftest.er1
       
 20980   ac_status=$?
       
 20981   grep -v '^ *+' conftest.er1 >conftest.err
       
 20982   rm -f conftest.er1
       
 20983   cat conftest.err >&5
       
 20984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 20985   (exit $ac_status); } && {
       
 20986 	 test -z "$ac_c_werror_flag" ||
       
 20987 	 test ! -s conftest.err
       
 20988        } && test -s conftest.$ac_objext; then
       
 20989 
       
 20990         have_gcc_altivec=yes
       
 20991         have_altivec_h_hdr=yes
       
 20992 
       
 20993 else
       
 20994   echo "$as_me: failed program was:" >&5
       
 20995 sed 's/^/| /' conftest.$ac_ext >&5
       
 20996 
       
 20997 
       
 20998 fi
       
 20999 
       
 21000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21001         { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
       
 21002 echo "${ECHO_T}$have_gcc_altivec" >&6; }
       
 21003 
       
 21004         if test x$have_gcc_altivec = xno; then
       
 21005             { echo "$as_me:$LINENO: checking for Altivec with GCC -maltivec option" >&5
       
 21006 echo $ECHO_N "checking for Altivec with GCC -maltivec option... $ECHO_C" >&6; }
       
 21007             cat >conftest.$ac_ext <<_ACEOF
       
 21008 /* confdefs.h.  */
       
 21009 _ACEOF
       
 21010 cat confdefs.h >>conftest.$ac_ext
       
 21011 cat >>conftest.$ac_ext <<_ACEOF
       
 21012 /* end confdefs.h.  */
       
 21013 
       
 21014             vector unsigned int vzero() {
       
 21015                 return vec_splat_u32(0);
       
 21016             }
       
 21017 
       
 21018 int
       
 21019 main ()
       
 21020 {
       
 21021 
       
 21022 
       
 21023   ;
       
 21024   return 0;
       
 21025 }
       
 21026 _ACEOF
       
 21027 rm -f conftest.$ac_objext
       
 21028 if { (ac_try="$ac_compile"
       
 21029 case "(($ac_try" in
       
 21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 21031   *) ac_try_echo=$ac_try;;
       
 21032 esac
       
 21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 21034   (eval "$ac_compile") 2>conftest.er1
       
 21035   ac_status=$?
       
 21036   grep -v '^ *+' conftest.er1 >conftest.err
       
 21037   rm -f conftest.er1
       
 21038   cat conftest.err >&5
       
 21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 21040   (exit $ac_status); } && {
       
 21041 	 test -z "$ac_c_werror_flag" ||
       
 21042 	 test ! -s conftest.err
       
 21043        } && test -s conftest.$ac_objext; then
       
 21044 
       
 21045             have_gcc_altivec=yes
       
 21046 
       
 21047 else
       
 21048   echo "$as_me: failed program was:" >&5
       
 21049 sed 's/^/| /' conftest.$ac_ext >&5
       
 21050 
       
 21051 
       
 21052 fi
       
 21053 
       
 21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21055             { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
       
 21056 echo "${ECHO_T}$have_gcc_altivec" >&6; }
       
 21057         fi
       
 21058 
       
 21059         if test x$have_gcc_altivec = xno; then
       
 21060             { echo "$as_me:$LINENO: checking for Altivec with GCC altivec.h and -faltivec option" >&5
       
 21061 echo $ECHO_N "checking for Altivec with GCC altivec.h and -faltivec option... $ECHO_C" >&6; }
       
 21062             altivec_CFLAGS="-faltivec"
       
 21063             CFLAGS="$save_CFLAGS $altivec_CFLAGS"
       
 21064             cat >conftest.$ac_ext <<_ACEOF
       
 21065 /* confdefs.h.  */
       
 21066 _ACEOF
       
 21067 cat confdefs.h >>conftest.$ac_ext
       
 21068 cat >>conftest.$ac_ext <<_ACEOF
       
 21069 /* end confdefs.h.  */
       
 21070 
       
 21071             #include <altivec.h>
       
 21072             vector unsigned int vzero() {
       
 21073                 return vec_splat_u32(0);
       
 21074             }
       
 21075 
       
 21076 int
       
 21077 main ()
       
 21078 {
       
 21079 
       
 21080 
       
 21081   ;
       
 21082   return 0;
       
 21083 }
       
 21084 _ACEOF
       
 21085 rm -f conftest.$ac_objext
       
 21086 if { (ac_try="$ac_compile"
       
 21087 case "(($ac_try" in
       
 21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 21089   *) ac_try_echo=$ac_try;;
       
 21090 esac
       
 21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 21092   (eval "$ac_compile") 2>conftest.er1
       
 21093   ac_status=$?
       
 21094   grep -v '^ *+' conftest.er1 >conftest.err
       
 21095   rm -f conftest.er1
       
 21096   cat conftest.err >&5
       
 21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 21098   (exit $ac_status); } && {
       
 21099 	 test -z "$ac_c_werror_flag" ||
       
 21100 	 test ! -s conftest.err
       
 21101        } && test -s conftest.$ac_objext; then
       
 21102 
       
 21103             have_gcc_altivec=yes
       
 21104             have_altivec_h_hdr=yes
       
 21105 
       
 21106 else
       
 21107   echo "$as_me: failed program was:" >&5
       
 21108 sed 's/^/| /' conftest.$ac_ext >&5
       
 21109 
       
 21110 
       
 21111 fi
       
 21112 
       
 21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21114             { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
       
 21115 echo "${ECHO_T}$have_gcc_altivec" >&6; }
       
 21116         fi
       
 21117 
       
 21118         if test x$have_gcc_altivec = xno; then
       
 21119             { echo "$as_me:$LINENO: checking for Altivec with GCC -faltivec option" >&5
       
 21120 echo $ECHO_N "checking for Altivec with GCC -faltivec option... $ECHO_C" >&6; }
       
 21121             cat >conftest.$ac_ext <<_ACEOF
       
 21122 /* confdefs.h.  */
       
 21123 _ACEOF
       
 21124 cat confdefs.h >>conftest.$ac_ext
       
 21125 cat >>conftest.$ac_ext <<_ACEOF
       
 21126 /* end confdefs.h.  */
       
 21127 
       
 21128             vector unsigned int vzero() {
       
 21129                 return vec_splat_u32(0);
       
 21130             }
       
 21131 
       
 21132 int
       
 21133 main ()
       
 21134 {
       
 21135 
       
 21136 
       
 21137   ;
       
 21138   return 0;
       
 21139 }
       
 21140 _ACEOF
       
 21141 rm -f conftest.$ac_objext
       
 21142 if { (ac_try="$ac_compile"
       
 21143 case "(($ac_try" in
       
 21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
       
 21145   *) ac_try_echo=$ac_try;;
       
 21146 esac
       
 21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
       
 21148   (eval "$ac_compile") 2>conftest.er1
       
 21149   ac_status=$?
       
 21150   grep -v '^ *+' conftest.er1 >conftest.err
       
 21151   rm -f conftest.er1
       
 21152   cat conftest.err >&5
       
 21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
       
 21154   (exit $ac_status); } && {
       
 21155 	 test -z "$ac_c_werror_flag" ||
       
 21156 	 test ! -s conftest.err
       
 21157        } && test -s conftest.$ac_objext; then
       
 21158 
       
 21159             have_gcc_altivec=yes
       
 21160 
       
 21161 else
       
 21162   echo "$as_me: failed program was:" >&5
       
 21163 sed 's/^/| /' conftest.$ac_ext >&5
       
 21164 
       
 21165 
       
 21166 fi
       
 21167 
       
 21168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21169             { echo "$as_me:$LINENO: result: $have_gcc_altivec" >&5
       
 21170 echo "${ECHO_T}$have_gcc_altivec" >&6; }
       
 21171         fi
       
 21172         CFLAGS="$save_CFLAGS"
       
 21173 
       
 21174         if test x$have_gcc_altivec = xyes; then
       
 21175             cat >>confdefs.h <<\_ACEOF
       
 21176 #define SDL_ALTIVEC_BLITTERS 1
       
 21177 _ACEOF
       
 21178 
       
 21179             if test x$have_altivec_h_hdr = xyes; then
       
 21180               cat >>confdefs.h <<\_ACEOF
       
 21181 #define HAVE_ALTIVEC_H 1
       
 21182 _ACEOF
       
 21183 
       
 21184             fi
       
 21185             EXTRA_CFLAGS="$EXTRA_CFLAGS $altivec_CFLAGS"
 20857         fi
 21186         fi
 20858     fi
 21187     fi
 20859 fi
 21188 fi
 20860 
 21189 
 20861 CheckOSS()
 21190 CheckOSS()