aboutsummaryrefslogtreecommitdiff
path: root/config/open-axiom.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/open-axiom.m4')
-rw-r--r--config/open-axiom.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/config/open-axiom.m4 b/config/open-axiom.m4
index 8e47aeb2..9ce055e7 100644
--- a/config/open-axiom.m4
+++ b/config/open-axiom.m4
@@ -207,14 +207,17 @@ OPENAXIOM_PROG_LISP
OPENAXIOM_LISP_FLAVOR
OPENAXIOM_REJECT_ROTTED_LISP
OPENAXIOM_HOST_LISP_CPU_PRECISION
+## Are we using compilers from GNU?
oa_gnu_compiler=no
AC_PROG_CC
AC_PROG_CXX
+if test x$GCC = xyes || test x$GXX = xyes; then
+ oa_gnu_compiler=yes
+fi
## Augment C and C++ compiler flags with ABI directives as appropriate
## before we proceed to infer other host datatype properties.
if test -n "$openaxiom_host_lisp_precision"; then
- if test x$GCC = xyes || test x$GXX = xyes; then
- oa_gnu_compiler=yes
+ if test x$oa_gnu_compiler = xyes; then
CPPFLAGS="$CPPFLAGS -m$openaxiom_host_lisp_precision"
LDFLAGS="$LDFLAGS -m$openaxiom_host_lisp_precision"
## else, cross fingers and pray.