More changes so that installation works sort-of right.
authorChris Hanson <org/chris-hanson/cph>
Mon, 22 Oct 2018 08:06:31 +0000 (01:06 -0700)
committerChris Hanson <org/chris-hanson/cph>
Mon, 22 Oct 2018 08:06:31 +0000 (01:06 -0700)
src/Makefile.in
src/blowfish/configure.ac
src/configure.ac
src/edwin/configure.ac
src/gdbm/configure.ac
src/imail/configure.ac
src/mcrypt/configure.ac
src/pgsql/configure.ac
src/x11-screen/Makefile.am
src/x11-screen/configure.ac
src/x11/configure.ac

index 9285043cb7cec1a81fa5e1bfbae64630fc8bdb3a..a3ad07fe78f89de1b211b2f192d30e99d8e44b82 100644 (file)
@@ -64,7 +64,7 @@ LIARC_BOOT_BUNDLES = compiler cref sf star-parser
 LIARC_BUNDLES = $(LIARC_BOOT_BUNDLES) ffi sos ssp xml
 
 SUBDIRS = $(INSTALLED_SUBDIRS) win32 xdoc
-INSTALLED_SUBDIRS = microcode runtime $(LIARC_BUNDLES)
+INSTALLED_SUBDIRS = microcode runtime $(OPTION_SUBDIRS) $(LIARC_BUNDLES)
 OPTION_SUBDIRS = @OPTION_SUBDIRS@
 
 MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
index 62ec8516432346c8847519f1f1a62d0a00b49210..51ff03ecf474f9a80cc1cb145061cbee4b8d9dc1 100644 (file)
@@ -124,14 +124,16 @@ fi
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
-MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
-                        echo "          (directory-pathname" ;\
-                        echo "           (system-library-pathname" ;\
-                        echo '            "mit-scheme.h"))))' ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
+default_includedir=`( echo "(display (->namestring" ;\
+                      echo "          (directory-pathname" ;\
+                      echo "           (system-library-pathname" ;\
+                      echo '            "mit-scheme.h"))))' ) \
+                    | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_INCLUDEDIR=${default_includedir}}
 
 cc_type=`echo "(display microcode-id/compiled-code-type)" \
         | ${MIT_SCHEME_EXE} --batch-mode`
index 34adfde50c78127a8e46f9ca67c6f61cb80fd1f6..007adb6cf6c4b480a7da5730fefd2750ce06cd61 100644 (file)
@@ -156,6 +156,8 @@ fi
 
 AUXDIR_NAME=mit-scheme-${mit_scheme_native_code}
 AUXDIR='$(libdir)'/${AUXDIR_NAME}
+MIT_SCHEME_LIBDIR=${AUXDIR}/
+MIT_SCHEME_INCLUDEDIR=${AUXDIR}/
 
 # Please keep the following messages synchronized with the messages in
 # these files:
@@ -246,7 +248,6 @@ directory, which is usually \`/usr/local/lib/mit-scheme-${mit_scheme_native_code
 ])
     fi
 fi
-export MIT_SCHEME_EXE
 
 # A 32bit host running LIAR/svm needs a large heap.
 small_words='(= 4 (vector-ref (gc-space-status) 0))'
@@ -341,6 +342,11 @@ etc/create-makefiles.sh "${MIT_SCHEME_EXE}" "${mit_scheme_compiler_target}" \
   || exit $?
 compiler/configure "${mit_scheme_compiler_target}" || exit $?
 
+# configure scripts for subdirs care about these
+export MIT_SCHEME_EXE
+export MIT_SCHEME_LIBDIR
+export MIT_SCHEME_INCLUDEDIR
+
 AC_CONFIG_SUBDIRS([microcode])
 if test x"${enable_blowfish}" = xyes; then
     AC_CONFIG_SUBDIRS([blowfish])
index 187cf70c8c5d2d2aa1278f085decc42fd22e246a..418722063f050bb14199ceb51a2b76d7b3db47ad 100644 (file)
@@ -36,9 +36,10 @@ AC_PROG_INSTALL
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
                      | ${MIT_SCHEME_EXE} --batch-mode`
 MIT_SCHEME_SOURCES=`./sources.sh scm`
index 73e4b5cf15a22eb11abcbaaee27ffad646c75e35..c5bf3443df85ec3c6f6b03e62dad89c3afd017ba 100644 (file)
@@ -79,14 +79,16 @@ LIBS="-lgdbm"
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
-MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
-                        echo "          (directory-pathname" ;\
-                        echo "           (system-library-pathname" ;\
-                        echo '            "mit-scheme.h"))))' ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
+default_includedir=`( echo "(display (->namestring" ;\
+                      echo "          (directory-pathname" ;\
+                      echo "           (system-library-pathname" ;\
+                      echo '            "mit-scheme.h"))))' ) \
+                    | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_INCLUDEDIR=${default_includedir}}
 
 cc_type=`echo "(display microcode-id/compiled-code-type)" \
         | ${MIT_SCHEME_EXE} --batch-mode`
index 62006b380a341d5b997a5dda02cf3484403f10e7..977c1b36448fb9a830e5c00b2f17369cbb22116c 100644 (file)
@@ -36,9 +36,10 @@ AC_PROG_INSTALL
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
 MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
                      | ${MIT_SCHEME_EXE} --batch-mode`
 
index 54947a6f4251358e04c5491b4d98ce296e8cf05d..484c6293be91e89305150b899c117f4795314286 100644 (file)
@@ -109,14 +109,16 @@ LIBS="${LIBS} ${MCRYPT_LIBS}"
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
-MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
-                        echo "          (directory-pathname" ;\
-                        echo "           (system-library-pathname" ;\
-                        echo '            "mit-scheme.h"))))' ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
+default_includedir=`( echo "(display (->namestring" ;\
+                      echo "          (directory-pathname" ;\
+                      echo "           (system-library-pathname" ;\
+                      echo '            "mit-scheme.h"))))' ) \
+                    | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_INCLUDEDIR=${default_includedir}}
 
 cc_type=`echo "(display microcode-id/compiled-code-type)" \
         | ${MIT_SCHEME_EXE} --batch-mode`
index af5371d2d43799d36ab1ada81de9dfd8a679df3d..d63b536322adece01f51dc12482b2defff95ed1c 100644 (file)
@@ -110,14 +110,16 @@ AC_DEFINE([HAVE_LIBPQ_FE_H], [1],
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
-MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
-                        echo "          (directory-pathname" ;\
-                        echo "           (system-library-pathname" ;\
-                        echo '            "mit-scheme.h"))))' ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
+default_includedir=`( echo "(display (->namestring" ;\
+                      echo "          (directory-pathname" ;\
+                      echo "           (system-library-pathname" ;\
+                      echo '            "mit-scheme.h"))))' ) \
+                    | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_INCLUDEDIR=${default_includedir}}
 
 cc_type=`echo "(display microcode-id/compiled-code-type)" \
         | ${MIT_SCHEME_EXE} --batch-mode`
index f748f9dab39f3e5f5012c7585c755fb52d067e42..1e6bc8c8bb0fdbeefa87645fe94514fd90c505c6 100644 (file)
@@ -55,7 +55,7 @@ TAGS_DEPENDENCIES = $(sources)
 
 EXTRA_DIST += $(sources) compile.sh x11-screen.pkg
 EXTRA_DIST += x11-screen-check.sh x11-screen-test.scm
-EXTRA_DIST += make.scm optiondb.scm
+EXTRA_DIST += make.scm optiondb.scm compile.scm
 
 install-data-hook:
        ( echo '(add-plugin "x11-screen" "@MIT_SCHEME_PROJECT@"'; \
index 25636bbab98cbcc15ac16639ce9f52b1e196480b..fa933642707f5cfe79769bc6b7f95dcbc0112313 100644 (file)
@@ -36,9 +36,10 @@ AC_PROG_INSTALL
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
 
 cc_type=`echo "(display microcode-id/compiled-code-type)" \
         | ${MIT_SCHEME_EXE} --batch-mode`
@@ -69,7 +70,6 @@ ${MIT_SCHEME_PKD}: stamp-scheme"
 AC_SUBST([MIT_SCHEME_PROJECT])
 AC_SUBST([MIT_SCHEME_EXE])
 AC_SUBST([MIT_SCHEME_LIBDIR])
-AC_SUBST([MIT_SCHEME_INCLUDEDIR])
 AC_SUBST([MIT_SCHEME_PKD])
 AC_SUBST([MIT_SCHEME_SCMs])
 AC_SUBST([MIT_SCHEME_BCIs])
index 6260f43efcb17a4b6a10a9365c5fe78577adc31e..8d679210011803e9a69ec227e6b336cccea79060 100644 (file)
@@ -99,14 +99,16 @@ fi
 
 MIT_SCHEME_PROJECT=mit-scheme
 : ${MIT_SCHEME_EXE=mit-scheme}
-MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
-                    echo "          (system-library-directory-pathname)))" ) \
-                  | ${MIT_SCHEME_EXE} --batch-mode`
-MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
-                        echo "          (directory-pathname" ;\
-                        echo "           (system-library-pathname" ;\
-                        echo '            "mit-scheme.h"))))' ) \
-                      | ${MIT_SCHEME_EXE} --batch-mode`
+default_libdir=`( echo "(display (->namestring" ;\
+                 echo "          (system-library-directory-pathname)))" ) \
+               | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_LIBDIR=${default_libdir}}
+default_includedir=`( echo "(display (->namestring" ;\
+                      echo "          (directory-pathname" ;\
+                      echo "           (system-library-pathname" ;\
+                      echo '            "mit-scheme.h"))))' ) \
+                    | ${MIT_SCHEME_EXE} --batch-mode`
+: ${MIT_SCHEME_INCLUDEDIR=${default_includedir}}
 
 cc_type=`echo "(display microcode-id/compiled-code-type)" \
         | ${MIT_SCHEME_EXE} --batch-mode`