From: Vladimir 'phcoder' Serbinenko Date: Wed, 14 Aug 2013 08:54:20 +0000 (+0200) Subject: * configure.ac: Error if no $BUILD_CC could be found. X-Git-Tag: grub-2.02-beta1~909 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=816719c8d4144fc84580196db35af97b300ff0eb;p=thirdparty%2Fgrub.git * configure.ac: Error if no $BUILD_CC could be found. Reported by: DevHC. --- 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