comparison configure @ 26688:b898ca14e114

Prefer FSF-style AltiVec flags over Apple-style. FSF gcc is better than Apple gcc.
author diego
date Sat, 10 May 2008 14:57:13 +0000
parents 04a4bd6d7a5f
children 8eff880f638c
comparison
equal deleted inserted replaced
26687:04a4bd6d7a5f 26688:b898ca14e114
2416 # check if AltiVec is supported by the compiler, and how to enable it 2416 # check if AltiVec is supported by the compiler, and how to enable it
2417 echocheck "GCC AltiVec flags" 2417 echocheck "GCC AltiVec flags"
2418 cat > $TMPC << EOF 2418 cat > $TMPC << EOF
2419 int main(void) { return 0; } 2419 int main(void) { return 0; }
2420 EOF 2420 EOF
2421 # check for Darwin-style flags first, since gcc-3.3 (August Update 2421 cc_check -maltivec -mabi=altivec \
2422 # from Apple) on MacOS 10.2.8 accepts but ignores FSF-style flags...
2423 cc_check -faltivec && _altivec_gcc_flags=-faltivec \
2424 || cc_check -maltivec -mabi=altivec \
2425 && _altivec_gcc_flags="-maltivec -mabi=altivec" \ 2422 && _altivec_gcc_flags="-maltivec -mabi=altivec" \
2423 || cc_check -faltivec && _altivec_gcc_flags=-faltivec \
2426 || _altivec=no 2424 || _altivec=no
2427 echores "$_altivec_gcc_flags" 2425 echores "$_altivec_gcc_flags"
2428 2426
2429 # check if <altivec.h> should be included 2427 # check if <altivec.h> should be included
2430 echocheck "altivec.h" 2428 echocheck "altivec.h"