2 Nov
2005
2 Nov
'05
9:12 p.m.
Hi,
+ ;; + Darwin) proc=`$_cpuinfo | grep "Processor type" | cut -f 3 -d ' ' | sed 's/ppc//'` - if [ `sysctl -n hw.vectorunit` -eq 1 ]; then - _altivec=yes - elif [ "`sysctl -n hw.optional.altivec 2>/dev/null`" = 1 ]; then + if [ `sysctl -n hw.vectorunit` -eq 1 -o + "`sysctl -n hw.optional.altivec 2>/dev/null`" -eq 1 ]; then _altivec=yes fi
I'm not really familiar with shell scripting, but -o means fallback or what? Because originally it tried hw.vectorunit first, later hw.optional.altivec as this changing in some MacOSX version. Or we are not going to support old OSX releases? -- Alex Beregszaszi email: alex@fsn.hu Free Software Network cell: +36 70 3144424