From 316559569ed04ddb4aaac162c01732003bc806d1 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Mon, 19 Nov 2018 19:57:38 -0800 Subject: [PATCH] Pass IS_NATIVE_RELEASE to microcode during configuration. --- src/configure.ac | 1 + src/microcode/configure.ac | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/configure.ac b/src/configure.ac index 0c586350a..64a1d3788 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -389,6 +389,7 @@ etc/create-makefiles.sh "${MIT_SCHEME_EXE}" "${mit_scheme_compiler_target}" \ compiler/configure "${mit_scheme_compiler_target}" || exit $? # configure scripts for subdirs care about these +export IS_NATIVE_RELEASE export MIT_SCHEME_EXE export MIT_SCHEME_LIBDIR export MIT_SCHEME_INCLUDEDIR diff --git a/src/microcode/configure.ac b/src/microcode/configure.ac index 704099d74..076a2a31b 100644 --- a/src/microcode/configure.ac +++ b/src/microcode/configure.ac @@ -128,7 +128,11 @@ AC_ARG_ENABLE([debugging], AC_ARG_ENABLE([native-code], AS_HELP_STRING([--enable-native-code], [Support native compiled code if available [[yes]]])) -: ${enable_native_code='yes'} +if test x"${IS_NATIVE_RELEASE}" != x; then + : ${enable_native_code=${IS_NATIVE_RELEASE}} +else + : ${enable_native_code=yes} +fi AC_ARG_WITH([compiler-target], AS_HELP_STRING([--with-compiler-target], -- 2.25.1