Ticket #1570: mplayer-1.0_rc2_p20090731-configure-fix-x264-test.patch

File mplayer-1.0_rc2_p20090731-configure-fix-x264-test.patch, 1.0 KB (added by chrisfriedt@…, 17 years ago)

configure-fix-x264-test.patch

  • /var/tmp/portage/media-video/mplayer-1.0_rc2_p20090731-r1/work/mplayer-1.0_rc2_p20090731/

    old new  
    71767176
    71777177
    71787178echocheck "x264"
    7179 if test "$_x264" = auto ; then
     7179if test "$_x264" = auto || test "$_x264" = yes ; then
    71807180  cat > $TMPC << EOF
    71817181#include <inttypes.h>
    71827182#include <x264.h>
     
    71857185#endif
    71867186int main(void) { x264_encoder_open((void*)0); return 0; }
    71877187EOF
    7188   _x264=no
     7188  _x264_tmp=no
    71897189  for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do
    71907190    cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264_tmp=yes && break
    71917191  done
     7192  if test "$_x264" = auto ; then
     7193        if test "$_x264_tmp" = yes ; then
     7194                _x264=yes
     7195        else
     7196                _x264=no
     7197        fi
     7198  else
     7199        if test "$_x264_tmp" = no ; then
     7200                die "x264 test failed"
     7201        fi
     7202  fi
     7203fi
    71927204
    71937205if test "$_x264" = yes ; then
    71947206  def_x264='#define CONFIG_X264 1'