]>
Commit | Line | Data |
---|---|---|
fb0951b0 | 1 | # |
47be870b LP |
2 | # This file is part of systemd. |
3 | # | |
3e214785 KS |
4 | # Copyright 2010-2012 Lennart Poettering |
5 | # Copyright 2010-2012 Kay Sievers | |
47be870b LP |
6 | # |
7 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
8 | # under the terms of the GNU Lesser General Public License as published by |
9 | # the Free Software Foundation; either version 2.1 of the License, or | |
47be870b LP |
10 | # (at your option) any later version. |
11 | # | |
12 | # systemd is distributed in the hope that it will be useful, but | |
13 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5430f7f2 | 15 | # Lesser General Public License for more details. |
47be870b | 16 | # |
5430f7f2 | 17 | # You should have received a copy of the GNU Lesser General Public License |
47be870b LP |
18 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. |
19 | ||
4e949c11 JJ |
20 | AC_PREREQ([2.64]) |
21 | ||
22 | AC_INIT([systemd], | |
e2044076 | 23 | [209], |
4e949c11 JJ |
24 | [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd], |
25 | [systemd], | |
26 | [http://www.freedesktop.org/wiki/Software/systemd]) | |
47be870b | 27 | |
78a825f2 | 28 | AC_CONFIG_SRCDIR([src/core/main.c]) |
47be870b LP |
29 | AC_CONFIG_MACRO_DIR([m4]) |
30 | AC_CONFIG_HEADERS([config.h]) | |
a80db8bd JJ |
31 | AC_CONFIG_AUX_DIR([build-aux]) |
32 | ||
4db6d587 | 33 | AC_USE_SYSTEM_EXTENSIONS |
907dd195 | 34 | AC_SYS_LARGEFILE |
eb7bbee6 | 35 | AC_PREFIX_DEFAULT([/usr]) |
6aad7f2c | 36 | AM_MAINTAINER_MODE([enable]) |
bbd9b8c2 | 37 | AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news]) |
3e214785 | 38 | AM_SILENT_RULES([yes]) |
47be870b | 39 | AC_CANONICAL_HOST |
22be093f | 40 | AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.]) |
d59d0a2b | 41 | AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" || |
42 | test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"], | |
43 | [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])]) | |
47be870b | 44 | |
3e214785 | 45 | LT_PREREQ(2.2) |
8666abb4 | 46 | LT_INIT([disable-static]) |
47be870b | 47 | |
5e63ce78 | 48 | AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])]) |
3d585edb | 49 | AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])]) |
5e63ce78 | 50 | |
1c7dde3e BN |
51 | # i18n stuff for the PolicyKit policy files |
52 | IT_PROG_INTLTOOL([0.40.0]) | |
53 | ||
54 | GETTEXT_PACKAGE=systemd | |
55 | AC_SUBST(GETTEXT_PACKAGE) | |
56 | ||
e9da3678 LP |
57 | AC_PROG_MKDIR_P |
58 | AC_PROG_LN_S | |
59 | AC_PROG_SED | |
3ce4fad8 | 60 | AC_PROG_GREP |
f975e971 | 61 | AC_PROG_AWK |
e9da3678 | 62 | |
47be870b | 63 | AC_PROG_CC_C99 |
47be870b | 64 | |
3e214785 | 65 | AC_PATH_PROG([M4], [m4]) |
fe1fed02 | 66 | AC_PATH_PROG([XSLTPROC], [xsltproc]) |
92ec4495 | 67 | |
86b2e20a LP |
68 | AC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon]) |
69 | AC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck]) | |
b51fc639 | 70 | |
86b2e20a LP |
71 | AC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap]) |
72 | ||
c1c02e07 | 73 | AC_PATH_PROG([KILL], [kill], [/usr/bin/kill]) |
96ede260 | 74 | |
edeb68c5 TG |
75 | AC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod]) |
76 | ||
78013564 ZJS |
77 | AC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec]) |
78 | ||
4acbce79 ZJS |
79 | M4_DEFINES= |
80 | ||
80a5cbac | 81 | # gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line |
b37250d6 ZJS |
82 | m4_ifdef([GTK_DOC_CHECK], [ |
83 | GTK_DOC_CHECK([1.18],[--flavour no-tmpl])], | |
6581f00f ZJS |
84 | [AM_CONDITIONAL([ENABLE_GTK_DOC], [false]) |
85 | enable_gtk_doc=no]) | |
92ec4495 | 86 | |
fe1fed02 ZJS |
87 | AS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [ |
88 | AC_MSG_ERROR([*** GTK doc requested but xsltproc not found]) | |
89 | ]) | |
90 | ||
6e92b23f | 91 | m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [ |
0eaeca1f | 92 | GOBJECT_INTROSPECTION_CHECK([1.31.1]) |
d66ee73a ZJS |
93 | ], [ |
94 | AM_CONDITIONAL([HAVE_INTROSPECTION], [false]) | |
95 | enable_introspection=no]) | |
3e214785 | 96 | |
ac714a78 MJ |
97 | AC_CHECK_TOOL(STRINGS, strings) |
98 | AC_CHECK_TOOL(GPERF, gperf) | |
b62cfcea MB |
99 | if test -z "$GPERF" ; then |
100 | AC_MSG_ERROR([*** gperf not found]) | |
101 | fi | |
9a60da28 | 102 | |
732bfe09 ZJS |
103 | # ------------------------------------------------------------------------------ |
104 | address_sanitizer_cflags= | |
105 | address_sanitizer_cppflags= | |
106 | address_sanitizer_ldflags= | |
107 | AC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address])) | |
108 | AS_IF([test "x$enable_address_sanitizer" = "xyes"], [ | |
109 | CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address]) | |
110 | AS_IF([test -z "$with_as_cflags"], | |
111 | [AC_MSG_ERROR([*** -fsanitize=address is not supported])]) | |
112 | address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1" | |
113 | address_sanitizer_cppflags="-DVALGRIND=1" | |
114 | address_sanitizer_ldflags="-Wc,-fsanitize=address" | |
115 | ]) | |
116 | ||
eb2e280f | 117 | CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ |
be1a67d9 | 118 | -pipe \ |
d1ab0ca0 | 119 | -Wall \ |
d1ab0ca0 | 120 | -Wextra \ |
27765dfc | 121 | -Wno-inline \ |
d1ab0ca0 | 122 | -Wundef \ |
780040dc | 123 | "-Wformat=2 -Wformat-security -Wformat-nonliteral" \ |
d1ab0ca0 LP |
124 | -Wlogical-op \ |
125 | -Wsign-compare \ | |
d1ab0ca0 | 126 | -Wmissing-include-dirs \ |
d1ab0ca0 LP |
127 | -Wold-style-definition \ |
128 | -Wpointer-arith \ | |
129 | -Winit-self \ | |
03930e48 | 130 | -Wdeclaration-after-statement \ |
d1ab0ca0 | 131 | -Wfloat-equal \ |
693eb9a2 | 132 | -Wsuggest-attribute=noreturn \ |
d1ab0ca0 LP |
133 | -Wmissing-prototypes \ |
134 | -Wstrict-prototypes \ | |
135 | -Wredundant-decls \ | |
136 | -Wmissing-declarations \ | |
137 | -Wmissing-noreturn \ | |
138 | -Wshadow \ | |
139 | -Wendif-labels \ | |
d1ab0ca0 LP |
140 | -Wstrict-aliasing=2 \ |
141 | -Wwrite-strings \ | |
be1a67d9 LP |
142 | -Wno-long-long \ |
143 | -Wno-overlength-strings \ | |
d1ab0ca0 | 144 | -Wno-unused-parameter \ |
be1a67d9 | 145 | -Wno-missing-field-initializers \ |
8745297f | 146 | -Wno-unused-result \ |
d200735e | 147 | -Werror=overflow \ |
213298fb | 148 | -Wdate-time \ |
693eb9a2 | 149 | -Wnested-externs \ |
be1a67d9 | 150 | -ffast-math \ |
d1ab0ca0 LP |
151 | -fno-common \ |
152 | -fdiagnostics-show-option \ | |
9f64229f | 153 | -fdiagnostics-color \ |
9b85fc6a GSB |
154 | -fno-strict-aliasing \ |
155 | -fvisibility=hidden \ | |
156 | -ffunction-sections \ | |
5a45a936 | 157 | -fdata-sections \ |
c1663b9d LP |
158 | -fstack-protector \ |
159 | --param=ssp-buffer-size=4]) | |
b850b06e KS |
160 | AS_CASE([$CFLAGS], [*-O[[12345\ ]]*], |
161 | [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\ | |
162 | -flto])], | |
163 | [AC_MSG_RESULT([skipping -flto, optimization not enabled])]) | |
732bfe09 | 164 | AC_SUBST([OUR_CFLAGS], "$with_cflags $address_sanitizer_cflags") |
5a45a936 | 165 | |
03a170c0 | 166 | AS_CASE([$CFLAGS], [*-O[[12345\ ]]*], |
a6c0b31d ZJS |
167 | [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\ |
168 | -Wp,-D_FORTIFY_SOURCE=2])], | |
169 | [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])]) | |
732bfe09 | 170 | AC_SUBST([OUR_CPPFLAGS], "$with_cppflags $address_sanitizer_cppflags") |
9e7adc3a LDM |
171 | |
172 | CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\ | |
9b85fc6a | 173 | -Wl,--as-needed \ |
9d2d0fe1 | 174 | -Wl,--no-undefined \ |
5a45a936 LP |
175 | -Wl,--gc-sections \ |
176 | -Wl,-z,relro \ | |
39c4ead2 ZJS |
177 | -Wl,-z,now \ |
178 | -Wl,-fuse-ld=gold]) | |
732bfe09 | 179 | AC_SUBST([OUR_LDFLAGS], "$with_ldflags $address_sanitizer_ldflags") |
47be870b | 180 | |
ccd06097 ZJS |
181 | AC_CHECK_SIZEOF(pid_t) |
182 | AC_CHECK_SIZEOF(uid_t) | |
183 | ||
c937e0d5 ZJS |
184 | # ------------------------------------------------------------------------------ |
185 | # we use python to build the man page index, and for systemd-python | |
186 | have_python=no | |
c937e0d5 ZJS |
187 | AC_ARG_WITH([python], |
188 | [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])]) | |
189 | ||
32dcef3a | 190 | have_lxml=no |
c937e0d5 ZJS |
191 | AS_IF([test "x$with_python" != "xno"], [ |
192 | AM_PATH_PYTHON(,, [:]) | |
32dcef3a ZJS |
193 | AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes], [have_lxml=no]) |
194 | AS_IF([test "$PYTHON" != : -a $have_lxml = yes], [have_python=yes]) | |
c937e0d5 ZJS |
195 | ]) |
196 | AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"]) | |
197 | AS_IF([test "x$PYTHON_BINARY" = "x"], | |
198 | [AS_IF([test "x$have_python" = "xyes"], | |
25ee45f9 | 199 | [PYTHON_BINARY="$(which "$PYTHON")"], |
c937e0d5 ZJS |
200 | [PYTHON_BINARY=/usr/bin/python])]) |
201 | AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts]) | |
202 | ||
1864b0e3 ZJS |
203 | AS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"], |
204 | [AC_MSG_ERROR([*** python-devel support requires --with-python])]) | |
205 | ||
a6c0b31d ZJS |
206 | have_python_devel=no |
207 | AC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules])) | |
1864b0e3 | 208 | AS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [ |
a6c0b31d ZJS |
209 | PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}], |
210 | [have_python_devel=yes], | |
211 | [PKG_CHECK_MODULES([PYTHON_DEVEL], [python], | |
212 | [have_python_devel=yes], | |
213 | [have_python_devel=no])]) | |
214 | AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes], | |
215 | [AC_MSG_ERROR([*** python-devel support requested but libraries not found])]) | |
f2ec0646 | 216 | AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build) |
c937e0d5 ZJS |
217 | ]) |
218 | AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"]) | |
219 | ||
220 | # ------------------------------------------------------------------------------ | |
221 | ||
afea26ad | 222 | AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])]) |
7959ff99 | 223 | AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])]) |
4b357e15 | 224 | AC_CHECK_HEADERS([linux/btrfs.h], [], []) |
7959ff99 KS |
225 | |
226 | # unconditionally pull-in librt with old glibc versions | |
227 | AC_SEARCH_LIBS([clock_gettime], [rt], [], []) | |
85f19d82 MB |
228 | |
229 | save_LIBS="$LIBS" | |
230 | LIBS= | |
47be870b | 231 | AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])]) |
85f19d82 | 232 | CAP_LIBS="$LIBS" |
7959ff99 KS |
233 | AC_SUBST(CAP_LIBS) |
234 | ||
235 | LIBS= | |
fba1ea06 SL |
236 | AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])]) |
237 | RT_LIBS="$LIBS" | |
238 | AC_SUBST(RT_LIBS) | |
85f19d82 | 239 | LIBS="$save_LIBS" |
47be870b | 240 | |
9388e99e | 241 | AC_CHECK_FUNCS([fanotify_init fanotify_mark]) |
4db17f29 | 242 | AC_CHECK_FUNCS([__secure_getenv secure_getenv]) |
3b794314 | 243 | AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns], [], [], [[#include <sys/types.h> |
a8348796 | 244 | #include <unistd.h> |
9388e99e | 245 | #include <sys/mount.h> |
3b794314 HS |
246 | #include <fcntl.h> |
247 | #include <sched.h>]]) | |
a8348796 | 248 | |
b237ef2c | 249 | # This makes sure pkg.m4 is available. |
a9b5b032 | 250 | m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config]) |
d1ab0ca0 | 251 | |
22703094 | 252 | # ------------------------------------------------------------------------------ |
ac6b760c ZJS |
253 | have_dbus=no |
254 | AC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests])) | |
8114dedc | 255 | AS_IF([test "x$enable_dbus" != "xno"], [ |
ac6b760c ZJS |
256 | PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2], |
257 | [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes], | |
258 | [have_dbus=no]) | |
259 | AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"], | |
260 | [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])]) | |
22703094 | 261 | AM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"]) |
4b357e15 | 262 | |
53e856e1 ZJS |
263 | # ------------------------------------------------------------------------------ |
264 | have_compat_libs=no | |
265 | AC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]), | |
266 | [case "${enableval}" in | |
267 | yes) have_compat_libs=yes ;; | |
268 | no) have_compat_libs=no ;; | |
269 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;; | |
270 | esac], | |
271 | [have_compat_libs=no]) | |
272 | AM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"]) | |
273 | ||
6aea6d10 TA |
274 | # ------------------------------------------------------------------------------ |
275 | have_coverage=no | |
276 | AC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage])) | |
277 | if test "x$enable_coverage" = "xyes" ; then | |
278 | AC_CHECK_PROG(lcov_found, [lcov], [yes], [no]) | |
279 | if test "x$lcov_found" = xno ; then | |
280 | AC_MSG_ERROR([*** lcov support requested but the program was not found]) | |
281 | else | |
282 | lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`" | |
283 | lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`" | |
284 | if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then | |
285 | AC_MSG_ERROR([*** lcov version is too old. 1.10 required]) | |
286 | else | |
287 | have_coverage=yes | |
288 | CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\ | |
289 | -fprofile-arcs \ | |
290 | -ftest-coverage]) | |
291 | AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags") | |
292 | fi | |
293 | fi | |
294 | fi | |
295 | AM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"]) | |
296 | ||
e3043162 TG |
297 | # ------------------------------------------------------------------------------ |
298 | have_kmod=no | |
299 | AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support])) | |
300 | if test "x$enable_kmod" != "xno"; then | |
e2ca86cf DR |
301 | PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no) |
302 | if test "x$have_kmod" = "xyes"; then | |
a18535d9 | 303 | PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ], |
e2ca86cf | 304 | [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])], |
70d83209 | 305 | AC_MSG_ERROR([*** kmod version >= 15 not found])) |
e2ca86cf | 306 | fi |
e3043162 | 307 | if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then |
c4955740 | 308 | AC_MSG_ERROR([*** kmod support requested, but libraries not found]) |
e3043162 TG |
309 | fi |
310 | fi | |
311 | AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"]) | |
f553b3b1 AO |
312 | |
313 | # ------------------------------------------------------------------------------ | |
314 | have_blkid=no | |
315 | AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support])) | |
316 | if test "x$enable_blkid" != "xno"; then | |
317 | PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ], | |
318 | [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no) | |
319 | if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then | |
320 | AC_MSG_ERROR([*** blkid support requested but libraries not found]) | |
321 | fi | |
322 | fi | |
323 | AM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"]) | |
728beb28 | 324 | |
c0467cf3 RC |
325 | # ------------------------------------------------------------------------------ |
326 | have_seccomp=no | |
327 | AC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support])) | |
328 | if test "x$enable_seccomp" != "xno"; then | |
329 | PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0], | |
17df7223 LP |
330 | [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available]) |
331 | have_seccomp=yes | |
332 | M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"], | |
c0467cf3 RC |
333 | [have_seccomp=no]) |
334 | if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then | |
335 | AC_MSG_ERROR([*** seccomp support requested but libraries not found]) | |
336 | fi | |
337 | fi | |
338 | AM_CONDITIONAL(HAVE_SECCOMP, [test "$have_seccomp" = "yes"]) | |
339 | ||
3e214785 | 340 | # ------------------------------------------------------------------------------ |
81611586 RS |
341 | have_ima=yes |
342 | AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]), | |
343 | [case "${enableval}" in | |
344 | yes) have_ima=yes ;; | |
345 | no) have_ima=no ;; | |
346 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;; | |
347 | esac], | |
348 | [have_ima=yes]) | |
349 | ||
350 | if test "x${have_ima}" != xno ; then | |
351 | AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available]) | |
352 | fi | |
353 | ||
77e68fa2 LP |
354 | # ------------------------------------------------------------------------------ |
355 | have_chkconfig=yes | |
356 | AC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]), | |
357 | [case "${enableval}" in | |
358 | yes) have_chkconfig=yes ;; | |
359 | no) have_chkconfig=no ;; | |
360 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;; | |
361 | esac], | |
362 | [AC_PATH_PROG(CHKCONFIG, chkconfig) | |
363 | if test -z "$CHKCONFIG"; then | |
364 | have_chkconfig=no | |
365 | else | |
366 | have_chkconfig=yes | |
367 | fi]) | |
368 | ||
369 | if test "x${have_chkconfig}" != xno ; then | |
370 | AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available]) | |
371 | fi | |
372 | ||
3e214785 | 373 | # ------------------------------------------------------------------------------ |
591622d7 LP |
374 | have_selinux=no |
375 | AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support])) | |
376 | if test "x$enable_selinux" != "xno"; then | |
3f8cc098 | 377 | PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9], |
6a6751fe LP |
378 | [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) |
379 | have_selinux=yes | |
380 | M4_DEFINES="$M4_DEFINES -DHAVE_SELINUX"], | |
381 | [have_selinux=no]) | |
591622d7 LP |
382 | if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then |
383 | AC_MSG_ERROR([*** SELinux support requested but libraries not found]) | |
384 | fi | |
56cf987f | 385 | fi |
591622d7 | 386 | AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"]) |
45df1f2c | 387 | |
eef65bf3 MS |
388 | have_apparmor=no |
389 | AC_ARG_ENABLE(apparmor, AS_HELP_STRING([--disable-apparmor], [Disable optional AppArmor support])) | |
390 | if test "x$enable_apparmor" != "xno"; then | |
391 | PKG_CHECK_MODULES([APPARMOR], [libapparmor], | |
392 | [AC_DEFINE(HAVE_APPARMOR, 1, [Define if AppArmor is available]) | |
393 | have_apparmor=yes | |
394 | M4_DEFINES="$M4_DEFINES -DHAVE_APPARMOR"], | |
395 | [have_apparmor=no]) | |
396 | if test "x$have_apparmor" = xno -a "x$enable_apparmor" = xyes; then | |
397 | AC_MSG_ERROR([*** AppArmor support requested but libraries not found]) | |
398 | fi | |
399 | fi | |
400 | AM_CONDITIONAL(HAVE_APPARMOR, [test "$have_apparmor" = "yes"]) | |
401 | ||
402 | ||
45df1f2c CR |
403 | AC_ARG_WITH(debug-shell, |
404 | AS_HELP_STRING([--with-debug-shell=PATH], | |
405 | [Path to debug shell binary]), | |
406 | [SUSHELL="$withval"],[ | |
407 | AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])]) | |
408 | ||
5ec6b15b | 409 | AC_SUBST(SUSHELL) |
56cf987f | 410 | |
45df1f2c CR |
411 | AC_ARG_WITH([debug-tty], |
412 | AS_HELP_STRING([--with-debug-tty=PATH], | |
413 | [Specify the tty device for debug shell]), | |
414 | [DEBUGTTY="$withval"], | |
415 | [DEBUGTTY=/dev/tty9]) | |
416 | ||
417 | AC_SUBST(DEBUGTTY) | |
418 | ||
3e214785 | 419 | # ------------------------------------------------------------------------------ |
807e17f0 LP |
420 | have_xz=no |
421 | AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support])) | |
422 | if test "x$enable_xz" != "xno"; then | |
423 | PKG_CHECK_MODULES(XZ, [ liblzma ], | |
424 | [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no) | |
807e17f0 LP |
425 | if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then |
426 | AC_MSG_ERROR([*** Xz support requested but libraries not found]) | |
427 | fi | |
428 | fi | |
429 | AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"]) | |
430 | ||
3e214785 | 431 | # ------------------------------------------------------------------------------ |
0213c3f8 LP |
432 | AC_ARG_ENABLE([tcpwrap], |
433 | AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]), | |
434 | [case "${enableval}" in | |
5b6319dc LP |
435 | yes) have_tcpwrap=yes ;; |
436 | no) have_tcpwrap=no ;; | |
0213c3f8 LP |
437 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;; |
438 | esac], | |
5b6319dc | 439 | [have_tcpwrap=auto]) |
0213c3f8 | 440 | |
5b6319dc | 441 | if test "x${have_tcpwrap}" != xno ; then |
0213c3f8 LP |
442 | ACX_LIBWRAP |
443 | if test "x${LIBWRAP_LIBS}" = x ; then | |
5b6319dc LP |
444 | if test "x$have_tcpwrap" = xyes ; then |
445 | AC_MSG_ERROR([*** TCP wrappers support not found.]) | |
0213c3f8 | 446 | fi |
812cce32 | 447 | have_tcpwrap=no |
0213c3f8 | 448 | else |
6a6751fe | 449 | M4_DEFINES="$M4_DEFINES -DHAVE_LIBWRAP" |
5b6319dc | 450 | have_tcpwrap=yes |
0213c3f8 LP |
451 | fi |
452 | else | |
5b6319dc | 453 | LIBWRAP_LIBS= |
0213c3f8 | 454 | fi |
0213c3f8 LP |
455 | AC_SUBST(LIBWRAP_LIBS) |
456 | ||
3e214785 | 457 | # ------------------------------------------------------------------------------ |
5b6319dc LP |
458 | AC_ARG_ENABLE([pam], |
459 | AS_HELP_STRING([--disable-pam],[Disable optional PAM support]), | |
460 | [case "${enableval}" in | |
461 | yes) have_pam=yes ;; | |
462 | no) have_pam=no ;; | |
463 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;; | |
464 | esac], | |
465 | [have_pam=auto]) | |
466 | ||
467 | if test "x${have_pam}" != xno ; then | |
468 | AC_CHECK_HEADERS( | |
469 | [security/pam_modules.h security/pam_modutil.h security/pam_ext.h], | |
470 | [have_pam=yes], | |
471 | [if test "x$have_pam" = xyes ; then | |
472 | AC_MSG_ERROR([*** PAM headers not found.]) | |
473 | fi]) | |
474 | ||
475 | AC_CHECK_LIB( | |
476 | [pam], | |
477 | [pam_syslog], | |
478 | [have_pam=yes], | |
479 | [if test "x$have_pam" = xyes ; then | |
480 | AC_MSG_ERROR([*** libpam not found.]) | |
481 | fi]) | |
482 | ||
483 | if test "x$have_pam" = xyes ; then | |
484 | PAM_LIBS="-lpam -lpam_misc" | |
485 | AC_DEFINE(HAVE_PAM, 1, [PAM available]) | |
6a6751fe | 486 | M4_DEFINES="$M4_DEFINES -DHAVE_PAM" |
812cce32 LP |
487 | else |
488 | have_pam=no | |
5b6319dc LP |
489 | fi |
490 | else | |
491 | PAM_LIBS= | |
492 | fi | |
493 | AC_SUBST(PAM_LIBS) | |
494 | AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno]) | |
495 | ||
3e214785 | 496 | # ------------------------------------------------------------------------------ |
5eda94dd LP |
497 | AC_ARG_ENABLE([acl], |
498 | AS_HELP_STRING([--disable-acl],[Disable optional ACL support]), | |
499 | [case "${enableval}" in | |
500 | yes) have_acl=yes ;; | |
501 | no) have_acl=no ;; | |
502 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;; | |
503 | esac], | |
504 | [have_acl=auto]) | |
505 | ||
506 | if test "x${have_acl}" != xno ; then | |
507 | AC_CHECK_HEADERS( | |
508 | [sys/acl.h acl/libacl.h], | |
509 | [have_acl=yes], | |
510 | [if test "x$have_acl" = xyes ; then | |
511 | AC_MSG_ERROR([*** ACL headers not found.]) | |
512 | fi]) | |
513 | ||
514 | AC_CHECK_LIB( | |
515 | [acl], | |
516 | [acl_get_file], | |
517 | [have_acl=yes], | |
518 | [if test "x$have_acl" = xyes ; then | |
519 | AC_MSG_ERROR([*** libacl not found.]) | |
520 | fi]) | |
521 | ||
522 | if test "x$have_acl" = xyes ; then | |
523 | ACL_LIBS="-lacl" | |
524 | AC_DEFINE(HAVE_ACL, 1, [ACL available]) | |
525 | else | |
526 | have_acl=no | |
527 | fi | |
528 | else | |
529 | ACL_LIBS= | |
530 | fi | |
531 | AC_SUBST(ACL_LIBS) | |
532 | AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno]) | |
533 | ||
fb0951b0 LP |
534 | # ------------------------------------------------------------------------------ |
535 | AC_ARG_ENABLE([xattr], | |
536 | AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]), | |
537 | [case "${enableval}" in | |
538 | yes) have_xattr=yes ;; | |
539 | no) have_xattr=no ;; | |
540 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;; | |
541 | esac], | |
542 | [have_xattr=auto]) | |
543 | ||
544 | if test "x${have_xattr}" != xno ; then | |
545 | AC_CHECK_HEADERS( | |
546 | [attr/xattr.h], | |
547 | [have_xattr=yes], | |
548 | [if test "x$have_xattr" = xyes ; then | |
549 | AC_MSG_ERROR([*** XATTR headers not found.]) | |
550 | fi]) | |
551 | ||
552 | AC_CHECK_LIB( | |
553 | [attr], | |
554 | [fsetxattr], | |
555 | [have_xattr=yes], | |
556 | [if test "x$have_xattr" = xyes ; then | |
557 | AC_MSG_ERROR([*** libattr not found.]) | |
558 | fi]) | |
559 | ||
560 | if test "x$have_xattr" = xyes ; then | |
561 | XATTR_LIBS="-lattr" | |
562 | AC_DEFINE(HAVE_XATTR, 1, [XATTR available]) | |
563 | else | |
564 | have_xattr=no | |
565 | fi | |
566 | else | |
567 | XATTR_LIBS= | |
568 | fi | |
569 | AC_SUBST(XATTR_LIBS) | |
570 | AM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno]) | |
571 | ||
2b3e18de KL |
572 | # ------------------------------------------------------------------------------ |
573 | AC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]), | |
574 | [case "${enableval}" in | |
575 | yes) have_smack=yes ;; | |
576 | no) have_smack=no ;; | |
577 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;; | |
578 | esac], | |
579 | [have_smack=auto]) | |
580 | ||
581 | if test "x${have_xattr}" = xno; then | |
582 | if test "x${have_smack}" = xyes; then | |
583 | AC_MSG_ERROR(SMACK requires xattr support) | |
584 | else | |
585 | have_smack=no | |
586 | fi | |
587 | else | |
588 | if test "x${have_smack}" = xauto; then | |
6a6751fe | 589 | M4_DEFINES="$M4_DEFINES -DHAVE_SMACK" |
2b3e18de KL |
590 | have_smack=yes |
591 | fi | |
592 | fi | |
593 | ||
8b197c3a AK |
594 | AC_ARG_WITH(smack-run-label, |
595 | AS_HELP_STRING([--with-smack-run-label=STRING], | |
596 | [run systemd --system with a specific SMACK label]), | |
597 | [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])], | |
598 | []) | |
599 | ||
2b3e18de KL |
600 | if test "x${have_smack}" = xyes ; then |
601 | AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available]) | |
602 | fi | |
603 | ||
7560fffc | 604 | # ------------------------------------------------------------------------------ |
feb12d3e | 605 | AC_ARG_ENABLE([gcrypt], |
7560fffc LP |
606 | AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]), |
607 | [case "${enableval}" in | |
608 | yes) have_gcrypt=yes ;; | |
609 | no) have_gcrypt=no ;; | |
610 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;; | |
611 | esac], | |
612 | [have_gcrypt=auto]) | |
613 | ||
614 | if test "x${have_gcrypt}" != xno ; then | |
615 | AM_PATH_LIBGCRYPT( | |
616 | [1.4.5], | |
617 | [have_gcrypt=yes], | |
618 | [if test "x$have_gcrypt" = xyes ; then | |
619 | AC_MSG_ERROR([*** GCRYPT headers not found.]) | |
620 | fi]) | |
621 | ||
622 | if test "x$have_gcrypt" = xyes ; then | |
623 | GCRYPT_LIBS="$LIBGCRYPT_LIBS" | |
624 | GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS" | |
625 | AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available]) | |
626 | else | |
627 | have_gcrypt=no | |
628 | fi | |
629 | else | |
630 | GCRYPT_LIBS= | |
631 | GCRYPT_CFLAGS= | |
632 | fi | |
633 | AC_SUBST(GCRYPT_LIBS) | |
634 | AC_SUBST(GCRYPT_CFLAGS) | |
635 | AM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno]) | |
636 | ||
3e214785 | 637 | # ------------------------------------------------------------------------------ |
4927fcae LP |
638 | AC_ARG_ENABLE([audit], |
639 | AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]), | |
640 | [case "${enableval}" in | |
641 | yes) have_audit=yes ;; | |
642 | no) have_audit=no ;; | |
643 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;; | |
644 | esac], | |
645 | [have_audit=auto]) | |
646 | ||
647 | if test "x${have_audit}" != xno ; then | |
648 | AC_CHECK_HEADERS( | |
649 | [libaudit.h], | |
650 | [have_audit=yes], | |
651 | [if test "x$have_audit" = xyes ; then | |
652 | AC_MSG_ERROR([*** AUDIT headers not found.]) | |
653 | fi]) | |
654 | ||
655 | AC_CHECK_LIB( | |
656 | [audit], | |
657 | [audit_open], | |
658 | [have_audit=yes], | |
659 | [if test "x$have_audit" = xyes ; then | |
660 | AC_MSG_ERROR([*** libaudit not found.]) | |
661 | fi]) | |
662 | ||
663 | if test "x$have_audit" = xyes ; then | |
664 | AUDIT_LIBS="-laudit" | |
665 | AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available]) | |
666 | else | |
667 | have_audit=no | |
668 | fi | |
669 | else | |
670 | AUDIT_LIBS= | |
671 | fi | |
672 | AC_SUBST(AUDIT_LIBS) | |
673 | ||
3e214785 | 674 | # ------------------------------------------------------------------------------ |
7f4e0805 LP |
675 | have_libcryptsetup=no |
676 | AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools])) | |
677 | if test "x$enable_libcryptsetup" != "xno"; then | |
8cf3ca80 | 678 | PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ], |
7f4e0805 | 679 | [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no) |
7f4e0805 | 680 | if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then |
591622d7 | 681 | AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found]) |
7f4e0805 LP |
682 | fi |
683 | fi | |
684 | AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"]) | |
685 | ||
f6a971bc LP |
686 | # ------------------------------------------------------------------------------ |
687 | have_qrencode=no | |
688 | AC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support])) | |
689 | if test "x$enable_qrencode" != "xno"; then | |
690 | PKG_CHECK_MODULES(QRENCODE, [ libqrencode ], | |
691 | [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no) | |
692 | if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then | |
693 | AC_MSG_ERROR([*** qrencode support requested but libraries not found]) | |
694 | fi | |
695 | fi | |
696 | AM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"]) | |
697 | ||
7b17a7d7 LP |
698 | # ------------------------------------------------------------------------------ |
699 | have_microhttpd=no | |
700 | AC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support])) | |
701 | if test "x$enable_microhttpd" != "xno"; then | |
59bb9d9a | 702 | PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5], |
7b17a7d7 LP |
703 | [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no) |
704 | if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then | |
705 | AC_MSG_ERROR([*** microhttpd support requested but libraries not found]) | |
706 | fi | |
707 | fi | |
708 | AM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"]) | |
709 | ||
3e214785 | 710 | # ------------------------------------------------------------------------------ |
27669061 MV |
711 | have_binfmt=no |
712 | AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool])) | |
713 | if test "x$enable_binfmt" != "xno"; then | |
be31376e | 714 | have_binfmt=yes |
27669061 MV |
715 | fi |
716 | AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"]) | |
717 | ||
3e214785 | 718 | # ------------------------------------------------------------------------------ |
e5e83e83 LP |
719 | have_vconsole=no |
720 | AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool])) | |
721 | if test "x$enable_vconsole" != "xno"; then | |
be31376e | 722 | have_vconsole=yes |
e5e83e83 LP |
723 | fi |
724 | AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"]) | |
725 | ||
3e214785 | 726 | # ------------------------------------------------------------------------------ |
e5e83e83 LP |
727 | have_readahead=no |
728 | AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools])) | |
729 | if test "x$enable_readahead" != "xno"; then | |
be31376e | 730 | have_readahead=yes |
e5e83e83 LP |
731 | fi |
732 | AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"]) | |
733 | ||
83fdc450 AK |
734 | # ------------------------------------------------------------------------------ |
735 | have_bootchart=no | |
736 | AC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool])) | |
737 | if test "x$enable_bootchart" != "xno"; then | |
738 | have_bootchart=yes | |
739 | fi | |
740 | AM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"]) | |
741 | ||
3e214785 | 742 | # ------------------------------------------------------------------------------ |
4de85612 LP |
743 | have_quotacheck=no |
744 | AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools])) | |
745 | if test "x$enable_quotacheck" != "xno"; then | |
be31376e | 746 | have_quotacheck=yes |
4de85612 LP |
747 | fi |
748 | AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"]) | |
749 | ||
6351163b UTL |
750 | # ------------------------------------------------------------------------------ |
751 | have_tmpfiles=no | |
752 | AC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support])) | |
753 | if test "x$enable_tmpfiles" != "xno"; then | |
754 | have_tmpfiles=yes | |
755 | fi | |
756 | AM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"]) | |
757 | ||
3e214785 | 758 | # ------------------------------------------------------------------------------ |
4de85612 LP |
759 | have_randomseed=no |
760 | AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools])) | |
761 | if test "x$enable_randomseed" != "xno"; then | |
be31376e | 762 | have_randomseed=yes |
4de85612 LP |
763 | fi |
764 | AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"]) | |
765 | ||
3731acf1 LP |
766 | # ------------------------------------------------------------------------------ |
767 | have_backlight=no | |
768 | AC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools])) | |
769 | if test "x$enable_backlight" != "xno"; then | |
770 | have_backlight=yes | |
771 | fi | |
772 | AM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"]) | |
773 | ||
3990f247 LP |
774 | # ------------------------------------------------------------------------------ |
775 | have_rfkill=no | |
776 | AC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools])) | |
777 | if test "x$enable_rfkill" != "xno"; then | |
778 | have_rfkill=yes | |
779 | fi | |
780 | AM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"]) | |
781 | ||
3e214785 | 782 | # ------------------------------------------------------------------------------ |
2a018e83 KS |
783 | have_logind=no |
784 | AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon])) | |
785 | if test "x$enable_logind" != "xno"; then | |
be31376e | 786 | have_logind=yes |
2a018e83 KS |
787 | fi |
788 | AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"]) | |
4c80c73c | 789 | AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ]) |
2a018e83 | 790 | |
1ee306e1 LP |
791 | # ------------------------------------------------------------------------------ |
792 | have_machined=no | |
793 | AC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon])) | |
794 | if test "x$enable_machined" != "xno"; then | |
795 | have_machined=yes | |
796 | fi | |
797 | AM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"]) | |
798 | AS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ]) | |
799 | ||
3e214785 | 800 | # ------------------------------------------------------------------------------ |
b2e9fb99 MV |
801 | have_hostnamed=no |
802 | AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon])) | |
803 | if test "x$enable_hostnamed" != "xno"; then | |
be31376e | 804 | have_hostnamed=yes |
b2e9fb99 MV |
805 | fi |
806 | AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"]) | |
807 | ||
3e214785 | 808 | # ------------------------------------------------------------------------------ |
f47cd184 MV |
809 | have_timedated=no |
810 | AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon])) | |
811 | if test "x$enable_timedated" != "xno"; then | |
be31376e | 812 | have_timedated=yes |
f47cd184 MV |
813 | fi |
814 | AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"]) | |
815 | ||
3e214785 | 816 | # ------------------------------------------------------------------------------ |
4cd1eaa5 MV |
817 | have_localed=no |
818 | AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon])) | |
819 | if test "x$enable_localed" != "xno"; then | |
be31376e | 820 | have_localed=yes |
4cd1eaa5 MV |
821 | fi |
822 | AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"]) | |
823 | ||
3e214785 | 824 | # ------------------------------------------------------------------------------ |
f5e04665 LP |
825 | have_coredump=no |
826 | AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook])) | |
827 | if test "x$enable_coredump" != "xno"; then | |
be31376e | 828 | have_coredump=yes |
f5e04665 LP |
829 | fi |
830 | AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"]) | |
831 | ||
46ba8aae LP |
832 | # ------------------------------------------------------------------------------ |
833 | have_polkit=no | |
834 | AC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support])) | |
835 | if test "x$enable_polkit" != "xno"; then | |
836 | AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled]) | |
837 | have_polkit=yes | |
838 | fi | |
839 | AM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"]) | |
840 | ||
3c9317d2 CW |
841 | # ------------------------------------------------------------------------------ |
842 | AC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd])) | |
843 | if test "x$enable_networkd" != "xno"; then | |
844 | AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled]) | |
845 | have_networkd=yes | |
846 | fi | |
847 | AM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"]) | |
848 | ||
b872e9a0 LP |
849 | # ------------------------------------------------------------------------------ |
850 | have_efi=no | |
851 | AC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support])) | |
852 | if test "x$enable_efi" != "xno"; then | |
853 | AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled]) | |
854 | have_efi=yes | |
855 | fi | |
856 | AM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"]) | |
857 | ||
bd441fa2 ZJS |
858 | # ------------------------------------------------------------------------------ |
859 | have_multi_seat_x=no | |
860 | AC_ARG_ENABLE(multi_seat_x, AS_HELP_STRING([--disable-multi-seat-x], [do not build multi-seat-x])) | |
861 | if test "x$enable_multi_seat_x" != "xno"; then | |
862 | have_multi_seat_x=yes | |
863 | fi | |
864 | AM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"]) | |
865 | ||
626851be LP |
866 | # ------------------------------------------------------------------------------ |
867 | have_kdbus=no | |
c97a6dbc | 868 | AC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default])) |
146ccaaf | 869 | if test "x$enable_kdbus" = "xyes"; then |
626851be LP |
870 | AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled]) |
871 | have_kdbus=yes | |
4acbce79 | 872 | M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS" |
626851be LP |
873 | fi |
874 | AM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"]) | |
875 | ||
b1c4ca25 LP |
876 | # ------------------------------------------------------------------------------ |
877 | AC_ARG_WITH(rc-local-script-path-start, | |
878 | AS_HELP_STRING([--with-rc-local-script-path-start=PATH], | |
879 | [Path to /etc/rc.local]), | |
880 | [RC_LOCAL_SCRIPT_PATH_START="$withval"], | |
881 | [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"]) | |
882 | ||
883 | AC_ARG_WITH(rc-local-script-path-stop, | |
884 | AS_HELP_STRING([--with-rc-local-script-path-stop=PATH], | |
bc270841 | 885 | [Path to /usr/sbin/halt.local]), |
b1c4ca25 | 886 | [RC_LOCAL_SCRIPT_PATH_STOP="$withval"], |
bc270841 | 887 | [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"]) |
b1c4ca25 LP |
888 | |
889 | AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script]) | |
bc270841 | 890 | AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script]) |
b1c4ca25 LP |
891 | |
892 | AC_SUBST(RC_LOCAL_SCRIPT_PATH_START) | |
893 | AC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP) | |
894 | ||
a382332e LP |
895 | # ------------------------------------------------------------------------------ |
896 | AC_ARG_WITH(kbd-loadkeys, | |
897 | AS_HELP_STRING([--with-kbd-loadkeys=PATH], | |
898 | [Path to loadkeys]), | |
899 | [KBD_LOADKEYS="$withval"], | |
900 | [KBD_LOADKEYS="/usr/bin/loadkeys"]) | |
901 | ||
902 | AC_ARG_WITH(kbd-setfont, | |
903 | AS_HELP_STRING([--with-kbd-setfont=PATH], | |
904 | [Path to setfont]), | |
905 | [KBD_SETFONT="$withval"], | |
906 | [KBD_SETFONT="/usr/bin/setfont"]) | |
907 | ||
908 | AC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys]) | |
909 | AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont]) | |
910 | ||
911 | AC_SUBST(KBD_LOADKEYS) | |
912 | AC_SUBST(KBD_SETFONT) | |
913 | ||
4ad61fd1 CR |
914 | AC_ARG_WITH(telinit, |
915 | AS_HELP_STRING([--with-telinit=PATH], | |
916 | [Path to telinit]), | |
917 | [TELINIT="$withval"], | |
abaaabf4 | 918 | [TELINIT="/lib/sysvinit/telinit"]) |
4ad61fd1 CR |
919 | |
920 | AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit]) | |
921 | ||
922 | AC_SUBST(TELINIT) | |
923 | ||
54b434b1 | 924 | AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h]) |
7211f918 | 925 | |
d562955e TG |
926 | # ------------------------------------------------------------------------------ |
927 | have_myhostname=no | |
f8c5a581 | 928 | AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support])) |
d562955e TG |
929 | if test "x$enable_myhostname" != "xno"; then |
930 | AC_HEADER_STDC | |
a3b6fafe | 931 | AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h sys/auxv.h]) |
d562955e TG |
932 | |
933 | AC_C_CONST | |
934 | AC_TYPE_SIZE_T | |
935 | AC_HEADER_TIME | |
936 | ||
937 | AC_FUNC_MALLOC | |
938 | AC_FUNC_SELECT_ARGTYPES | |
939 | AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn]) | |
940 | ||
941 | have_myhostname=yes | |
942 | fi | |
943 | AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"]) | |
944 | ||
3e214785 KS |
945 | # ------------------------------------------------------------------------------ |
946 | AC_ARG_WITH(firmware-path, | |
947 | AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]], | |
a3bd8447 TG |
948 | [Firmware search path (default="")]), |
949 | [], [with_firmware_path=""]) | |
3e214785 KS |
950 | OLD_IFS=$IFS |
951 | IFS=: | |
952 | for i in $with_firmware_path; do | |
953 | if test "x${FIRMWARE_PATH}" = "x"; then | |
954 | FIRMWARE_PATH="\\\"${i}/\\\"" | |
955 | else | |
956 | FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\"" | |
957 | fi | |
958 | done | |
959 | IFS=$OLD_IFS | |
a3bd8447 | 960 | AC_SUBST(FIRMWARE_PATH) |
d8d4bee7 | 961 | AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ]) |
a3bd8447 | 962 | AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"]) |
3e214785 KS |
963 | |
964 | # ------------------------------------------------------------------------------ | |
965 | AC_ARG_ENABLE([gudev], | |
966 | AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]), | |
967 | [], [enable_gudev=yes]) | |
de1c301e | 968 | AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0]) ]) |
3e214785 | 969 | AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"]) |
de1c301e LP |
970 | AS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ]) |
971 | ||
3e214785 | 972 | # ------------------------------------------------------------------------------ |
75db9a77 | 973 | have_manpages=no |
4c2b0e4e | 974 | AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages])) |
fe1fed02 ZJS |
975 | AS_IF([test "x$enable_manpages" != xno], [ |
976 | AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [ | |
977 | AC_MSG_ERROR([*** Manpages requested but xsltproc not found]) | |
978 | ]) | |
979 | AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes]) | |
980 | ]) | |
981 | AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"]) | |
75db9a77 | 982 | |
3e214785 | 983 | # ------------------------------------------------------------------------------ |
d1ab0ca0 | 984 | |
34eff652 LP |
985 | # Location of the init scripts as mandated by LSB |
986 | SYSTEM_SYSVINIT_PATH=/etc/init.d | |
f1dd0c3f | 987 | SYSTEM_SYSVRCND_PATH=/etc/rc.d |
12e84679 | 988 | |
136337ff | 989 | AC_ARG_WITH([sysvinit-path], |
be31376e | 990 | [AS_HELP_STRING([--with-sysvinit-path=PATH], |
bc270841 | 991 | [Specify the path to where the SysV init scripts are located])], |
be31376e KS |
992 | [SYSTEM_SYSVINIT_PATH="$withval"], |
993 | []) | |
136337ff | 994 | |
dee4c244 LP |
995 | AC_ARG_WITH([sysvrcnd-path], |
996 | [AS_HELP_STRING([--with-sysvrcnd-path=PATH], | |
bc270841 | 997 | [Specify the path to the base directory for the SysV rcN.d directories])], |
136337ff TFH |
998 | [SYSTEM_SYSVRCND_PATH="$withval"], |
999 | []) | |
1000 | ||
07459bb6 FF |
1001 | if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then |
1002 | AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.]) | |
1003 | SYSTEM_SYSV_COMPAT="yes" | |
f975e971 | 1004 | M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT" |
07459bb6 | 1005 | elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then |
dee4c244 | 1006 | AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcnd-path=PATH to enable SysV compatibility support, or both empty to disable it.]) |
07459bb6 FF |
1007 | else |
1008 | SYSTEM_SYSV_COMPAT="no" | |
1009 | fi | |
1010 | ||
bc270841 LP |
1011 | AC_SUBST(SYSTEM_SYSVINIT_PATH) |
1012 | AC_SUBST(SYSTEM_SYSVRCND_PATH) | |
1013 | AC_SUBST(M4_DEFINES) | |
1014 | ||
1015 | AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes") | |
1016 | ||
bef2733f | 1017 | AC_ARG_WITH([tty-gid], |
a05ea46d | 1018 | [AS_HELP_STRING([--with-tty-gid=GID], |
bef2733f LP |
1019 | [Specify the numeric GID of the 'tty' group])], |
1020 | [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])], | |
1021 | []) | |
1022 | ||
d2d12cd1 LP |
1023 | AC_ARG_WITH([dbuspolicydir], |
1024 | AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]), | |
1025 | [], | |
25ee45f9 | 1026 | [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d]) |
d122948d | 1027 | |
d2d12cd1 LP |
1028 | AC_ARG_WITH([dbussessionservicedir], |
1029 | AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]), | |
1030 | [], | |
25ee45f9 | 1031 | [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)]) |
d122948d | 1032 | |
d2d12cd1 LP |
1033 | AC_ARG_WITH([dbussystemservicedir], |
1034 | AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]), | |
1035 | [], | |
03c14914 | 1036 | [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)]) |
d122948d | 1037 | |
d2d12cd1 LP |
1038 | AC_ARG_WITH([dbusinterfacedir], |
1039 | AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]), | |
1040 | [], | |
03c14914 | 1041 | [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)]) |
d122948d | 1042 | |
db059f1b MB |
1043 | AC_ARG_WITH([bashcompletiondir], |
1044 | AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]), | |
1045 | [], | |
25ee45f9 MB |
1046 | [AS_IF([$($PKG_CONFIG --exists bash-completion)], [ |
1047 | with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion) | |
db059f1b MB |
1048 | ] , [ |
1049 | with_bashcompletiondir=${datadir}/bash-completion/completions | |
1050 | ])]) | |
1051 | ||
4f87c47b WG |
1052 | AC_ARG_WITH([zshcompletiondir], |
1053 | AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]), | |
1054 | [], [with_zshcompletiondir=${datadir}/zsh/site-functions]) | |
1055 | ||
b8079ae1 KS |
1056 | AC_ARG_WITH([rootprefix], |
1057 | AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]), | |
39ad55a9 | 1058 | [], [with_rootprefix=${ac_default_prefix}]) |
d2d12cd1 | 1059 | |
ae446765 KS |
1060 | AC_ARG_WITH([rootlibdir], |
1061 | AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]), | |
1062 | [], | |
1063 | [with_rootlibdir=${libdir}]) | |
1064 | ||
9d3203b4 | 1065 | AC_ARG_WITH([pamlibdir], |
b0cca7d8 | 1066 | AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]), |
9d3203b4 KS |
1067 | [], |
1068 | [with_pamlibdir=${with_rootlibdir}/security]) | |
1069 | ||
5c390a4a ZJS |
1070 | AC_ARG_WITH([pamconfdir], |
1071 | AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]), | |
1072 | [], | |
1073 | [with_pamconfdir=${sysconfdir}/pam.d]) | |
1074 | ||
bc9bdbba MG |
1075 | AC_ARG_ENABLE([split-usr], |
1076 | AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]), | |
1077 | [], | |
1078 | [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [ | |
1079 | enable_split_usr=yes | |
1080 | ], [ | |
1081 | enable_split_usr=no | |
1082 | ])]) | |
1083 | ||
1084 | AS_IF([test "x${enable_split_usr}" = "xyes"], [ | |
2c6db6fb | 1085 | AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr]) |
bc9bdbba | 1086 | ]) |
2c6db6fb | 1087 | |
6fc00209 ZJS |
1088 | # Work around intltoolize and gtk-doc problems in VPATH builds |
1089 | AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"], | |
1090 | [Define to do gtk-doc tests]) | |
1091 | AS_IF([test "x$0" != "x./configure"], [ | |
1092 | AC_SUBST([INTLTOOL_UPDATE], [/bin/true]) | |
1093 | ]) | |
1094 | ||
cee22bd3 HGB |
1095 | AC_ARG_ENABLE(tests, |
1096 | [AC_HELP_STRING([--disable-tests], [disable tests])], | |
1097 | enable_tests=$enableval, enable_tests=yes) | |
1098 | AM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes]) | |
1099 | ||
d2d12cd1 LP |
1100 | AC_SUBST([dbuspolicydir], [$with_dbuspolicydir]) |
1101 | AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir]) | |
1102 | AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir]) | |
1103 | AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir]) | |
db059f1b | 1104 | AC_SUBST([bashcompletiondir], [$with_bashcompletiondir]) |
4f87c47b | 1105 | AC_SUBST([zshcompletiondir], [$with_zshcompletiondir]) |
8c6db833 | 1106 | AC_SUBST([pamlibdir], [$with_pamlibdir]) |
5c390a4a | 1107 | AC_SUBST([pamconfdir], [$with_pamconfdir]) |
b8079ae1 | 1108 | AC_SUBST([rootprefix], [$with_rootprefix]) |
ae446765 | 1109 | AC_SUBST([rootlibdir], [$with_rootlibdir]) |
8c4a3079 | 1110 | |
3e214785 KS |
1111 | AC_CONFIG_FILES([ |
1112 | Makefile po/Makefile.in | |
bb061708 KS |
1113 | docs/libudev/Makefile |
1114 | docs/libudev/version.xml | |
1115 | docs/gudev/Makefile | |
1116 | docs/gudev/version.xml | |
3e214785 KS |
1117 | ]) |
1118 | ||
a45a909f | 1119 | AC_OUTPUT |
ae446765 | 1120 | AC_MSG_RESULT([ |
0571e011 LP |
1121 | $PACKAGE_NAME $VERSION |
1122 | ||
7f4e0805 | 1123 | libcryptsetup: ${have_libcryptsetup} |
5b6319dc LP |
1124 | tcpwrap: ${have_tcpwrap} |
1125 | PAM: ${have_pam} | |
12716238 | 1126 | AUDIT: ${have_audit} |
81611586 | 1127 | IMA: ${have_ima} |
eef65bf3 | 1128 | AppArmor: ${have_apparmor} |
12716238 | 1129 | SELinux: ${have_selinux} |
c0467cf3 | 1130 | SECCOMP: ${have_seccomp} |
2b3e18de | 1131 | SMACK: ${have_smack} |
807e17f0 | 1132 | XZ: ${have_xz} |
5eda94dd | 1133 | ACL: ${have_acl} |
fb0951b0 | 1134 | XATTR: ${have_xattr} |
7560fffc | 1135 | GCRYPT: ${have_gcrypt} |
f6a971bc | 1136 | QRENCODE: ${have_qrencode} |
7b17a7d7 | 1137 | MICROHTTPD: ${have_microhttpd} |
77e68fa2 | 1138 | CHKCONFIG: ${have_chkconfig} |
27669061 | 1139 | binfmt: ${have_binfmt} |
e5e83e83 LP |
1140 | vconsole: ${have_vconsole} |
1141 | readahead: ${have_readahead} | |
83fdc450 | 1142 | bootchart: ${have_bootchart} |
4de85612 | 1143 | quotacheck: ${have_quotacheck} |
6351163b | 1144 | tmpfiles: ${have_tmpfiles} |
4de85612 | 1145 | randomseed: ${have_randomseed} |
3731acf1 | 1146 | backlight: ${have_backlight} |
3990f247 | 1147 | rfkill: ${have_rfkill} |
2a018e83 | 1148 | logind: ${have_logind} |
1ee306e1 | 1149 | machined: ${have_machined} |
b2e9fb99 | 1150 | hostnamed: ${have_hostnamed} |
f47cd184 | 1151 | timedated: ${have_timedated} |
4cd1eaa5 | 1152 | localed: ${have_localed} |
7a243b22 | 1153 | networkd: ${have_networkd} |
f5e04665 | 1154 | coredump: ${have_coredump} |
46ba8aae | 1155 | polkit: ${have_polkit} |
b872e9a0 | 1156 | efi: ${have_efi} |
e3043162 | 1157 | kmod: ${have_kmod} |
f553b3b1 | 1158 | blkid: ${have_blkid} |
ac6b760c | 1159 | dbus: ${have_dbus} |
d562955e | 1160 | nss-myhostname: ${have_myhostname} |
3e214785 KS |
1161 | gudev: ${enable_gudev} |
1162 | gintrospection: ${enable_introspection} | |
bd441fa2 | 1163 | multi-seat-x: ${have_multi_seat_x} |
626851be | 1164 | kdbus: ${have_kdbus} |
8d7e170a LP |
1165 | Python: ${have_python} |
1166 | Python Headers: ${have_python_devel} | |
2f4da3e6 ZJS |
1167 | man pages: ${have_manpages} |
1168 | gtk-doc: ${enable_gtk_doc} | |
6aea6d10 | 1169 | test coverage: ${have_coverage} |
2f4da3e6 ZJS |
1170 | Split /usr: ${enable_split_usr} |
1171 | SysV compatibility: ${SYSTEM_SYSV_COMPAT} | |
53e856e1 | 1172 | compatibility libraries: ${have_compat_libs} |
3e214785 | 1173 | |
8c4a3079 | 1174 | prefix: ${prefix} |
b8079ae1 | 1175 | rootprefix: ${with_rootprefix} |
3e214785 KS |
1176 | sysconf dir: ${sysconfdir} |
1177 | datarootdir: ${datarootdir} | |
1178 | includedir: ${includedir} | |
1179 | include_prefix: ${INCLUDE_PREFIX} | |
ae446765 KS |
1180 | lib dir: ${libdir} |
1181 | rootlib dir: ${with_rootlibdir} | |
2f4da3e6 ZJS |
1182 | SysV init scripts: ${SYSTEM_SYSVINIT_PATH} |
1183 | SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH} | |
1184 | Build Python: ${PYTHON} | |
1185 | Installation Python: ${PYTHON_BINARY} | |
f2ec0646 | 1186 | sphinx binary: ${SPHINX_BUILD} |
2f4da3e6 | 1187 | firmware path: ${FIRMWARE_PATH} |
2c6db6fb | 1188 | PAM modules dir: ${with_pamlibdir} |
5c390a4a | 1189 | PAM configuration dir: ${with_pamconfdir} |
2c6db6fb LP |
1190 | D-Bus policy dir: ${with_dbuspolicydir} |
1191 | D-Bus session dir: ${with_dbussessionservicedir} | |
1192 | D-Bus system dir: ${with_dbussystemservicedir} | |
1193 | D-Bus interfaces dir: ${with_dbusinterfacedir} | |
db059f1b | 1194 | Bash completions dir: ${with_bashcompletiondir} |
4f87c47b | 1195 | Zsh completions dir: ${with_zshcompletiondir} |
b1c4ca25 LP |
1196 | Extra start script: ${RC_LOCAL_SCRIPT_PATH_START} |
1197 | Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP} | |
45df1f2c | 1198 | Debug shell: ${SUSHELL} @ ${DEBUGTTY} |
66be6554 | 1199 | |
5a45a936 | 1200 | CFLAGS: ${OUR_CFLAGS} ${CFLAGS} |
1f048a6b | 1201 | CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS} |
5a45a936 | 1202 | LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS} |
a6c0b31d ZJS |
1203 | PYTHON_CFLAGS: ${PYTHON_DEVEL_CFLAGS} |
1204 | PYTHON_LIBS: ${PYTHON_DEVEL_LIBS} | |
ae446765 | 1205 | ]) |