# HG changeset patch # User diego # Date 1177590877 0 # Node ID 1fdb9b3d5d1e22fae2b635d740160069d64154b3 # Parent d01ab20fd7f4a440fdd4d540b402ac0a57621f7f Clean up static libavcodec check, just checking for a file is enough. diff -r d01ab20fd7f4 -r 1fdb9b3d5d1e configure --- a/configure Thu Apr 26 12:30:34 2007 +0000 +++ b/configure Thu Apr 26 12:34:37 2007 +0000 @@ -6187,27 +6187,8 @@ # Note: static linking is preferred to dynamic linking _libavcodec_a=no if test -d libavcodec && test -f libavcodec/utils.c ; then - _res_comment="old ffmpeg version, use CVS !" - if grep avcodec_find_encoder_by_name libavcodec/utils.c > /dev/null 2>&1 ; then - # check if libavutil is a required - cat > $TMPC << EOF -#include "libavcodec/avcodec.h" -#if LIBAVCODEC_BUILD >= 3211265 -#error We need libavutil! -#endif -int main(void) { return 0; } -EOF - if cc_check -I. -I./libavutil; then - _libavutil_required="no" - else - _libavutil_required="yes" - fi - _res_comment="libavutil availability does not fit libavcodec version" - if test "$_libavutil_required" = "$_libavutil_a"; then _libavcodec_a="yes" _res_comment="static" - fi - fi fi elif test "$_libavcodec_so" = auto ; then _libavcodec_so=no