configure.local.example revision 1.1.1.2
1# Id: configure.local.example,v 1.13 2016/07/14 11:09:06 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
44HAVE_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
49HAVE_WCHAR=0
50
51# When man(1) or apropos(1) is called without -m and -M options,
52# MANPATH is not set in the environment, man.conf(5) is not available
53# and manpath(1) not used, manuals are searched for in the following
54# directory trees by default.
55
56MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
57
58# In manual pages written in the mdoc(7) language, the operating system
59# version is displayed in the page footer line.  If an operating system
60# is specified as an argument to the .Os macro, that is always used.
61# If the .Os macro has no argument and an operation system is specified
62# with the mandoc(1) -Ios= command line option, that is used.
63# Otherwise, the uname(3) library function is called at runtime to find
64# the name of the operating system.
65# If you do not want uname(3) to be called but instead want a fixed
66# string to be used, use the following line:
67
68OSNAME="OpenBSD 5.9"
69
70# The following installation directories are used.
71# It is possible to set only one or a few of these variables,
72# there is no need to copy the whole block.
73# Even if you set PREFIX to something else, the other variables
74# pick it up without copying them all over.
75
76PREFIX="/usr/local"
77BINDIR="${PREFIX}/bin"
78SBINDIR="${PREFIX}/sbin"
79INCLUDEDIR="${PREFIX}/include/mandoc"
80LIBDIR="${PREFIX}/lib/mandoc"
81MANDIR="${PREFIX}/man"
82
83# The man(1) utility needs to know where the manuals reside.
84# We know of two ways to tell it: via manpath(1) or man.conf(5).
85# The latter is used by OpenBSD and NetBSD, the former by most
86# other systems.
87
88# Force usage of manpath(1).
89# If it is not installed or not operational,
90# man(1), makewhatis(8), and apropos(1) will not work properly.
91HAVE_MANPATH=1
92
93# Force usage of man.conf(5).
94# If it does not exist or contains no valid configuration,
95# man(1), makewhatis(8), and apropos(1) will not work properly.
96HAVE_MANPATH=0
97
98# Some distributions may want to avoid naming conflicts
99# with the configuration files of other man(1) implementations.
100# This changes the name of the installed section 5 manual page as well.
101MANM_MANCONF="mandoc.conf"	# default is "man.conf"
102
103# Some distributions may want to avoid naming conflicts among manuals.
104# If you want to change the names of installed section 7 manual pages,
105# the following alternative names are suggested.
106# The suffix ".7" will automatically be appended.
107# It is possible to set only one or a few of these variables,
108# there is no need to copy the whole block.
109
110MANM_MAN="mandoc_man"		# default is "man"
111MANM_MDOC="mandoc_mdoc"		# default is "mdoc"
112MANM_ROFF="mandoc_roff"		# default is "roff"
113MANM_EQN="mandoc_eqn"		# default is "eqn"
114MANM_TBL="mandoc_tbl"		# default is "tbl"
115
116# Some distributions may want to avoid naming conflicts
117# with other man(1) and soelim(1) utilities.
118# If you want to change the names of binary programs,
119# the following alternative names are suggested.
120# Using different names is possible as well.
121# This changes the names of the installed section 1 manual pages as well.
122
123BINM_MAN=mman			# default is "man"
124BINM_SOELIM=msoelim		# default is "soelim"
125
126# Before falling back to the bundled version of the ohash(3) hashing
127# library, autoconfiguration tries the following linker flag to
128# link against your system version.  If you do have ohash(3) on
129# your system but it needs different linker flags, set the following
130# variable to specify the required linker flags.
131
132LD_OHASH="-lutil"
133
134# Some platforms may need additional linker flags to link against libmandoc
135# that are not autodetected.
136# For example, Solaris 9 and 10 need -lrt for nanosleep(2).
137
138LDADD="-lrt"
139
140# Some systems may want to set additional linker flags for all the
141# binaries, not only for those using libmandoc, for example for
142# hardening options.
143
144LDFLAGS="-Wl,-z,relro"
145
146# It is possible to change the utility program used for installation
147# and the modes files are installed with.  The defaults are:
148
149INSTALL="install"
150INSTALL_PROGRAM="${INSTALL} -m 0555"
151INSTALL_LIB="${INSTALL} -m 0444"
152INSTALL_MAN="${INSTALL} -m 0444"
153INSTALL_DATA="${INSTALL} -m 0444"
154
155# --- user settings related to database support ------------------------
156
157# By default, building makewhatis(8) and apropos(1) is enabled.
158# To disable it, for example to avoid the dependency on SQLite3,
159# use the following line.  It that case, the remaining settings
160# in this section are irrelevant.
161
162BUILD_DB=0
163
164# Autoconfiguration tries the following linker flags to find the
165# SQLite3 library installed on your system.  If none of these work,
166# set the following variable to specify the required linker flags.
167
168LD_SQLITE3="-lsqlite3"
169LD_SQLITE3="-L/usr/local/lib -lsqlite3"
170
171# When library autodetection decides to use -L/usr/local/lib,
172# -I/usr/local/include is automatically added to CFLAGS.
173# If you manually set LD_SQLITE3 to something including -L/usr/local/lib,
174# chances are you will also need the following line:
175
176CFLAGS="${CFLAGS} -I/usr/local/include"
177
178# Some distributions may want to avoid naming conflicts
179# with another implementation of apropos(1) and makewhatis(8).
180# If you want to change the names of the binary programs,
181# the following alternative names are suggested.
182# Using other names is possible as well.
183# This changes the names of the installed section 1 and section 8
184# manual pages as well.
185# It is possible to set only one or two of these variables,
186# there is no need to copy the whole block.
187
188BINM_APROPOS=mapropos		# default is "apropos"
189BINM_WHATIS=mwhatis		# default is "whatis"
190BINM_MAKEWHATIS=mandocdb	# default is "makewhatis"
191
192# When using the "homebrew" package manager on Mac OS X, the actual
193# manuals are located in a so-called "cellar" and only symlinked
194# into the manual trees.  To allow mandoc to follow such symlinks,
195# you have to specify the physical location of the cellar as returned
196# by realpath(3), for example:
197
198PREFIX="/usr/local"
199HOMEBREWDIR="${PREFIX}/Cellar"
200
201# --- user settings related man.cgi ------------------------------------
202
203# By default, building man.cgi(8) is disabled.  To enable it, copy
204# cgi.h.example to cgi.h, edit it, and use the following line.
205# Obviously, this requires that BUILD_DB is enabled, too.
206
207BUILD_CGI=1
208
209# The remaining settings in this section are only relevant if BUILD_CGI
210# is enabled.  Otherwise, they have no effect either way.
211
212# By default, man.cgi(8) is linked statically.
213# Some systems do not support static linking, for example Mac OS X.
214# In that case, use the following line:
215
216STATIC=
217
218# Some systems, for example Linux, require -pthread for static linking:
219
220STATIC="-static -pthread"
221
222# Some directories.
223# This works just like PREFIX, see above.
224
225WWWPREFIX="/var/www"
226HTDOCDIR="${WWWPREFIX}/htdocs"
227CGIBINDIR="${WWWPREFIX}/cgi-bin"
228
229# --- settings that rarely need to be touched --------------------------
230
231# Do not set these variables unless you really need to.
232
233# You can manually override the compiler to be used.
234# But that's rarely useful because ./configure asks your make(1)
235# which compiler to use, and that answer will hardly be wrong.
236
237CC=cc
238
239# IBM AIX may need:
240
241CC=xlc
242
243# The default compiler flags are:
244
245CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
246
247# IBM AIX xlc does not support -W; in that case, please use:
248
249CFLAGS="-g"
250
251# In rare cases, it may be required to skip individual automatic tests.
252# Each of the following variables can be set to 0 (test will not be run
253# and will be regarded as failed) or 1 (test will not be run and will
254# be regarded as successful).
255
256HAVE_DIRENT_NAMLEN=0
257HAVE_ERR=0
258HAVE_FTS=0
259HAVE_GETLINE=0
260HAVE_GETSUBOPT=0
261HAVE_ISBLANK=0
262HAVE_MKDTEMP=0
263HAVE_MMAP=0
264HAVE_PLEDGE=0
265HAVE_PROGNAME=0
266HAVE_REALLOCARRAY=0
267HAVE_REWB_BSD=0
268HAVE_REWB_SYSV=0
269HAVE_STRCASESTR=0
270HAVE_STRINGLIST=0
271HAVE_STRLCAT=0
272HAVE_STRLCPY=0
273HAVE_STRPTIME=0
274HAVE_STRSEP=0
275HAVE_STRTONUM=0
276HAVE_VASPRINTF=0
277HAVE_WCHAR=0
278
279HAVE_SQLITE3=0
280HAVE_SQLITE3_ERRSTR=0
281HAVE_OHASH=0
282