The branch master has been updated
       via  8f3bc096af053506e6910c52729a557ac1cd4ee4 (commit)
       via  c5c0cac5c1a1604513087fd812c9d4f76649b989 (commit)
      from  3b92e5189965b343603931d58992b8e92b212d49 (commit)


- Log -----------------------------------------------------------------
commit 8f3bc096af053506e6910c52729a557ac1cd4ee4
Author: Andy Polyakov <[email protected]>
Date:   Thu Jun 23 16:04:37 2016 +0200

    ./config: minor cleanup.
    
    Reviewed-by: Rich Salz <[email protected]>

commit c5c0cac5c1a1604513087fd812c9d4f76649b989
Author: Andy Polyakov <[email protected]>
Date:   Thu Jun 23 15:52:02 2016 +0200

    ./config: detect x32-only environment.
    
    RT#4583
    
    Reviewed-by: Rich Salz <[email protected]>

-----------------------------------------------------------------------

Summary of changes:
 config | 40 +++++++++++-----------------------------
 1 file changed, 11 insertions(+), 29 deletions(-)

diff --git a/config b/config
index 2e02ae3..1d33126 100755
--- a/config
+++ b/config
@@ -416,19 +416,6 @@ if [ "$SYSTEM" = "SunOS" ]; then
   fi
 fi
 
-if [ "${SYSTEM}-${MACHINE}" = "Linux-alpha" ]; then
-  # check for Compaq C, expected output is "blah-blah C Vx.x"
-  CCCVER=`(ccc -V 2>&1) 2>/dev/null | \
-       egrep -e '.* C V[0-9]\.[0-9]' | \
-       sed 's/.* C V\([0-9]\)\.\([0-9]\).*/\1\2/'`
-  CCCVER=${CCCVER:-0}
-  if [ $CCCVER -gt 60 ]; then
-    CC=ccc     # overrides gcc!!! well, ccc outperforms inoticeably
-               # only on hash routines and des, otherwise gcc (2.95)
-               # keeps along rather tight...
-  fi
-fi
-
 if [ "${SYSTEM}" = "AIX" ]; then       # favor vendor cc over gcc
     (cc) 2>&1 | grep -iv "not found" > /dev/null && CC=cc
 fi
@@ -640,21 +627,15 @@ case "$GUESSOS" in
        #fi
        OUT="linux64-s390x"
        ;;
-  x86_64-*-linux?) OUT="linux-x86_64" ;;
-  *86-*-linux2) OUT="linux-elf"
-       if [ "$GCCVER" -gt 28 ]; then
-          if grep '^model.*Pentium' /proc/cpuinfo >/dev/null ; then
-           options="$options -march=pentium"
-          fi
-          if grep '^model.*Pentium Pro' /proc/cpuinfo >/dev/null ; then
-           options="$options -march=pentiumpro"
-          fi
-          if grep '^model.*K6' /proc/cpuinfo >/dev/null ; then
-           options="$options -march=k6"
-          fi
-        fi ;;
-  *-*-linux1) OUT="linux-aout" ;;
-  *-*-linux2) OUT="linux-generic32" ;;
+  x86_64-*-linux?)
+       if $CC -dM -E -x c /dev/null 2>&1 | grep -q ILP32 > /dev/null; then
+           OUT="linux-x32"
+       else
+           OUT="linux-x86_64"
+       fi ;;
+  *86-*-linux2) OUT="linux-elf" ;;
+  *86-*-linux1) OUT="linux-aout" ;;
+  *-*-linux?) OUT="linux-generic32" ;;
   sun4[uv]*-*-solaris2)
        OUT="solaris-sparcv9-$CC"
        ISA64=`(isainfo) 2>/dev/null | grep sparcv9`
@@ -725,9 +706,10 @@ case "$GUESSOS" in
                        *ELF*)  OUT="BSD-x86-elf" ;;
                        *)      OUT="BSD-x86"; options="$options no-sse2" ;;
                        esac ;;
+  *-*-*bsd*)           OUT="BSD-generic32" ;;
+
   x86_64-*-haiku)      OUT="haiku-x86_64" ;;
   *-*-haiku)           OUT="haiku-x86" ;;
-  *-*-*bsd*)           OUT="BSD-generic32" ;;
 
   *-*-osf)             OUT="osf1-alpha-cc" ;;
   *-*-tru64)           OUT="tru64-alpha-cc" ;;
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to