Skip to content
Newer
Older
100644 396 lines (372 sloc) 14.1 KB
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
1 #!/bin/sh
babd45f 0.9.4.72:
Thiemo Seufer authored Sep 16, 2005
2 set -e
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
3
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
9 # troubleshooting.
10
11 # This software is part of the SBCL system. See the README file for
12 # more information.
13 #
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.
19
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
20 case `uname` in
21 Linux)
22 sbcl_os="linux"
23 ;;
24 OSF1)
25 # it's changed name twice since it was called OSF/1: clearly
26 # the marketers forgot to tell the engineers about Digital Unix
27 # _or_ OSF/1 ...
28 sbcl_os="osf1"
29 ;;
30 *BSD)
31 case `uname` in
32 FreeBSD)
33 sbcl_os="freebsd"
34 ;;
35 OpenBSD)
36 sbcl_os="openbsd"
37 ;;
38 NetBSD)
39 sbcl_os="netbsd"
40 ;;
41 *)
42 echo unsupported BSD variant: `uname`
43 exit 1
44 ;;
45 esac
46 ;;
47 Darwin)
48 sbcl_os="darwin"
49 ;;
50 SunOS)
51 sbcl_os="sunos"
52 ;;
53 CYGWIN* | WindowsNT | MINGW*)
54 sbcl_os="win32"
55 ;;
dcd8604 @nikodemus 1.0.24.12: adding and fixing the HPUX/HPPA build target
nikodemus authored Jan 3, 2009
56 HP-UX)
57 sbcl_os="hpux"
58 ;;
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
59 *)
60 echo unsupported OS type: `uname`
61 exit 1
62 ;;
63 esac
64
65 link_or_copy() {
66 if [ "$sbcl_os" = "win32" ] ; then
67 cp -r "$1" "$2"
68 else
b822fdd @nikodemus 1.0.9.6: remove :UNIX from *FEATURES* on Windows
nikodemus authored Aug 29, 2007
69 ln -s "$1" "$2"
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
70 fi
71 }
72
73 remove_dir_safely() {
74 if [ "$sbcl_os" = "win32" ] ; then
75 if [ -d "$1" ] ; then
76 rm -rf "$1"
77 elif [ -e "$1" ] ; then
78 echo "I'm afraid to remove non-directory $1."
79 exit 1
80 fi
81 else
82 if [ -h "$1" ] ; then
83 rm "$1"
84 elif [ -w "$1" ] ; then
85 echo "I'm afraid to replace non-symlink $1 with a symlink."
86 exit 1
87 fi
88 fi
89 }
90
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
91 echo //entering make-config.sh
92
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
93 echo //ensuring the existence of output/ directory
94 if [ ! -d output ] ; then mkdir output; fi
95
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
96 ltf=`pwd`/local-target-features.lisp-expr
97 echo //initializing $ltf
672ac58 0.6.12.6:
William Harold Newman authored May 9, 2001
98 echo ';;;; This is a machine-generated file.' > $ltf
d7f6139 0.6.12.7.flaky1:
William Harold Newman authored May 15, 2001
99 echo ';;;; Please do not edit it by hand.' >> $ltf
100 echo ';;;; See make-config.sh.' >> $ltf
0d669e6 @csrhodes 0.7.1.1:
csrhodes authored Mar 25, 2002
101 printf '(' >> $ltf
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
102
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
103 echo //guessing default target CPU architecture from host architecture
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
104 case `uname -m` in
105 *86) guessed_sbcl_arch=x86 ;;
40e3ba0 @csrhodes 0.9.3.63:
csrhodes authored Aug 19, 2005
106 i86pc) guessed_sbcl_arch=x86 ;;
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
107 *x86_64) guessed_sbcl_arch=x86-64 ;;
bd45534 1.0.0.32: support for FreeBSD/x86-64
sa2c authored Dec 15, 2006
108 amd64) guessed_sbcl_arch=x86-64 ;;
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
109 [Aa]lpha) guessed_sbcl_arch=alpha ;;
68fd2d2 0.7.1.20:
William Harold Newman authored Feb 15, 2002
110 sparc*) guessed_sbcl_arch=sparc ;;
0d669e6 @csrhodes 0.7.1.1:
csrhodes authored Mar 25, 2002
111 sun*) guessed_sbcl_arch=sparc ;;
1071bf1 @csrhodes 1.0.2.11:
csrhodes authored Feb 5, 2007
112 *ppc) guessed_sbcl_arch=ppc ;;
a58ade7 @csrhodes 0.9.9.22:
csrhodes authored Feb 7, 2006
113 ppc64) guessed_sbcl_arch=ppc ;;
5062535 @csrhodes 0.8.2.8:
csrhodes authored Jul 29, 2003
114 Power*Macintosh) guessed_sbcl_arch=ppc ;;
8a19c68 @csrhodes 0.7.6.27:
csrhodes authored Aug 19, 2002
115 parisc) guessed_sbcl_arch=hppa ;;
dcd8604 @nikodemus 1.0.24.12: adding and fixing the HPUX/HPPA build target
nikodemus authored Jan 3, 2009
116 9000/800) guessed_sbcl_arch=hppa ;;
fd00d78 @csrhodes 0.8.21.18:
csrhodes authored Apr 5, 2005
117 mips*) guessed_sbcl_arch=mips ;;
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
118 *)
119 # If we're not building on a supported target architecture, we
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
120 # we have no guess, but it's not an error yet, since maybe
121 # target architecture will be specified explicitly below.
122 guessed_sbcl_arch=''
123 ;;
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
124 esac
125
53ab026 @jsnell 1.0.26.18: Solaris x86-64 support
jsnell authored Mar 22, 2009
126 # Under Solaris, uname -m returns "i86pc" even if CPU is amd64.
127 if [ "$sbcl_os" = "sunos" ] && [ `isainfo -k` = "amd64" ]; then
128 guessed_sbcl_arch=x86-64
129 fi
130
305c519 1.0.31.19: build x86-64 on OS X when available by default
Brian Mastenbrook authored Sep 22, 2009
131 # Under Darwin, uname -m returns "i386" even if CPU is x86_64.
572da92 1.0.35.22: fix building on Darwin when sysctl is not in PATH
Nathan Froyd authored Feb 27, 2010
132 if [ "$sbcl_os" = "darwin" ] && [ "`/usr/sbin/sysctl -n hw.optional.x86_64`" = "1" ]; then
305c519 1.0.31.19: build x86-64 on OS X when available by default
Brian Mastenbrook authored Sep 22, 2009
133 guessed_sbcl_arch=x86-64
134 fi
135
672ac58 0.6.12.6:
William Harold Newman authored May 9, 2001
136 echo //setting up CPU-architecture-dependent information
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
137 sbcl_arch=${SBCL_ARCH:-$guessed_sbcl_arch}
d7f6139 0.6.12.7.flaky1:
William Harold Newman authored May 15, 2001
138 echo sbcl_arch=\"$sbcl_arch\"
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
139 if [ "$sbcl_arch" = "" ] ; then
140 echo "can't guess target SBCL architecture, need SBCL_ARCH environment var"
141 exit 1
142 fi
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
143 printf ":%s" "$sbcl_arch" >> $ltf
c5759c0 @csrhodes 0.8.1.15:
csrhodes authored Jul 2, 2003
144
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
145 echo //setting up OS-dependent information
a3282da 1.0.34.9: darwin/x86-64 sb-posix:stat fixes from Kei Suzuki
Cyrus Harmon authored Jan 21, 2010
146
147 # Under Darwin x86-64, guess whether Darwin 9+ or below.
148 if [ "$sbcl_os" = "darwin" ] && [ "$sbcl_arch" = "x86-64" ]; then
bd2df60 1.0.39.3: support building on darwin x86 and x86-64 without the dlshim
Cyrus Harmon authored Jun 3, 2010
149 darwin_version=`uname -r`
150 darwin_version_major=${DARWIN_VERSION_MAJOR:-${darwin_version%%.*}}
151 if (( 8 < $darwin_version_major )); then
152 printf ' :inode64 :darwin9-or-better' >> $ltf
153 fi
a3282da 1.0.34.9: darwin/x86-64 sb-posix:stat fixes from Kei Suzuki
Cyrus Harmon authored Jan 21, 2010
154 fi
155
eaf8fba tidied up OpenBSD-vs.-FreeBSD stuff, and src/runtime/Config.x86-*
William Harold Newman authored Oct 2, 2000
156 original_dir=`pwd`
eb5265a 0.8.14.9:
William Harold Newman authored Sep 10, 2004
157 cd ./src/runtime/
68fd2d2 0.7.1.20:
William Harold Newman authored Feb 15, 2002
158 rm -f Config target-arch-os.h target-arch.h target-os.h target-lispregs.h
159 # KLUDGE: these two logically belong in the previous section
160 # ("architecture-dependent"); it seems silly to enforce this in terms
161 # of the shell script, though. -- CSR, 2002-02-03
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
162 link_or_copy $sbcl_arch-arch.h target-arch.h
163 link_or_copy $sbcl_arch-lispregs.h target-lispregs.h
164 case "$sbcl_os" in
165 linux)
b822fdd @nikodemus 1.0.9.6: remove :UNIX from *FEATURES* on Windows
nikodemus authored Aug 29, 2007
166 printf ' :unix' >> $ltf
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
167 printf ' :elf' >> $ltf
168 printf ' :linux' >> $ltf
46e4281 @jsnell 0.9.18.46:
jsnell authored Nov 12, 2006
169
170 # If you add other platforms here, don't forget to edit
171 # src/runtime/Config.foo-linux too.
b2f01c8 1.0.9.27: Fix large file support for MIPS.
Thiemo Seufer authored Sep 2, 2007
172 case "$sbcl_arch" in
1baab0b @nikodemus 1.0.33.26: enabled threads by default on x86[-64] Linux
nikodemus authored Dec 18, 2009
173 mips)
174 printf ' :largefile' >> $ltf
175 ;;
176 x86 | x86-64)
177 printf ' :sb-thread :largefile' >> $ltf
178 ;;
b2f01c8 1.0.9.27: Fix large file support for MIPS.
Thiemo Seufer authored Sep 2, 2007
179 esac
46e4281 @jsnell 0.9.18.46:
jsnell authored Nov 12, 2006
180
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
181 if [ $sbcl_arch = "x86-64" ]; then
182 link_or_copy Config.x86_64-linux Config
183 else
184 link_or_copy Config.$sbcl_arch-linux Config
185 fi
186 link_or_copy $sbcl_arch-linux-os.h target-arch-os.h
187 link_or_copy linux-os.h target-os.h
188 ;;
189 osf1)
b822fdd @nikodemus 1.0.9.6: remove :UNIX from *FEATURES* on Windows
nikodemus authored Aug 29, 2007
190 printf ' :unix' >> $ltf
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
191 printf ' :elf' >> $ltf
192 printf ' :osf1' >> $ltf
193 link_or_copy Config.$sbcl_arch-osf1 Config
194 link_or_copy $sbcl_arch-osf1-os.h target-arch-os.h
195 link_or_copy osf1-os.h target-os.h
196 ;;
dcd8604 @nikodemus 1.0.24.12: adding and fixing the HPUX/HPPA build target
nikodemus authored Jan 3, 2009
197 hpux)
198 printf ' :unix' >> $ltf
199 printf ' :elf' >> $ltf
200 printf ' :hpux' >> $ltf
201 link_or_copy Config.$sbcl_arch-hpux Config
202 link_or_copy $sbcl_arch-hpux-os.h target-arch-os.h
203 link_or_copy hpux-os.h target-os.h
204 ;;
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
205 *bsd)
b822fdd @nikodemus 1.0.9.6: remove :UNIX from *FEATURES* on Windows
nikodemus authored Aug 29, 2007
206 printf ' :unix' >> $ltf
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
207 printf ' :bsd' >> $ltf
208 link_or_copy $sbcl_arch-bsd-os.h target-arch-os.h
209 link_or_copy bsd-os.h target-os.h
210 case "$sbcl_os" in
211 freebsd)
212 printf ' :elf' >> $ltf
213 printf ' :freebsd' >> $ltf
9a19ce4 1.0.9.62: Performance and stability improvement of threading on FreeBSD
NIIMI Satoshi authored Sep 18, 2007
214 printf ' :gcc-tls' >> $ltf
402958f @jsnell 0.9.13.22:
jsnell authored Jun 3, 2006
215 if [ $sbcl_arch = "x86" ]; then
9a19ce4 1.0.9.62: Performance and stability improvement of threading on FreeBSD
NIIMI Satoshi authored Sep 18, 2007
216 printf ' :restore-tls-segment-register-from-context' >> $ltf
402958f @jsnell 0.9.13.22:
jsnell authored Jun 3, 2006
217 fi
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
218 link_or_copy Config.$sbcl_arch-freebsd Config
219 ;;
220 openbsd)
221 printf ' :elf' >> $ltf
222 printf ' :openbsd' >> $ltf
223 link_or_copy Config.$sbcl_arch-openbsd Config
224 ;;
225 netbsd)
074ba06 @csrhodes 0.8.9.6.netbsd.1:
csrhodes authored Mar 29, 2004
226 printf ' :netbsd' >> $ltf
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
227 printf ' :elf' >> $ltf
228 link_or_copy Config.$sbcl_arch-netbsd Config
229 ;;
230 *)
231 echo unsupported BSD variant: `uname`
232 exit 1
233 ;;
234 esac
235 ;;
236 darwin)
b822fdd @nikodemus 1.0.9.6: remove :UNIX from *FEATURES* on Windows
nikodemus authored Aug 29, 2007
237 printf ' :unix' >> $ltf
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
238 printf ' :mach-o' >> $ltf
239 printf ' :bsd' >> $ltf
402958f @jsnell 0.9.13.22:
jsnell authored Jun 3, 2006
240 printf ' :darwin' >> $ltf
241 if [ $sbcl_arch = "x86" ]; then
11b5ac8 1.0.36.9: UD2-BREAKPOINTS feature for x86oid systems
Alastair Bridgewater authored Mar 1, 2010
242 printf ' :mach-exception-handler :sb-lutex :restore-fs-segment-register-from-tls :ud2-breakpoints' >> $ltf
402958f @jsnell 0.9.13.22:
jsnell authored Jun 3, 2006
243 fi
1cf1aff 1.0.4.54: x86-64/darwin preliminary threads support
Cyrus Harmon authored Apr 10, 2007
244 if [ $sbcl_arch = "x86-64" ]; then
11b5ac8 1.0.36.9: UD2-BREAKPOINTS feature for x86oid systems
Alastair Bridgewater authored Mar 1, 2010
245 printf ' :mach-exception-handler :sb-lutex :ud2-breakpoints' >> $ltf
1cf1aff 1.0.4.54: x86-64/darwin preliminary threads support
Cyrus Harmon authored Apr 10, 2007
246 fi
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
247 link_or_copy $sbcl_arch-darwin-os.h target-arch-os.h
248 link_or_copy bsd-os.h target-os.h
bd2df60 1.0.39.3: support building on darwin x86 and x86-64 without the dlshim
Cyrus Harmon authored Jun 3, 2010
249 link_or_copy Config.$sbcl_arch-darwin Config
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
250 ;;
251 sunos)
b822fdd @nikodemus 1.0.9.6: remove :UNIX from *FEATURES* on Windows
nikodemus authored Aug 29, 2007
252 printf ' :unix' >> $ltf
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
253 printf ' :elf' >> $ltf
0d669e6 @csrhodes 0.7.1.1:
csrhodes authored Mar 25, 2002
254 printf ' :sunos' >> $ltf
53ab026 @jsnell 1.0.26.18: Solaris x86-64 support
jsnell authored Mar 22, 2009
255 if [ $sbcl_arch = "x86" ] || [ $sbcl_arch = "amd64" ]; then
402958f @jsnell 0.9.13.22:
jsnell authored Jun 3, 2006
256 printf ' :sb-lutex' >> $ltf
257 fi
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
258 link_or_copy Config.$sbcl_arch-sunos Config
259 link_or_copy $sbcl_arch-sunos-os.h target-arch-os.h
260 link_or_copy sunos-os.h target-os.h
261 ;;
262 win32)
263 printf ' :win32' >> $ltf
cf8b1d4 @dmitryvk Include sb-pthread-futex in local-target-features for win32
authored Sep 26, 2010
264 printf ' :sb-pthread-futex' >> $ltf
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
265 link_or_copy Config.$sbcl_arch-win32 Config
266 link_or_copy $sbcl_arch-win32-os.h target-arch-os.h
267 link_or_copy win32-os.h target-os.h
268 ;;
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
269 *)
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
270 echo unsupported OS type: `uname`
271 exit 1
272 ;;
f2aa2d0 0.6.12.7:
William Harold Newman authored May 10, 2001
273 esac
102b7c8 @rudi 1.0.10.40: Fix build for windows when source directory contains spaces
rudi authored Oct 8, 2007
274 cd "$original_dir"
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
275
75b5237 @nikodemus 0.8.14.5: Join the foreign legion!
nikodemus authored Sep 9, 2004
276 # FIXME: Things like :c-stack-grows-..., etc, should be
277 # *derived-target-features* or equivalent, so that there was a nicer
278 # way to specify them then sprinkling them in this file. They should
279 # still be tweakable by advanced users, though, but probably not
280 # appear in *features* of target. #!+/- should be adjusted to take
281 # them in account as well. At minimum the nicer specification stuff,
282 # though:
283 #
284 # (define-feature :dlopen (features)
285 # (union '(:bsd :linux :darwin :sunos) features))
286 #
287 # (define-feature :c-stack-grows-downwards-not-upwards (features)
288 # (member :x86 features))
289
c5759c0 @csrhodes 0.8.1.15:
csrhodes authored Jul 2, 2003
290 # KLUDGE: currently the x86 only works with the generational garbage
291 # collector (indicated by the presence of :GENCGC in *FEATURES*) and
292 # alpha, sparc and ppc with the stop'n'copy collector (indicated by
293 # the absence of :GENCGC in *FEATURES*). This isn't a great
294 # separation, but for now, rather than have :GENCGC in
295 # base-target-features.lisp-expr, we add it into local-target-features
296 # if we're building for x86. -- CSR, 2002-02-21 Then we do something
297 # similar with :STACK-GROWS-FOOWARD, too. -- WHN 2002-03-03
75b5237 @nikodemus 0.8.14.5: Join the foreign legion!
nikodemus authored Sep 9, 2004
298 if [ "$sbcl_arch" = "x86" ]; then
bfb19d3 @nikodemus 1.0.7.19: SB-EXT:COMPARE-AND-SWAP
nikodemus authored Jul 15, 2007
299 printf ' :gencgc :stack-grows-downward-not-upward :c-stack-is-control-stack' >> $ltf
96bb2dc @nikodemus 1.0.17.4: support for dynamic-extent structures
nikodemus authored May 28, 2008
300 printf ' :compare-and-swap-vops :unwind-to-frame-and-call-vop :raw-instance-init-vops' >> $ltf
55dc855 @nikodemus 1.0.29.12: nicer DX capability conditionalization
nikodemus authored Jun 17, 2009
301 printf ' :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf
302 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
2230ea0 @pkhuong 1.0.29.54: Inline unboxed constants on x86[-64]
pkhuong authored Jun 28, 2009
303 printf ' :alien-callbacks :cycle-counter :inline-constants ' >> $ltf
d4d5459 1.0.41.5: x86: Implement memory-barrier-vops.
Alastair Bridgewater authored Aug 4, 2010
304 printf ' :memory-barrier-vops' >> $ltf
c2ac5ba 1.0.13.18: Revived OpenBSD support, contributed by Josh Elsasser
Richard M Kreuter authored Jan 9, 2008
305 case "$sbcl_os" in
306 linux | freebsd | netbsd | openbsd | sunos | darwin | win32)
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
307 printf ' :linkage-table' >> $ltf
c2ac5ba 1.0.13.18: Revived OpenBSD support, contributed by Josh Elsasser
Richard M Kreuter authored Jan 9, 2008
308 esac
48ec282 @csrhodes 0.9.8.34:
csrhodes authored Jan 11, 2006
309 if [ "$sbcl_os" = "win32" ]; then
310 # of course it doesn't provide dlopen, but there is
311 # roughly-equivalent magic nevertheless.
312 printf ' :os-provides-dlopen' >> $ltf
313 fi
78fa16b @csrhodes 0.8.18.14:
csrhodes authored Jan 6, 2005
314 elif [ "$sbcl_arch" = "x86-64" ]; then
bfb19d3 @nikodemus 1.0.7.19: SB-EXT:COMPARE-AND-SWAP
nikodemus authored Jul 15, 2007
315 printf ' :gencgc :stack-grows-downward-not-upward :c-stack-is-control-stack :linkage-table' >> $ltf
96bb2dc @nikodemus 1.0.17.4: support for dynamic-extent structures
nikodemus authored May 28, 2008
316 printf ' :compare-and-swap-vops :unwind-to-frame-and-call-vop :raw-instance-init-vops' >> $ltf
55dc855 @nikodemus 1.0.29.12: nicer DX capability conditionalization
nikodemus authored Jun 17, 2009
317 printf ' :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf
318 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
a157ed0 @pkhuong 1.0.29.44: Complex float improvements
pkhuong authored Jun 25, 2009
319 printf ' :alien-callbacks :cycle-counter :complex-float-vops' >> $ltf
6ab1e0d 1.0.41.4: x86-64: Implement memory-barrier-vops.
Alastair Bridgewater authored Aug 4, 2010
320 printf ' :float-eql-vops :inline-constants :memory-barrier-vops' >> $ltf
75b5237 @nikodemus 0.8.14.5: Join the foreign legion!
nikodemus authored Sep 9, 2004
321 elif [ "$sbcl_arch" = "mips" ]; then
3da4a7f 0.9.5.11:
Thiemo Seufer authored Sep 29, 2005
322 printf ' :linkage-table' >> $ltf
e3f6b2d @nikodemus 1.0.29.20: fix build breakage from 1.0.29.12 (PPC and MIPS, hopefully)
nikodemus authored Jun 20, 2009
323 printf ' :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf
55dc855 @nikodemus 1.0.29.12: nicer DX capability conditionalization
nikodemus authored Jun 17, 2009
324 printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf
ccfb3a7 1.0.9.28: Enable alien callbacks for MIPS.
Thiemo Seufer authored Sep 2, 2007
325 printf ' :alien-callbacks' >> $ltf
c5759c0 @csrhodes 0.8.1.15:
csrhodes authored Jul 2, 2003
326 # Use a little C program to try to guess the endianness. Ware
327 # cross-compilers!
75b5237 @nikodemus 0.8.14.5: Join the foreign legion!
nikodemus authored Sep 9, 2004
328 #
329 # FIXME: integrate to grovel-features, mayhaps
44c608e @jsnell 0.9.11.21:
jsnell authored Apr 7, 2006
330 $GNUMAKE -C tools-for-build determine-endianness -I ../src/runtime
c5759c0 @csrhodes 0.8.1.15:
csrhodes authored Jul 2, 2003
331 tools-for-build/determine-endianness >> $ltf
e3f6b2d @nikodemus 1.0.29.20: fix build breakage from 1.0.29.12 (PPC and MIPS, hopefully)
nikodemus authored Jun 20, 2009
332 elif [ "$sbcl_arch" = "ppc" ]; then
b411b7d 1.0.35.6: Fix typo in make-config.sh
Tobias C. Rittweiler authored Feb 6, 2010
333 printf ' :gencgc :stack-allocatable-closures :stack-allocatable-lists' >> $ltf
7121b6b 1.0.41.3: ppc: Implement memory-barrier-vops.
Alastair Bridgewater authored Aug 4, 2010
334 printf ' :linkage-table :raw-instance-init-vops :memory-barrier-vops' >> $ltf
5745b5a 1.0.41.35: ppc: Implement compare-and-swap-vops.
Alastair Bridgewater authored Aug 8, 2010
335 printf ' :compare-and-swap-vops' >> $ltf
55dc855 @nikodemus 1.0.29.12: nicer DX capability conditionalization
nikodemus authored Jun 17, 2009
336 if [ "$sbcl_os" = "linux" ]; then
337 # Use a C program to detect which kind of glibc we're building on,
338 # to bandage across the break in source compatibility between
339 # versions 2.3.1 and 2.3.2
340 #
341 # FIXME: integrate to grovel-features, mayhaps
342 $GNUMAKE -C tools-for-build where-is-mcontext -I ../src/runtime
343 tools-for-build/where-is-mcontext > src/runtime/ppc-linux-mcontext.h || (echo "error running where-is-mcontext"; exit 1)
344 elif [ "$sbcl_os" = "darwin" ]; then
345 # We provide a dlopen shim, so a little lie won't hurt
346 printf " :os-provides-dlopen :alien-callbacks" >> $ltf
347 # The default stack ulimit under darwin is too small to run PURIFY.
348 # Best we can do is complain and exit at this stage
349 if [ "`ulimit -s`" = "512" ]; then
350 echo "Your stack size limit is too small to build SBCL."
351 echo "See the limit(1) or ulimit(1) commands and the README file."
352 exit 1
353 fi
e3f68bd @csrhodes 0.8.4.36:
csrhodes authored Oct 20, 2003
354 fi
fab1ba8 @csrhodes 0.8.8.2:
csrhodes authored Feb 26, 2004
355 elif [ "$sbcl_arch" = "sparc" ]; then
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
356 # Test the compiler in order to see if we are building on Sun
fab1ba8 @csrhodes 0.8.8.2:
csrhodes authored Feb 26, 2004
357 # toolchain as opposed to GNU binutils, and write the appropriate
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
358 # FUNCDEF macro for assembler. No harm in running this on sparc-linux
fab1ba8 @csrhodes 0.8.8.2:
csrhodes authored Feb 26, 2004
359 # as well.
360 sh tools-for-build/sparc-funcdef.sh > src/runtime/sparc-funcdef.h
1f7bb60 @nikodemus 0.8.15.18: Linkage table tweaks & alien bugfix
nikodemus authored Oct 18, 2004
361 if [ "$sbcl_os" = "sunos" ] || [ "$sbcl_os" = "linux" ]; then
04d819b @csrhodes 0.9.8.27:
csrhodes authored Jan 9, 2006
362 printf ' :linkage-table' >> $ltf
75b5237 @nikodemus 0.8.14.5: Join the foreign legion!
nikodemus authored Sep 9, 2004
363 fi
55dc855 @nikodemus 1.0.29.12: nicer DX capability conditionalization
nikodemus authored Jun 17, 2009
364 printf ' :stack-allocatable-closures :stack-allocatable-lists' >> $ltf
7c7e627 0.9.1.52:
Alexey Dejneka authored Jun 19, 2005
365 elif [ "$sbcl_arch" = "alpha" ]; then
55dc855 @nikodemus 1.0.29.12: nicer DX capability conditionalization
nikodemus authored Jun 17, 2009
366 printf ' :stack-allocatable-closures :stack-allocatable-lists' >> $ltf
367 elif [ "$sbcl_arch" = "hppa" ]; then
368 printf ' :stack-allocatable-vectors :stack-allocatable-fixed-objects' >> $ltf
369 printf ' :stack-allocatable-lists' >> $ltf
c5759c0 @csrhodes 0.8.1.15:
csrhodes authored Jul 2, 2003
370 else
371 # Nothing need be done in this case, but sh syntax wants a placeholder.
372 echo > /dev/null
373 fi
fab1ba8 @csrhodes 0.8.8.2:
csrhodes authored Feb 26, 2004
374
75b5237 @nikodemus 0.8.14.5: Join the foreign legion!
nikodemus authored Sep 9, 2004
375 export sbcl_os sbcl_arch
4bc6b91 @nikodemus 0.8.13.78: Birds of Feather
nikodemus authored Aug 25, 2004
376 sh tools-for-build/grovel-features.sh >> $ltf
377
a530bbe Initial revision
William Harold Newman authored Sep 18, 2000
378 echo //finishing $ltf
379 echo ')' >> $ltf
380
381 # FIXME: The version system should probably be redone along these lines:
382 #
383 # echo //setting up version information.
384 # versionfile=version.txt
385 # cp base-version.txt $versionfile
386 # echo " (built `date -u` by `whoami`@`hostname`)" >> $versionfile
387 # echo 'This is a machine-generated file and should not be edited by hand.' >> $versionfile
9139275 @csrhodes 0.7.9.7:
csrhodes authored Oct 27, 2002
388
389 # Make a unique ID for this build (to discourage people from
390 # mismatching sbcl and *.core files).
eba7d5d @csrhodes 0.8.13.27:
csrhodes authored Aug 5, 2004
391 if [ `uname` = "SunOS" ] ; then
392 # use /usr/xpg4/bin/id instead of /usr/bin/id
393 PATH=/usr/xpg4/bin:$PATH
394 fi
395 echo '"'`hostname`-`id -un`-`date +%Y-%m-%d-%H-%M-%S`'"' > output/build-id.tmp
Something went wrong with that request. Please try again.