Allow disabling ffmpeg.

This commit is contained in:
Steve Checkoway
2006-03-20 19:01:19 +00:00
parent 7488850bb4
commit 568cc67a5b
+3
View File
@@ -1,5 +1,7 @@
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(guess_format, [avformat], have_libavformat=yes, have_libavformat=no)
@@ -26,6 +28,7 @@ if test "$have_libavformat" = "yes"; then
],,have_libavformat=no,)
AC_MSG_RESULT($have_libavformat)
fi
fi
have_ffmpeg=no
if test "$have_libavformat" = "yes" -a "$have_libavcodec" = "yes"; then