From 193e5bdec4e7cd8be8586cdcc40c9fdcc8571b60 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 24 Sep 2015 21:44:09 -0400 Subject: build system: when set, verify that CC passes as a valid compiler. --- configure | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure') diff --git a/configure b/configure index f3eca4e..2e1357a 100755 --- a/configure +++ b/configure @@ -168,6 +168,10 @@ common_defaults() native_defaults() { # toolchain + if [ x"$CC" != x ]; then + $CC -dM -E - < /dev/null > /dev/null || exit 2 + fi + [ -z "$mb_native_cc" ] && mb_native_cc=$CC [ -z "$mb_native_cc" ] && mb_native_cc='cc' $mb_native_cc -dM -E - < /dev/null > /dev/null 2>/dev/null || mb_native_cc= -- cgit v1.2.3