From 2d8480388463f4a520823533b3de65120a2ae413 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Mon, 2 Jul 2018 10:47:15 +0200 Subject: [PATCH] Wire JIT availability check into Guile configure * acinclude.m4 (GUILE_ENABLE_JIT): Add missing AC_CANONICAL_TARGET. * configure.ac: Add check if JIT is available. --- acinclude.m4 | 1 + configure.ac | 3 +++ 2 files changed, 4 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 0de17390d..3b9a330ca 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -581,6 +581,7 @@ AC_DEFUN([GUILE_CONFIG_SCRIPT],[AC_CONFIG_FILES([$1],[chmod +x $1])]) AC_DEFUN([GUILE_ENABLE_JIT], [ JIT_AVAILABLE=no + AC_CANONICAL_TARGET AC_MSG_CHECKING([if JIT code generation supported for target CPU]) case "$target_cpu" in i?86|x86_64|amd64) JIT_AVAILABLE=yes ;; diff --git a/configure.ac b/configure.ac index 082a62110..72686e710 100644 --- a/configure.ac +++ b/configure.ac @@ -141,6 +141,9 @@ AC_ARG_ENABLE(debug-malloc, [Define this if you want to debug scm_must_malloc/realloc/free calls.]) fi) +# Check if JIT is available. +GUILE_ENABLE_JIT + SCM_I_GSC_GUILE_DEBUG=0 AC_ARG_ENABLE(guile-debug, [AS_HELP_STRING([--enable-guile-debug],