comparison configure @ 32178:f65b5ba494a2

Simplify libmpeg2 check using header_check_broken().
author diego
date Thu, 16 Sep 2010 11:23:42 +0000
parents 128c05cb7d80
children bfd250df736d
comparison
equal deleted inserted replaced
32177:128c05cb7d80 32178:f65b5ba494a2
6662 res_comment="internal" 6662 res_comment="internal"
6663 fi 6663 fi
6664 fi 6664 fi
6665 if test "$_libmpeg2" = auto ; then 6665 if test "$_libmpeg2" = auto ; then
6666 _libmpeg2=no 6666 _libmpeg2=no
6667 cat > $TMPC << EOF 6667 header_check_broken stdint.h mpeg2dec/mpeg2.h -lmpeg2 &&
6668 #include <stdint.h> 6668 _libmpeg2=yes && extra_ldflags="$extra_ldflags -lmpeg2"
6669 #include <mpeg2dec/mpeg2.h>
6670 int main(void) { return 0; }
6671 EOF
6672 cc_check -lmpeg2 && _libmpeg2=yes && extra_ldflags="$extra_ldflags -lmpeg2"
6673 fi 6669 fi
6674 6670
6675 def_libmpeg2='#undef CONFIG_LIBMPEG2' 6671 def_libmpeg2='#undef CONFIG_LIBMPEG2'
6676 def_libmpeg2_internal='#undef CONFIG_LIBMPEG2_INTERNAL' 6672 def_libmpeg2_internal='#undef CONFIG_LIBMPEG2_INTERNAL'
6677 if test "$_libmpeg2" = yes ; then 6673 if test "$_libmpeg2" = yes ; then