Blame


1 0efd7c9a 2022-07-30 op #
2 0efd7c9a 2022-07-30 op # Copyright (c) 2022 Omar Polo <op@openbsd.org>
3 0efd7c9a 2022-07-30 op # Copyright (c) 2014-2022 Ingo Schwarze <schwarze@openbsd.org>
4 0efd7c9a 2022-07-30 op #
5 0efd7c9a 2022-07-30 op # Permission to use, copy, modify, and distribute this software for any
6 0efd7c9a 2022-07-30 op # purpose with or without fee is hereby granted, provided that the above
7 0efd7c9a 2022-07-30 op # copyright notice and this permission notice appear in all copies.
8 0efd7c9a 2022-07-30 op #
9 0efd7c9a 2022-07-30 op # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 0efd7c9a 2022-07-30 op # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 0efd7c9a 2022-07-30 op # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 0efd7c9a 2022-07-30 op # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 0efd7c9a 2022-07-30 op # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 0efd7c9a 2022-07-30 op # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 0efd7c9a 2022-07-30 op # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 0efd7c9a 2022-07-30 op
17 0efd7c9a 2022-07-30 op # For all settings documented in this file, there are reasonable
18 0efd7c9a 2022-07-30 op # defaults and/or the ./configure script attempts autodetection.
19 0efd7c9a 2022-07-30 op # Consequently, you only need to create a file ./configure.local
20 0efd7c9a 2022-07-30 op # and put any of these settings into it if ./configure autodetection
21 0efd7c9a 2022-07-30 op # fails or if you want to make different choices for other reasons.
22 0efd7c9a 2022-07-30 op
23 0efd7c9a 2022-07-30 op # If autodetection fails, please tell <op@omarpolo.com>.
24 0efd7c9a 2022-07-30 op
25 0efd7c9a 2022-07-30 op # We recommend that you write ./configure.local from scratch and
26 0efd7c9a 2022-07-30 op # only put the lines there you need. This file contains examples.
27 0efd7c9a 2022-07-30 op # It is not intended as a template to be copied as a whole.
28 0efd7c9a 2022-07-30 op
29 0efd7c9a 2022-07-30 op # Some systems may want to set additional linker flags for all the
30 0efd7c9a 2022-07-30 op # binaries, for example for hardening options.
31 0efd7c9a 2022-07-30 op
32 0efd7c9a 2022-07-30 op LDFLAGS="-Wl,-z,relro"
33 0efd7c9a 2022-07-30 op
34 0efd7c9a 2022-07-30 op # It may be needed to change the flags for the individual libraries.
35 0efd7c9a 2022-07-30 op
36 0efd7c9a 2022-07-30 op LDADD_LIBEVENT2="-L/opt/lib/ -levent_extra -levent_core"
37 0efd7c9a 2022-07-30 op LDADD_LIB_SOCKET=
38 0efd7c9a 2022-07-30 op
39 0efd7c9a 2022-07-30 op # To disable the autoconfiguration via pkg-config set PKG_CONFIG to
40 3a9f646c 2022-07-30 op # `false':
41 0efd7c9a 2022-07-30 op
42 3a9f646c 2022-07-30 op PKG_CONFIG=false
43 0efd7c9a 2022-07-30 op
44 0efd7c9a 2022-07-30 op # It is possible to change the utility program used for installation
45 0efd7c9a 2022-07-30 op # and the modes files are installed with. The defaults are:
46 0efd7c9a 2022-07-30 op
47 0efd7c9a 2022-07-30 op INSTALL="install"
48 0efd7c9a 2022-07-30 op INSTALL_PROGRAM="${INSTALL} -m 0555"
49 0efd7c9a 2022-07-30 op INSTALL_LIB="${INSTALL} -m 0444"
50 0efd7c9a 2022-07-30 op INSTALL_MAN="${INSTALL} -m 0444"
51 0efd7c9a 2022-07-30 op INSTALL_DATA="${INSTALL} -m 0444"
52 0efd7c9a 2022-07-30 op
53 0efd7c9a 2022-07-30 op # In rare cases, it may be required to skip individual automatic tests.
54 0efd7c9a 2022-07-30 op # Each of the following variables can be set to 0 (test will not be run
55 0efd7c9a 2022-07-30 op # and will be regarded as failed) or 1 (test will not be run and will
56 0efd7c9a 2022-07-30 op # be regarded as successful).
57 0efd7c9a 2022-07-30 op
58 0efd7c9a 2022-07-30 op HAVE_GETEXECNAME=0
59 0efd7c9a 2022-07-30 op HAVE_GETPROGNAME=0
60 0efd7c9a 2022-07-30 op HAVE_LIBEVENT=0
61 0efd7c9a 2022-07-30 op HAVE_LIBEVENT2=0
62 0efd7c9a 2022-07-30 op HAVE_PLEDGE=0
63 0efd7c9a 2022-07-30 op HAVE_PROGRAM_INVOCATION_SHORT_NAME=0
64 0efd7c9a 2022-07-30 op HAVE_PR_SET_NAME=0
65 0efd7c9a 2022-07-30 op HAVE_STRLCAT=0
66 0efd7c9a 2022-07-30 op HAVE_STRLCPY=0
67 0efd7c9a 2022-07-30 op HAVE_STRTONUM=0
68 0efd7c9a 2022-07-30 op HAVE_UNVEIL=0
69 0efd7c9a 2022-07-30 op HAVE___PROGNAME=0