gnu ld version check in libstdc++-v3/acinclude.m4

Paolo Bonzini paolo.bonzini@lu.unisi.ch
Tue Feb 20 13:20:00 GMT 2007


>       ldver=`$LD --version 2>/dev/null | head -1 | \
> !            sed -e 's/GNU ld version \(([^(]*)\)\? \?\([0-9.][0-9.]*\).*/\2/'`
                                            ^^^^

You want [^)] here.

Also, replace \? with \{0,1\} as it is more portable.

Ok with those changes.  Still, please post the link to the revision (in 
viewsvn) in order to spot more regex silliness.

Paolo



More information about the Libstdc++ mailing list