3 # Simple `configure' script for Qi.
5 # Copyright (c) 2016-2018, 2020 Matias Fonzo, <selk@dragora.org>.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
23 "Usage: configure [options]" \
25 "Defaults for the options are specified in brackets." \
28 " --prefix=DIR install files in DIR [${prefix}]" \
29 " --exec-prefix=DIR base DIR for arch-dependent files [${exec_prefix}]" \
30 " --bindir=DIR user executables [${bindir}]" \
31 " --sbindir=DIR system admin executables [${sbindir}]" \
32 " --libexecdir=DIR program executables [${libexecdir}]" \
33 " --sysconfdir=DIR read-only single-machine data [${sysconfdir}]" \
34 " --localstatedir=DIR modifiable single-machine data [${localstatedir}]" \
35 " --datarootdir=DIR read-only arch-independent data root [${datarootdir}]" \
36 " --infodir=DIR info documentation [${infodir}]" \
37 " --mandir=DIR man documentation [${mandir}]" \
38 " --docdir=DIR documentation root [${docdir}]" \
39 " --packagedir=DIR set directory for package installations [${packagedir}]" \
40 " --targetdir=DIR set target directory for symbolic links [${targetdir}]" \
41 " --arch=name set default package architecture [${arch}]" \
47 exec_prefix
='$(prefix)'
48 bindir
='$(exec_prefix)/bin'
49 sbindir
='$(exec_prefix)/sbin'
50 libexecdir
='$(exec_prefix)/libexec'
51 sysconfdir
='$(prefix)/etc'
52 localstatedir
='$(prefix)/var'
53 datarootdir
='$(prefix)/share'
54 infodir
='$(datarootdir)/info'
55 mandir
='$(datarootdir)/man'
56 docdir
='$(datarootdir)/doc'
57 packagedir
='/usr/local/pkgs'
58 targetdir
='/usr/local'
64 "exec_prefix = $exec_prefix" \
66 "sbindir = $sbindir" \
67 "libexecdir = $libexecdir" \
68 "sysconfdir = $sysconfdir" \
69 "localstatedir = $localstatedir" \
70 "datarootdir = $datarootdir" \
71 "infodir = $infodir" \
74 "packagedir = $packagedir" \
75 "targetdir = $targetdir" \
131 localstatedir
="${1#*=}"
138 datarootdir
="${1#*=}"
182 --help |
--hel |
--he |
--h |
'--?' |
-help |
-hel |
-he |
-h |
'-?' )
188 break; # End of options.
191 echo "configure: WARNING: unrecognized option '${1}'" 1>&2
200 echo "Creating config.mak ..."
202 return_variables
; # Show configured variables.
203 : > config.mak
; # Clean up config.mak, first.
205 if return_variables
> config.mak
207 touch src
/qi.
in && echo "OK, now you can run \`make'"