This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



      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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]