From 4e5d58db1f36694c1f94af826aafa41de65e52da Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 25 2016 21:34:23 +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