From: Richard Levitte Date: Fri, 9 Aug 2002 07:32:38 +0000 (+0000) Subject: Parse version numbers prefixed with text (egcs does that, even with X-Git-Tag: OpenSSL_0_9_6g~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=262e9b70d72c2b8fb1d6ff4cc4c9a6f2aab23227;p=openssl Parse version numbers prefixed with text (egcs does that, even with -dumpversion). PR: 203, part 1 --- diff --git a/config b/config index 5f4ed18f0e..40ad0fe6cf 100755 --- a/config +++ b/config @@ -384,6 +384,9 @@ done 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.