diff configure @ 12141:fd203b7df912

altivec support under netbsd, patch by Matthew Green
author alex
date Tue, 06 Apr 2004 16:13:52 +0000
parents c3cce8454ee5
children 77ff303c0eaa
line wrap: on
line diff
--- a/configure	Tue Apr 06 12:23:09 2004 +0000
+++ b/configure	Tue Apr 06 16:13:52 2004 +0000
@@ -878,6 +878,18 @@
 	    _altivec=yes
 	fi
     fi
+    # only gcc 3.4 works reliably with altivec code under netbsd 
+    if netbsd ; then
+	case $cc_version in
+	    2*|3.0*|3.1*|3.2*|3.3*)
+		;;
+	    *)
+		if [ `sysctl -n machdep.altivec` -eq 1 ]; then
+		    _altivec=yes
+		fi
+		;;
+	esac
+    fi
     if test "$_altivec" = yes; then
         echores "$proc altivec"
     else