summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-25 15:38:58 -0400
committermidipix <writeonce@midipix.org>2016-06-25 15:55:26 -0400
commit6b2e0c03fe73c63e42c20b2564908c9d60f1531c (patch)
treea7364f6edd93229fb3cb151f0d87d18391085c7b /configure
parentbd640fef5f83479429d231e959032841d8428bd7 (diff)
downloadslibtool-6b2e0c03fe73c63e42c20b2564908c9d60f1531c.tar.bz2
slibtool-6b2e0c03fe73c63e42c20b2564908c9d60f1531c.tar.xz
build system: add a test for legacy gcc versions.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
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