Avoid clobbering $LIBS when checking for av_lockmgr_register

This led to the sqlite extension being linked against libavcodec, which it, of
course, doesn't use at all.
This commit is contained in:
Julien BLACHE 2010-12-04 15:22:39 +01:00
parent d6d7450557
commit da3900afad

View File

@ -126,7 +126,9 @@ LIBS="$save_LIBS"
PKG_CHECK_MODULES(FFMPEG, [ libavcodec libavformat libswscale libavutil ])
dnl Check for av_lock_manager (ffmpeg >= 0.5.1)
save_LIBS="$LIBS"
AC_CHECK_LIB([avcodec], [av_lockmgr_register], , AC_MSG_ERROR([ffmpeg >= 0.5.1 required]))
LIBS="$save_LIBS"
PKG_CHECK_MODULES(MINIXML, [ mxml ])