configure.ac: check for avcodec_decode_audio2()

Disable the ffmpeg decoder plugin if avcodec_decode_audio2() is not
available.
This commit is contained in:
Max Kellermann 2008-11-04 17:42:37 +01:00
parent 85a7d1a148
commit 104d5120c9

View File

@ -755,6 +755,14 @@ if test x$enable_ffmpeg = xyes; then
enable_ffmpeg=no)
fi
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