From: Sergei Trofimovich Date: Wed, 2 Jan 2013 13:19:36 +0000 (+0300) Subject: m4.include/mc-cflags.m4: report real compiler in MC_CHECK_ONE_CFLAG instead of 'gcc' X-Git-Tag: 4.8.8~31 X-Git-Url: https://repo.or.cz/w/midnight-commander.git/commitdiff_plain/4b3d88f07c8d68a245f86b72024cca28d9a3b340 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 Gentoo-bug: http://bugs.gentoo.org/449752 Signed-off-by: Sergei Trofimovich --- diff --git a/m4.include/mc-cflags.m4 b/m4.include/mc-cflags.m4 index a1e039cf6..6d250cb26 100644 --- a/m4.include/mc-cflags.m4 +++ b/m4.include/mc-cflags.m4 @@ -9,7 +9,7 @@ dnl @copyright Free Software Foundation, Inc. AC_DEFUN([MC_CHECK_ONE_CFLAG],[ - AC_MSG_CHECKING([whether gcc accepts $1]) + AC_MSG_CHECKING([whether ${CC} accepts $1]) safe_CFLAGS=$CFLAGS CFLAGS="$1"