configure.ac: check ffmpeg version number with pkg-config

Replace the check for avcodec_decode_audio2(), assume it's present in
libavcodec version 51.
This commit is contained in:
Max Kellermann 2010-06-30 10:51:07 +02:00
parent 5a2820ca3d
commit 002b283433
1 changed files with 1 additions and 9 deletions

View File

@ -725,17 +725,9 @@ AM_CONDITIONAL(HAVE_FAAD, test x$enable_aac = xyes)
AM_CONDITIONAL(HAVE_MP4, test x$enable_mp4 = xyes) AM_CONDITIONAL(HAVE_MP4, test x$enable_mp4 = xyes)
dnl ---------------------------------- ffmpeg --------------------------------- dnl ---------------------------------- ffmpeg ---------------------------------
MPD_AUTO_PKG(ffmpeg, FFMPEG, [libavformat libavcodec libavutil], MPD_AUTO_PKG(ffmpeg, FFMPEG, [libavformat >= 52 libavcodec >= 51 libavutil >= 49],
[ffmpeg decoder library], [libavformat+libavcodec+libavutil not found]) [ffmpeg decoder library], [libavformat+libavcodec+libavutil not found])
if test x$enable_ffmpeg = xyes; then
old_LIBS=$LIBS
LIBS="$LIBS $FFMPEG_LIBS"
AC_CHECK_LIB(avcodec, avcodec_decode_audio2,,
enable_ffmpeg=no)
LIBS=$old_LIBS
fi
if test x$enable_ffmpeg = xyes; then if test x$enable_ffmpeg = xyes; then
# prior to ffmpeg svn12865, you had to specify include files # prior to ffmpeg svn12865, you had to specify include files
# without path prefix # without path prefix