1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-21 18:05:33 +00:00
Interlisp.maiko/bin/machinetype
Nick Briggs 8dda1fe2a8 Update build files for M1 Mac systems (refs Interlisp/medley#69)
The config.guess script returns "aarch64-apple-darwin20.1.0" for an M1 Big Sur mac mini.

	modified:   bin/machinetype
	new file:   bin/makefile-darwin.aarch64-x
2020-11-24 17:43:04 -08:00

27 lines
775 B
Bash
Executable File

#!/bin/sh
#########################################################################
# #
# M A C H I N E T Y P E #
# #
# Compute the hardware architecture we're running on. #
# #
# (C) Copyright 2001 Venue. All Rights Reserved #
# #
#########################################################################
os=${LDEARCH:-`./config.guess`}
# o/s switch block
case "$os" in
sparc-*) echo sparc ;;
alpha-*) echo alpha ;;
i*86-*-*) echo 386 ;;
armv7l-*-*) echo armv7l ;;
aarch64-*-*) echo aarch64 ;;
x86_64-apple-darwin15*) echo 386 ;;
x86_64-*) echo x86_64 ;;
powerpc-*) echo ppc ;;
esac
### Don't leave the variables set.
unset os