# HG changeset patch # User diego # Date 1284636222 0 # Node ID f65b5ba494a2bcedd6326eb74f03d1642fb3c661 # Parent 128c05cb7d807ce4192683997ce44ea669876c67 Simplify libmpeg2 check using header_check_broken(). diff -r 128c05cb7d80 -r f65b5ba494a2 configure --- a/configure Thu Sep 16 11:22:30 2010 +0000 +++ b/configure Thu Sep 16 11:23:42 2010 +0000 @@ -6664,12 +6664,8 @@ fi if test "$_libmpeg2" = auto ; then _libmpeg2=no - cat > $TMPC << EOF -#include -#include -int main(void) { return 0; } -EOF - cc_check -lmpeg2 && _libmpeg2=yes && extra_ldflags="$extra_ldflags -lmpeg2" + header_check_broken stdint.h mpeg2dec/mpeg2.h -lmpeg2 && + _libmpeg2=yes && extra_ldflags="$extra_ldflags -lmpeg2" fi def_libmpeg2='#undef CONFIG_LIBMPEG2'