Default to no-sse2 on selected platforms.
authorAndy Polyakov <appro@openssl.org>
Sat, 21 May 2005 16:52:30 +0000 (16:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 21 May 2005 16:52:30 +0000 (16:52 +0000)
config

diff --git a/config b/config
index 02d7de0266173a8ebafe881fec5d869874e4ebc5..7d330e4a54df5a1c26931848c832196283d17f93 100755 (executable)
--- a/config
+++ b/config
@@ -647,11 +647,14 @@ case "$GUESSOS" in
            OUT="solaris64-x86_64-$CC"
        else
            OUT="solaris-x86-$CC"
+           if [ `uname -r | sed -e 's/5\.//'` -lt 10 ]; then
+               options="$options no-sse2"
+           fi
        fi
        ;;
   *-*-sunos4)          OUT="sunos-$CC" ;;
 
-  *86*-*-bsdi4)                OUT="bsdi-elf-gcc" ;;
+  *86*-*-bsdi4)                OUT="bsdi-elf-gcc"; options="$options no-sse2" ;;
   alpha*-*-*bsd*)      OUT="BSD-generic64; options="$options -DL_ENDIAN" ;;
   powerpc64-*-*bsd*)   OUT="BSD-generic64; options="$options -DB_ENDIAN" ;;
   sparc64-*-*bsd*)     OUT="BSD-sparc64" ;;
@@ -659,7 +662,7 @@ case "$GUESSOS" in
   amd64-*-*bsd*)       OUT="BSD-x86_64" ;;
   *86*-*-*bsd*)                case "`(file -L /usr/lib/libc.so.*) 2>/dev/null`" in
                        *ELF*)  OUT="BSD-x86-elf" ;;
-                       *)      OUT="BSD-x86" ;;
+                       *)      OUT="BSD-x86"; options="$options no-sse2" ;;
                        esac ;;
   *-*-*bsd*)           OUT="BSD-generic32" ;;