nginx/auto/cc
Andrew Clayton 35510ddc94 Configure: fix gcc version detection in some corner cases
If the "gcc version ... " string appeared within "Configured with:", it
was picked up rather than the real gcc version string. This might then
break the configure scripts due to a malformed NGX_COMPILER macro.

The simple fix is to look for "gcc version ... " at the start of the
line, rather than anywhere within.

Suggested-by: Aleksei Bavshin <a.bavshin@nginx.com>
Closes: https://github.com/nginx/nginx/issues/1278
2026-05-01 22:43:35 +01:00
..
acc Internal md5 and sha1 implementations are now always used. 2016-06-30 18:57:39 +03:00
bcc Configure: use .exe for binaries for all win32 compilers. 2017-06-06 19:37:34 +03:00
ccc Copyright updated. 2012-01-18 15:07:43 +00:00
clang Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
conf Win32: removed unneeded wildcard in NGX_CC_NAME test for msvc. 2023-02-23 18:15:53 +03:00
gcc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
icc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
msvc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00
name Configure: fix gcc version detection in some corner cases 2026-05-01 22:43:35 +01:00
owc Configure: use .exe for binaries for all win32 compilers. 2017-06-06 19:37:34 +03:00
sunc Configure: ensure we get the "built by ..." line in nginx -V. 2025-11-04 16:11:53 +00:00