]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/mdocml/configure.local.example
Update elftoolchain to upstream rev 3130
[FreeBSD/FreeBSD.git] / contrib / mdocml / configure.local.example
1 # $Id: configure.local.example,v 1.1 2014/08/16 19:00:01 schwarze Exp $
2 #
3 # Copyright (c) 2014 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 # In manual pages written in the mdoc(7) language, the operating system
52 # version is displayed in the page footer line.  If an operating system
53 # is specified as an argument to the .Os macro, that is always used.
54 # If the .Os macro has no argument and an operation system is specified
55 # with the mandoc(1) -Ios= command line option, that is used.
56 # Otherwise, the uname(3) library function is called at runtime to find
57 # the name of the operating system.
58 # If you do not want uname(3) to be called but instead want a fixed
59 # string to be used, use the following line:
60
61 OSNAME="OpenBSD 5.5"
62
63 # The following installation directories are used.
64 # It is possible to set only one or a few of these variables,
65 # there is no need to copy the whole block.
66 # Even if you set PREFIX to something else, the other variables
67 # pick it up without copying them all over.
68
69 PREFIX="/usr/local"
70 BINDIR="${PREFIX}/bin"
71 SBINDIR="${PREFIX}/sbin"
72 INCLUDEDIR="${PREFIX}/include/mandoc"
73 LIBDIR="${PREFIX}/lib/mandoc"
74 MANDIR="${PREFIX}/man"
75 EXAMPLEDIR="${PREFIX}/share/examples/mandoc"
76
77 # It is possible to change the utility program used for installation
78 # and the modes files are installed with.  The defaults are:
79
80 INSTALL="install"
81 INSTALL_PROGRAM="${INSTALL} -m 0555"
82 INSTALL_LIB="${INSTALL} -m 0444"
83 INSTALL_MAN="${INSTALL} -m 0444"
84 INSTALL_DATA="${INSTALL} -m 0444"
85
86 # --- user settings related to database support ------------------------
87
88 # By default, building makewhatis(8) and apropos(1) is enabled.
89 # To disable it, for example to avoid the dependency on SQLite3,
90 # use the following line.  It that case, the remaining settings
91 # in this section are irrelevant.
92
93 BUILD_DB=0
94
95 # Two libraries are needed: SQLite3 and ohash(3).
96 # Autoconfiguration tries the following linker flags to find them.
97 # If none of these work, add a working DBLIB line to configure.local,
98 # disabling autodetection for library directories.
99
100 DBLIB="-lsqlite3"
101 DBLIB="-lsqlite3 -lutil"
102 DBLIB="-L/usr/local/lib -lsqlite3"
103
104 # When library autodetection decides to use -L/usr/local/lib,
105 # -I/usr/local/include is automatically added to CFLAGS.
106 # If you manually set DBLIB to something including -L/usr/local/lib,
107 # chances are you will also need the following line:
108
109 CFLAGS="${CFLAGS} -I/usr/local/include"
110
111 # The man(1) utility needs to know where the manuals reside.
112 # We know of two ways to tell it: via manpath(1) or man.conf(5).
113 # The latter is used by OpenBSD and NetBSD, the former by most
114 # other systems.
115
116 # Force usage of manpath(1).
117 # If it is not installed or not operational,
118 # makewhatis(8) and apropos(1) will not work properly.
119
120 HAVE_MANPATH=1
121
122 # Force usage of man.conf(5).
123 # If it does not exist or contains no valid configuration,
124 # makewhatis(8) and apropos(1) will not work properly.
125
126 HAVE_MANPATH=0
127
128 # --- user settings related man.cgi ------------------------------------
129
130 # By default, building man.cgi(8) is disabled.  To enable it, copy
131 # cgi.h.example to cgi.h, edit it, and use the following line.
132 # Obviously, this requires that BUILD_DB is enabled, too.
133
134 BUILD_CGI=1
135
136 # The remaining settings in this section are only relevant if BUILD_CGI
137 # is enabled.  Otherwise, they have no effect either way.
138
139 # By default, man.cgi(8) is linked statically.
140 # Some systems do not support static linking, for example Mac OS X.
141 # In that case, use the following line:
142
143 STATIC=
144
145 # Some systems, for example Linux, require -pthread for static linking:
146
147 STATIC="-static -pthread"
148
149 # Some directories.
150 # This works just like PREFIX, see above.
151
152 WWWPREFIX="/var/www"
153 HTDOCDIR="${WWWPREFIX}/htdocs"
154 CGIBINDIR="${WWWPREFIX}/cgi-bin"
155
156 # --- settings that rarely need to be touched --------------------------
157
158 # Do not set these variables unless you really need to.
159
160 # You can manually override the compiler to be used.
161 # But that's rarely useful because ./configure asks your make(1)
162 # which compiler to use, and that answer will hardly be wrong.
163
164 CC=cc
165
166 # The default compiler flags are:
167
168 CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
169
170 # In rare cases, it may be required to skip individual automatic tests.
171 # Each of the following variables can be set to 0 (test will not be run
172 # and will be regarded as failed) or 1 (test will not be run and will
173 # be regarded as successful).
174
175 HAVE_DIRENT_NAMLEN=0
176 HAVE_FGETLN=0
177 HAVE_FTS=0
178 HAVE_GETSUBOPT=0
179 HAVE_MMAP=0
180 HAVE_REALLOCARRAY=0
181 HAVE_STRCASESTR=0
182 HAVE_STRLCAT=0
183 HAVE_STRLCPY=0
184 HAVE_STRPTIME=0
185 HAVE_STRSEP=0
186
187 HAVE_SQLITE3=0
188 HAVE_SQLITE3_ERRSTR=0
189 HAVE_OHASH=0