3 # Simple `configure' script for Qi.
5 # Copyright (C) 2016-2017 Matias Andres Fonzo <selk@dragora.org>
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22 "Usage: configure [options]" \
24 "Defaults for the options are specified in brackets." \
27 " --prefix=DIR install files in DIR [${prefix}]" \
28 " --exec-prefix=DIR base DIR for arch-dependent files [${exec_prefix}]" \
29 " --bindir=DIR user executables [${bindir}]" \
30 " --sbindir=DIR system admin executables [${sbindir}]" \
31 " --libexecdir=DIR program executables [${libexecdir}]" \
32 " --sysconfdir=DIR read-only single-machine data [${sysconfdir}]" \
33 " --localstatedir=DIR modifiable single-machine data [${localstatedir}]" \
34 " --datarootdir=DIR read-only arch-independent data root [${datarootdir}]" \
35 " --infodir=DIR info documentation [${infodir}]" \
36 " --mandir=DIR man documentation [${mandir}]" \
37 " --docdir=DIR documentation root [${docdir}]" \
38 " --packagedir=DIR package installation directory [${packagedir}]" \
39 " --targetdir=DIR target directory for linking [${targetdir}]" \
41 "All the options affect the package manager, the internal values," \
42 "including those in the configuration file." \
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
='$(prefix)/pkg'
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" \
130 localstatedir
="${1#*=}"
137 datarootdir
="${1#*=}"
183 echo "configure: WARNING: unrecognized option '${1}'" 1>&2
193 echo "Creating config.mak ..."
196 return_variables
> config.mak
197 echo "OK, now you can run \`make'"