configure: add better check for ffmpeg n1.2+ and libav v10+ version
This commit is contained in:
parent
c0c797d4f8
commit
419f69df53
1 changed files with 62 additions and 14 deletions
76
configure
vendored
76
configure
vendored
|
@ -307,30 +307,78 @@ else
|
||||||
if enabled_or_auto libav; then
|
if enabled_or_auto libav; then
|
||||||
has_libav=true
|
has_libav=true
|
||||||
|
|
||||||
if $has_libav && ! check_pkg libavcodec ">=52.96.0"; then
|
ffmpeg=$(pkg-config --modversion libavcodec | cut -d '.' -f 3)
|
||||||
has_libav=false
|
printf "$TAB" "checking for ffmpeg libraries ..."
|
||||||
|
if test $ffmpeg -lt 100; then
|
||||||
|
ffmpeg=
|
||||||
|
echo "fail"
|
||||||
|
else
|
||||||
|
ffmpeg=yes
|
||||||
|
echo "ok"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $has_libav && ! check_pkg libavutil ">=50.43.0"; then
|
if test "$ffmpeg" == "yes"; then
|
||||||
has_libav=false
|
|
||||||
fi
|
|
||||||
|
|
||||||
if $has_libav && ! check_pkg libavformat ">=53.10.0"; then
|
#
|
||||||
has_libav=false
|
# check for version n1.2+
|
||||||
fi
|
#
|
||||||
|
if $has_libav && ! check_pkg libavcodec ">=55.18.102"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
if $has_libav && ! check_pkg libswscale ">=0.13.0"; then
|
if $has_libav && ! check_pkg libavutil ">=52.38.100"; then
|
||||||
has_libav=false
|
has_libav=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libavformat ">=55.12.100"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libswscale ">=2.3.100"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libavresample ">=1.1.0"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
#
|
||||||
|
# check for version v10+
|
||||||
|
#
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libavcodec ">=55.34.1"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libavutil ">=53.3.0"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libavformat ">=55.12.0"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libswscale ">=2.1.2"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $has_libav && ! check_pkg libavresample ">=1.1.0"; then
|
||||||
|
has_libav=false
|
||||||
|
fi
|
||||||
|
|
||||||
if $has_libav && ! check_pkg libavresample ">=1.1.0"; then
|
|
||||||
has_libav=false
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $has_libav; then
|
if $has_libav; then
|
||||||
enable libav
|
enable libav
|
||||||
elif enabled libav; then
|
elif enabled libav; then
|
||||||
die "libav development support not found (use --disable-libav)"
|
|
||||||
|
die "libav development support not found
|
||||||
|
(use --disable-libav or --enable-libffmpeg_static)
|
||||||
|
((supported ffmpeg libs n1.2+))
|
||||||
|
((supported libav libs v10+))"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue