3 # Simple "configure" script for Qi.
5 # Copyright (c) 2016-2018, 2020-2021 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}]
48 exec_prefix
='$(prefix)'
49 bindir
='$(exec_prefix)/bin'
50 sbindir
='$(exec_prefix)/sbin'
51 libexecdir
='$(exec_prefix)/libexec'
52 sysconfdir
='$(prefix)/etc'
53 localstatedir
='$(prefix)/var'
54 datarootdir
='$(prefix)/share'
55 infodir
='$(datarootdir)/info'
56 mandir
='$(datarootdir)/man'
57 docdir
='$(datarootdir)/doc'
58 packagedir
='/usr/local/pkgs'
59 targetdir
='/usr/local'
65 "exec_prefix = $exec_prefix" \
67 "sbindir = $sbindir" \
68 "libexecdir = $libexecdir" \
69 "sysconfdir = $sysconfdir" \
70 "localstatedir = $localstatedir" \
71 "datarootdir = $datarootdir" \
72 "infodir = $infodir" \
75 "packagedir = $packagedir" \
76 "targetdir = $targetdir" \
132 localstatedir
="${1#*=}"
139 datarootdir
="${1#*=}"
183 --help |
--hel |
--he |
--h |
'--?' |
-help |
-hel |
-he |
-h |
'-?' )
189 break; # End of options.
192 echo "configure: WARNING: unrecognized option '${1}'" 1>&2
201 echo "Creating config.mak ..."
203 return_variables
; # Show configured variables.
204 : > config.mak
; # Clean up config.mak, first.
206 if return_variables
> config.mak
208 touch src
/qi.
in && echo "OK, now you can run \`make'"