changeset 10357:31ec4f475845

automatic altivec support detection on linux
author alex
date Tue, 01 Jul 2003 15:33:07 +0000
parents 7b358cd956fd
children 03f84d95397a
files configure
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Jul 01 09:29:31 2003 +0000
+++ b/configure	Tue Jul 01 15:33:07 2003 +0000
@@ -872,6 +872,11 @@
 	_march='-mcpu=750'
 	_mcpu='-mtune=750'
     fi
+    if linux ; then
+	if test -n "`$_cpuinfo | grep altivec`"; then
+	    _altivec=yes
+	fi
+    fi
     if darwin ; then
 	if [ `sysctl -n hw.vectorunit` -eq 1 ]; then
 	    _altivec=yes