Mercurial > mplayer.hg
comparison configure @ 34214:ecb63dcc272c
Define HAVE_YASM etc. not only for x86.
author | cehoyos |
---|---|
date | Sat, 05 Nov 2011 13:47:51 +0000 |
parents | 7014a2e64a3d |
children | 70e6cffc6bb9 |
comparison
equal
deleted
inserted
replaced
34213:7d93d0f72802 | 34214:ecb63dcc272c |
---|---|
2759 fi | 2759 fi |
2760 YASMFLAGS="-f $objformat $yasmdefines" | 2760 YASMFLAGS="-f $objformat $yasmdefines" |
2761 yasm_check || die "yasm not found, use --yasm='' if you really want to compile without" | 2761 yasm_check || die "yasm not found, use --yasm='' if you really want to compile without" |
2762 fi | 2762 fi |
2763 fi | 2763 fi |
2764 if test $_yasm ; then | |
2765 def_yasm='#define HAVE_YASM 1' | |
2766 have_yasm="yes" | |
2767 echores "$_yasm" | |
2768 else | |
2769 def_yasm='#define HAVE_YASM 0' | |
2770 have_yasm="no" | |
2771 echores "no" | |
2772 fi | |
2773 | 2764 |
2774 echocheck "bswap" | 2765 echocheck "bswap" |
2775 echo 'bswap %eax' > $TMPS | 2766 echo 'bswap %eax' > $TMPS |
2776 $_as $TMPS -o $TMPEXE > /dev/null 2>&1 && def_bswap='#define HAVE_BSWAP 1' && bswap=yes || bswap=no | 2767 $_as $TMPS -o $TMPEXE > /dev/null 2>&1 && def_bswap='#define HAVE_BSWAP 1' && bswap=yes || bswap=no |
2777 echores "$bswap" | 2768 echores "$bswap" |
2781 inline_asm_check '"":::"%xmm0"' && | 2772 inline_asm_check '"":::"%xmm0"' && |
2782 def_xmm_clobbers='#define HAVE_XMM_CLOBBERS 1' && | 2773 def_xmm_clobbers='#define HAVE_XMM_CLOBBERS 1' && |
2783 xmm_clobbers=yes || xmm_clobbers=no | 2774 xmm_clobbers=yes || xmm_clobbers=no |
2784 echores "$xmm_clobbers" | 2775 echores "$xmm_clobbers" |
2785 | 2776 |
2777 else | |
2778 _yasm='' | |
2786 fi #if x86 | 2779 fi #if x86 |
2787 | 2780 |
2781 if test $_yasm ; then | |
2782 def_yasm='#define HAVE_YASM 1' | |
2783 have_yasm="yes" | |
2784 echores "$_yasm" | |
2785 else | |
2786 def_yasm='#define HAVE_YASM 0' | |
2787 have_yasm="no" | |
2788 echores "no" | |
2789 fi | |
2788 | 2790 |
2789 #FIXME: This should happen before the check for CFLAGS.. | 2791 #FIXME: This should happen before the check for CFLAGS.. |
2790 def_altivec_h='#define HAVE_ALTIVEC_H 0' | 2792 def_altivec_h='#define HAVE_ALTIVEC_H 0' |
2791 if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) ; then | 2793 if ppc && ( test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ) ; then |
2792 | 2794 |