From e15885e99a28ac2a33ceec5f9067bb0a76c3e4df Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 25 Jun 2016 15:38:58 -0400 Subject: build system: add a test for legacy gcc versions. --- configure | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure') diff --git a/configure b/configure index cea3245..bbb469d 100755 --- a/configure +++ b/configure @@ -284,6 +284,10 @@ native_defaults() $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 "^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 -- cgit v1.2.3