4 # The make-config.sh script uses information about the target machine
5 # to set things up for compilation. It's vaguely like a stripped-down
6 # version of autoconf. It's intended to be run as part of make.sh. The
7 # only time you'd want to run it by itself is if you're trying to
8 # cross-compile the system or if you're doing some kind of
11 # This software is part of the SBCL system. See the README file for
14 # This software is derived from the CMU CL system, which was
15 # written at Carnegie Mellon University and released into the
16 # public domain. The software is in the public domain and is
17 # provided with absolutely no warranty. See the COPYING and CREDITS
18 # files for more information.
22 if [ "$OSTYPE" = "cygwin" -o "$OSTYPE" = "msys" ]
24 SBCL_PREFIX
="$PROGRAMFILES/sbcl"
26 SBCL_PREFIX
="/usr/local"
28 SBCL_XC_HOST
="sbcl --no-userinit --no-sysinit"
30 # Parse command-line options.
33 echo "Enter \"$0 --help\" for list of valid options."
39 FANCY_FEATURES
=":sb-core-compression :sb-xref-for-internals :sb-after-xc-core"
41 for dir
in `cd contrib ; echo *`; do
42 if [ -d "contrib/$dir" -a -f "contrib/$dir/Makefile" ]; then
43 CONTRIBS
="$CONTRIBS ${dir}"
46 SBCL_CONTRIB_BLOCKLIST
=${SBCL_CONTRIB_BLOCKLIST:-""}
48 perform_host_lisp_check
=no
52 if [ -z "$ANDROID_API" ]; then
58 # Split --foo=bar into --foo and bar.
61 # For ease of scripting skip valued options with empty
63 optarg
=`expr "X$option" : '[^=]*=\(.*\)'` || optarg_ok
=false
64 option
=`expr "X$option" : 'X\([^=]*=\).*'`
67 optarg
=`expr "X$option" : 'X--[^-]*-\(.*\)'` \
68 || bad_option
"Malformed feature toggle: $option"
69 option
=`expr "X$option" : 'X\(--[^-]*\).*'`
80 $optarg_ok && SBCL_PREFIX
=$optarg
83 $oparg_ok && SBCL_ARCH
=$optarg
86 $optarg_ok && SBCL_XC_HOST
=$optarg
89 $optarg_ok && SBCL_HOST_LOCATION
=$optarg
92 $optarg_ok && SBCL_TARGET_LOCATION
=$optarg
94 --dynamic-space-size=)
95 $optarg_ok && SBCL_DYNAMIC_SPACE_SIZE
=$optarg
98 WITH_FEATURES
="$WITH_FEATURES :$optarg"
99 if [ "$optarg" = "android" ]
105 WITHOUT_FEATURES
="$WITHOUT_FEATURES :$optarg"
108 SBCL_CONTRIB_BLOCKLIST
="$SBCL_CONTRIB_BLOCKLIST $optarg"
112 $optarg_ok && ANDROID_API
=$optarg
115 $optarg_ok && NDK
=$optarg
118 WITH_FEATURES
="$WITH_FEATURES $FANCY_FEATURES"
119 # Lower down we add :sb-thread for platforms where it can be built.
123 perform_host_lisp_check
=yes
126 bad_option
"Unknown command-line option to $0: \"$option\""
131 bad_option
"Unknown command-line option to $0: \"$option\""
140 if (test -f customize-target-features.lisp
&& \
141 (test -n "$WITH_FEATURES" ||
test -n "$WITHOUT_FEATURES"))
143 # Actually there's no reason why it would not work, but it would
144 # be confusing to say --with-thread only to have it turned off by
145 # customize-target-features.lisp...
146 echo "ERROR: Both customize-target-features.lisp, and feature-options"
147 echo "to make.sh present -- cannot use both at the same time."
151 if test "$print_help" = "yes"
154 \`make.sh' drives the SBCL build.
156 Usage: $0 [OPTION]...
158 Important: make.sh does not currently control the entirety of the
159 build: configuration file customize-target-features.lisp and certain
160 environment variables play a role as well. see file INSTALL for
164 -h, --help Display this help and exit.
166 --prefix=<path> Specify the install location.
168 Script install.sh installs SBCL under the specified prefix
169 path: runtime as prefix/bin/sbcl, additional files under
170 prefix/lib/sbcl, and documentation under prefix/share.
172 This option also affects the binaries: built-in default for
173 SBCL_HOME is: prefix/lib/sbcl/
175 Default prefix is: /usr/local
177 --dynamic-space-size=<size> Default dynamic-space size for target.
179 This specifies the default dynamic-space size for the SBCL
180 being built. If you need to control the dynamic-space size
181 of the host SBCL, use the --xc-host option.
183 If not provided, the default is platform-specific. <size> is
184 taken to be megabytes unless explicitly suffixed with Gb in
185 order to specify the size in gigabytes.
187 --with-<feature> Build with specified feature.
188 --without-<feature> Build wihout the specfied feature.
190 --fancy Build with several optional features:
194 Plus threading on platforms which support it.
196 --arch=<string> Specify the architecture to build for.
198 Mainly for doing x86 builds on x86-64.
200 --xc-host=<string> Specify the Common Lisp compilation host.
202 The string provided should be a command to invoke the
203 cross-compilation Lisp system in such a way, that it reads
204 commands from standard input, and terminates when it reaches end
205 of file on standard input.
209 "sbcl --disable-debugger --no-sysinit --no-userinit"
210 Use an existing SBCL binary as a cross-compilation
211 host even though you have stuff in your
212 initialization files which makes it behave in such a
213 non-standard way that it keeps the build from
214 working. Also disable the debugger instead of
215 waiting endlessly for a programmer to help it out
216 with input on *DEBUG-IO*. (This is the default.)
219 Use an existing SBCL binary as a cross-compilation
220 host, including your initialization files and
221 building with the debugger enabled. Not recommended
224 "lisp -noinit -batch"
225 Use an existing CMU CL binary as a cross-compilation
226 host when you have weird things in your .cmucl-init
229 --host-location=<string> Location of the source directory on compilation host
231 The string is passed to the command rsync to transfer the
232 necessary files between the target and host directories during
233 the make-target-*.sh steps of cross-compilation (cf. make.sh)
237 user@host-machine:/home/user/sbcl
238 Transfer the files to/from directory /home/user/sbcl
246 echo "SBCL_TEST_HOST=\"$SBCL_XC_HOST\"" > output
/build-config
247 . output
/build-config
# may come out differently due to escaping
249 if [ $perform_host_lisp_check = yes ]
251 if echo '(lisp-implementation-type)' |
$SBCL_TEST_HOST; then
254 echo "No working host Common Lisp implementation."
255 echo 'See ./INSTALL, the "SOURCE DISTRIBUTION" section'
260 # Running make.sh with different options without clean.sh in the middle
264 # Save prefix for make and install.sh.
265 echo "SBCL_PREFIX='$SBCL_PREFIX'" > output
/prefix.def
266 echo "$SBCL_DYNAMIC_SPACE_SIZE" > output
/dynamic-space-size.txt
268 # FIXME: Tweak this script, and the rest of the system, to support
269 # a second bootstrapping pass in which the cross-compilation host is
270 # known to be SBCL itself, so that the cross-compiler can do some
271 # optimizations (especially specializable arrays) that it doesn't
272 # know how to implement how in a portable way. (Or maybe that wouldn't
273 # require a second pass, just testing at build-the-cross-compiler time
274 # whether the cross-compilation host returns suitable values from
275 # UPGRADED-ARRAY-ELEMENT-TYPE?)
280 .
/generate-version.sh
282 # Now that we've done our option parsing and found various
283 # dependencies, write them out to a file to be sourced by other
286 echo "GNUMAKE=\"$GNUMAKE\"; export GNUMAKE" >> output
/build-config
287 echo "SBCL_XC_HOST=\"$SBCL_XC_HOST\"; export SBCL_XC_HOST" >> output
/build-config
288 if [ -n "$SBCL_HOST_LOCATION" ]; then
289 echo "SBCL_HOST_LOCATION=\"$SBCL_HOST_LOCATION\"; export SBCL_HOST_LOCATION" >> output
/build-config
291 if [ -n "$SBCL_TARGET_LOCATION" ]; then
292 echo "SBCL_TARGET_LOCATION=\"$SBCL_TARGET_LOCATION\"; export SBCL_TARGET_LOCATION" >> output
/build-config
294 echo "android=$android; export android" >> output
/build-config
296 # And now, sorting out the per-target dependencies...
308 sbcl_os
="gnu-kfreebsd"
317 echo unsupported BSD variant
: `uname`
323 sbcl_os
="dragonflybsd"
331 CYGWIN
* | WindowsNT | MINGW
* | MSYS
*)
338 echo unsupported OS
type: `uname`
344 if [ "$sbcl_os" = "win32" ] ; then
345 # Use preprocessor or makefile includes instead of copying if
346 # possible, to avoid unexpected use of the original, unchanged
347 # files when re-running only make-target-1 during development.
348 if echo "$1" |
egrep '[.][ch]$'; then
349 echo "#include \"$1\"" >"$2"
350 elif echo "$1" |
egrep '^Config[.]'; then
351 echo "include $1" >"$2"
356 # adb push doesn't like symlinks on unrooted devices.
363 remove_dir_safely
() {
364 if [ "$sbcl_os" = "win32" ] ; then
365 if [ -d "$1" ] ; then
367 elif [ -e "$1" ] ; then
368 echo "I'm afraid to remove non-directory $1."
372 if [ -h "$1" ] ; then
374 elif [ -w "$1" ] ; then
375 echo "I'm afraid to replace non-symlink $1 with a symlink."
381 echo //entering make-config.sh
383 echo //ensuring the existence of output
/ directory
384 if [ ! -d output
] ; then mkdir output
; fi
386 echo //guessing default target CPU architecture from
host architecture
389 uname_arch
=`adb shell uname -m`
391 uname_arch
=`uname -m`
395 *86) guessed_sbcl_arch
=x86
;;
396 i86pc
) guessed_sbcl_arch
=x86
;;
397 *x86_64
) guessed_sbcl_arch
=x86-64
;;
398 amd64
) guessed_sbcl_arch
=x86-64
;;
399 sparc
*) guessed_sbcl_arch
=sparc
;;
400 sun
*) guessed_sbcl_arch
=sparc
;;
401 *ppc
) guessed_sbcl_arch
=ppc
;;
402 ppc64
) guessed_sbcl_arch
=ppc
;;
403 ppc64le
) guessed_sbcl_arch
=ppc64
;; # is ok because there was never 32-bit LE
404 Power
*Macintosh
) guessed_sbcl_arch
=ppc
;;
405 ibmnws
) guessed_sbcl_arch
=ppc
;;
406 mips
*) guessed_sbcl_arch
=mips
;;
407 arm64
) guessed_sbcl_arch
=arm64
;;
408 *arm
*) guessed_sbcl_arch
=arm
;;
409 aarch64
) guessed_sbcl_arch
=arm64
;;
410 riscv32
) guessed_sbcl_arch
=riscv xlen
=32;;
411 riscv64
) guessed_sbcl_arch
=riscv xlen
=64;;
413 # If we're not building on a supported target architecture, we
414 # we have no guess, but it's not an error yet, since maybe
415 # target architecture will be specified explicitly below.
420 # Under Solaris, uname -m returns "i86pc" even if CPU is amd64.
421 if [ "$sbcl_os" = "sunos" ] && [ `isainfo -k` = "amd64" ]; then
422 guessed_sbcl_arch
=x86-64
425 # Under Darwin, uname -m returns "i386" even if CPU is x86_64.
426 # (I suspect this is not true any more - it reports "x86_64 for me)
427 if [ "$sbcl_os" = "darwin" ] && [ "`/usr/sbin/sysctl -n hw.optional.x86_64`" = "1" ]; then
428 guessed_sbcl_arch
=x86-64
431 # Under NetBSD, uname -m returns "evbarm" even if CPU is arm64.
432 if [ "$sbcl_os" = "netbsd" ] && [ `uname -p` = "aarch64" ]; then
433 guessed_sbcl_arch
=arm64
436 echo //setting up CPU-architecture-dependent information
437 if test -n "$SBCL_ARCH"
440 SBCL_ARCH
=`echo $SBCL_ARCH | tr '[A-Z]' '[a-z]' | tr _ -`
444 riscv32
) SBCL_ARCH
=riscv xlen
=32;;
445 riscv64
) SBCL_ARCH
=riscv xlen
=64;;
447 echo "Please choose between riscv32 and riscv64."
452 sbcl_arch
=${SBCL_ARCH:-$guessed_sbcl_arch}
453 echo sbcl_arch
=\"$sbcl_arch\"
454 if [ "$sbcl_arch" = "" ] ; then
455 echo "can't guess target SBCL architecture, please specify --arch=<name>"
462 arm64
) TARGET_TAG
=aarch64-linux-android
;;
463 arm
) TARGET_TAG
=armv7a-linux-androideabi
464 echo "Unsupported configuration"
467 x86
) TARGET_TAG
=i686-linux-android
468 echo "Unsupported configuration"
471 x86-64
) TARGET_TAG
=x86_64-linux-android
;;
473 HOST_TAG
=$sbcl_os-x86_64
474 TOOLCHAIN
=$NDK/toolchains
/llvm
/prebuilt
/$HOST_TAG
475 export CC
=$TOOLCHAIN/bin
/$TARGET_TAG$ANDROID_API-clang
476 echo "CC=$CC; export CC" >> output
/build-config
477 echo "NDK=$NDK" > output
/ndk-config
478 echo "HOST_TAG=$HOST_TAG" >> output
/ndk-config
479 echo "TARGET_TAG=$TARGET_TAG" >> output
/ndk-config
480 echo "TOOLCHAIN=$TOOLCHAIN" >> output
/ndk-config
481 echo "ANDROID_API=$ANDROID_API" >> output
/ndk-config
486 # If --fancy, enable threads on platforms where they can be built.
488 x86|x86-64|ppc|arm64|riscv
)
489 if [ "$sbcl_os" = "dragonflybsd" ]
491 echo "No threads on this platform."
493 WITH_FEATURES
="$WITH_FEATURES :sb-thread"
494 echo "Enabling threads due to --fancy."
498 echo "No threads on this platform."
506 WITH_FEATURES
="$WITH_FEATURES :sb-thread"
511 WITH_FEATURES
="$WITH_FEATURES :sb-thread"
517 # default to using paxctl to disable mprotect restrictions
518 if [ "x$(sysctl -n security.pax.mprotect.enabled 2>/dev/null)" = x1
-a \
519 "x$SBCL_PAXCTL" = x
]; then
520 echo "SBCL_PAXCTL=\"/usr/sbin/paxctl +m\"; export SBCL_PAXCTL" \
521 >> output
/build-config
525 # openbsd 6.0 and newer restrict mmap of RWX pages
526 if [ `uname -r | tr -d .` -gt 60 ]; then
527 rm -f tools-for-build
/mmap-rwx
528 LDFLAGS
="$LDFLAGS -Wl,-zwxneeded" $GNUMAKE -C tools-for-build mmap-rwx
-I ..
/src
/runtime
529 if ! .
/tools-for-build
/mmap-rwx
; then
530 echo "Can't mmap() RWX pages!"
531 echo "Is the current filesystem mounted with wxallowed?"
538 ltf
=`pwd`/local-target-features.lisp-expr
539 echo //initializing
$ltf
540 echo ';;;; This is a machine-generated file.' > $ltf
541 echo ';;;; Please do not edit it by hand.' >> $ltf
542 echo ';;;; See make-config.sh.' >> $ltf
543 echo "(lambda (features) (set-difference (union features (list :${sbcl_arch}$WITH_FEATURES" >> $ltf
545 # Automatically block sb-simd on non-x86 platforms, at least for now.
547 x86-64
) ;; *) SBCL_CONTRIB_BLOCKLIST
="$SBCL_CONTRIB_BLOCKLIST sb-simd" ;;
550 echo //setting up OS-dependent information
554 rm -f Config target-arch-os.h target-arch.h target-os.h target-lispregs.h
555 rm -f sbcl.mk sbcl.o libsbcl.a
556 # KLUDGE: these two logically belong in the previous section
557 # ("architecture-dependent"); it seems silly to enforce this in terms
558 # of the shell script, though. -- CSR, 2002-02-03
559 link_or_copy
$sbcl_arch-arch.h target-arch.h
560 link_or_copy
$sbcl_arch-lispregs.h target-lispregs.h
563 printf ' :unix :linux :elf' >> $ltf
565 arm64 | ppc64 | x86 | x86-64
)
566 printf ' :gcc-tls' >> $ltf
569 arm | arm64 | ppc | ppc64 | x86 | x86-64
)
570 printf ' :use-sys-mmap' >> $ltf
573 # If you add other platforms here, don't forget to edit
574 # src/runtime/Config.foo-linux too.
576 mips | arm | x86 | x86-64
)
577 printf ' :largefile' >> $ltf
582 link_or_copy Config.
$sbcl_arch-android Config
583 link_or_copy
$sbcl_arch-android-os.h target-arch-os.h
584 link_or_copy android-os.h target-os.h
586 link_or_copy Config.
$sbcl_arch-linux Config
587 link_or_copy
$sbcl_arch-linux-os.h target-arch-os.h
588 link_or_copy linux-os.h target-os.h
592 printf ' :unix :haiku :elf :int4-breakpoints' >> $ltf
593 link_or_copy Config.
$sbcl_arch-haiku Config
594 link_or_copy
$sbcl_arch-haiku-os.h target-arch-os.h
595 link_or_copy haiku-os.h target-os.h
598 printf ' :unix :bsd :elf' >> $ltf
599 # FIXME: can we enable :gcc-tls across all variants?
600 link_or_copy
$sbcl_arch-bsd-os.h target-arch-os.h
601 link_or_copy bsd-os.h target-os.h
604 printf ' :freebsd' >> $ltf
605 printf ' :gcc-tls' >> $ltf
606 if [ $sbcl_os = "gnu-kfreebsd" ]; then
607 printf ' :gnu-kfreebsd' >> $ltf
609 link_or_copy Config.
$sbcl_arch-$sbcl_os Config
612 printf ' :openbsd' >> $ltf
613 printf ' :gcc-tls' >> $ltf
614 link_or_copy Config.
$sbcl_arch-openbsd Config
617 printf ' :netbsd' >> $ltf
618 link_or_copy Config.
$sbcl_arch-netbsd Config
621 printf ' :dragonfly' >> $ltf
622 link_or_copy Config.
$sbcl_arch-dragonfly Config
625 echo unsupported BSD variant
: `uname`
631 printf ' :unix :bsd :darwin :mach-o' >> $ltf
632 if [ $sbcl_arch = "x86-64" ]; then
633 darwin_version
=`uname -r`
634 darwin_version_major
=${DARWIN_VERSION_MAJOR:-${darwin_version%%.*}}
636 if (( 8 < $darwin_version_major )); then
637 printf ' :inode64' >> $ltf
639 printf ' :gcc-tls' >> $ltf
641 if [ $sbcl_arch = "arm64" ]; then
642 printf ' :darwin-jit :gcc-tls' >> $ltf
645 echo "Android build is unsupported on darwin"
647 link_or_copy
$sbcl_arch-darwin-os.h target-arch-os.h
648 link_or_copy bsd-os.h target-os.h
649 link_or_copy Config.
$sbcl_arch-darwin Config
652 printf ' :unix :sunos :elf' >> $ltf
653 link_or_copy Config.
$sbcl_arch-sunos Config
654 link_or_copy
$sbcl_arch-sunos-os.h target-arch-os.h
655 link_or_copy sunos-os.h target-os.h
658 printf ' :win32' >> $ltf
660 # Required features -- Some of these used to be optional, but
661 # building without them is no longer considered supported:
663 # (Of course it doesn't provide dlopen, but there is
664 # roughly-equivalent magic nevertheless:)
665 printf ' :os-provides-dlopen' >> $ltf
666 printf ' :sb-thread :sb-safepoint' >> $ltf
668 link_or_copy Config.
$sbcl_arch-win32 Config
669 link_or_copy
$sbcl_arch-win32-os.h target-arch-os.h
670 link_or_copy win32-os.h target-os.h
673 echo unsupported OS
type: `uname`
679 # FIXME: Things like :c-stack-grows-..., etc, should be
680 # *derived-target-features* or equivalent, so that there was a nicer
681 # way to specify them then sprinkling them in this file. They should
682 # still be tweakable by advanced users, though, but probably not
683 # appear in *features* of target. #+/- should be adjusted to take
684 # them in account as well. At minimum the nicer specification stuff,
687 # (define-feature :dlopen (features)
688 # (union '(:bsd :linux :darwin :sunos) features))
690 # (define-feature :c-stack-grows-downwards-not-upwards (features)
691 # (member :x86 features))
695 . tools-for-build
/android_run.sh
700 if [ "$sbcl_os" = "darwin" ]; then
701 echo "Unsupported configuration"
704 if [ "$sbcl_os" = "win32" ]; then
705 # of course it doesn't provide dlopen, but there is
706 # roughly-equivalent magic nevertheless.
707 printf ' :os-provides-dlopen' >> $ltf
709 if [ "$sbcl_os" = "openbsd" ]; then
710 rm -f src
/runtime
/openbsd-sigcontext.h
711 sh tools-for-build
/openbsd-sigcontext.sh
> src
/runtime
/openbsd-sigcontext.h
715 printf ' :sb-simd-pack :sb-simd-pack-256 :avx2' >> $ltf # not mandatory
718 $GNUMAKE -C tools-for-build avx2
2> /dev
/null
719 if ! android_run tools-for-build
/avx2
; then
720 SBCL_CONTRIB_BLOCKLIST
="$SBCL_CONTRIB_BLOCKLIST sb-simd"
723 if ! $GNUMAKE -C tools-for-build avx2
2> /dev
/null || tools-for-build
/avx2
; then
724 SBCL_CONTRIB_BLOCKLIST
="$SBCL_CONTRIB_BLOCKLIST sb-simd"
729 linux | darwin |
*bsd | win32
)
730 printf ' :immobile-space' >> $ltf
734 if [ "$sbcl_os" = "linux" ]; then
735 # Use a C program to detect which kind of glibc we're building on,
736 # to bandage across the break in source compatibility between
737 # versions 2.3.1 and 2.3.2
739 # FIXME: integrate to grovel-features, mayhaps
740 $GNUMAKE -C tools-for-build where-is-mcontext
-I ..
/src
/runtime
741 tools-for-build
/where-is-mcontext
> src
/runtime
/ppc-linux-mcontext.h ||
(echo "error running where-is-mcontext"; exit 1)
742 elif [ "$sbcl_os" = "darwin" ]; then
743 echo "Unsupported configuration"
748 # there is no glibc bug that requires the 'where-is-mcontext' hack.
749 # (Sufficiently new glibc uses the correct definition, which is the same as
750 # 2.3.1, so define our constant for that)
751 echo '#define GLIBC231_STYLE_UCONTEXT 1' > src
/runtime
/ppc-linux-mcontext.h
754 if [ "$xlen" = "64" ]; then
755 printf ' :64-bit' >> $ltf
756 elif [ "$xlen" = "32" ]; then
759 echo 'Architecture word width unspecified. (Either 32-bit or 64-bit.)'
765 if [ "$sbcl_os" = darwin
-a "$sbcl_arch" = arm64
]
767 # Launching new executables is pretty slow on macOS, but this configuration is pretty uniform
768 echo ' :little-endian :os-provides-dlopen :os-provides-dladdr :os-provides-blksize-t :os-provides-suseconds-t' >> $ltf
770 # Use a little C program to try to guess the endianness. Ware
773 # FIXME: integrate to grovel-features, mayhaps
776 $CC tools-for-build
/determine-endianness.c
-o tools-for-build
/determine-endianness
777 android_run tools-for-build
/determine-endianness
>> $ltf
779 $GNUMAKE -C tools-for-build determine-endianness
-I ..
/src
/runtime
780 tools-for-build
/determine-endianness
>> $ltf
782 export sbcl_os sbcl_arch android
783 sh tools-for-build
/grovel-features.sh
>> $ltf
787 echo //finishing
$ltf
788 printf " %s" "`cat crossbuild-runner/backends/${sbcl_arch}/features`" >> $ltf
789 echo ")) (list$WITHOUT_FEATURES)))" >> $ltf
791 echo "SBCL_CONTRIB_BLOCKLIST=\"$SBCL_CONTRIB_BLOCKLIST\"; export SBCL_CONTRIB_BLOCKLIST" >> output
/build-config
793 # FIXME: The version system should probably be redone along these lines:
795 # echo //setting up version information.
796 # versionfile=version.txt
797 # cp base-version.txt $versionfile
798 # echo " (built `date -u` by `whoami`@`hostname`)" >> $versionfile
799 # echo 'This is a machine-generated file and should not be edited by hand.' >> $versionfile
801 # Make a unique ID for this build (to discourage people from
802 # mismatching sbcl and *.core files).
803 if [ `uname` = "SunOS" ] ; then
804 # use /usr/xpg4/bin/id instead of /usr/bin/id
805 PATH
=/usr
/xpg
4/bin
:$PATH
807 echo '"'`hostname`-`id -un`-`date +%Y-%m-%d-%H-%M-%S`'"' > output
/build-id.inc
809 if [ -n "$SBCL_HOST_LOCATION" ]; then
810 echo //setting up
host configuration
811 rsync
--delete-after -a output
/ "$SBCL_HOST_LOCATION/output/"
812 rsync
-a local-target-features.lisp-expr version.lisp-expr
"$SBCL_HOST_LOCATION/"