Improve compiler string shown in version()

Peter Eisentraut <peter_e@gmx.net>

Commit: 8dd2ede3f82505c3fd041c1953524305df0732d1
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2011-05-06T20:01:50Z
Releases: 9.1.0
Improve compiler string shown in version()

With some compilers such as Clang and ICC emulating GCC, using a
version string of the form "GCC $version" can be quite misleading.
Also, a great while ago, the version output from gcc --version started
including the string "gcc", so it is redundant to repeat that.  In
order to support ancient GCC versions, we now prefix the result with
"GCC " only if the version output does not start with a letter.

Files

PathChange+/−
configure modified +2 −1
configure.in modified +2 −1