source: trunk/source/scripts/ccl

Last change on this file was 16742, checked in by gb, 5 years ago

A 64-bit ARM (aarch64) machine may be able to run 32-bit armv7 binaries
given appropriate suport from the dynamic linker and available libraries.

Try here.

  • Property svn:executable set to *
File size: 1.4 KB
Line 
1#!/bin/sh
2
3# Change the definition of CCL_DEFAULT_DIRECTORY below to refer to
4# your Clozure CL installation directory.  The lisp will use this
5# environment variable to set up translations for the CCL: logical
6# host.
7
8# Any definition of CCL_DEFAULT_DIRECTORY already present in the
9# environment takes precedence over definition made below.
10
11if [ -z "$CCL_DEFAULT_DIRECTORY" ]; then
12  CCL_DEFAULT_DIRECTORY=/usr/local/src/ccl
13fi
14
15# If you don't want to guess the name of the lisp kernel on
16# every invocation (or if you want to use a kernel with a
17# non-default name), you might want to uncomment and change
18# the following line:
19#OPENMCL_KERNEL=some_name
20
21if [ -z "$OPENMCL_KERNEL" ]; then
22  case `uname -s` in
23    Darwin) case `arch` in
24              ppc*) OPENMCL_KERNEL=dppccl ;;
25              i386) OPENMCL_KERNEL=dx86cl ;;
26            esac ;;
27    Linux) case `uname -m` in
28              ppc*) OPENMCL_KERNEL=ppccl ;;
29              *86*) OPENMCL_KERNEL=lx86cl ;;
30              *arm*) OPENMCL_KERNEL=armcl ;;
31              *aarch64*) OPENMCL_KERNEL=armcl ;;
32           esac ;;
33    CYGWIN*)
34       OPENMCL_KERNEL=wx86cl.exe
35       CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
36    ;;
37    SunOS) OPENMCL_KERNEL=sx86cl
38    ;;
39    FreeBSD) OPENMCL_KERNEL=fx86cl
40    ;;
41    *)
42    echo "Can't determine host OS.  Fix this."
43    exit 1
44    ;;
45  esac
46fi
47
48export CCL_DEFAULT_DIRECTORY
49exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL} "$@"
50
Note: See TracBrowser for help on using the repository browser.