1 # $Id: configure.local.example,v 1.8 2015/03/27 00:18:14 schwarze Exp $
3 # Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
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.
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.
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.
23 # If autodetection fails, please tell <tech@mdocml.bsd.lv>.
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.
29 # --- user settings relevant for all builds ----------------------------
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
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.
46 # The following line disables multi-byte support.
47 # The output modes -Tutf8 and -Tlocale will be the same as -Tascii.
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.
56 MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
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:
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.
77 BINDIR="${PREFIX}/bin"
78 SBINDIR="${PREFIX}/sbin"
79 INCLUDEDIR="${PREFIX}/include/mandoc"
80 LIBDIR="${PREFIX}/lib/mandoc"
81 MANDIR="${PREFIX}/man"
82 EXAMPLEDIR="${PREFIX}/share/examples/mandoc"
84 # The man(1) utility needs to know where the manuals reside.
85 # We know of two ways to tell it: via manpath(1) or man.conf(5).
86 # The latter is used by OpenBSD and NetBSD, the former by most
89 # Force usage of manpath(1).
90 # If it is not installed or not operational,
91 # man(1), makewhatis(8), and apropos(1) will not work properly.
94 # Force usage of man.conf(5).
95 # If it does not exist or contains no valid configuration,
96 # man(1), makewhatis(8), and apropos(1) will not work properly.
99 # Some distributions may want to avoid naming conflicts
100 # with the configuration files of other man(1) implementations.
101 # This changes the name of the installed section 5 manual page as well.
102 MANM_MANCONF="mandoc.conf" # default is "man.conf"
104 # Some distributions may want to avoid naming conflicts among manuals.
105 # If you want to change the names of installed section 7 manual pages,
106 # the following alternative names are suggested.
107 # The suffix ".7" will automatically be appended.
108 # It is possible to set only one or a few of these variables,
109 # there is no need to copy the whole block.
111 MANM_MAN="mandoc_man" # default is "man"
112 MANM_MDOC="mandoc_mdoc" # default is "mdoc"
113 MANM_ROFF="mandoc_roff" # default is "roff"
114 MANM_EQN="mandoc_eqn" # default is "eqn"
115 MANM_TBL="mandoc_tbl" # default is "tbl"
117 # Some distributions may want to avoid naming conflicts
118 # with another man(1) utility.
119 # If you want to change the name of the binary program,
120 # the following alternative name is suggested.
121 # Using a different name is possible as well.
122 # This changes the name of the installed section 1 manual page as well.
124 BINM_MAN=mman # default is "man"
126 # It is possible to change the utility program used for installation
127 # and the modes files are installed with. The defaults are:
130 INSTALL_PROGRAM="${INSTALL} -m 0555"
131 INSTALL_LIB="${INSTALL} -m 0444"
132 INSTALL_MAN="${INSTALL} -m 0444"
133 INSTALL_DATA="${INSTALL} -m 0444"
135 # --- user settings related to database support ------------------------
137 # By default, building makewhatis(8) and apropos(1) is enabled.
138 # To disable it, for example to avoid the dependency on SQLite3,
139 # use the following line. It that case, the remaining settings
140 # in this section are irrelevant.
144 # Two libraries are needed: SQLite3 and ohash(3).
145 # Autoconfiguration tries the following linker flags to find them.
146 # If none of these work, add a working DBLIB line to configure.local,
147 # disabling autodetection for library directories.
150 DBLIB="-lsqlite3 -lutil"
151 DBLIB="-L/usr/local/lib -lsqlite3"
153 # When library autodetection decides to use -L/usr/local/lib,
154 # -I/usr/local/include is automatically added to CFLAGS.
155 # If you manually set DBLIB to something including -L/usr/local/lib,
156 # chances are you will also need the following line:
158 CFLAGS="${CFLAGS} -I/usr/local/include"
160 # Some distributions may want to avoid naming conflicts
161 # with another implementation of apropos(1) and makewhatis(8).
162 # If you want to change the names of the binary programs,
163 # the following alternative names are suggested.
164 # Using other names is possible as well.
165 # This changes the names of the installed section 1 and section 8
166 # manual pages as well.
167 # It is possible to set only one or two of these variables,
168 # there is no need to copy the whole block.
170 BINM_APROPOS=mapropos # default is "apropos"
171 BINM_WHATIS=mwhatis # default is "whatis"
172 BINM_MAKEWHATIS=mandocdb # default is "makewhatis"
174 # When using the "homebrew" package manager on Mac OS X, the actual
175 # manuals are located in a so-called "cellar" and only symlinked
176 # into the manual trees. To allow mandoc to follow such symlinks,
177 # you have to specify the physical location of the cellar as returned
178 # by realpath(3), for example:
181 HOMEBREWDIR="${PREFIX}/Cellar"
183 # --- user settings related man.cgi ------------------------------------
185 # By default, building man.cgi(8) is disabled. To enable it, copy
186 # cgi.h.example to cgi.h, edit it, and use the following line.
187 # Obviously, this requires that BUILD_DB is enabled, too.
191 # The remaining settings in this section are only relevant if BUILD_CGI
192 # is enabled. Otherwise, they have no effect either way.
194 # By default, man.cgi(8) is linked statically.
195 # Some systems do not support static linking, for example Mac OS X.
196 # In that case, use the following line:
200 # Some systems, for example Linux, require -pthread for static linking:
202 STATIC="-static -pthread"
205 # This works just like PREFIX, see above.
208 HTDOCDIR="${WWWPREFIX}/htdocs"
209 CGIBINDIR="${WWWPREFIX}/cgi-bin"
211 # --- settings that rarely need to be touched --------------------------
213 # Do not set these variables unless you really need to.
215 # You can manually override the compiler to be used.
216 # But that's rarely useful because ./configure asks your make(1)
217 # which compiler to use, and that answer will hardly be wrong.
221 # The default compiler flags are:
223 CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
225 # In rare cases, it may be required to skip individual automatic tests.
226 # Each of the following variables can be set to 0 (test will not be run
227 # and will be regarded as failed) or 1 (test will not be run and will
228 # be regarded as successful).
244 HAVE_SQLITE3_ERRSTR=0