summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>1999-05-19 18:50:16 +0200
committerBodo Möller <bodo@openssl.org>1999-05-19 18:50:16 +0200
commit15a99e3d9d35271027dd0e25be450d4043e01a97 (patch)
tree072530ddfa43e2908d48ad30b1b8201a32cab2cd /config
parentBugfix: GCCVAR contains two lines ("Reading specs ..." and the actual (diff)
downloadopenssl-15a99e3d9d35271027dd0e25be450d4043e01a97.tar.xz
openssl-15a99e3d9d35271027dd0e25be450d4043e01a97.zip
Convert gcc version detection (for solaris-usparc-gcc) into a form
better suited for finding what went wrong in case that some compiler versions create an output we can't parse.
Diffstat (limited to 'config')
-rwxr-xr-xconfig5
1 files changed, 4 insertions, 1 deletions
diff --git a/config b/config
index 56aad1d70b..3ddf4bb46e 100755
--- a/config
+++ b/config
@@ -333,7 +333,10 @@ esac
# gcc < 2.8 does not support -mcpu=ultrasparc
if [ "$OUT" = solaris-usparc-gcc ]
then
- if [ `echo $GCCVER | sed 's/.*version //;s/\.//;s/\..*//'` -lt 28 ]
+ GCCVERMAJOR="`echo $GCCVER | sed 's/.*version \([^.]*\).*/\1/`"
+ GCCVERMINOR="`echo $GCCVER | sed 's/.*version[^.]*\.\([^.]*\).*/\1/`"
+ echo "gcc version $GCCVERMAJOR.$GCCVERMINOR.x"
+ if [ $GCCVERMAJOR$GCCVERMINOR -lt 28 ]
then
OUT=solaris-usparc-oldgcc
fi