From 170917432bdc4e1c52d0fe7ac9bf539cacc2f5f8 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Fri, 20 Apr 2012 19:54:15 +0000 Subject: new detection of ffmpeg version. API changes: SampleFormat -> AVSampleFormat. Configure still needs update. Special thanks to lotan. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2856 b956fd51-792f-4845-bead-9b4dfca2ff2c --- dists/autogen/m4/pkg_config_utils.m4 | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'dists/autogen') diff --git a/dists/autogen/m4/pkg_config_utils.m4 b/dists/autogen/m4/pkg_config_utils.m4 index 903e0fc9..df0b2e49 100644 --- a/dists/autogen/m4/pkg_config_utils.m4 +++ b/dists/autogen/m4/pkg_config_utils.m4 @@ -96,8 +96,30 @@ AC_DEFUN([PKG_VERSION], [$1][_VERSION]="0.0.0" fi AX_EXTRACT_VERSION([$1], $[$1][_VERSION]) -]) + # for avutil: map library version to ffmpeg version + if test $1 = "libavutil"; then + AC_MSG_CHECKING([version of ffmpeg]) + if test $[$1][_VERSION_INT] -le 51035100; then + if test $[$1][_VERSION_INT] -ge 51034101; then + FFMPEG_VERSION="0.10" + elif test $[$1][_VERSION_INT] -ge 51032000; then + FFMPEG_VERSION="0.9" + elif test $[$1][_VERSION_INT] -ge 51009001; then + FFMPEG_VERSION="0.8" + elif test $[$1][_VERSION_INT] -ge 50043000; then + FFMPEG_VERSION="0.7" + else + FFMPEG_VERSION="0" + fi + else + FFMPEG_VERSION="0" + fi + AX_EXTRACT_VERSION(FFMPEG, $FFMPEG_VERSION) + AC_SUBST(FFMPEG_VERSION) + AC_MSG_RESULT(@<:@$FFMPEG_VERSION@:>@) + fi +]) # SYNOPSIS # -- cgit v1.2.3