Don't use built-in Scheme executables; provide env var to override.
authorChris Hanson <org/chris-hanson/cph>
Sun, 20 Sep 2009 02:03:23 +0000 (19:03 -0700)
committerChris Hanson <org/chris-hanson/cph>
Sun, 20 Sep 2009 02:03:23 +0000 (19:03 -0700)
src/Makefile.in
src/etc/create-makefiles.sh
src/etc/make-native.sh
src/microcode/makegen/makeinit.sh

index 42403dcb0ada52fa28d16176c7ecb0a4b3bd2aae..b8b6a83faddf7dbf5aa3ae6aa92f1cf5b00ff7fa 100644 (file)
@@ -60,6 +60,9 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 
 # **** END BOILERPLATE ****
 
+MIT_SCHEME_NATIVE = mit-scheme-native
+MIT_SCHEME_C = mit-scheme-c
+
 LIARC_BOOT_BUNDLES = compiler cref sf star-parser
 LIARC_BUNDLES = $(LIARC_BOOT_BUNDLES) edwin imail sos ssp xml
 
@@ -72,11 +75,11 @@ EDDIR = $(AUXDIR)/edwin
 all: @ALL_TARGET@
 
 all-native: compile-microcode
-       @$(top_srcdir)/etc/compile.sh mit-scheme-native --compiler
+       @$(top_srcdir)/etc/compile.sh $(MIT_SCHEME_NATIVE) --compiler
        $(MAKE) build-bands
 
 all-liarc:
-       @$(top_srcdir)/etc/c-compile.sh mit-scheme-c --compiler
+       @$(top_srcdir)/etc/c-compile.sh $(MIT_SCHEME_C) --compiler
        $(MAKE) compile-liarc-bundles build-bands
 
 compile-microcode:
@@ -92,8 +95,8 @@ build-bands:
 # **** Make liarc distribution from native ****
 
 liarc-dist:
-       @$(top_srcdir)/etc/compile-boot-compiler.sh mit-scheme-native
-       @$(top_srcdir)/etc/c-prepare.sh mit-scheme-native
+       @$(top_srcdir)/etc/compile-boot-compiler.sh $(MIT_SCHEME_NATIVE)
+       @$(top_srcdir)/etc/c-prepare.sh $(MIT_SCHEME_NATIVE)
        $(MAKE) distclean
 
 # **** Build liarc from distribution ****
index 94ec04961f9d98e01c0dbba7e06f4ac7f309d053..c90c77ab343002e637d96e032cb8df2f62421a3b 100755 (executable)
@@ -49,7 +49,8 @@ run_cmd ln -s machine/compiler.pkg compiler/.
 
 BUNDLES="6001 compiler cref edwin imail sf sos ssp star-parser xdoc xml"
 
-: ${MIT_SCHEME_EXE='mit-scheme'}
+: ${MIT_SCHEME_EXE:=mit-scheme}
+export MIT_SCHEME_EXE
 
 run_cmd ${MIT_SCHEME_EXE} --heap 4000 <<EOF
 (begin
index ced4819712a40350d5e972aa4395314db88d2dd8..405baf86fef89dbf281afb567cb542178cb2e51e 100755 (executable)
@@ -39,11 +39,14 @@ if [ ${FASTP} = yes ]; then
     exec ./configure "${@}"
 fi
 
+: ${MIT_SCHEME_EXE:=mit-scheme-c}
+export MIT_SCHEME_EXE
+
 run_cmd ./Setup.sh
-MIT_SCHEME_EXE=mit-scheme-c run_configure --prefix=`pwd`/boot-root
+run_configure --prefix=`pwd`/boot-root
 run_cmd etc/compile-boot-compiler.sh mit-scheme-c
 run_cmd_in_dir compiler run_make compile-liarc-bundle
-run_cmd etc/native-prepare.sh mit-scheme-c
+run_cmd etc/native-prepare.sh "${MIT_SCHEME_EXE}"
 run_make compile-microcode
 
 run_cmd_in_dir runtime ../microcode/scheme --library ../lib \
index 18b715f5356778cc755119a3febcf9c0c08507a8..b20dc9d94df5907bf68eb8e8d5200fbafb6230d6 100755 (executable)
 # Generate "Makefile.in" from "Makefile.in.in".  Requires "config.h",
 # because dependencies are generated by running GCC -M on the source
 # files, which refer to "config.h".
-if [ -z "${SCHEME_LARGE}" ]; then
-    SCHEME_LARGE="scheme --large"
-fi
-${SCHEME_LARGE} <<EOF
+
+${MIT_SCHEME_EXE:=mit-scheme} <<EOF
 (begin
   (load "makegen/makegen.scm")
   (generate-makefile))