Make sure that any dash in the prefix before the version number is removed.
authorRichard Levitte <levitte@openssl.org>
Thu, 13 Jun 2002 21:11:57 +0000 (21:11 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 13 Jun 2002 21:11:57 +0000 (21:11 +0000)
PR: 96

config

diff --git a/config b/config
index 00e4c76919712849aa3679152c48eb070bed1a5d..775344ecab5ff4c24621e729a87d79e2b1ac4842 100755 (executable)
--- a/config
+++ b/config
@@ -396,7 +396,7 @@ if [ "$GCCVER" != "" ]; then
   # 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 ()]*\-//'`
+  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