author | wenzelm |
Wed, 30 Sep 2020 13:20:33 +0000 | |
changeset 72344 | 728da67527b9 |
parent 71342 | d72d4a9316c9 |
child 72370 | e25c0a6cc335 |
permissions | -rw-r--r-- |
37012 | 1 |
# -*- shell-script -*- :mode=shellscript: |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
2 |
# |
66731 | 3 |
# determine general hardware and operating system type for Isabelle system tools |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
4 |
# |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
5 |
|
50182 | 6 |
ISABELLE_PLATFORM_FAMILY="" |
48455 | 7 |
ISABELLE_PLATFORM32="" |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
8 |
ISABELLE_PLATFORM64="" |
65072 | 9 |
ISABELLE_WINDOWS_PLATFORM32="" |
10 |
ISABELLE_WINDOWS_PLATFORM64="" |
|
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
11 |
|
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
12 |
case $(uname -s) in |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
13 |
Linux) |
50182 | 14 |
ISABELLE_PLATFORM_FAMILY="linux" |
72344 | 15 |
case $(uname -m) in |
16 |
aarch64) |
|
17 |
ISABELLE_PLATFORM64=arm64-linux |
|
18 |
;; |
|
19 |
*) |
|
20 |
ISABELLE_PLATFORM32=x86-linux |
|
21 |
ISABELLE_PLATFORM64=x86_64-linux |
|
22 |
;; |
|
23 |
esac |
|
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
24 |
;; |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
25 |
Darwin) |
50182 | 26 |
ISABELLE_PLATFORM_FAMILY="macos" |
71342
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
27 |
case $(sw_vers -productVersion) in |
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
28 |
10.10*|10.11*|10.12*|10.13*|10.14*) |
48455 | 29 |
ISABELLE_PLATFORM32=x86-darwin |
71342
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
30 |
ISABELLE_PLATFORM64=x86_64-darwin |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
31 |
;; |
71342
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
32 |
*) |
36213
4df49260bd82
accept x86_64 results gracefully -- NB: Mac OS does report that if booted in 64 bit mode;
wenzelm
parents:
36196
diff
changeset
|
33 |
ISABELLE_PLATFORM64=x86_64-darwin |
4df49260bd82
accept x86_64 results gracefully -- NB: Mac OS does report that if booted in 64 bit mode;
wenzelm
parents:
36196
diff
changeset
|
34 |
;; |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
35 |
esac |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
36 |
;; |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
37 |
CYGWIN_NT*) |
50182 | 38 |
ISABELLE_PLATFORM_FAMILY="windows" |
71342
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
39 |
ISABELLE_WINDOWS_PLATFORM32="x86-windows" |
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
wenzelm
parents:
66731
diff
changeset
|
40 |
ISABELLE_WINDOWS_PLATFORM64="x86_64-windows" |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
41 |
case $(uname -m) in |
66691 | 42 |
x86_64) |
43 |
ISABELLE_PLATFORM64=x86_64-cygwin |
|
44 |
;; |
|
45 |
i?86) |
|
48455 | 46 |
ISABELLE_PLATFORM32=x86-cygwin |
36196
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
47 |
;; |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
48 |
esac |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
49 |
;; |
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
wenzelm
parents:
diff
changeset
|
50 |
esac |