3 # Simple "configure" script for Qi.
5 # Copyright (c) 2016-2018, 2020-2022 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 --arch=NAME architecture name to build packages [${arch}]
40 --packagedir=DIR directory for package installations [${packagedir}]
41 --targetdir=DIR target directory for symbolic links [${targetdir}]
42 --outdir=DIR output directory for binary packages [${outdir}]
49 exec_prefix
='$(prefix)'
50 bindir
='$(exec_prefix)/bin'
51 sbindir
='$(exec_prefix)/sbin'
52 libexecdir
='$(exec_prefix)/libexec'
53 sysconfdir
='$(prefix)/etc'
54 localstatedir
='$(prefix)/var'
55 datarootdir
='$(prefix)/share'
56 infodir
='$(datarootdir)/info'
57 mandir
='$(datarootdir)/man'
58 docdir
='$(datarootdir)/doc'
60 packagedir
='$(prefix)/pkgs'
62 outdir
='$(localstatedir)/cache/qi/packages'
68 "exec_prefix = $exec_prefix" \
70 "sbindir = $sbindir" \
71 "libexecdir = $libexecdir" \
72 "sysconfdir = $sysconfdir" \
73 "localstatedir = $localstatedir" \
74 "datarootdir = $datarootdir" \
75 "infodir = $infodir" \
79 "packagedir = $packagedir" \
80 "targetdir = $targetdir" \
101 exec_prefix
="${1#*=}"
136 localstatedir
="${1#*=}"
143 datarootdir
="${1#*=}"
194 --help |
--hel |
--he |
--h |
'--?' |
-help |
-hel |
-he |
-h |
'-?' )
200 break; # End of options.
203 echo "configure: WARNING: unrecognized option '${1}'" 1>&2
212 echo "Creating config.mak ..."
214 return_variables
; # Show configured variables.
215 : > config.mak
; # Clean up config.mak, first.
217 if return_variables
> config.mak
219 touch src
/qi.
in && echo "OK, now you can run \`make'"