Pass IS_NATIVE_RELEASE to microcode during configuration.
authorChris Hanson <org/chris-hanson/cph>
Tue, 20 Nov 2018 03:57:38 +0000 (19:57 -0800)
committerChris Hanson <org/chris-hanson/cph>
Thu, 22 Nov 2018 06:28:28 +0000 (22:28 -0800)
src/configure.ac
src/microcode/configure.ac

index 0c586350a6900e7748d6d2d3a03aa14727e743e4..64a1d37884d035c5a4928dfa9137de5717e92b72 100644 (file)
@@ -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
index 704099d743135b44b8fd290b507ed4e1f179fbdc..076a2a31b32e71cafe0b01b54257213066df6219 100644 (file)
@@ -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],