Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openssl/openssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-06-06 12:59:22 +0400
committerRichard Levitte <levitte@openssl.org>2002-06-06 12:59:22 +0400
commit64ed18ef201683b809f8630ebea81b3969151848 (patch)
tree6de26e54d3e3263b2d8630cc91151fd4571a7571 /config
parent72645b83bb53db146f127f73e477e0e2f543c9c2 (diff)
Recent changes from 0.9.6-stable.
Diffstat (limited to 'config')
-rwxr-xr-xconfig8
1 files changed, 5 insertions, 3 deletions
diff --git a/config b/config
index b95af94c7a..f619e3463b 100755
--- a/config
+++ b/config
@@ -381,11 +381,13 @@ done
# figure out if gcc is available and if so we use it otherwise
# we fallback to whatever cc does on the system
-GCCVER=`(gcc --version) 2>/dev/null`
+GCCVER=`(gcc --version) 2>/dev/null | head -1`
if [ "$GCCVER" != "" ]; then
CC=gcc
- # then strip off whatever prefix Cygnus prepends the number with...
- GCCVER=`echo $GCCVER | sed 's/^[a-z]*\-//'`
+ # then strip off whatever prefix Cygnus as well as GCC 3.1 prepends
+ # the number with... Hopefully, this will work for any future prefixes
+ # as well.
+ GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z ()]*\-//'`
# peak single digit before and after first dot, e.g. 2.95.1 gives 29
GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'`
else