ref: b029fc3c854e35152c3b0c6fd8dddd5e94ca0c9b
parent: f40e25a18472c0afc300c13d8363085cbec05b64
author: cbagwell <cbagwell>
date: Fri Mar 7 15:14:19 EST 2008
Add in missing FFMPEG_LIBS when searching for libraries.
--- a/configure.ac
+++ b/configure.ac
@@ -288,8 +288,8 @@
using_ffmpeg=yes
AC_CHECK_HEADER(ffmpeg/avformat.h,
[AC_CHECK_LIB(avutil, av_rescale_q, FFMPEG_LIBS="-lavutil $FFMPEG_LIBS", using_ffmpeg=no)
- AC_CHECK_LIB(avcodec, avcodec_decode_audio2, FFMPEG_LIBS="-lavcodec $FFMPEG_LIBS", using_ffmpeg=no)
- AC_CHECK_LIB(avformat, av_open_input_file, FFMPEG_LIBS="-lavformat $FFMPEG_LIBS", using_ffmpeg=no)],
+ AC_CHECK_LIB(avcodec, avcodec_decode_audio2, FFMPEG_LIBS="-lavcodec $FFMPEG_LIBS", using_ffmpeg=no, $FFMPEG_LIBS)
+ AC_CHECK_LIB(avformat, av_open_input_file, FFMPEG_LIBS="-lavformat $FFMPEG_LIBS", using_ffmpeg=no, $FFMPEG_LIBS)],
using_ffmpeg=no)
if test "$with_ffmpeg" = "yes" -a "$using_ffmpeg" = "no"; then
AC_MSG_FAILURE([cannot find ffmpeg])