In message <[EMAIL PROTECTED]> on Mon, 10 Jun 2002 18:03:43 +0200, Lutz Jaenicke <[EMAIL PROTECTED]> said:
Lutz.Jaenicke> On Mon, Jun 10, 2002 at 04:53:36PM +0100, [EMAIL PROTECTED] wrote: Lutz.Jaenicke> > I've picked up the snapshot. There is a problem with the new code. Lutz.Jaenicke> > Lutz.Jaenicke> > GCCVER=`(gcc --version) 2>/dev/null | head -1` Lutz.Jaenicke> > if [ "$GCCVER" != "" ]; then Lutz.Jaenicke> > CC=gcc Lutz.Jaenicke> > # then strip off whatever prefix Cygnus as well as GCC 3.1 prepends Lutz.Jaenicke> > # the number with... Hopefully, this will work for any future prefixes Lutz.Jaenicke> > # as well. Lutz.Jaenicke> > GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z ()]*\-//'` Lutz.Jaenicke> > # peak single digit before and after first dot, e.g. 2.95.1 gives 29 Lutz.Jaenicke> > GCCVER=`echo $GCCVER | sed 's/\([0-9]\)\.\([0-9]\).*/\1\2/'` Lutz.Jaenicke> > else Lutz.Jaenicke> > CC=cc Lutz.Jaenicke> > fi Lutz.Jaenicke> > GCCVER=${GCCVER:-0} Lutz.Jaenicke> > Lutz.Jaenicke> > The problem is with Lutz.Jaenicke> > Lutz.Jaenicke> > GCCVER=`echo $GCCVER | sed 's/^[a-zA-Z ()]*\-//'` Lutz.Jaenicke> > Lutz.Jaenicke> > The \- doesn't work with gcc 3.1 which outputs Lutz.Jaenicke> > Lutz.Jaenicke> > gcc (GCC) 3.1. Lutz.Jaenicke> Lutz.Jaenicke> Hmm. From "cvs log config": Lutz.Jaenicke> Lutz.Jaenicke> revision 1.101 Lutz.Jaenicke> date: 2002/06/05 05:00:51; author: levitte; state: Exp; lines: +5 -3 Lutz.Jaenicke> Update the recognision of GCC version numbers to handle the prefix text Lutz.Jaenicke> that GCC 3.1 adds to the --version output Lutz.Jaenicke> Lutz.Jaenicke> Maybe the change for 1.101 (or similar fo the BRANCHes) was not sufficient. Lutz.Jaenicke> I have CC'ed Richard Levitte. Correct, the sed should probably be done in two steps instead of one. I'll see what I can do tomorrow (if I remember). -- Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED] Redakteur@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47 \ SWEDEN \ or +46-708-26 53 44 Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ Unsolicited commercial email is subject to an archival fee of $400. See <http://www.stacken.kth.se/~levitte/mail/> for more info. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]