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

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

configure-fix-x264-test.patch

  • (a) configure_orig vs. (b) configure

    a b  
    71767176
    71777177
    71787178echocheck "x264"
    7179 if test "$_x264" = auto ; then
     7179if test "$_x264" = auto || test "$_x264" = yes || test "_x264_lavc" = auto || test "$_x264_lavc" = 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
     7189  _x264_lavc_tmp=no
    71897190  for _ld_x264 in "-lx264 $_ld_pthread" "-lx264 $_ld_pthread $_ld_lm" ; do
    7190     cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264_tmp=yes && break
     7191    cc_check $_ld_x264 && libs_mencoder="$libs_mencoder $_ld_x264" && _x264_tmp=yes && _x264_lavc_tmp=yes && break
    71917192  done
     7193  if test "$_x264" = auto ; then
     7194        if test "$_x264_tmp" = yes ; then
     7195                _x264=yes
     7196        else
     7197                _x264=no
     7198        fi
     7199  else
     7200        if test "$_x264_tmp" = no ; then
     7201                die "x264 test failed"
     7202        fi
     7203  fi
     7204  if test "$_x264_lavc" = auto ; then
     7205        if test "$_x264_lavc_tmp" = yes ; then
     7206                _x264_lavc=yes
     7207        else
     7208                _x264_lavc=no
     7209        fi
     7210  else
     7211        if test "$_x264_lavc_tmp" = no ; then
     7212                die "x264_lavc test failed"
     7213        fi
     7214  fi
     7215fi
    71927216
    71937217if test "$_x264" = yes ; then
    71947218  def_x264='#define CONFIG_X264 1'
     7219  libs_mplayer="$libs_mplayer $_ld_x264"
    71957220  _codecmodules="x264 $_codecmodules"
    71967221  test "$_x264_lavc" = auto && _x264_lavc=yes
    71977222  if test "$_x264_lavc" = yes ; then
    71987223    def_x264_lavc='#define CONFIG_LIBX264 1'
    7199     libs_mplayer="$libs_mplayer $_ld_x264"
     7224    libs_mencoder="$libs_mencoder $_ld_x264"
    72007225    _libavencoders="$_libavencoders LIBX264_ENCODER"
    72017226  fi
    72027227else