m4.include/mc-cflags.m4: report real compiler in MC_CHECK_ONE_CFLAG instead of 'gcc'
commit4b3d88f07c8d68a245f86b72024cca28d9a3b340
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 2 Jan 2013 13:19:36 +0000 (2 16:19 +0300)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 2 Jan 2013 13:22:21 +0000 (2 16:22 +0300)
treee8bf004a4f31405ca074f2cbd4dc1275bc7c91c9
parent5454fb9a8566cf328eee5096adf854aed7c46cca
m4.include/mc-cflags.m4: report real compiler in MC_CHECK_ONE_CFLAG instead of 'gcc'

Example use: CC=clang ./configure

Before the patch configure reported 'gcc' is being used:

    checking whether gcc accepts -Wcomment... yes
    checking whether gcc accepts -Wdeclaration-after-statement... yes
    checking whether gcc accepts -Wfloat-equal... yes
    checking whether gcc accepts -Wformat... yes

(config.log used proper ${CC})

After the patch it lies a bit less:

    checking whether clang accepts -Wcomment... yes
    checking whether clang accepts -Wdeclaration-after-statement... yes
    checking whether clang accepts -Wfloat-equal... yes
    checking whether clang accepts -Wformat... yes

Reported-by: Agostino Sarubbo <ago@gentoo.org>
Gentoo-bug: http://bugs.gentoo.org/449752
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
m4.include/mc-cflags.m4