From 0d03bdce6d590429143e821e2bcf34142b57b8fa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jun 2010 21:56:04 +0200 Subject: configure.ac: check ffmpeg version number with pkg-config Replace the check for avcodec_decode_audio2(), assume it's present in libavcodec version 51. --- configure.ac | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1043b2f65..f2a013720 100644 --- a/configure.ac +++ b/configure.ac @@ -914,17 +914,9 @@ fi AM_CONDITIONAL(HAVE_AUDIOFILE, test x$enable_audiofile = xyes) -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]) -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 # prior to ffmpeg svn12865, you had to specify include files # without path prefix -- cgit v1.2.3