# HG changeset patch # User diego # Date 1284803405 0 # Node ID 37bf4af10f1b796b2279bab598521ecf70298baa # Parent fe807b1b70afdd1f2531030ecb5d0648102cf949 Simplify libdca check using function_check_broken(). diff -r fe807b1b70af -r 37bf4af10f1b configure --- a/configure Sat Sep 18 09:49:12 2010 +0000 +++ b/configure Sat Sep 18 09:50:05 2010 +0000 @@ -6649,14 +6649,9 @@ echocheck "libdca support" if test "$_libdca" = auto ; then _libdca=no - cat > $TMPC << EOF -#include -#include -int main(void) { dts_init(0); return 0; } -EOF for _ld_dca in -ldca -ldts ; do - cc_check $_ld_dca $_ld_lm && extra_ldflags="$extra_ldflags $_ld_dca" \ - && _libdca=yes && break + function_check_broken stdint.h dts.h 'dts_init(0)' $_ld_dca $_ld_lm && + extra_ldflags="$extra_ldflags $_ld_dca" && _libdca=yes && break done fi if test "$_libdca" = yes ; then