Allow disabling ffmpeg.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
AC_DEFUN([SM_VIDEO], [
|
AC_DEFUN([SM_VIDEO], [
|
||||||
|
AC_ARG_WITH(ffmpeg, AC_HELP_STRING([--without-ffmpeg], [Disable ffmpeg support]), with_ffmpeg=$enableval, with_ffmpeg=yes)
|
||||||
|
|
||||||
|
if test "$with_ffmpeg" = "yes"; then
|
||||||
AC_SEARCH_LIBS(avcodec_init, [avcodec], have_libavcodec=yes, have_libavcodec=no)
|
AC_SEARCH_LIBS(avcodec_init, [avcodec], have_libavcodec=yes, have_libavcodec=no)
|
||||||
AC_SEARCH_LIBS(guess_format, [avformat], have_libavformat=yes, have_libavformat=no)
|
AC_SEARCH_LIBS(guess_format, [avformat], have_libavformat=yes, have_libavformat=no)
|
||||||
|
|
||||||
@@ -26,6 +28,7 @@ if test "$have_libavformat" = "yes"; then
|
|||||||
],,have_libavformat=no,)
|
],,have_libavformat=no,)
|
||||||
AC_MSG_RESULT($have_libavformat)
|
AC_MSG_RESULT($have_libavformat)
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
have_ffmpeg=no
|
have_ffmpeg=no
|
||||||
if test "$have_libavformat" = "yes" -a "$have_libavcodec" = "yes"; then
|
if test "$have_libavformat" = "yes" -a "$have_libavcodec" = "yes"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user