diff options
author | Richard Levitte <levitte@openssl.org> | 2002-08-09 11:32:31 +0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-08-09 11:32:31 +0400 |
commit | 1d2a3fe246f8feb581e5fba1caf192f4fba4906f (patch) | |
tree | 4cacf2bac40998436edc8e350375392081bd9221 /config | |
parent | 00c8546d214c11572c32fa6fa5136697f8bffd73 (diff) |
Parse version numbers prefixed with text (egcs does that, even with
-dumpversion).
PR: 203, part 1
Diffstat (limited to 'config')
-rwxr-xr-x | config | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -393,6 +393,9 @@ exit 0 GCCVER=`(gcc -dumpversion) 2>/dev/null` if [ "$GCCVER" != "" ]; then CC=gcc + # then strip off whatever prefix egcs prepends the number with... + # Hopefully, this will work for any future prefixes as well. + GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z]*\-//'` # Since gcc 3.1 gcc --version behaviour has changed. gcc -dumpversion # does give us what we want though, so we use that. We just just the # major and minor version numbers. |