Annotation of mandoc/configure.local.example, Revision 1.17
1.17 ! schwarze 1: # $Id: configure.local.example,v 1.16 2016/07/19 22:40:33 schwarze Exp $
1.1 schwarze 2: #
1.11 schwarze 3: # Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org>
1.1 schwarze 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
1.7 schwarze 50:
51: # When man(1) or apropos(1) is called without -m and -M options,
1.16 schwarze 52: # MANPATH is not set in the environment, and man.conf(5) is not
53: # available, manuals are searched for in the following directory
54: # trees by default.
1.7 schwarze 55:
56: MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
1.1 schwarze 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:
1.15 schwarze 68: OSNAME="OpenBSD 6.0"
1.1 schwarze 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:
76: PREFIX="/usr/local"
77: BINDIR="${PREFIX}/bin"
78: SBINDIR="${PREFIX}/sbin"
79: INCLUDEDIR="${PREFIX}/include/mandoc"
80: LIBDIR="${PREFIX}/lib/mandoc"
81: MANDIR="${PREFIX}/man"
1.8 schwarze 82:
83: # Some distributions may want to avoid naming conflicts
84: # with the configuration files of other man(1) implementations.
85: # This changes the name of the installed section 5 manual page as well.
86: MANM_MANCONF="mandoc.conf" # default is "man.conf"
1.5 schwarze 87:
1.2 schwarze 88: # Some distributions may want to avoid naming conflicts among manuals.
89: # If you want to change the names of installed section 7 manual pages,
90: # the following alternative names are suggested.
91: # The suffix ".7" will automatically be appended.
92: # It is possible to set only one or a few of these variables,
93: # there is no need to copy the whole block.
94:
95: MANM_MAN="mandoc_man" # default is "man"
96: MANM_MDOC="mandoc_mdoc" # default is "mdoc"
97: MANM_ROFF="mandoc_roff" # default is "roff"
98: MANM_EQN="mandoc_eqn" # default is "eqn"
99: MANM_TBL="mandoc_tbl" # default is "tbl"
100:
1.15 schwarze 101: # Some distributions may want to avoid naming conflicts with
102: # other man(1), apropos(1), makewhatis(8), or soelim(1) utilities.
1.9 schwarze 103: # If you want to change the names of binary programs,
104: # the following alternative names are suggested.
105: # Using different names is possible as well.
1.15 schwarze 106: # This changes the names of the installed section 1 and section 8
107: # manual pages as well.
108: # It is possible to set only one or two of these variables,
109: # there is no need to copy the whole block.
1.5 schwarze 110:
111: BINM_MAN=mman # default is "man"
1.15 schwarze 112: BINM_APROPOS=mapropos # default is "apropos"
113: BINM_WHATIS=mwhatis # default is "whatis"
114: BINM_MAKEWHATIS=mandocdb # default is "makewhatis"
1.9 schwarze 115: BINM_SOELIM=msoelim # default is "soelim"
1.5 schwarze 116:
1.11 schwarze 117: # Before falling back to the bundled version of the ohash(3) hashing
118: # library, autoconfiguration tries the following linker flag to
119: # link against your system version. If you do have ohash(3) on
120: # your system but it needs different linker flags, set the following
121: # variable to specify the required linker flags.
122:
123: LD_OHASH="-lutil"
124:
1.15 schwarze 125: # When library autodetection decides to use -L/usr/local/lib,
126: # -I/usr/local/include is automatically added to CFLAGS.
127: # If you manually set LD_OHASH to something including -L/usr/local/lib,
128: # chances are you will also need the following line:
129:
130: CFLAGS="${CFLAGS} -I/usr/local/include"
131:
1.17 ! schwarze 132: # Some platforms may need an additional linker flag for nanosleep(2).
! 133: # If none is needed or it is -lrt, it is autodetected.
! 134: # Otherwise, set the following variable.
1.11 schwarze 135:
1.17 ! schwarze 136: LD_NANOSLEEP="-lrt"
! 137:
! 138: # Some platforms might need additional linker flags to link against
! 139: # libmandoc that are not autodetected, though no such cases are
! 140: # currently known.
! 141:
! 142: LDADD="-lm"
1.12 schwarze 143:
144: # Some systems may want to set additional linker flags for all the
145: # binaries, not only for those using libmandoc, for example for
146: # hardening options.
147:
148: LDFLAGS="-Wl,-z,relro"
1.11 schwarze 149:
1.1 schwarze 150: # It is possible to change the utility program used for installation
151: # and the modes files are installed with. The defaults are:
152:
153: INSTALL="install"
154: INSTALL_PROGRAM="${INSTALL} -m 0555"
155: INSTALL_LIB="${INSTALL} -m 0444"
156: INSTALL_MAN="${INSTALL} -m 0444"
157: INSTALL_DATA="${INSTALL} -m 0444"
158:
1.3 schwarze 159: # When using the "homebrew" package manager on Mac OS X, the actual
160: # manuals are located in a so-called "cellar" and only symlinked
161: # into the manual trees. To allow mandoc to follow such symlinks,
162: # you have to specify the physical location of the cellar as returned
163: # by realpath(3), for example:
164:
1.4 schwarze 165: PREFIX="/usr/local"
166: HOMEBREWDIR="${PREFIX}/Cellar"
1.1 schwarze 167:
1.14 schwarze 168: # --- user settings related to man.cgi ---------------------------------
1.1 schwarze 169:
170: # By default, building man.cgi(8) is disabled. To enable it, copy
171: # cgi.h.example to cgi.h, edit it, and use the following line.
172:
173: BUILD_CGI=1
174:
175: # The remaining settings in this section are only relevant if BUILD_CGI
176: # is enabled. Otherwise, they have no effect either way.
177:
178: # By default, man.cgi(8) is linked statically.
179: # Some systems do not support static linking, for example Mac OS X.
180: # In that case, use the following line:
181:
182: STATIC=
183:
184: # Some systems, for example Linux, require -pthread for static linking:
185:
186: STATIC="-static -pthread"
187:
188: # Some directories.
189: # This works just like PREFIX, see above.
190:
191: WWWPREFIX="/var/www"
192: HTDOCDIR="${WWWPREFIX}/htdocs"
193: CGIBINDIR="${WWWPREFIX}/cgi-bin"
194:
195: # --- settings that rarely need to be touched --------------------------
196:
197: # Do not set these variables unless you really need to.
198:
199: # You can manually override the compiler to be used.
200: # But that's rarely useful because ./configure asks your make(1)
201: # which compiler to use, and that answer will hardly be wrong.
202:
203: CC=cc
204:
1.13 schwarze 205: # IBM AIX may need:
206:
207: CC=xlc
208:
1.1 schwarze 209: # The default compiler flags are:
210:
211: CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
1.13 schwarze 212:
213: # IBM AIX xlc does not support -W; in that case, please use:
214:
215: CFLAGS="-g"
1.1 schwarze 216:
217: # In rare cases, it may be required to skip individual automatic tests.
218: # Each of the following variables can be set to 0 (test will not be run
219: # and will be regarded as failed) or 1 (test will not be run and will
220: # be regarded as successful).
221:
222: HAVE_DIRENT_NAMLEN=0
1.11 schwarze 223: HAVE_ERR=0
1.1 schwarze 224: HAVE_FTS=0
1.11 schwarze 225: HAVE_GETLINE=0
1.1 schwarze 226: HAVE_GETSUBOPT=0
1.11 schwarze 227: HAVE_ISBLANK=0
228: HAVE_MKDTEMP=0
1.15 schwarze 229: HAVE_OHASH=0
1.11 schwarze 230: HAVE_PLEDGE=0
231: HAVE_PROGNAME=0
1.1 schwarze 232: HAVE_REALLOCARRAY=0
1.11 schwarze 233: HAVE_REWB_BSD=0
234: HAVE_REWB_SYSV=0
1.1 schwarze 235: HAVE_STRCASESTR=0
1.11 schwarze 236: HAVE_STRINGLIST=0
1.1 schwarze 237: HAVE_STRLCAT=0
238: HAVE_STRLCPY=0
239: HAVE_STRPTIME=0
240: HAVE_STRSEP=0
1.6 schwarze 241: HAVE_STRTONUM=0
1.11 schwarze 242: HAVE_VASPRINTF=0
243: HAVE_WCHAR=0
CVSweb