[vlc-commits] configure: detect which avutil fork is present if any
Rémi Denis-Courmont
git at videolan.org
Wed Mar 5 18:55:47 CET 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar 5 19:43:59 2014 +0200| [c304d3d71117adaf135aefae2b2ddafcb07b229c] | committer: Rémi Denis-Courmont
configure: detect which avutil fork is present if any
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c304d3d71117adaf135aefae2b2ddafcb07b229c
---
configure.ac | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/configure.ac b/configure.ac
index 01ae9a4..194f9f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2212,6 +2212,20 @@ AC_ARG_ENABLE(merge-ffmpeg,
])
AM_CONDITIONAL([MERGE_FFMPEG], [test "$enable_merge_ffmpeg" != "no"])
+AC_MSG_CHECKING([for libavutil variant])
+PKG_CHECK_EXISTS([libavutil], [
+ libavutil_version="$(${PKG_CONFIG} --modversion libavutil)"
+ libavutil_micro="${libavutil_version##*.}"
+ AS_IF([test ${libavutil_micro} -le 99], [
+ avfork="libav"
+ ], [
+ avfork="ffmpeg"
+ ])
+], [
+ avfork="none"
+])
+AC_MSG_RESULT([${avfork}])
+
dnl
dnl avcodec decoder/encoder plugin
dnl
More information about the vlc-commits
mailing list