| author | wenzelm | 
| Sat, 05 Dec 2020 15:27:55 +0100 | |
| changeset 72825 | a44c30d08bb0 | 
| parent 72370 | e25c0a6cc335 | 
| child 72999 | f6051c13bffa | 
| 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  | 
;;  | 
|
| 72370 | 19  | 
arm*)  | 
20  | 
ISABELLE_PLATFORM32=arm32-linux  | 
|
21  | 
;;  | 
|
| 72344 | 22  | 
*)  | 
23  | 
ISABELLE_PLATFORM32=x86-linux  | 
|
24  | 
ISABELLE_PLATFORM64=x86_64-linux  | 
|
25  | 
;;  | 
|
26  | 
esac  | 
|
| 
36196
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
27  | 
;;  | 
| 
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
28  | 
Darwin)  | 
| 50182 | 29  | 
ISABELLE_PLATFORM_FAMILY="macos"  | 
| 
71342
 
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
 
wenzelm 
parents: 
66731 
diff
changeset
 | 
30  | 
case $(sw_vers -productVersion) in  | 
| 
 
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
 
wenzelm 
parents: 
66731 
diff
changeset
 | 
31  | 
10.10*|10.11*|10.12*|10.13*|10.14*)  | 
| 48455 | 32  | 
ISABELLE_PLATFORM32=x86-darwin  | 
| 
71342
 
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
 
wenzelm 
parents: 
66731 
diff
changeset
 | 
33  | 
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
 | 
34  | 
;;  | 
| 
71342
 
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
 
wenzelm 
parents: 
66731 
diff
changeset
 | 
35  | 
*)  | 
| 
36213
 
4df49260bd82
accept x86_64 results gracefully -- NB: Mac OS does report that if booted in 64 bit mode;
 
wenzelm 
parents: 
36196 
diff
changeset
 | 
36  | 
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
 | 
37  | 
;;  | 
| 
36196
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
38  | 
esac  | 
| 
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
39  | 
;;  | 
| 
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
40  | 
CYGWIN_NT*)  | 
| 50182 | 41  | 
ISABELLE_PLATFORM_FAMILY="windows"  | 
| 
71342
 
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
 
wenzelm 
parents: 
66731 
diff
changeset
 | 
42  | 
ISABELLE_WINDOWS_PLATFORM32="x86-windows"  | 
| 
 
d72d4a9316c9
updated platform situation: 32bit variants are marginal or absent;
 
wenzelm 
parents: 
66731 
diff
changeset
 | 
43  | 
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
 | 
44  | 
case $(uname -m) in  | 
| 66691 | 45  | 
x86_64)  | 
46  | 
ISABELLE_PLATFORM64=x86_64-cygwin  | 
|
47  | 
;;  | 
|
48  | 
i?86)  | 
|
| 48455 | 49  | 
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
 | 
50  | 
;;  | 
| 
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
51  | 
esac  | 
| 
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
52  | 
;;  | 
| 
 
cbb9ee265cdd
added ISABELLE_PLATFORM and ISABELLE_PLATFORM64 -- NB: ML and JVM may have a different idea;
 
wenzelm 
parents:  
diff
changeset
 | 
53  | 
esac  |