diff configure @ 18753:45342b9b2789

Change integer to string comparison in hw.optional.altivec test since non-AltiVec machines return a blank instead of 0. patch by Tim Wojtulewicz timwoj**at**ieee**dot**org
author diego
date Mon, 19 Jun 2006 09:16:42 +0000
parents b342fd9f332e
children 1ba0aff3ed0a
line wrap: on
line diff
--- a/configure	Mon Jun 19 09:15:46 2006 +0000
+++ b/configure	Mon Jun 19 09:16:42 2006 +0000
@@ -1207,7 +1207,7 @@
       Darwin)
 	proc=`$_cpuinfo | grep "Processor type" | cut -f 3 -d ' ' | sed 's/ppc//'`
 	if [ `sysctl -n hw.vectorunit` -eq 1 -o \
-	    "`sysctl -n hw.optional.altivec 2>/dev/null`" -eq 1 ]; then
+	    "`sysctl -n hw.optional.altivec 2> /dev/null`" = "1" ]; then
 	    _altivec=yes
 	fi
         ;;