Skip to content
Snippets Groups Projects
configure 1.17 MiB
Newer Older
  pkg_cv_TAGLIB_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
    if test -n "$TAGLIB_LIBS"; then
        pkg_cv_TAGLIB_LIBS="$TAGLIB_LIBS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_TAGLIB_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        TAGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
        else
	        TAGLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$TAGLIB_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

      HAVE_TAGLIB="no"
      if test "x$required" = "xyes"; then
        as_fn_error $? "$TAGLIB_PKG_ERRORS" "$LINENO" 5
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: $TAGLIB_PKG_ERRORS" >&5
$as_echo "$as_me: $TAGLIB_PKG_ERRORS" >&6;}
      fi

elif test $pkg_failed = untried; then

      HAVE_TAGLIB="no"
      if test "x$required" = "xyes"; then
        as_fn_error $? "$TAGLIB_PKG_ERRORS" "$LINENO" 5
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: $TAGLIB_PKG_ERRORS" >&5
$as_echo "$as_me: $TAGLIB_PKG_ERRORS" >&6;}
      fi

else
	TAGLIB_CFLAGS=$pkg_cv_TAGLIB_CFLAGS
	TAGLIB_LIBS=$pkg_cv_TAGLIB_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

      HAVE_TAGLIB="yes"

fi


  if test "x$HAVE_CXX" != "xyes"; then
    USE_TAGLIB=false
    { $as_echo "$as_me:${as_lineno-$LINENO}: Not building taglib plugin: no C++ compiler found" >&5
$as_echo "$as_me: Not building taglib plugin: no C++ compiler found" >&6;}
  else



  { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if c++ compiler understands -Wno-attributes" >&5
$as_echo_n "checking to see if c++ compiler understands -Wno-attributes... " >&6; }

  save_CPPFLAGS="$CPPFLAGS"
  CPPFLAGS="$CPPFLAGS -Wno-attributes"

  ac_ext=cpp
ac_cpp='$CXXCPP $CPPFLAGS'
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu


  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
if ac_fn_cxx_try_compile "$LINENO"; then :
  flag_ok=yes
else
  flag_ok=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  CPPFLAGS="$save_CPPFLAGS"

  if test "X$flag_ok" = Xyes ; then

        TAGLIB_CXXFLAGS="$TAGLIB_CFLAGS -Wno-attributes"

    true
  else

        TAGLIB_CXXFLAGS="$TAGLIB_CFLAGS"

    true
  fi

  ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu


  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
$as_echo "$flag_ok" >&6; }


  fi


  LIBS=$gst_check_save_LIBS
  LDFLAGS=$gst_check_save_LDFLAGS
  CFLAGS=$gst_check_save_CFLAGS
  CPPFLAGS=$gst_check_save_CPPFLAGS
  CXXFLAGS=$gst_check_save_CXXFLAGS

    if test x$HAVE_TAGLIB = xno; then
    USE_TAGLIB=no
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: taglib" >&5
$as_echo "$as_me: *** These plugins will be built: taglib" >&6;}
  fi
fi
if test x$USE_TAGLIB = xyes; then
  :
  if test "xtaglib" != "x"; then
    GST_PLUGINS_YES="\ttaglib\n$GST_PLUGINS_YES"
  fi

$as_echo "#define HAVE_TAGLIB /**/" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: taglib" >&5
$as_echo "$as_me: *** These plugins will not be built: taglib" >&6;}
  if test "xtaglib" != "x"; then
    GST_PLUGINS_NO="\ttaglib\n$GST_PLUGINS_NO"
  fi
  :
fi
 if test x$USE_TAGLIB = xyes; then
  USE_TAGLIB_TRUE=
  USE_TAGLIB_FALSE='#'
else
  USE_TAGLIB_TRUE='#'
  USE_TAGLIB_FALSE=
fi



echo
{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: VPX decoder ***" >&5
$as_echo "$as_me: *** checking feature: VPX decoder ***" >&6;}
if test "xvpx" != "x"
then
  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: vpx ***" >&5
$as_echo "$as_me: *** for plug-ins: vpx ***" >&6;}
fi
NOUSE=
if test "x$USE_VPX" = "xno"; then
  NOUSE="yes"
fi
# Check whether --enable-vpx was given.
if test "${enable_vpx+set}" = set; then :
  enableval=$enable_vpx;  case "${enableval}" in
      yes) USE_VPX=yes;;
      no) USE_VPX=no;;
      *) as_fn_error $? "bad value ${enableval} for --enable-vpx" "$LINENO" 5 ;;
    esac
else
   USE_VPX=yes
fi

if test "x$NOUSE" = "xyes"; then
  USE_VPX="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vpx pre-configured not to be built" >&5
$as_echo "$as_me: WARNING: *** vpx pre-configured not to be built" >&2;}
fi
NOUSE=

if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " VPX " > /dev/null; then
  USE_VPX="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** vpx not ported" >&5
$as_echo "$as_me: WARNING: *** vpx not ported" >&2;}
fi


if test x$USE_VPX = xyes; then

  gst_check_save_LIBS=$LIBS
  gst_check_save_LDFLAGS=$LDFLAGS
  gst_check_save_CFLAGS=$CFLAGS
  gst_check_save_CPPFLAGS=$CPPFLAGS
  gst_check_save_CXXFLAGS=$CXXFLAGS

  HAVE_VPX=no


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VPX" >&5
$as_echo_n "checking for VPX... " >&6; }

if test -n "$PKG_CONFIG"; then
    if test -n "$VPX_CFLAGS"; then
        pkg_cv_VPX_CFLAGS="$VPX_CFLAGS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vpx >= 1.1.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "vpx >= 1.1.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_VPX_CFLAGS=`$PKG_CONFIG --cflags "vpx >= 1.1.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
    if test -n "$VPX_LIBS"; then
        pkg_cv_VPX_LIBS="$VPX_LIBS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vpx >= 1.1.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "vpx >= 1.1.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_VPX_LIBS=`$PKG_CONFIG --libs "vpx >= 1.1.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        VPX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vpx >= 1.1.0"`
        else
	        VPX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vpx >= 1.1.0"`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$VPX_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                HAVE_VPX="no"
elif test $pkg_failed = untried; then
	HAVE_VPX="no"
else
	VPX_CFLAGS=$pkg_cv_VPX_CFLAGS
	VPX_LIBS=$pkg_cv_VPX_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
	HAVE_VPX="yes"
fi
  HAVE_VP8=no
  HAVE_VP9=no

  if test $HAVE_VPX = "yes"; then
    OLD_LIBS="$LIBS"
    OLD_CFLAGS="$CFLAGS"
    CFLAGS="$CFLAGS $VPX_CFLAGS"
    LIBS="$LIBS $VPX_LIBS"
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_vp8_cx_algo in -lvpx" >&5
$as_echo_n "checking for vpx_codec_vp8_cx_algo in -lvpx... " >&6; }
if ${ac_cv_lib_vpx_vpx_codec_vp8_cx_algo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvpx  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vpx_codec_vp8_cx_algo ();
int
main ()
{
return vpx_codec_vp8_cx_algo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_vpx_vpx_codec_vp8_cx_algo=yes
else
  ac_cv_lib_vpx_vpx_codec_vp8_cx_algo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_vp8_cx_algo" >&5
$as_echo "$ac_cv_lib_vpx_vpx_codec_vp8_cx_algo" >&6; }
if test "x$ac_cv_lib_vpx_vpx_codec_vp8_cx_algo" = xyes; then :

      HAVE_VP8=yes

$as_echo "#define HAVE_VP8_ENCODER 1" >>confdefs.h


fi

    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_vp8_dx_algo in -lvpx" >&5
$as_echo_n "checking for vpx_codec_vp8_dx_algo in -lvpx... " >&6; }
if ${ac_cv_lib_vpx_vpx_codec_vp8_dx_algo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvpx  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vpx_codec_vp8_dx_algo ();
int
main ()
{
return vpx_codec_vp8_dx_algo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_vpx_vpx_codec_vp8_dx_algo=yes
else
  ac_cv_lib_vpx_vpx_codec_vp8_dx_algo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_vp8_dx_algo" >&5
$as_echo "$ac_cv_lib_vpx_vpx_codec_vp8_dx_algo" >&6; }
if test "x$ac_cv_lib_vpx_vpx_codec_vp8_dx_algo" = xyes; then :

      HAVE_VP8=yes

$as_echo "#define HAVE_VP8_DECODER 1" >>confdefs.h


fi



pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VPX_130" >&5
$as_echo_n "checking for VPX_130... " >&6; }

if test -n "$PKG_CONFIG"; then
    if test -n "$VPX_130_CFLAGS"; then
        pkg_cv_VPX_130_CFLAGS="$VPX_130_CFLAGS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vpx >= 1.3.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "vpx >= 1.3.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_VPX_130_CFLAGS=`$PKG_CONFIG --cflags "vpx >= 1.3.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
    if test -n "$VPX_130_LIBS"; then
        pkg_cv_VPX_130_LIBS="$VPX_130_LIBS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vpx >= 1.3.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "vpx >= 1.3.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_VPX_130_LIBS=`$PKG_CONFIG --libs "vpx >= 1.3.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        VPX_130_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vpx >= 1.3.0"`
        else
	        VPX_130_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vpx >= 1.3.0"`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$VPX_130_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                true
elif test $pkg_failed = untried; then
	true
else
	VPX_130_CFLAGS=$pkg_cv_VPX_130_CFLAGS
	VPX_130_LIBS=$pkg_cv_VPX_130_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_vp9_cx_algo in -lvpx" >&5
$as_echo_n "checking for vpx_codec_vp9_cx_algo in -lvpx... " >&6; }
if ${ac_cv_lib_vpx_vpx_codec_vp9_cx_algo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvpx  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vpx_codec_vp9_cx_algo ();
int
main ()
{
return vpx_codec_vp9_cx_algo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_vpx_vpx_codec_vp9_cx_algo=yes
else
  ac_cv_lib_vpx_vpx_codec_vp9_cx_algo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_vp9_cx_algo" >&5
$as_echo "$ac_cv_lib_vpx_vpx_codec_vp9_cx_algo" >&6; }
if test "x$ac_cv_lib_vpx_vpx_codec_vp9_cx_algo" = xyes; then :

        HAVE_VP9=yes

$as_echo "#define HAVE_VP9_ENCODER 1" >>confdefs.h


fi

      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vpx_codec_vp9_dx_algo in -lvpx" >&5
$as_echo_n "checking for vpx_codec_vp9_dx_algo in -lvpx... " >&6; }
if ${ac_cv_lib_vpx_vpx_codec_vp9_dx_algo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lvpx  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char vpx_codec_vp9_dx_algo ();
int
main ()
{
return vpx_codec_vp9_dx_algo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_vpx_vpx_codec_vp9_dx_algo=yes
else
  ac_cv_lib_vpx_vpx_codec_vp9_dx_algo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vpx_vpx_codec_vp9_dx_algo" >&5
$as_echo "$ac_cv_lib_vpx_vpx_codec_vp9_dx_algo" >&6; }
if test "x$ac_cv_lib_vpx_vpx_codec_vp9_dx_algo" = xyes; then :

        HAVE_VP9=yes

$as_echo "#define HAVE_VP9_DECODER 1" >>confdefs.h


fi



pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VPX_140" >&5
$as_echo_n "checking for VPX_140... " >&6; }

if test -n "$PKG_CONFIG"; then
    if test -n "$VPX_140_CFLAGS"; then
        pkg_cv_VPX_140_CFLAGS="$VPX_140_CFLAGS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vpx >= 1.4.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "vpx >= 1.4.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_VPX_140_CFLAGS=`$PKG_CONFIG --cflags "vpx >= 1.4.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
    if test -n "$VPX_140_LIBS"; then
        pkg_cv_VPX_140_LIBS="$VPX_140_LIBS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vpx >= 1.4.0\""; } >&5
  ($PKG_CONFIG --exists --print-errors "vpx >= 1.4.0") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_VPX_140_LIBS=`$PKG_CONFIG --libs "vpx >= 1.4.0" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        VPX_140_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vpx >= 1.4.0"`
        else
	        VPX_140_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vpx >= 1.4.0"`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$VPX_140_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
                true
elif test $pkg_failed = untried; then
	true
else
	VPX_140_CFLAGS=$pkg_cv_VPX_140_CFLAGS
	VPX_140_LIBS=$pkg_cv_VPX_140_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


$as_echo "#define HAVE_VPX_1_4 1" >>confdefs.h


fi

    LIBS="$OLD_LIBS"
    CFLAGS="$OLD_CFLAGS"
  fi




  LIBS=$gst_check_save_LIBS
  LDFLAGS=$gst_check_save_LDFLAGS
  CFLAGS=$gst_check_save_CFLAGS
  CPPFLAGS=$gst_check_save_CPPFLAGS
  CXXFLAGS=$gst_check_save_CXXFLAGS

    if test x$HAVE_VPX = xno; then
    USE_VPX=no
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: vpx" >&5
$as_echo "$as_me: *** These plugins will be built: vpx" >&6;}
  fi
fi
if test x$USE_VPX = xyes; then
  :
  if test "xvpx" != "x"; then
    GST_PLUGINS_YES="\tvpx\n$GST_PLUGINS_YES"
  fi

$as_echo "#define HAVE_VPX /**/" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: vpx" >&5
$as_echo "$as_me: *** These plugins will not be built: vpx" >&6;}
  if test "xvpx" != "x"; then
    GST_PLUGINS_NO="\tvpx\n$GST_PLUGINS_NO"
  fi
  :
fi
 if test x$USE_VPX = xyes; then
  USE_VPX_TRUE=
  USE_VPX_FALSE='#'
else
  USE_VPX_TRUE='#'
  USE_VPX_FALSE=
fi



echo
{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: wavpack plug-in ***" >&5
$as_echo "$as_me: *** checking feature: wavpack plug-in ***" >&6;}
if test "xwavpack" != "x"
then
  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins: wavpack ***" >&5
$as_echo "$as_me: *** for plug-ins: wavpack ***" >&6;}
fi
NOUSE=
if test "x$USE_WAVPACK" = "xno"; then
  NOUSE="yes"
fi
# Check whether --enable-wavpack was given.
if test "${enable_wavpack+set}" = set; then :
  enableval=$enable_wavpack;  case "${enableval}" in
      yes) USE_WAVPACK=yes;;
      no) USE_WAVPACK=no;;
      *) as_fn_error $? "bad value ${enableval} for --enable-wavpack" "$LINENO" 5 ;;
    esac
else
   USE_WAVPACK=yes
fi

if test "x$NOUSE" = "xyes"; then
  USE_WAVPACK="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wavpack pre-configured not to be built" >&5
$as_echo "$as_me: WARNING: *** wavpack pre-configured not to be built" >&2;}
fi
NOUSE=

if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " WAVPACK " > /dev/null; then
  USE_WAVPACK="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** wavpack not ported" >&5
$as_echo "$as_me: WARNING: *** wavpack not ported" >&2;}
fi


if test x$USE_WAVPACK = xyes; then

  gst_check_save_LIBS=$LIBS
  gst_check_save_LDFLAGS=$LDFLAGS
  gst_check_save_CFLAGS=$CFLAGS
  gst_check_save_CPPFLAGS=$CPPFLAGS
  gst_check_save_CXXFLAGS=$CXXFLAGS

  HAVE_WAVPACK=no


  which="wavpack >= 4.60.0"
    required="no"


pkg_failed=no
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WAVPACK" >&5
$as_echo_n "checking for WAVPACK... " >&6; }

if test -n "$PKG_CONFIG"; then
    if test -n "$WAVPACK_CFLAGS"; then
        pkg_cv_WAVPACK_CFLAGS="$WAVPACK_CFLAGS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_WAVPACK_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi
if test -n "$PKG_CONFIG"; then
    if test -n "$WAVPACK_LIBS"; then
        pkg_cv_WAVPACK_LIBS="$WAVPACK_LIBS"
    else
        if test -n "$PKG_CONFIG" && \
    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
  ($PKG_CONFIG --exists --print-errors "$which") 2>&5
  ac_status=$?
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  test $ac_status = 0; }; then
  pkg_cv_WAVPACK_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
else
  pkg_failed=yes
fi
    fi
else
	pkg_failed=untried
fi



if test $pkg_failed = yes; then

if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
        _pkg_short_errors_supported=yes
else
        _pkg_short_errors_supported=no
fi
        if test $_pkg_short_errors_supported = yes; then
	        WAVPACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
	        WAVPACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
        fi
	# Put the nasty error message in config.log where it belongs
	echo "$WAVPACK_PKG_ERRORS" >&5

	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }

      HAVE_WAVPACK="no"
      if test "x$required" = "xyes"; then
        as_fn_error $? "$WAVPACK_PKG_ERRORS" "$LINENO" 5
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: $WAVPACK_PKG_ERRORS" >&5
$as_echo "$as_me: $WAVPACK_PKG_ERRORS" >&6;}
      fi

elif test $pkg_failed = untried; then

      HAVE_WAVPACK="no"
      if test "x$required" = "xyes"; then
        as_fn_error $? "$WAVPACK_PKG_ERRORS" "$LINENO" 5
      else
        { $as_echo "$as_me:${as_lineno-$LINENO}: $WAVPACK_PKG_ERRORS" >&5
$as_echo "$as_me: $WAVPACK_PKG_ERRORS" >&6;}
      fi

else
	WAVPACK_CFLAGS=$pkg_cv_WAVPACK_CFLAGS
	WAVPACK_LIBS=$pkg_cv_WAVPACK_LIBS
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }


fi




  LIBS=$gst_check_save_LIBS
  LDFLAGS=$gst_check_save_LDFLAGS
  CFLAGS=$gst_check_save_CFLAGS
  CPPFLAGS=$gst_check_save_CPPFLAGS
  CXXFLAGS=$gst_check_save_CXXFLAGS

    if test x$HAVE_WAVPACK = xno; then
    USE_WAVPACK=no
  else
    { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will be built: wavpack" >&5
$as_echo "$as_me: *** These plugins will be built: wavpack" >&6;}
  fi
fi
if test x$USE_WAVPACK = xyes; then
  :
  if test "xwavpack" != "x"; then
    GST_PLUGINS_YES="\twavpack\n$GST_PLUGINS_YES"
  fi

$as_echo "#define HAVE_WAVPACK /**/" >>confdefs.h

else
  { $as_echo "$as_me:${as_lineno-$LINENO}: *** These plugins will not be built: wavpack" >&5
$as_echo "$as_me: *** These plugins will not be built: wavpack" >&6;}
  if test "xwavpack" != "x"; then
    GST_PLUGINS_NO="\twavpack\n$GST_PLUGINS_NO"
  fi
  :
fi
 if test x$USE_WAVPACK = xyes; then
  USE_WAVPACK_TRUE=
  USE_WAVPACK_FALSE='#'
else
  USE_WAVPACK_TRUE='#'
  USE_WAVPACK_FALSE=
fi



echo
{ $as_echo "$as_me:${as_lineno-$LINENO}: *** checking feature: zlib support for qtdemux/matroska ***" >&5
$as_echo "$as_me: *** checking feature: zlib support for qtdemux/matroska ***" >&6;}
if test "x" != "x"
then
  { $as_echo "$as_me:${as_lineno-$LINENO}: *** for plug-ins:  ***" >&5
$as_echo "$as_me: *** for plug-ins:  ***" >&6;}
fi
NOUSE=
if test "x$USE_ZLIB" = "xno"; then
  NOUSE="yes"
fi
# Check whether --enable-zlib was given.
if test "${enable_zlib+set}" = set; then :
  enableval=$enable_zlib;  case "${enableval}" in
      yes) USE_ZLIB=yes;;
      no) USE_ZLIB=no;;
      *) as_fn_error $? "bad value ${enableval} for --enable-zlib" "$LINENO" 5 ;;
    esac
else
   USE_ZLIB=yes
fi

if test "x$NOUSE" = "xyes"; then
  USE_ZLIB="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  pre-configured not to be built" >&5
$as_echo "$as_me: WARNING: ***  pre-configured not to be built" >&2;}
fi
NOUSE=

if echo " $GST_PLUGINS_NONPORTED " | tr , ' ' | grep -i " ZLIB " > /dev/null; then
  USE_ZLIB="no"
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ***  not ported" >&5
$as_echo "$as_me: WARNING: ***  not ported" >&2;}
fi


if test x$USE_ZLIB = xyes; then

  gst_check_save_LIBS=$LIBS
  gst_check_save_LDFLAGS=$LDFLAGS
  gst_check_save_CFLAGS=$CFLAGS
  gst_check_save_CPPFLAGS=$CPPFLAGS
  gst_check_save_CXXFLAGS=$CXXFLAGS

  HAVE_ZLIB=no


  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
$as_echo_n "checking for uncompress in -lz... " >&6; }
if ${ac_cv_lib_z_uncompress+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lz  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char uncompress ();
int
main ()
{
return uncompress ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_z_uncompress=yes
else
  ac_cv_lib_z_uncompress=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
$as_echo "$ac_cv_lib_z_uncompress" >&6; }
if test "x$ac_cv_lib_z_uncompress" = xyes; then :
  HAVE_ZLIB=yes
else
  HAVE_ZLIB=no
fi

  if test "x$HAVE_ZLIB" = "xyes"; then
    ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
if test "x$ac_cv_header_zlib_h" = xyes; then :
  :
else
  HAVE_ZLIB=no
fi


    if test "x$HAVE_ZLIB" = "xyes"; then

    HAVE_ZLIB="yes"
    ZLIB_LIBS="-lz"


    else
      :
    fi
  else
    :
  fi





  LIBS=$gst_check_save_LIBS
  LDFLAGS=$gst_check_save_LDFLAGS
  CFLAGS=$gst_check_save_CFLAGS
  CPPFLAGS=$gst_check_save_CPPFLAGS
  CXXFLAGS=$gst_check_save_CXXFLAGS

    if test x$HAVE_ZLIB = xno; then
    USE_ZLIB=no
  else
    :
  fi
fi
if test x$USE_ZLIB = xyes; then
  :
  if test "x" != "x"; then
    GST_PLUGINS_YES="\t\n$GST_PLUGINS_YES"
  fi