Hardcode ffmpeg interdependencies because pkg-config is not always around to do it for us
This commit is contained in:
@@ -17,9 +17,9 @@ have_ffmpeg=no
|
||||
if test "$with_ffmpeg" = "yes"; then
|
||||
if test "$with_static_ffmpeg" = "yes" -o "$with_static_ffmpeg" = "no"; then
|
||||
AC_CHECK_LIB(avutil, av_free, have_libavutil=yes, have_libavutil=no)
|
||||
AC_CHECK_LIB(avcodec, avcodec_register_all, have_libavcodec=yes, have_libavcodec=no)
|
||||
AC_CHECK_LIB(avformat, av_guess_format, have_libavformat=yes, have_libavformat=no)
|
||||
AC_CHECK_LIB(swscale, sws_scale, have_libswscale=yes, have_libswscale=no)
|
||||
AC_CHECK_LIB(avcodec, avcodec_register_all, have_libavcodec=yes, have_libavcodec=no, [-lavutil])
|
||||
AC_CHECK_LIB(avformat, av_guess_format, have_libavformat=yes, have_libavformat=no, [-lavcodec -lavutil])
|
||||
AC_CHECK_LIB(swscale, sws_scale, have_libswscale=yes, have_libswscale=no, [-lavutil])
|
||||
if test "$have_libavutil" = "yes" -a "$have_libavformat" = "yes" -a "$have_libavcodec" = "yes" -a "$have_libswscale" = "yes"; then
|
||||
have_ffmpeg=yes
|
||||
VIDEO_LIBS="$LIB_PRE -lswscale -lavformat -lswscale -lavcodec -lavutil $LIB_POST $VIDEO_LIBS"
|
||||
|
||||
Reference in New Issue
Block a user