Change plugins to use the already-compiled toolchain.
authorChris Hanson <org/chris-hanson/cph>
Fri, 16 Nov 2018 07:03:45 +0000 (23:03 -0800)
committerChris Hanson <org/chris-hanson/cph>
Fri, 16 Nov 2018 07:03:45 +0000 (23:03 -0800)
26 files changed:
src/Makefile.in
src/blowfish/Makefile.am
src/blowfish/compile.sh
src/blowfish/configure.ac
src/configure.ac
src/edwin/Makefile.am
src/edwin/compile.sh
src/edwin/configure.ac
src/gdbm/Makefile.am
src/gdbm/compile.sh
src/gdbm/configure.ac
src/imail/Makefile.am
src/imail/compile.sh
src/imail/configure.ac
src/mcrypt/Makefile.am
src/mcrypt/compile.sh
src/mcrypt/configure.ac
src/pgsql/Makefile.am
src/pgsql/compile.sh
src/pgsql/configure.ac
src/x11-screen/Makefile.am
src/x11-screen/compile.sh
src/x11-screen/configure.ac
src/x11/Makefile.am
src/x11/compile.sh
src/x11/configure.ac

index 219821bd5b2bfb66e7d33cccf2fc2eed26ca63ee..ab78d479d290ac32c2243774141ea41c20e49b3c 100644 (file)
@@ -119,6 +119,19 @@ all-native: all-xml
 @IF_X11@all-native: all-x11
 @IF_X11_SCREEN@all-native: all-x11-screen
 
+# Plugins all depend on this target to make sure that they can use it
+# to compile themselves.
+.PHONY: all-toolchain
+all-toolchain: microcode/scheme
+all-toolchain: lib/runtime.com
+all-toolchain: lib/all.com
+all-toolchain: all-compiler
+all-toolchain: all-cref
+all-toolchain: all-ffi
+all-toolchain: all-runtime
+all-toolchain: all-sf
+all-toolchain: all-star-parser
+
 # XXX This should really depend on microcode/gen-nonce and
 # microcode/extract-liarc-decls instead of microcode/scheme, but
 # splitting up dependencies within the microcode subdirectory is more
@@ -396,8 +409,8 @@ bundle-xml: xml/xml-unx.c
 all-blowfish: compile-blowfish
 
 .PHONY: compile-blowfish
-compile-blowfish: compile-runtime compile-ffi
-       (cd blowfish && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-blowfish: all-toolchain
+       (cd blowfish && $(MAKE))
 
 .PHONY: compile-blowfish-c
 compile-blowfish-c:
@@ -411,11 +424,11 @@ compile-blowfish-c:
 all-edwin: compile-edwin
 
 .PHONY: compile-edwin
-compile-edwin: compile-runtime compile-xml
+compile-edwin: all-toolchain compile-xml
 @IF_BLOWFISH@compile-edwin: compile-blowfish
 @IF_GDBM@compile-edwin: compile-gdbm
 @IF_X11@compile-edwin: compile-x11
-       (cd edwin && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+       (cd edwin && $(MAKE))
 
 ################
 # gdbm
@@ -425,8 +438,8 @@ compile-edwin: compile-runtime compile-xml
 all-gdbm: compile-gdbm
 
 .PHONY: compile-gdbm
-compile-gdbm: compile-runtime compile-ffi
-       (cd gdbm && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-gdbm: all-toolchain
+       (cd gdbm && $(MAKE))
 
 .PHONY: compile-gdbm-c
 compile-gdbm-c:
@@ -440,8 +453,8 @@ compile-gdbm-c:
 all-imail: compile-imail
 
 .PHONY: compile-imail
-compile-imail: compile-runtime compile-sos compile-edwin compile-star-parser
-       (cd imail && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-imail: all-toolchain compile-sos compile-edwin
+       (cd imail && $(MAKE))
 
 ################
 # mcrypt
@@ -451,8 +464,8 @@ compile-imail: compile-runtime compile-sos compile-edwin compile-star-parser
 all-mcrypt: compile-mcrypt
 
 .PHONY: compile-mcrypt
-compile-mcrypt: compile-runtime compile-ffi
-       (cd mcrypt && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-mcrypt: all-toolchain
+       (cd mcrypt && $(MAKE))
 
 .PHONY: compile-mcrypt-c
 compile-mcrypt-c:
@@ -466,8 +479,8 @@ compile-mcrypt-c:
 all-pgsql: compile-pgsql
 
 .PHONY: compile-pgsql
-compile-pgsql: compile-runtime compile-ffi
-       (cd pgsql && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-pgsql: all-toolchain
+       (cd pgsql && $(MAKE))
 
 .PHONY: compile-pgsql-c
 compile-pgsql-c:
@@ -481,8 +494,8 @@ compile-pgsql-c:
 all-x11: compile-x11
 
 .PHONY: compile-x11
-compile-x11: compile-runtime compile-ffi
-       (cd x11 && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-x11: all-toolchain
+       (cd x11 && $(MAKE))
 
 .PHONY: compile-x11-c
 compile-x11-c:
@@ -496,8 +509,8 @@ compile-x11-c:
 all-x11-screen: compile-x11-screen
 
 .PHONY: compile-x11-screen
-compile-x11-screen: compile-runtime compile-x11 compile-edwin
-       (cd x11-screen && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-x11-screen: all-toolchain compile-x11 compile-edwin
+       (cd x11-screen && $(MAKE))
 
 #####################
 ### Cross compilation
index 12f666774a8351d2a40066419cea972a8d5f421f..04ae7aef607f96eaef2f0dfedc0ad7a88f3c2483 100644 (file)
@@ -25,7 +25,7 @@
 ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)blowfish
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -57,10 +57,9 @@ blowfish-shim.c: stamp-shim
 blowfish-const.c: stamp-shim
 blowfish-types.bin: stamp-shim
 stamp-shim: blowfish-shim.h $(cdecls)
-       touch stamp-shim
        echo '(generate-shim "blowfish" "#include \"blowfish-shim.h\"")' \
-       | $(MIT_SCHEME_EXE) --batch-mode \
-       || rm stamp-shim
+           | $(MIT_SCHEME_EXE) --batch-mode
+       echo "done" > $@
 
 blowfish-const.bin: blowfish-const.scm
        echo '(sf "blowfish-const")' | $(MIT_SCHEME_EXE) --batch-mode
@@ -70,8 +69,8 @@ blowfish-const.scm: blowfish-const
 
 @MIT_SCHEME_DEPS@
 stamp-scheme: stamp-shim $(sources) blowfish.pkg
-       touch stamp-scheme
-       if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+       echo "done" > $@
 
 CLEANFILES = blowfish-const* blowfish-shim.c
 CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
index 6b5f9d9df45a5106efd59dba28d4d27840ecae00..55dbe832f80bd85cbeac8e2822347d394d772780 100755 (executable)
@@ -36,5 +36,4 @@ report=blowfish-$suffix.crf
 if [ -s "$report" ]; then
     echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
-    exit 1
 fi
index 1d818e79b6bcd8063abad72abc68f55af6e1bc6d..b1d1d9de15b2740d593a0ae18a4129768f7656b8 100644 (file)
@@ -123,26 +123,26 @@ if test "${with_openssl}" != no; then
 fi
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 if test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
     MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
                              echo "          (directory-pathname" ;\
                              echo "           (system-library-pathname" ;\
                              echo '            "mit-scheme.h"))))' ) \
-                           | ${MIT_SCHEME_EXE} --batch-mode`
+                           | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_CC_TYPE}" = x; then
     MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
-                        | ${MIT_SCHEME_EXE} --batch-mode`
+                        | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 MIT_SCHEME_PKD="blowfish-${MIT_SCHEME_OS_SUFFIX}.pkd"
@@ -170,7 +170,7 @@ ${MIT_SCHEME_PKD}: stamp-scheme"
 docdir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)'
 
 AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_CFLAGS])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_INCLUDEDIR])
index 8cc73871ce0d63534409ed16d85129b31550ff0d..aac501cdcf158a24073fe1d6b3c734d33583cff8 100644 (file)
@@ -391,6 +391,10 @@ export MIT_SCHEME_INCLUDEDIR
 export MIT_SCHEME_OS_SUFFIX
 export MIT_SCHEME_CC_TYPE
 
+# Plugins use this one
+MIT_SCHEME_TOOLCHAIN_EXE=../run-build
+export MIT_SCHEME_TOOLCHAIN_EXE
+
 AC_CONFIG_SUBDIRS([microcode])
 if test x"${enable_blowfish}" = xyes; then
     AC_CONFIG_SUBDIRS([blowfish])
index ff758bd1b41ceeb40582590f687eca701223fdc9..67fed9061cb7dfe13df0254475dda6d00d37b197 100644 (file)
@@ -24,7 +24,7 @@
 
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)edwin
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -42,8 +42,8 @@ include $(srcdir)/source-dependencies.am
 edwin.bld: stamp-scheme
 edwin-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme
 stamp-scheme: $(sources) edwin.ldr edwin.pkg
-       touch stamp-scheme
-       if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+       echo "done" > $@
 
 CLEANFILES = *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd *.bld
 CLEANFILES += stamp-scheme
index c63e39c4c080d10d3959cb656b79bde44237feeb..bd220283b665dc2b73631e903474aba6e5473d62 100755 (executable)
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or (at
 # your option) any later version.
-# 
+#
 # MIT/GNU Scheme is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 # General Public License for more details.
-# 
+#
 # You should have received a copy of the GNU General Public License
 # along with MIT/GNU Scheme; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
@@ -27,6 +27,7 @@
 
 set -e
 : ${MIT_SCHEME_EXE=mit-scheme}
+echo ${MIT_SCHEME_EXE}
 ${MIT_SCHEME_EXE} --batch-mode <<\EOF
 
 (begin
@@ -37,5 +38,6 @@ suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
 report=edwin-$suffix.crf
 if [ -s "$report" ]; then
+    echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
 fi
index 10e0148e438cf76891792c9881f2d271155fd03c..bad9afe12ca3e8ca23c17111b1924d5d12955947 100644 (file)
@@ -35,19 +35,19 @@ AM_INIT_AUTOMAKE
 AC_PROG_INSTALL
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 if test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
index f196ec55a6c02cc73bf2c439b7b3ee6ed2186df3..ff6883c24df76a740136825f3921d2eef58fb371 100644 (file)
@@ -25,7 +25,7 @@
 ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)gdbm
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -57,10 +57,9 @@ gdbm-shim.c: stamp-shim
 gdbm-const.c: stamp-shim
 gdbm-types.bin: stamp-shim
 stamp-shim: gdbm-shim.h $(cdecls)
-       touch stamp-shim
        echo '(generate-shim "gdbm" "#include \"gdbm-shim.h\"")' \
-       | $(MIT_SCHEME_EXE) --batch-mode \
-       || rm stamp-shim
+           | $(MIT_SCHEME_EXE) --batch-mode
+       echo "done" > $@
 
 gdbm-const.bin: gdbm-const.scm
        echo '(sf "gdbm-const")' | $(MIT_SCHEME_EXE) --batch-mode
@@ -70,8 +69,8 @@ gdbm-const.scm: gdbm-const
 
 @MIT_SCHEME_DEPS@
 stamp-scheme: stamp-shim $(sources) gdbm.pkg
-       touch stamp-scheme
-       if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+       echo "done" > $@
 
 CLEANFILES = gdbm-const* gdbm-shim.c
 CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
index 04df7ca996e8dfbf6c1d779d289a3681acb50a8b..b6f8c39efd93cfece48dcb539b77a0310094b1ef 100755 (executable)
@@ -36,5 +36,4 @@ report=gdbm-$suffix.crf
 if [ -s "$report" ]; then
     echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
-    exit 1
 fi
index c48e642ba84057152b40a566c21d67d18bd0e824..c0c52744b2af78914dfa70f4233558ce395ad897 100644 (file)
@@ -78,26 +78,26 @@ AC_CHECK_HEADER([gdbm.h],[],[
 LIBS="-lgdbm"
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 if test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
     MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
                              echo "          (directory-pathname" ;\
                              echo "           (system-library-pathname" ;\
                              echo '            "mit-scheme.h"))))' ) \
-                           | ${MIT_SCHEME_EXE} --batch-mode`
+                           | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_CC_TYPE}" = x; then
     MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
-                        | ${MIT_SCHEME_EXE} --batch-mode`
+                        | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 MIT_SCHEME_PKD="gdbm-${MIT_SCHEME_OS_SUFFIX}.pkd"
@@ -126,7 +126,7 @@ docdir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)'
 
 AC_SUBST([MIT_SCHEME_PROJECT])
 AC_SUBST([MIT_CFLAGS])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_INCLUDEDIR])
 AC_SUBST([MIT_SCHEME_PKD])
index 21eb79f619a09a74b4bc393ff9c5e06f4baf6d3d..e4b55cb57a45a09693f9e0598623c316689a2cf9 100644 (file)
@@ -24,7 +24,7 @@
 
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)imail
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -79,8 +79,8 @@ imap-syntax.bci: stamp-scheme
 imap-syntax.com: stamp-scheme
 imail-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme
 stamp-scheme: $(sources) imail.pkg
-       touch stamp-scheme
-       if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+       echo "done" > $@
 
 CLEANFILES = *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
 CLEANFILES += stamp-scheme
index 83fc7cf7f83ecfbc42709c85566c59360b9a6c0c..6ca22ee9cc41554c8d664adde839ff5ce86c9770 100755 (executable)
@@ -34,5 +34,6 @@ suffix=`echo "(display (microcode-id/operating-system-suffix))" \
        | ${MIT_SCHEME_EXE} --batch-mode`
 report=imail-$suffix.crf
 if [ -s "$report" ]; then
+    echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
 fi
index 4e86a4b0bf813dcf366df9822144189174fd8817..953f84086b4b6af9c9687f3ed5394c19012c76de 100644 (file)
@@ -35,22 +35,22 @@ AM_INIT_AUTOMAKE
 AC_PROG_INSTALL
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 if test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 # Install plugin docs in Scheme's docdir.
 docdir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)'
 
 AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_OS_SUFFIX])
 AC_CONFIG_FILES([Makefile])
index d891d6a359ff82d907a219d00dde0cda95354b3d..8a28de2838ad5bf4a402025a59d74019f12bb4f4 100644 (file)
@@ -25,7 +25,7 @@
 ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)mcrypt
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -57,10 +57,9 @@ mcrypt-shim.c: stamp-shim
 mcrypt-const.c: stamp-shim
 mcrypt-types.bin: stamp-shim
 stamp-shim: mcrypt-shim.h $(cdecls)
-       touch stamp-shim
        echo '(generate-shim "mcrypt" "#include \"mcrypt-shim.h\"")' \
-       | $(MIT_SCHEME_EXE) --batch-mode \
-       || rm stamp-shim
+           | $(MIT_SCHEME_EXE) --batch-mode
+       echo "done" > $@
 
 mcrypt-const.bin: mcrypt-const.scm
        echo '(sf "mcrypt-const")' | $(MIT_SCHEME_EXE) --batch-mode
@@ -70,8 +69,8 @@ mcrypt-const.scm: mcrypt-const
 
 @MIT_SCHEME_DEPS@
 stamp-scheme: stamp-shim $(sources) mcrypt.pkg
-       touch stamp-scheme
-       if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+       echo "done" > $@
 
 CLEANFILES = mcrypt-const* mcrypt-shim.c
 CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
index 20003883d8b7bd78e5027ce0aa0fba4426e27f6b..83047304f93624925c6a0bba2ddcc98e30e5dcc1 100755 (executable)
@@ -36,5 +36,4 @@ report=mcrypt-$suffix.crf
 if [ -s "$report" ]; then
     echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
-    exit 1
 fi
index 28b6e93744d61cdccf5d2e795e707c7b47efc415..8af778e3b8b451979f6abbf72973fc8c86d9e7b3 100644 (file)
@@ -108,26 +108,26 @@ CFLAGS="${MCRYPT_CFLAGS} ${CFLAGS}"
 LIBS="${LIBS} ${MCRYPT_LIBS}"
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 rif test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
     MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
                              echo "          (directory-pathname" ;\
                              echo "           (system-library-pathname" ;\
                              echo '            "mit-scheme.h"))))' ) \
-                           | ${MIT_SCHEME_EXE} --batch-mode`
+                           | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_CC_TYPE}" = x; then
     MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
-                        | ${MIT_SCHEME_EXE} --batch-mode`
+                        | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 MIT_SCHEME_PKD="mcrypt-${MIT_SCHEME_OS_SUFFIX}.pkd"
@@ -153,7 +153,7 @@ ${MIT_SCHEME_PKD}: stamp-scheme"
 
 AC_SUBST([MIT_SCHEME_PROJECT])
 AC_SUBST([MIT_CFLAGS])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_INCLUDEDIR])
 AC_SUBST([MIT_SCHEME_PKD])
index 06c500ea23bbe518f570988d1b8b59acd003268c..f27fd05607198642a9bfc447a5f4aac98136d68c 100644 (file)
@@ -25,7 +25,7 @@
 ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)pgsql
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -57,10 +57,9 @@ pgsql-shim.c: stamp-shim
 pgsql-const.c: stamp-shim
 pgsql-types.bin: stamp-shim
 stamp-shim: pgsql-shim.h $(cdecls)
-       touch stamp-shim
        echo '(generate-shim "pgsql" "#include \"pgsql-shim.h\"")' \
-       | $(MIT_SCHEME_EXE) --batch-mode \
-       || rm stamp-shim
+           | $(MIT_SCHEME_EXE) --batch-mode
+       echo "done" > $@
 
 pgsql-const.bin: pgsql-const.scm
        echo '(sf "pgsql-const")' | $(MIT_SCHEME_EXE) --batch-mode
@@ -70,8 +69,8 @@ pgsql-const.scm: pgsql-const
 
 @MIT_SCHEME_DEPS@
 stamp-scheme: stamp-shim $(sources) pgsql.pkg
-       touch stamp-scheme
-       if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+       echo "done" > $@
 
 CLEANFILES = pgsql-const* pgsql-shim.c
 CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
index c6abb752313ef1d323d1e8f739d079c798f1e0ad..867dd9940df7d4a14f64c107b917b53af75440bf 100755 (executable)
@@ -36,5 +36,4 @@ report=pgsql-$suffix.crf
 if [ -s "$report" ]; then
     echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
-    exit 1
 fi
index 74342a77c02d6b15a80ce23661ad73d58277f358..a315aacee9826548859e3b69499961e1ab36685e 100644 (file)
@@ -109,26 +109,26 @@ AC_DEFINE([HAVE_LIBPQ_FE_H], [1],
          [Define to 1 if you have the <libpq-fe.h> header file.])
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 if test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
     MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
                              echo "          (directory-pathname" ;\
                              echo "           (system-library-pathname" ;\
                              echo '            "mit-scheme.h"))))' ) \
-                           | ${MIT_SCHEME_EXE} --batch-mode`
+                           | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_CC_TYPE}" = x; then
     MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
-                        | ${MIT_SCHEME_EXE} --batch-mode`
+                        | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 MIT_SCHEME_PKD="pgsql-${MIT_SCHEME_OS_SUFFIX}.pkd"
@@ -154,7 +154,7 @@ ${MIT_SCHEME_PKD}: stamp-scheme"
 
 AC_SUBST([MIT_SCHEME_PROJECT])
 AC_SUBST([MIT_CFLAGS])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_INCLUDEDIR])
 AC_SUBST([MIT_SCHEME_PKD])
index ccaab4ba9aa416dc9661360645fc331121312da2..46e168813724d4d07b478562567e32ec31880ad0 100644 (file)
@@ -24,7 +24,7 @@
 
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)x11-screen
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -41,8 +41,8 @@ scmlib_sub_DATA += make.scm @MIT_SCHEME_PKD@
 
 @MIT_SCHEME_DEPS@
 stamp-scheme: $(sources) x11-screen.pkg
-       touch stamp-scheme
-       if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+       echo "done" > $@
 
 CLEANFILES = *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
 CLEANFILES += stamp-scheme
index 781e5dc9145e4a1750f2bd58050256139324102a..e70d1d8f24b62c6be3ccb595acca9fcf3e8e10f7 100755 (executable)
@@ -36,5 +36,4 @@ report=x11-screen-$suffix.crf
 if [ -s "$report" ]; then
     echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
-    exit 1
 fi
index b3ac05f66f3df0e7b03a3fa4348dc425357f36a9..19386b2ac3284a70744f2eb8800dac25e345dfd0 100644 (file)
@@ -35,19 +35,19 @@ AM_INIT_AUTOMAKE
 AC_PROG_INSTALL
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 if test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_CC_TYPE}" = x; then
     MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
-                        | ${MIT_SCHEME_EXE} --batch-mode`
+                        | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 MIT_SCHEME_PKD="x11-screen-${MIT_SCHEME_OS_SUFFIX}.pkd"
@@ -72,7 +72,7 @@ MIT_SCHEME_DEPS="${MIT_SCHEME_DEPS}
 ${MIT_SCHEME_PKD}: stamp-scheme"
 
 AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_PKD])
 AC_SUBST([MIT_SCHEME_SCMs])
index 14db1303d55fae8ac8aa742bf617e17492ddcc98..50b7d0d5d65fc7d43d553c125ecb1bd4db633b70 100644 (file)
@@ -25,7 +25,7 @@
 ACLOCAL_AMFLAGS = -I m4
 EXTRA_DIST = autogen.sh
 
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
 scmlibdir = @MIT_SCHEME_LIBDIR@
 scmlib_subdir = $(scmlibdir)x11
 scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@@ -70,7 +70,7 @@ x11-const.scm: x11-const$(EXEEXT)
 
 @MIT_SCHEME_DEPS@
 stamp-scheme: stamp-shim $(sources) x11-const.bin x11.pkg
-       ./compile.sh
+       MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
        echo "done" > $@
 
 MOSTLYCLEANFILES = $(scmlib_LTLIBRARIES) x11-const
index b158101ffe6f63ccc8f1d5a30cfb9875fe9c5052..6fdc7e6e885936d6fba84664ce797c983640e39e 100755 (executable)
@@ -36,5 +36,4 @@ report=x11-$suffix.crf
 if [ -s "$report" ]; then
     echo "$0: warning: $report is not empty"
     awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
-    exit 1
 fi
index ab3bdad8363c9afa45ab59a374ae520968104d28..78033369e664b0f2c423ceae0e35b6d46a88206e 100644 (file)
@@ -100,26 +100,26 @@ if test "${no_x}" != yes; then
 fi
 
 MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
 if test x"${MIT_SCHEME_LIBDIR}" = x; then
     MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
                         echo "          (system-library-directory-pathname)))" ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+                      | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
     MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
                              echo "          (directory-pathname" ;\
                              echo "           (system-library-pathname" ;\
                              echo '            "mit-scheme.h"))))' ) \
-                           | ${MIT_SCHEME_EXE} --batch-mode`
+                           | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
     MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
-                          | ${MIT_SCHEME_EXE} --batch-mode`
+                          | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 if test x"${MIT_SCHEME_CC_TYPE}" = x; then
     MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
-                        | ${MIT_SCHEME_EXE} --batch-mode`
+                        | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
 fi
 
 MIT_SCHEME_PKD="x11-${MIT_SCHEME_OS_SUFFIX}.pkd"
@@ -146,7 +146,7 @@ ${MIT_SCHEME_PKD}: stamp-scheme"
 AC_SUBST([MIT_CFLAGS])
 AC_SUBST([MIT_LIBS])
 AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
 AC_SUBST([MIT_SCHEME_INCLUDEDIR])
 AC_SUBST([MIT_SCHEME_PKD])