From 816719c8d4144fc84580196db35af97b300ff0eb Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 14 Aug 2013 10:54:20 +0200 Subject: [PATCH] * configure.ac: Error if no $BUILD_CC could be found. Reported by: DevHC. --- ChangeLog | 5 +++++ configure.ac | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 04edc7138..0a1aa516e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-08-14 Vladimir Serbinenko + + * configure.ac: Error if no $BUILD_CC could be found. + Reported by: DevHC. + 2013-08-14 Vladimir Serbinenko * grub-core/kern/i386/coreboot/init.c: Fix compilation on diff --git a/configure.ac b/configure.ac index 4fe20a3e9..eb9c9fd3d 100644 --- a/configure.ac +++ b/configure.ac @@ -406,8 +406,8 @@ fi # Check for host and build compilers. # HOST_CC=$CC -AC_CHECK_PROGS(BUILD_CC, [gcc egcs cc], - [AC_MSG_ERROR([none of gcc, egcs and cc is found. set BUILD_CC manually.])]) +AC_CHECK_PROGS(BUILD_CC, [gcc egcs cc]) +test -z "$BUILD_CC" && AC_MSG_ERROR([none of gcc, egcs and cc is found. set BUILD_CC manually.]) # For gnulib. gl_INIT