changeset 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 b1b3d79011b9
children e0077bdf5ee5
files configure
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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
         ;;