]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/mdocml/configure.local.example
Import mandoc cvs snapshot 20170121 (pre 1.14)
[FreeBSD/FreeBSD.git] / contrib / mdocml / configure.local.example
1 # $Id: configure.local.example,v 1.22 2016/11/19 15:24:51 schwarze Exp $
2 #
3 # Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org>
4 #
5 # Permission to use, copy, modify, and distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
17 # For all settings documented in this file, there are reasonable
18 # defaults and/or the ./configure script attempts autodetection.
19 # Consequently, you only need to create a file ./configure.local
20 # and put any of these settings into it if ./configure autodetection
21 # fails or if you want to make different choices for other reasons.
22
23 # If autodetection fails, please tell <tech@mdocml.bsd.lv>.
24
25 # We recommend that you write ./configure.local from scratch and
26 # only put the lines there you need.  This file contains examples.
27 # It is not intended as a template to be copied as a whole.
28
29 # --- user settings relevant for all builds ----------------------------
30
31 # For -Tutf8 and -Tlocale operation, mandoc(1) requires <locale.h>
32 # providing setlocale(3) and <wchar.h> providing wcwidth(3) and
33 # putwchar(3) with a wchar_t storing UCS-4 values.  Theoretically,
34 # the latter should be tested with the __STDC_ISO_10646__ feature
35 # macro.  In practice, many <wchar.h> headers do not provide that
36 # macro even though they treat wchar_t as UCS-4.  So the automatic
37 # test only checks that wchar_t is wide enough, that is, at least
38 # four bytes.
39
40 # The following line forces multi-byte support.
41 # If your C library does not treat wchar_t as UCS-4, the UTF-8 output
42 # mode will print garbage.
43
44 HAVE_WCHAR=1
45
46 # The following line disables multi-byte support.
47 # The output modes -Tutf8 and -Tlocale will be the same as -Tascii.
48
49 HAVE_WCHAR=0
50
51 # For -Tutf8 mode, mandoc needs to set an arbitrary locale having
52 # a UTF-8 character set.  If autodetection of a suitable locale
53 # fails or selects an undesirable locale, you can manually choose
54 # the locale for -Tutf8 mode:
55
56 UTF8_LOCALE=en_US.UTF-8
57
58 # When man(1) or apropos(1) is called without -m and -M options,
59 # MANPATH is not set in the environment, and man.conf(5) is not
60 # available, manuals are searched for in the following directory
61 # trees by default.
62
63 MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
64
65 # In manual pages written in the mdoc(7) language, the operating system
66 # version is displayed in the page footer line.  If an operating system
67 # is specified as an argument to the .Os macro, that is always used.
68 # If the .Os macro has no argument and an operation system is specified
69 # with the mandoc(1) -Ios= command line option, that is used.
70 # Otherwise, the uname(3) library function is called at runtime to find
71 # the name of the operating system.
72 # If you do not want uname(3) to be called but instead want a fixed
73 # string to be used, use the following line:
74
75 OSNAME="OpenBSD 6.0"
76
77 # The following installation directories are used.
78 # It is possible to set only one or a few of these variables,
79 # there is no need to copy the whole block.
80 # Even if you set PREFIX to something else, the other variables
81 # pick it up without copying them all over.
82
83 PREFIX="/usr/local"
84 BINDIR="${PREFIX}/bin"
85 SBINDIR="${PREFIX}/sbin"
86 MANDIR="${PREFIX}/man"
87
88 # Some distributions may want to avoid naming conflicts
89 # with the configuration files of other man(1) implementations.
90 # This changes the name of the installed section 5 manual page as well.
91 MANM_MANCONF="mandoc.conf"      # default is "man.conf"
92
93 # Some distributions may want to avoid naming conflicts among manuals.
94 # If you want to change the names of installed section 7 manual pages,
95 # the following alternative names are suggested.
96 # The suffix ".7" will automatically be appended.
97 # It is possible to set only one or a few of these variables,
98 # there is no need to copy the whole block.
99
100 MANM_MAN="mandoc_man"           # default is "man"
101 MANM_MDOC="mandoc_mdoc"         # default is "mdoc"
102 MANM_ROFF="mandoc_roff"         # default is "roff"
103 MANM_EQN="mandoc_eqn"           # default is "eqn"
104 MANM_TBL="mandoc_tbl"           # default is "tbl"
105
106 # Some distributions may want to avoid naming conflicts with
107 # other man(1), apropos(1), makewhatis(8), or soelim(1) utilities.
108 # If you want to change the names of binary programs,
109 # the following alternative names are suggested.
110 # Using different names is possible as well.
111 # This changes the names of the installed section 1 and section 8
112 # manual pages as well.
113 # It is possible to set only one or two of these variables,
114 # there is no need to copy the whole block.
115
116 BINM_MAN=mman                   # default is "man"
117 BINM_APROPOS=mapropos           # default is "apropos"
118 BINM_WHATIS=mwhatis             # default is "whatis"
119 BINM_MAKEWHATIS=mandocdb        # default is "makewhatis"
120 BINM_SOELIM=msoelim             # default is "soelim"
121
122 # Before falling back to the bundled version of the ohash(3) hashing
123 # library, autoconfiguration tries the following linker flag to
124 # link against your system version.  If you do have ohash(3) on
125 # your system but it needs different linker flags, set the following
126 # variable to specify the required linker flags.
127
128 LD_OHASH="-lutil"
129
130 # When library autodetection decides to use -L/usr/local/lib,
131 # -I/usr/local/include is automatically added to CFLAGS.
132 # If you manually set LD_OHASH to something including -L/usr/local/lib,
133 # chances are you will also need the following line:
134
135 CFLAGS="${CFLAGS} -I/usr/local/include"
136
137 # Some platforms may need an additional linker flag for nanosleep(2).
138 # If none is needed or it is -lrt, it is autodetected.
139 # Otherwise, set the following variable.
140
141 LD_NANOSLEEP="-lrt"
142
143 # Some platforms might need additional linker flags to link against
144 # libmandoc that are not autodetected, though no such cases are
145 # currently known.
146
147 LDADD="-lm"
148
149 # Some systems may want to set additional linker flags for all the
150 # binaries, not only for those using libmandoc, for example for
151 # hardening options.
152
153 LDFLAGS="-Wl,-z,relro"
154
155 # It is possible to change the utility program used for installation
156 # and the modes files are installed with.  The defaults are:
157
158 INSTALL="install"
159 INSTALL_PROGRAM="${INSTALL} -m 0555"
160 INSTALL_LIB="${INSTALL} -m 0444"
161 INSTALL_MAN="${INSTALL} -m 0444"
162 INSTALL_DATA="${INSTALL} -m 0444"
163
164 # When using the "homebrew" package manager on Mac OS X, the actual
165 # manuals are located in a so-called "cellar" and only symlinked
166 # into the manual trees.  To allow mandoc to follow such symlinks,
167 # you have to specify the physical location of the cellar as returned
168 # by realpath(3), for example:
169
170 PREFIX="/usr/local"
171 HOMEBREWDIR="${PREFIX}/Cellar"
172
173 # --- user settings for the mandoc(3) library --------------------------
174
175 # By default, libmandoc.a is not installed.  It is almost never needed
176 # because there is almost no non-mandoc software out there using this
177 # library.  The one notable exception is NetBSD apropos(1).
178 # So, when building for the NetBSD base system - but not for NetBSD
179 # ports nor for pkgsrc! - you may want the following:
180
181 INSTALL_LIBMANDOC=1
182
183 # The following settings are only used when INSTALL_LIBMANDOC is set.
184
185 INCLUDEDIR="${PREFIX}/include/mandoc"
186 LIBDIR="${PREFIX}/lib/mandoc"
187
188 # --- user settings related to man.cgi ---------------------------------
189
190 # By default, building man.cgi(8) is disabled.  To enable it, copy
191 # cgi.h.example to cgi.h, edit it, and use the following line.
192
193 BUILD_CGI=1
194
195 # The remaining settings in this section are only relevant if BUILD_CGI
196 # is enabled.  Otherwise, they have no effect either way.
197
198 # By default, man.cgi(8) is linked statically.
199 # Some systems do not support static linking, for example Mac OS X.
200 # In that case, use the following line:
201
202 STATIC=
203
204 # Some systems, for example Linux, require -pthread for static linking:
205
206 STATIC="-static -pthread"
207
208 # Some directories.
209 # This works just like PREFIX, see above.
210
211 WWWPREFIX="/var/www"
212 HTDOCDIR="${WWWPREFIX}/htdocs"
213 CGIBINDIR="${WWWPREFIX}/cgi-bin"
214
215 # --- settings that rarely need to be touched --------------------------
216
217 # Do not set these variables unless you really need to.
218
219 # You can manually override the compiler to be used.
220 # But that's rarely useful because ./configure asks your make(1)
221 # which compiler to use, and that answer will hardly be wrong.
222
223 CC=cc
224
225 # IBM AIX may need:
226
227 CC=xlc
228
229 # The default compiler flags are:
230
231 CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
232
233 # IBM AIX xlc does not support -W; in that case, please use:
234
235 CFLAGS="-g"
236
237 # In rare cases, it may be required to skip individual automatic tests.
238 # Each of the following variables can be set to 0 (test will not be run
239 # and will be regarded as failed) or 1 (test will not be run and will
240 # be regarded as successful).
241
242 HAVE_DIRENT_NAMLEN=0
243 HAVE_ENDIAN=0
244 HAVE_EFTYPE=0
245 HAVE_ERR=0
246 HAVE_FTS=0  # Setting this implies HAVE_FTS_COMPARE_CONST=0.
247 HAVE_FTS_COMPARE_CONST=0  # Setting this implies HAVE_FTS=1.
248 HAVE_GETLINE=0
249 HAVE_GETSUBOPT=0
250 HAVE_ISBLANK=0
251 HAVE_MKDTEMP=0
252 HAVE_NTOHL=0
253 HAVE_OHASH=0
254 HAVE_PATH_MAX=0
255 HAVE_PLEDGE=0
256 HAVE_PROGNAME=0
257 HAVE_REALLOCARRAY=0
258 HAVE_REWB_BSD=0
259 HAVE_REWB_SYSV=0
260 HAVE_STRCASESTR=0
261 HAVE_STRINGLIST=0
262 HAVE_STRLCAT=0
263 HAVE_STRLCPY=0
264 HAVE_STRPTIME=0
265 HAVE_STRSEP=0
266 HAVE_STRTONUM=0
267 HAVE_SYS_ENDIAN=0
268 HAVE_VASPRINTF=0
269 HAVE_WCHAR=0