X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=config;h=3ddf4bb46e4b5c0c633a884df386700009264cd6;hp=56aad1d70b3748f8f61ce706294949214d0c8a0d;hb=257e206da6b42181b0dc8976792164c4d9cff89b;hpb=767f68cc806d44d5180d15e2c28924c834116b7f 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