From 433e1f9187406e2ac35ae2cedae53cb0e65e5f16 Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 25 2016 21:34:41 +0000 Subject: build system: add a test for legacy gcc versions. --- diff --git a/configure b/configure index cea3245..bbb469d 100755 --- a/configure +++ b/configure @@ -285,6 +285,10 @@ native_defaults() fi if [ -z "$mb_compiler" ]; then + $mb_native_cc -dM -E - < /dev/null | grep "^gcc" > /dev/null && mb_compiler='gcc' + fi + + if [ -z "$mb_compiler" ]; then $mb_native_cc -dM -E - < /dev/null | grep '__CPARSER__' > /dev/null && mb_compiler='cparser' fi