diff options
author | Richard Levitte <levitte@openssl.org> | 2002-06-06 11:07:07 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-06-06 11:07:07 +0000 |
commit | 079dbd7143c8484bf45781333448551475df3374 (patch) | |
tree | cb246044c5af448d921a5ab8e337888bdbd21b9d /config | |
parent | b054a68532953ae5b3e7cb3fb0cf902a8eced655 (diff) | |
download | openssl-new-079dbd7143c8484bf45781333448551475df3374.tar.gz |
Recent changes from HEAD.
Diffstat (limited to 'config')
-rwxr-xr-x | config | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -390,11 +390,13 @@ exit 0 # figure out if gcc is available and if so we use it otherwise # we fallback to whatever cc does on the system -GCCVER=`(gcc --version) 2>/dev/null` +GCCVER=`(gcc --version) 2>/dev/null | head -1` if [ "$GCCVER" != "" ]; then CC=gcc - # then strip off whatever prefix Cygnus prepends the number with... - GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'` + # then strip off whatever prefix Cygnus as well as GCC 3.1 prepends + # the number with... Hopefully, this will work for any future prefixes + # as well. + GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z ()]*\-//'` # peak single digit before and after first dot, e.g. 2.95.1 gives 29 GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` else |