Opened 18 years ago
Closed 18 years ago
Last modified 5 years ago
#8411 closed patch
configure patch: detect more GCC versions
|Reported by:||lordhoto||Owned by:||fingolfin|
this patch will fix the configure script in the way, that it will detect gcc version as 3.4.3-20050110 and accept them.
Ticket imported from: #1171304. Ticket imported from: patches/516.
Change History (7)
by , 18 years ago
comment:1 by , 18 years ago
comment:2 by , 18 years ago
i just copied it from the way it's done with 2.95.[0-9][-.]* ... i never used shell regex too... but maybe anyone else can fix it
comment:3 by , 18 years ago
* means something different in a shell pattern than in a regular expression. It simply matches any string.
3.[0-9].[0-9][-.]* will match anything looking like 3.4.3.anything or 3.4.3-anything.
comment:4 by , 18 years ago
Ah OK, makes sense. Thanks for the clarification, Willem.
comment:5 by , 18 years ago
|Status:||new → closed|
|Summary:||configure patch → configure patch: detect more GCC versions|
comment:6 by , 5 years ago
Could you explain the logic behind the regex? In particular: [-.]* This means, if I read it right: Match an arbitary sequence of dashes and dots. How does that fit the version string you mention above? Maybe the shell does regex differently than I think (I never used shell regex much, only use regex inside Perl etc.)