aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-06-02 02:02:49 +0000
committerdos-reis <gdr@axiomatics.org>2011-06-02 02:02:49 +0000
commit10634545f2faf10699a1a8214ded2da3a6ea3d52 (patch)
tree67c7c0f1fc9ced1604e96bd3f57f2e1e0a791927 /config
parenta1b6dac83f3727f506678689affedca0666aa753 (diff)
downloadopen-axiom-10634545f2faf10699a1a8214ded2da3a6ea3d52.tar.gz
* config/open-axiom.m4 (OPENAXIOM_HOST_COMPILERS): Set
oa_gnu_compiler right after test for C and C++ compilers.
Diffstat (limited to 'config')
-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.