Commit acf159fb authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

configure: reject libavcodec >= 55

That future version is expected to remove a number of already
deprecated interfaces, such as CODEC_ID_* or the Snow codec.
VLC still uses these interfaces as of today.
parent 2ea0e546
...@@ -2223,23 +2223,25 @@ dnl ...@@ -2223,23 +2223,25 @@ dnl
AC_ARG_ENABLE(avcodec, AC_ARG_ENABLE(avcodec,
[ --enable-avcodec libavcodec codec (default enabled)]) [ --enable-avcodec libavcodec codec (default enabled)])
AS_IF([test "${enable_avcodec}" != "no"], [ AS_IF([test "${enable_avcodec}" != "no"], [
PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 53.34.0 libavutil >= 51.22.0], PKG_CHECK_MODULES(AVCODEC,[libavcodec >= 53.34.0 libavutil >= 51.22.0], [
[ PKG_CHECK_EXISTS([libavcodec < 55],, [
VLC_SAVE_FLAGS AC_MSG_ERROR([libavcodec versions 55 and later are not supported yet.])
CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}" ])
CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}" VLC_SAVE_FLAGS
AC_CHECK_HEADERS(libavcodec/avcodec.h) CPPFLAGS="${CPPFLAGS} ${AVCODEC_CFLAGS}"
AC_CHECK_HEADERS(libavutil/avutil.h) CFLAGS="${CFLAGS} ${AVCODEC_CFLAGS}"
VLC_ADD_PLUGIN([avcodec]) AC_CHECK_HEADERS(libavcodec/avcodec.h)
VLC_ADD_LIBS([avcodec],[$AVCODEC_LIBS]) AC_CHECK_HEADERS(libavutil/avutil.h)
AS_IF([test "${ac_cv_ld_bsymbolic}" != "no"], [ VLC_ADD_PLUGIN([avcodec])
VLC_ADD_LIBS([avcodec],[-Wl,-Bsymbolic]) VLC_ADD_LIBS([avcodec],[$AVCODEC_LIBS])
]) AS_IF([test "${ac_cv_ld_bsymbolic}" != "no"], [
VLC_ADD_CFLAGS([avcodec],[$AVCODEC_CFLAGS]) VLC_ADD_LIBS([avcodec],[-Wl,-Bsymbolic])
VLC_RESTORE_FLAGS ])
have_avcodec="yes" VLC_ADD_CFLAGS([avcodec],[$AVCODEC_CFLAGS])
],[ VLC_RESTORE_FLAGS
AC_MSG_ERROR([${AVCODEC_PKG_ERRORS}. Pass --disable-avcodec to ignore this error.]) have_avcodec="yes"
],[
AC_MSG_ERROR([${AVCODEC_PKG_ERRORS}. Pass --disable-avcodec to ignore this error.])
]) ])
], [ ], [
have_avcodec="no" have_avcodec="no"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment