[vlc-devel] commit: Errors out at configure if libavcodec doesnt include img_resample() ( Rafaël Carré )
git version control
git at videolan.org
Mon May 26 11:59:55 CEST 2008
vlc | branch: 0.8.6-bugfix | Rafaël Carré <funman at videolan.org> | Mon May 26 11:59:15 2008 +0200| [0383d40e5bf86f33d1f6a41b86a358ba8766c77a]
Errors out at configure if libavcodec doesnt include img_resample()
Refs #1594
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0383d40e5bf86f33d1f6a41b86a358ba8766c77a
---
configure.ac | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 2515602..19f66c4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2770,6 +2770,17 @@ dnl Trying with pkg-config
fi
fi
+dnl Check if we have (required) img_resample() in libavcodec
+if test "${enable_ffmpeg}" != "no"
+then
+ VLC_SAVE_FLAGS
+ CFLAGS="${CFLAGS} ${CFLAGS_ffmpeg}"
+ LDFLAGS="${LDFLAGS} ${LDFLAGS_ffmpeg}"
+ AC_CHECK_LIB(avcodec, img_resample, ,
+ [AC_MSG_ERROR([Your FFmpeg library doesn't have the needed img_resample() function. You should rebuild it with software scaler disabled])], -lavutil)
+ VLC_RESTORE_FLAGS
+fi
+
dnl
dnl ffmpegaltivec plugin
dnl
More information about the vlc-devel
mailing list