3 # This file is in the public domain.
8 # usage: show { settings | options } ...
24 echo "internal error" >/dev
/stderr
30 make "$@" showconfig SRCCONF
=/dev
/null __MAKE_CONF
=/dev
/null
32 while read var _ val
; do
36 echo ${yes_prefix}_
${opt}
39 echo ${no_prefix}_
${opt}
42 echo "make showconfig broken" >/dev
/stderr
52 trap 'rm -f _defcfg _config _config2 _deps _deps2' exit
57 .\" DO NOT EDIT-- this file is automatically generated.
60 .Dd $(LC_TIME=C date +'%B %e, %Y')
65 .Nd "source build options"
69 file contains settings that will apply to every build involving the
76 file uses the standard makefile syntax.
79 should not specify any dependencies to
85 variables that control the aspects of how the system builds.
87 The default location of
91 though an alternative location can be specified in the
95 Overriding the location of
97 may be necessary if the system-wide settings are not suitable
98 for a particular build.
103 effectively resets all build controls to their defaults.
107 is to control the compilation of the
109 source code, which is usually located in
111 As a rule, the system administrator creates
113 when the values of certain control variables need to be changed
116 In addition, control variables can be specified
117 for a particular build via the
121 or in environment; see
124 The values of variables are ignored regardless of their setting;
125 even if they would be set to
129 Just the existence of an option will cause
133 The following list provides a name and short description for variables
134 that can be used for source builds.
135 .Bl -tag -width indent
137 show settings |
sort >_defcfg
140 if [ -f ${opt} ]; then
144 sed -e's/\$\(FreeBSD: .*\) \$/from \1/' ${opt}
146 echo "no description found for ${opt}, skipping" >/dev
/stderr
149 show settings
-D${opt} |
sort >_config
150 comm -13 _defcfg _config |
grep -v "^${opt}$" >_deps
151 if [ -s _deps
]; then
153 When set, it also enforces the following options:
157 cat _deps |
while read opt2
; do
162 show settings
-D${opt} $
(
164 sed -e's/^WITHOUT_/-DWITH_/' -e's/^WITH_/-DWITHOUT_/'
166 comm -13 _config _config2
>_deps2
167 if [ -s _deps2
]; then
169 (can be overridden with
184 .It Pa /usr/share/mk/bsd.own.mk
197 This manual page was autogenerated.