source: trunk/source/scripts/ccl64 @ 13537

Last change on this file since 13537 was 13416, checked in by rme, 10 years ago

Don't bother with DD convenience variable, update some comments.
Fixes ticket:655

  • Property svn:executable set to *
File size: 1.7 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 OpenMCL 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)
24    case `arch` in
25      ppc*)
26      OPENMCL_KERNEL=dppccl64
27      ;;
28      i386|x86_64)
29      OPENMCL_KERNEL=dx86cl64
30      ;;
31    esac
32    ;;
33    Linux)
34    case `uname -m` in
35      ppc64)
36      OPENMCL_KERNEL=ppccl64
37      ;;
38      x86_64)
39      OPENMCL_KERNEL=lx86cl64
40      ;;
41      *)
42      echo "Can't determine machine architecture.  Fix this."
43      exit 1
44      ;;
45    esac
46    ;;
47    FreeBSD)
48    case `uname -m` in
49      amd64)
50      OPENMCL_KERNEL=fx86cl64
51      ;;
52      *)
53      echo "unsupported architecture"
54      exit 1
55      ;;
56    esac
57    ;;
58    SunOS)
59    case `uname -m` in
60      i86pc)
61      OPENMCL_KERNEL=sx86cl64
62      ;;
63      *)
64      echo "unsupported architecture"
65      exit 1
66      ;;
67    esac
68    ;;
69    CYGWIN*)
70    OPENMCL_KERNEL=wx86cl64.exe
71    CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
72    ;;
73    *)
74    echo "Can't determine host OS.  Fix this."
75    exit 1
76    ;;
77  esac
78fi
79
80export CCL_DEFAULT_DIRECTORY
81exec ${CCL_DEFAULT_DIRECTORY}/${OPENMCL_KERNEL} "$@"
82
Note: See TracBrowser for help on using the repository browser.