From 26e427e83887c17cb856bd03fd481313651772ca Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sat, 11 Apr 2009 08:13:09 +0000 Subject: [PATCH] Add a check for libavutil/pixfmt.h as a low-brow check for FFMPEG r18129+, this needs to be fixed to check exact versions of the library. For now this should work. Originally committed to SVN as r2778. --- aegisub/configure.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/aegisub/configure.in b/aegisub/configure.in index c34dca918..99db4e057 100644 --- a/aegisub/configure.in +++ b/aegisub/configure.in @@ -661,10 +661,14 @@ else with_provider_ffmpegsource="no" fi -AM_CONDITIONAL([HAVE_PROVIDER_FFMPEGSOURCE], [test "$with_provider_ffmpegsource" = "yes"]) AC_SUBST(LIBPOSTPROC_LIBS) AC_SUBST(LIBPOSTPROC_CFLAGS) +# XXX: Fix this to be a proper check. +AC_CHECK_HEADER([libavutil/pixfmt.h],,[AC_MSG_WARN([FFmpegSource2 requires FFMPEG r18129 or newer]); with_provider_ffmpegsource="no"]) + +AM_CONDITIONAL([HAVE_PROVIDER_FFMPEGSOURCE], [test "$with_provider_ffmpegsource" = "yes"]) + ################### @@ -1345,7 +1349,7 @@ A/V Support Video Providers FFMPEG: $with_provider_ffmpeg $ffmpeg_provider_disabled - FFmpegSource: $with_provider_ffmpegsource $ffmpegsource_provider_disabled + FFmpegSource: $with_provider_ffmpegsource $ffmpegsource_provider_disabled (requires FFMPEG r18129 or newer) Subtitle Providers: CSRI (ASA): $with_csri $csri_disabled $csri_default