3 # Simple `configure' script for Qi.
5 # Copyright (c) 2016-2017 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.
21 "Usage: configure [options]" \
23 "Defaults for the options are specified in brackets." \
26 " --prefix=DIR install files in DIR [${prefix}]" \
27 " --exec-prefix=DIR base DIR for arch-dependent files [${exec_prefix}]" \
28 " --bindir=DIR user executables [${bindir}]" \
29 " --sbindir=DIR system admin executables [${sbindir}]" \
30 " --libexecdir=DIR program executables [${libexecdir}]" \
31 " --sysconfdir=DIR read-only single-machine data [${sysconfdir}]" \
32 " --localstatedir=DIR modifiable single-machine data [${localstatedir}]" \
33 " --datarootdir=DIR read-only arch-independent data root [${datarootdir}]" \
34 " --infodir=DIR info documentation [${infodir}]" \
35 " --mandir=DIR man documentation [${mandir}]" \
36 " --docdir=DIR documentation root [${docdir}]" \
37 " --packagedir=DIR package installation directory [${packagedir}]" \
38 " --targetdir=DIR target directory for linking [${targetdir}]" \
40 "All the options affect the package manager, the internal values," \
41 "including those in the configuration file." \
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
='$(prefix)/pkg'
63 "exec_prefix = $exec_prefix" \
65 "sbindir = $sbindir" \
66 "libexecdir = $libexecdir" \
67 "sysconfdir = $sysconfdir" \
68 "localstatedir = $localstatedir" \
69 "datarootdir = $datarootdir" \
70 "infodir = $infodir" \
73 "packagedir = $packagedir" \
74 "targetdir = $targetdir" \
129 localstatedir
="${1#*=}"
136 datarootdir
="${1#*=}"
182 echo "configure: WARNING: unrecognized option '${1}'" 1>&2
192 echo "Creating config.mak ..."
195 return_variables
> config.mak
196 echo "OK, now you can run \`make'"