diff options
author | bodo <bodo> | 1999-05-19 16:50:16 +0000 |
---|---|---|
committer | bodo <bodo> | 1999-05-19 16:50:16 +0000 |
commit | 0cd187dbb1abd14fefd07853cdd243da6dfbfa31 (patch) | |
tree | 0005e6d61deefa0434ea7e900f67b9a7b7fe4ff2 /config | |
parent | d3f333d35ffea4cc8356615db22d9862e44be9d8 (diff) | |
download | openssl-0cd187dbb1abd14fefd07853cdd243da6dfbfa31.tar.gz |
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-x | config | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |