3 PROJECT_NAME
=clfswm-client
8 echo "'configure' configures $PROJECT_NAME to adapt to many kinds of systems.
10 Usage: ./configure [OPTION]... [VAR=VALUE]...
12 Please, be sure to edit the file key.lisp to change the encryption key. And
13 protect this file from unwanted eyes.
15 Defaults for the options are specified in brackets.
18 -h, --help display this help and exit
19 -V, --version display version information and exit
20 --with-lisp=LISP use a particular Lisp implementation [ask]
21 --with-lisp-eval-opt=OPT use a particular Lisp eval command line option
22 --with-lisp-load-opt=OPT use a particular Lisp load command line option
23 --with-lisp-ext=OPT use a particular Lisp extension filename
24 --with-lisp-core=CORE use a particular Lisp core (initial memory image)
25 --prefix=PREFIX install architecture-independent files in PREFIX
28 By default, 'make install' will install all the files in
29 '/usr/local/bin', '/usr/local/lib' etc. You can specify
30 an installation prefix other than '/usr/local' using '--prefix',
31 for instance '--prefix=$HOME'."
37 echo "Configure version: $CONFIGURE_VERSION"
43 TEMP
=`getopt -o hV: --long help,version,srcdir:,with-lisp:,with-lisp-eval-opt:,with-lisp-load-opt:,with-lisp-ext:,with-lisp-core:,prefix: -- "$@"`
46 if [ $?
!= 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
52 -h|
--help) usage
; shift ;;
53 -V|
--version) version
; shift ;;
54 --srcdir) SRCDIR
=$2 ; shift 2 ;;
55 --with-lisp) LISP
=$2 ; shift 2 ;;
56 --with-lisp-eval-opt) EVAL_OPT
=$2 ; shift 2 ;;
57 --with-lisp-load-opt) LOAD_OPT
=$2 ; shift 2 ;;
58 --with-lisp-ext) EXT
=$2 ; shift 2 ;;
59 --with-lisp-core) CORE
=$2 ; shift 2 ;;
60 --prefix) PREFIX
=$2 ; shift 2 ;;
61 --key-perms) KEY_PERMS
=$2 ; shift 2 ;;
63 *) echo "Internal error!" ; exit 1 ;;
70 if [ "x$LISP" = "x" ]; then
71 echo "Please, choose a Lisp implementation in:
72 1) SBCL 2) CMUCL 3) CLISP 4) ECL 5) CCL 6) Other"
80 6) echo -n "Please, enter your Lisp implementation: "
82 *) echo "Error"; exit -1 ;;
89 clisp
) LISP
=$
(which clisp
)
93 sbcl
) LISP
=$
(which sbcl
)
97 cmucl
) LISP
=$
(which cmucl
)
101 ecl
) LISP
=$
(which ecl
)
105 ccl
) LISP
=$
(which ccl
)
112 echo "Configuration:"
113 echo SRCDIR
= $SRCDIR
114 echo PREFIX
= $PREFIX
115 echo "LISP=$LISP EVAL_OPT=$EVAL_OPT LOAD_OPT=$LOAD_OPT EXT=$EXT CORE=$CORE EXTRA_OPT=$EXTRA_OPT"
117 sed -e "s#+PROJECT_NAME+#$PROJECT_NAME#g" \
118 -e "s#+DESTDIR+#$DESTDIR#g" \
119 -e "s#+LISP+#$LISP#g" \
120 -e "s#+EVAL_OPT+#$EVAL_OPT#g" \
121 -e "s#+LOAD_OPT+#$LOAD_OPT#g" \
122 -e "s#+EXT+#$EXT#g" \
123 -e "s#+CORE+#$CORE#g" \
124 -e "s#+EXTRA_OPT+#$EXTRA_OPT#g" \
125 Makefile.template
> Makefile
128 echo "Type 'make' to build $PROJECT_NAME"