[MPlayer-cvslog] r32744 - trunk/configure

Adrian Stutz adrian at sttz.ch
Sun Jan 2 15:54:10 CET 2011


On Sun, Jan 2, 2011 at 12:49, diego <subversion at mplayerhq.hu> wrote:
> Log:
> Simplify vector declarations and fast inttypes check with statement_check().
[...]
>     # check if the compiler supports braces for vector declarations
> -    cat > $TMPC << EOF
> -$inc_altivec_h
> -int main(void) { (vector int) {1}; return 0; }
> -EOF
> -    cc_check $_altivec_gcc_flags || die "You need a compiler that supports {} in AltiVec vector declarations."
> +    statement_check "$inc_altivec_h" '(vector int) {1}' $_altivec_gcc_flags ||
> +        die "You need a compiler that supports {} in AltiVec vector declarations."
>
>     # Disable runtime cpudetection if we cannot generate AltiVec code or
>     # AltiVec is disabled by the user.

This generates "#include <#include <altivec.h>>". The inc_altivec_h
variable should be changed to not include the full include statement
but just the header filename instead.

Greetings,
Adrian


More information about the MPlayer-cvslog mailing list