1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-29 14:30:34 +02:00

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.
This commit is contained in:
Andy Wingo 2018-07-02 10:47:15 +02:00
parent 0593a9aed7
commit 2d84803884
2 changed files with 4 additions and 0 deletions

View file

@ -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 ;;

View file

@ -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],