changeset 32178:f65b5ba494a2

Simplify libmpeg2 check using header_check_broken().
author diego
date Thu, 16 Sep 2010 11:23:42 +0000
parents 128c05cb7d80
children bfd250df736d
files configure
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 <stdint.h>
-#include <mpeg2dec/mpeg2.h>
-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'