]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
bus: allow two different fds for input/output in sd_bus_set_fd()
[thirdparty/systemd.git] / configure.ac
CommitLineData
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
20AC_PREREQ([2.64])
21
22AC_INIT([systemd],
9ca3c17f 23 [200],
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 28AC_CONFIG_SRCDIR([src/core/main.c])
47be870b
LP
29AC_CONFIG_MACRO_DIR([m4])
30AC_CONFIG_HEADERS([config.h])
a80db8bd
JJ
31AC_CONFIG_AUX_DIR([build-aux])
32
4db6d587 33AC_USE_SYSTEM_EXTENSIONS
907dd195 34AC_SYS_LARGEFILE
eb7bbee6 35AC_PREFIX_DEFAULT([/usr])
bbd9b8c2 36AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
3e214785 37AM_SILENT_RULES([yes])
47be870b 38AC_CANONICAL_HOST
22be093f 39AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b 40AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
41 test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
42 [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
47be870b 43
3e214785 44LT_PREREQ(2.2)
8666abb4 45LT_INIT([disable-static])
47be870b 46
1c7dde3e
BN
47# i18n stuff for the PolicyKit policy files
48IT_PROG_INTLTOOL([0.40.0])
49
50GETTEXT_PACKAGE=systemd
51AC_SUBST(GETTEXT_PACKAGE)
52
e9da3678
LP
53AC_PROG_MKDIR_P
54AC_PROG_LN_S
55AC_PROG_SED
3ce4fad8 56AC_PROG_GREP
f975e971 57AC_PROG_AWK
e9da3678 58
47be870b
LP
59AC_PROG_CC
60AC_PROG_CC_C99
61AM_PROG_CC_C_O
62AC_PROG_GCC_TRADITIONAL
47be870b 63
3e214785 64AC_PATH_PROG([M4], [m4])
fe1fed02 65AC_PATH_PROG([XSLTPROC], [xsltproc])
92ec4495 66
86b2e20a
LP
67AC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
68AC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
b51fc639 69
86b2e20a
LP
70AC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
71
c1c02e07 72AC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
96ede260 73
80a5cbac 74# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
92ec4495 75m4_ifdef([GTK_DOC_CHECK], [
9e45e7d8 76GTK_DOC_CHECK([1.18],[--flavour no-tmpl])
6e92b23f 77], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
92ec4495 78
fe1fed02
ZJS
79AS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
80 AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
81])
82
6e92b23f 83m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
0eaeca1f 84GOBJECT_INTROSPECTION_CHECK([1.31.1])
d66ee73a
ZJS
85], [
86 AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
87 enable_introspection=no])
3e214785 88
8d7e170a
LP
89AC_PATH_TOOL(OBJCOPY, objcopy)
90AC_PATH_TOOL(STRINGS, strings)
91AC_PATH_TOOL(GPERF, gperf)
b62cfcea
MB
92if test -z "$GPERF" ; then
93 AC_MSG_ERROR([*** gperf not found])
94fi
9a60da28 95
eb2e280f 96CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
be1a67d9 97 -pipe \
d1ab0ca0 98 -Wall \
d1ab0ca0 99 -Wextra \
27765dfc 100 -Wno-inline \
d1ab0ca0 101 -Wundef \
780040dc 102 "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
d1ab0ca0
LP
103 -Wlogical-op \
104 -Wsign-compare \
d1ab0ca0 105 -Wmissing-include-dirs \
d1ab0ca0
LP
106 -Wold-style-definition \
107 -Wpointer-arith \
108 -Winit-self \
109 -Wdeclaration-after-statement \
110 -Wfloat-equal \
111 -Wmissing-prototypes \
112 -Wstrict-prototypes \
113 -Wredundant-decls \
114 -Wmissing-declarations \
115 -Wmissing-noreturn \
116 -Wshadow \
117 -Wendif-labels \
118 -Wcast-align \
119 -Wstrict-aliasing=2 \
120 -Wwrite-strings \
be1a67d9
LP
121 -Wno-long-long \
122 -Wno-overlength-strings \
d1ab0ca0 123 -Wno-unused-parameter \
be1a67d9 124 -Wno-missing-field-initializers \
8745297f 125 -Wno-unused-result \
d200735e 126 -Werror=overflow \
be1a67d9 127 -ffast-math \
d1ab0ca0
LP
128 -fno-common \
129 -fdiagnostics-show-option \
9b85fc6a
GSB
130 -fno-strict-aliasing \
131 -fvisibility=hidden \
132 -ffunction-sections \
5a45a936 133 -fdata-sections \
c1663b9d
LP
134 -fstack-protector \
135 --param=ssp-buffer-size=4])
5a45a936
LP
136AC_SUBST([OUR_CFLAGS], $with_cflags)
137
7cb20866 138AS_CASE([$CFLAGS], [*-O[[12345g\ ]]*], [
6a179865
ZJS
139 CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
140 -Wp,-D_FORTIFY_SOURCE=2])], [
c937e0d5 141 python_extra_cflags=-Wp,-U_FORTIFY_SOURCE
6a179865 142 AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
5a45a936 143AC_SUBST([OUR_CPPFLAGS], $with_cppflags)
9e7adc3a
LDM
144
145CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
9b85fc6a 146 -Wl,--as-needed \
5a45a936
LP
147 -Wl,--gc-sections \
148 -Wl,-z,relro \
149 -Wl,-z,now])
150AC_SUBST([OUR_LDFLAGS], $with_ldflags)
47be870b 151
c937e0d5
ZJS
152# ------------------------------------------------------------------------------
153# we use python to build the man page index, and for systemd-python
154have_python=no
155have_python_devel=no
156
157AC_ARG_WITH([python],
158 [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
159
160AS_IF([test "x$with_python" != "xno"], [
161 AM_PATH_PYTHON(,, [:])
162 AS_IF([test "$PYTHON" != :], [have_python=yes])
163])
164AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
165AS_IF([test "x$PYTHON_BINARY" = "x"],
166 [AS_IF([test "x$have_python" = "xyes"],
25ee45f9 167 [PYTHON_BINARY="$(which "$PYTHON")"],
c937e0d5
ZJS
168 [PYTHON_BINARY=/usr/bin/python])])
169AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
170
171AS_IF([test "x$with_python" != "xno"], [
172 AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
173 AS_IF([test -n "$PYTHON_CONFIG"], [
174 have_python_devel=yes
25ee45f9
MB
175 PYTHON_CFLAGS="$($PYTHON_CONFIG --cflags) $python_extra_cflags"
176 PYTHON_LIBS="$($PYTHON_CONFIG --ldflags)"
c937e0d5
ZJS
177 AC_SUBST(PYTHON_CFLAGS)
178 AC_SUBST(PYTHON_LIBS)
603c0b7b 179 AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
c937e0d5
ZJS
180 ])
181])
182AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
183
184# ------------------------------------------------------------------------------
185
e1718709 186AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
afea26ad 187AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
85f19d82
MB
188
189save_LIBS="$LIBS"
190LIBS=
47be870b
LP
191AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
192AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
85f19d82
MB
193CAP_LIBS="$LIBS"
194LIBS="$save_LIBS"
195AC_SUBST(CAP_LIBS)
47be870b 196
9388e99e 197AC_CHECK_FUNCS([fanotify_init fanotify_mark])
4db17f29 198AC_CHECK_FUNCS([__secure_getenv secure_getenv])
9388e99e 199AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
a8348796 200#include <unistd.h>
9388e99e
MO
201#include <sys/mount.h>
202#include <fcntl.h>]])
a8348796 203
b237ef2c 204# This makes sure pkg.m4 is available.
a9b5b032 205m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca0 206
3e214785 207PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
e3043162
TG
208
209# ------------------------------------------------------------------------------
210have_kmod=no
211AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
212if test "x$enable_kmod" != "xno"; then
213 PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ],
214 [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available]) have_kmod=yes], have_kmod=no)
215 if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
216 AC_MSG_ERROR([*** kmod support requested but libraries not found])
217 fi
218fi
219AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
f553b3b1
AO
220
221# ------------------------------------------------------------------------------
222have_blkid=no
223AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
224if test "x$enable_blkid" != "xno"; then
225 PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
226 [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
227 if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
228 AC_MSG_ERROR([*** blkid support requested but libraries not found])
229 fi
230fi
231AM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
728beb28 232
3e214785 233# ------------------------------------------------------------------------------
81611586
RS
234have_ima=yes
235AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
236 [case "${enableval}" in
237 yes) have_ima=yes ;;
238 no) have_ima=no ;;
239 *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
240 esac],
241 [have_ima=yes])
242
243if test "x${have_ima}" != xno ; then
244 AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
245fi
246
77e68fa2
LP
247# ------------------------------------------------------------------------------
248have_chkconfig=yes
249AC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
250 [case "${enableval}" in
251 yes) have_chkconfig=yes ;;
252 no) have_chkconfig=no ;;
253 *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
254 esac],
255 [AC_PATH_PROG(CHKCONFIG, chkconfig)
256 if test -z "$CHKCONFIG"; then
257 have_chkconfig=no
258 else
259 have_chkconfig=yes
260 fi])
261
262if test "x${have_chkconfig}" != xno ; then
263 AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
264fi
265
3e214785 266# ------------------------------------------------------------------------------
591622d7
LP
267have_selinux=no
268AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
269if test "x$enable_selinux" != "xno"; then
3f8cc098 270 PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
591622d7 271 [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
591622d7
LP
272 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
273 AC_MSG_ERROR([*** SELinux support requested but libraries not found])
274 fi
56cf987f 275fi
591622d7 276AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
ed061a8d 277if test "x${have_selinux}" != xno ; then
5ec6b15b 278 SUSHELL=/sbin/sushell
ed061a8d 279else
5ec6b15b 280 SUSHELL=/bin/sh
ed061a8d 281fi
5ec6b15b 282AC_SUBST(SUSHELL)
56cf987f 283
3e214785 284# ------------------------------------------------------------------------------
807e17f0
LP
285have_xz=no
286AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
287if test "x$enable_xz" != "xno"; then
288 PKG_CHECK_MODULES(XZ, [ liblzma ],
289 [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
807e17f0
LP
290 if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
291 AC_MSG_ERROR([*** Xz support requested but libraries not found])
292 fi
293fi
294AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
295
3e214785 296# ------------------------------------------------------------------------------
0213c3f8
LP
297AC_ARG_ENABLE([tcpwrap],
298 AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
299 [case "${enableval}" in
5b6319dc
LP
300 yes) have_tcpwrap=yes ;;
301 no) have_tcpwrap=no ;;
0213c3f8
LP
302 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
303 esac],
5b6319dc 304 [have_tcpwrap=auto])
0213c3f8 305
5b6319dc 306if test "x${have_tcpwrap}" != xno ; then
0213c3f8
LP
307 ACX_LIBWRAP
308 if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dc
LP
309 if test "x$have_tcpwrap" = xyes ; then
310 AC_MSG_ERROR([*** TCP wrappers support not found.])
0213c3f8 311 fi
812cce32 312 have_tcpwrap=no
0213c3f8 313 else
5b6319dc 314 have_tcpwrap=yes
0213c3f8
LP
315 fi
316else
5b6319dc 317 LIBWRAP_LIBS=
0213c3f8 318fi
0213c3f8
LP
319AC_SUBST(LIBWRAP_LIBS)
320
3e214785 321# ------------------------------------------------------------------------------
5b6319dc
LP
322AC_ARG_ENABLE([pam],
323 AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
324 [case "${enableval}" in
325 yes) have_pam=yes ;;
326 no) have_pam=no ;;
327 *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
328 esac],
329 [have_pam=auto])
330
331if test "x${have_pam}" != xno ; then
332 AC_CHECK_HEADERS(
333 [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
334 [have_pam=yes],
335 [if test "x$have_pam" = xyes ; then
336 AC_MSG_ERROR([*** PAM headers not found.])
337 fi])
338
339 AC_CHECK_LIB(
340 [pam],
341 [pam_syslog],
342 [have_pam=yes],
343 [if test "x$have_pam" = xyes ; then
344 AC_MSG_ERROR([*** libpam not found.])
345 fi])
346
347 if test "x$have_pam" = xyes ; then
348 PAM_LIBS="-lpam -lpam_misc"
349 AC_DEFINE(HAVE_PAM, 1, [PAM available])
812cce32
LP
350 else
351 have_pam=no
5b6319dc
LP
352 fi
353else
354 PAM_LIBS=
355fi
356AC_SUBST(PAM_LIBS)
357AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
358
3e214785 359# ------------------------------------------------------------------------------
5eda94dd
LP
360AC_ARG_ENABLE([acl],
361 AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
362 [case "${enableval}" in
363 yes) have_acl=yes ;;
364 no) have_acl=no ;;
365 *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
366 esac],
367 [have_acl=auto])
368
369if test "x${have_acl}" != xno ; then
370 AC_CHECK_HEADERS(
371 [sys/acl.h acl/libacl.h],
372 [have_acl=yes],
373 [if test "x$have_acl" = xyes ; then
374 AC_MSG_ERROR([*** ACL headers not found.])
375 fi])
376
377 AC_CHECK_LIB(
378 [acl],
379 [acl_get_file],
380 [have_acl=yes],
381 [if test "x$have_acl" = xyes ; then
382 AC_MSG_ERROR([*** libacl not found.])
383 fi])
384
385 if test "x$have_acl" = xyes ; then
386 ACL_LIBS="-lacl"
387 AC_DEFINE(HAVE_ACL, 1, [ACL available])
388 else
389 have_acl=no
390 fi
391else
392 ACL_LIBS=
393fi
394AC_SUBST(ACL_LIBS)
395AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
396
fb0951b0
LP
397# ------------------------------------------------------------------------------
398AC_ARG_ENABLE([xattr],
399 AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
400 [case "${enableval}" in
401 yes) have_xattr=yes ;;
402 no) have_xattr=no ;;
403 *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
404 esac],
405 [have_xattr=auto])
406
407if test "x${have_xattr}" != xno ; then
408 AC_CHECK_HEADERS(
409 [attr/xattr.h],
410 [have_xattr=yes],
411 [if test "x$have_xattr" = xyes ; then
412 AC_MSG_ERROR([*** XATTR headers not found.])
413 fi])
414
415 AC_CHECK_LIB(
416 [attr],
417 [fsetxattr],
418 [have_xattr=yes],
419 [if test "x$have_xattr" = xyes ; then
420 AC_MSG_ERROR([*** libattr not found.])
421 fi])
422
423 if test "x$have_xattr" = xyes ; then
424 XATTR_LIBS="-lattr"
425 AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
426 else
427 have_xattr=no
428 fi
429else
430 XATTR_LIBS=
431fi
432AC_SUBST(XATTR_LIBS)
433AM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
434
7560fffc 435# ------------------------------------------------------------------------------
feb12d3e 436AC_ARG_ENABLE([gcrypt],
7560fffc
LP
437 AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
438 [case "${enableval}" in
439 yes) have_gcrypt=yes ;;
440 no) have_gcrypt=no ;;
441 *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
442 esac],
443 [have_gcrypt=auto])
444
445if test "x${have_gcrypt}" != xno ; then
446 AM_PATH_LIBGCRYPT(
447 [1.4.5],
448 [have_gcrypt=yes],
449 [if test "x$have_gcrypt" = xyes ; then
450 AC_MSG_ERROR([*** GCRYPT headers not found.])
451 fi])
452
453 if test "x$have_gcrypt" = xyes ; then
454 GCRYPT_LIBS="$LIBGCRYPT_LIBS"
455 GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
456 AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
457 else
458 have_gcrypt=no
459 fi
460else
461 GCRYPT_LIBS=
462 GCRYPT_CFLAGS=
463fi
464AC_SUBST(GCRYPT_LIBS)
465AC_SUBST(GCRYPT_CFLAGS)
466AM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
467
3e214785 468# ------------------------------------------------------------------------------
4927fcae
LP
469AC_ARG_ENABLE([audit],
470 AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
471 [case "${enableval}" in
472 yes) have_audit=yes ;;
473 no) have_audit=no ;;
474 *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
475 esac],
476 [have_audit=auto])
477
478if test "x${have_audit}" != xno ; then
479 AC_CHECK_HEADERS(
480 [libaudit.h],
481 [have_audit=yes],
482 [if test "x$have_audit" = xyes ; then
483 AC_MSG_ERROR([*** AUDIT headers not found.])
484 fi])
485
486 AC_CHECK_LIB(
487 [audit],
488 [audit_open],
489 [have_audit=yes],
490 [if test "x$have_audit" = xyes ; then
491 AC_MSG_ERROR([*** libaudit not found.])
492 fi])
493
494 if test "x$have_audit" = xyes ; then
495 AUDIT_LIBS="-laudit"
496 AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
497 else
498 have_audit=no
499 fi
500else
501 AUDIT_LIBS=
502fi
503AC_SUBST(AUDIT_LIBS)
504
3e214785 505# ------------------------------------------------------------------------------
7f4e0805
LP
506have_libcryptsetup=no
507AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
508if test "x$enable_libcryptsetup" != "xno"; then
880a599e 509 PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
7f4e0805 510 [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7f4e0805 511 if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
591622d7 512 AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7f4e0805
LP
513 fi
514fi
515AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
516
f6a971bc
LP
517# ------------------------------------------------------------------------------
518have_qrencode=no
519AC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
520if test "x$enable_qrencode" != "xno"; then
521 PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
522 [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
523 if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
524 AC_MSG_ERROR([*** qrencode support requested but libraries not found])
525 fi
526fi
527AM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
528
7b17a7d7
LP
529# ------------------------------------------------------------------------------
530have_microhttpd=no
531AC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
532if test "x$enable_microhttpd" != "xno"; then
59bb9d9a 533 PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
7b17a7d7
LP
534 [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
535 if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
536 AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
537 fi
538fi
539AM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
540
3e214785 541# ------------------------------------------------------------------------------
27669061
MV
542have_binfmt=no
543AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
544if test "x$enable_binfmt" != "xno"; then
be31376e 545 have_binfmt=yes
27669061
MV
546fi
547AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
548
3e214785 549# ------------------------------------------------------------------------------
e5e83e83
LP
550have_vconsole=no
551AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
552if test "x$enable_vconsole" != "xno"; then
be31376e 553 have_vconsole=yes
e5e83e83
LP
554fi
555AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
556
3e214785 557# ------------------------------------------------------------------------------
e5e83e83
LP
558have_readahead=no
559AC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
560if test "x$enable_readahead" != "xno"; then
be31376e 561 have_readahead=yes
e5e83e83
LP
562fi
563AM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
564
83fdc450
AK
565# ------------------------------------------------------------------------------
566have_bootchart=no
567AC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
568if test "x$enable_bootchart" != "xno"; then
569 have_bootchart=yes
570fi
571AM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
572
3e214785 573# ------------------------------------------------------------------------------
4de85612
LP
574have_quotacheck=no
575AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
576if test "x$enable_quotacheck" != "xno"; then
be31376e 577 have_quotacheck=yes
4de85612
LP
578fi
579AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
580
3e214785 581# ------------------------------------------------------------------------------
4de85612
LP
582have_randomseed=no
583AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
584if test "x$enable_randomseed" != "xno"; then
be31376e 585 have_randomseed=yes
4de85612
LP
586fi
587AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
588
3e214785 589# ------------------------------------------------------------------------------
2a018e83
KS
590have_logind=no
591AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
592if test "x$enable_logind" != "xno"; then
be31376e 593 have_logind=yes
2a018e83
KS
594fi
595AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4c80c73c 596AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
2a018e83 597
3e214785 598# ------------------------------------------------------------------------------
b2e9fb99
MV
599have_hostnamed=no
600AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
601if test "x$enable_hostnamed" != "xno"; then
be31376e 602 have_hostnamed=yes
b2e9fb99
MV
603fi
604AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
605
3e214785 606# ------------------------------------------------------------------------------
f47cd184
MV
607have_timedated=no
608AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
609if test "x$enable_timedated" != "xno"; then
be31376e 610 have_timedated=yes
f47cd184
MV
611fi
612AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
613
3e214785 614# ------------------------------------------------------------------------------
4cd1eaa5
MV
615have_localed=no
616AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
617if test "x$enable_localed" != "xno"; then
be31376e 618 have_localed=yes
4cd1eaa5
MV
619fi
620AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
621
3e214785 622# ------------------------------------------------------------------------------
f5e04665
LP
623have_coredump=no
624AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
625if test "x$enable_coredump" != "xno"; then
be31376e 626 have_coredump=yes
f5e04665
LP
627fi
628AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
629
46ba8aae
LP
630# ------------------------------------------------------------------------------
631have_polkit=no
632AC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
633if test "x$enable_polkit" != "xno"; then
634 AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
635 have_polkit=yes
636fi
637AM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
638
b872e9a0
LP
639# ------------------------------------------------------------------------------
640have_efi=no
641AC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
642if test "x$enable_efi" != "xno"; then
643 AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
644 have_efi=yes
645fi
646AM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
647
b1c4ca25
LP
648# ------------------------------------------------------------------------------
649AC_ARG_WITH(rc-local-script-path-start,
650 AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
651 [Path to /etc/rc.local]),
652 [RC_LOCAL_SCRIPT_PATH_START="$withval"],
653 [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
654
655AC_ARG_WITH(rc-local-script-path-stop,
656 AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
bc270841 657 [Path to /usr/sbin/halt.local]),
b1c4ca25 658 [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
bc270841 659 [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
b1c4ca25
LP
660
661AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
bc270841 662AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
b1c4ca25
LP
663
664AC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
665AC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
666
a382332e
LP
667# ------------------------------------------------------------------------------
668AC_ARG_WITH(kbd-loadkeys,
669 AS_HELP_STRING([--with-kbd-loadkeys=PATH],
670 [Path to loadkeys]),
671 [KBD_LOADKEYS="$withval"],
672 [KBD_LOADKEYS="/usr/bin/loadkeys"])
673
674AC_ARG_WITH(kbd-setfont,
675 AS_HELP_STRING([--with-kbd-setfont=PATH],
676 [Path to setfont]),
677 [KBD_SETFONT="$withval"],
678 [KBD_SETFONT="/usr/bin/setfont"])
679
680AC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
681AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
682
683AC_SUBST(KBD_LOADKEYS)
684AC_SUBST(KBD_SETFONT)
685
4ad61fd1
CR
686AC_ARG_WITH(telinit,
687 AS_HELP_STRING([--with-telinit=PATH],
688 [Path to telinit]),
689 [TELINIT="$withval"],
690 [TELINIT="/lib/upstart/telinit"])
691
692AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
693
694AC_SUBST(TELINIT)
695
d562955e
TG
696# ------------------------------------------------------------------------------
697have_myhostname=no
f8c5a581 698AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
d562955e
TG
699if test "x$enable_myhostname" != "xno"; then
700 AC_HEADER_STDC
701 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])
702
703 AC_C_CONST
704 AC_TYPE_SIZE_T
705 AC_HEADER_TIME
706
707 AC_FUNC_MALLOC
708 AC_FUNC_SELECT_ARGTYPES
709 AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
710
711 have_myhostname=yes
712fi
713AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
714
3e214785
KS
715# ------------------------------------------------------------------------------
716AC_ARG_WITH(firmware-path,
717 AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
a3bd8447
TG
718 [Firmware search path (default="")]),
719 [], [with_firmware_path=""])
3e214785
KS
720OLD_IFS=$IFS
721IFS=:
722for i in $with_firmware_path; do
723 if test "x${FIRMWARE_PATH}" = "x"; then
724 FIRMWARE_PATH="\\\"${i}/\\\""
725 else
726 FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
727 fi
728done
729IFS=$OLD_IFS
a3bd8447 730AC_SUBST(FIRMWARE_PATH)
d8d4bee7 731AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
a3bd8447 732AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
3e214785
KS
733
734# ------------------------------------------------------------------------------
735AC_ARG_ENABLE([gudev],
736 AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
737 [], [enable_gudev=yes])
de1c301e 738AS_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 739AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
de1c301e
LP
740AS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
741
3e214785
KS
742# ------------------------------------------------------------------------------
743AC_ARG_ENABLE([keymap],
744 AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
745 [], [enable_keymap=yes])
746AS_IF([test "x$enable_keymap" = "xyes"], [
747 AC_PATH_PROG([GPERF], [gperf])
748 if test -z "$GPERF"; then
749 AC_MSG_ERROR([gperf is needed])
750 fi
751
752 AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
753 AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
754])
755AM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
756
d95fd3df 757# ------------------------------------------------------------------------------
5ec6b15b 758DEBUGTTY=/dev/tty9
d95fd3df
UTL
759AC_ARG_WITH([debugshelltty],
760 [AS_HELP_STRING([--with-debugshelltty=PATH],
761 [Specify the tty device for debug shell])],
5ec6b15b 762 [DEBUGTTY="$withval"],
d95fd3df 763 [])
5ec6b15b 764AC_SUBST(DEBUGTTY)
d95fd3df 765
3e214785 766# ------------------------------------------------------------------------------
75db9a77 767have_manpages=no
4c2b0e4e 768AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
fe1fed02
ZJS
769AS_IF([test "x$enable_manpages" != xno], [
770 AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
771 AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
772 ])
773 AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
774])
775AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
75db9a77 776
3e214785 777# ------------------------------------------------------------------------------
d1ab0ca0 778
34eff652
LP
779# Location of the init scripts as mandated by LSB
780SYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f 781SYSTEM_SYSVRCND_PATH=/etc/rc.d
f975e971 782M4_DEFINES=
12e84679 783
136337ff 784AC_ARG_WITH([sysvinit-path],
be31376e 785 [AS_HELP_STRING([--with-sysvinit-path=PATH],
bc270841 786 [Specify the path to where the SysV init scripts are located])],
be31376e
KS
787 [SYSTEM_SYSVINIT_PATH="$withval"],
788 [])
136337ff 789
dee4c244
LP
790AC_ARG_WITH([sysvrcnd-path],
791 [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
bc270841 792 [Specify the path to the base directory for the SysV rcN.d directories])],
136337ff
TFH
793 [SYSTEM_SYSVRCND_PATH="$withval"],
794 [])
795
07459bb6
FF
796if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
797 AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
798 SYSTEM_SYSV_COMPAT="yes"
f975e971 799 M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
07459bb6 800elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
dee4c244 801 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
802else
803 SYSTEM_SYSV_COMPAT="no"
804fi
805
bc270841
LP
806AC_SUBST(SYSTEM_SYSVINIT_PATH)
807AC_SUBST(SYSTEM_SYSVRCND_PATH)
808AC_SUBST(M4_DEFINES)
809
810AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
811
bef2733f 812AC_ARG_WITH([tty-gid],
a05ea46d 813 [AS_HELP_STRING([--with-tty-gid=GID],
bef2733f
LP
814 [Specify the numeric GID of the 'tty' group])],
815 [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
816 [])
817
d2d12cd1
LP
818AC_ARG_WITH([dbuspolicydir],
819 AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
820 [],
25ee45f9 821 [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
d122948d 822
d2d12cd1
LP
823AC_ARG_WITH([dbussessionservicedir],
824 AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
825 [],
25ee45f9 826 [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
d122948d 827
d2d12cd1
LP
828AC_ARG_WITH([dbussystemservicedir],
829 AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
830 [],
03c14914 831 [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
d122948d 832
d2d12cd1
LP
833AC_ARG_WITH([dbusinterfacedir],
834 AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
835 [],
03c14914 836 [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
d122948d 837
db059f1b
MB
838AC_ARG_WITH([bashcompletiondir],
839 AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
840 [],
25ee45f9
MB
841 [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
842 with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
db059f1b
MB
843 ] , [
844 with_bashcompletiondir=${datadir}/bash-completion/completions
845 ])])
846
b8079ae1
KS
847AC_ARG_WITH([rootprefix],
848 AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
39ad55a9 849 [], [with_rootprefix=${ac_default_prefix}])
d2d12cd1 850
ae446765
KS
851AC_ARG_WITH([rootlibdir],
852 AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
853 [],
854 [with_rootlibdir=${libdir}])
855
9d3203b4 856AC_ARG_WITH([pamlibdir],
b0cca7d8 857 AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
9d3203b4
KS
858 [],
859 [with_pamlibdir=${with_rootlibdir}/security])
860
bc9bdbba
MG
861AC_ARG_ENABLE([split-usr],
862 AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
863 [],
864 [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
865 enable_split_usr=yes
866 ], [
867 enable_split_usr=no
868 ])])
869
870AS_IF([test "x${enable_split_usr}" = "xyes"], [
2c6db6fb 871 AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
bc9bdbba 872])
2c6db6fb 873
6fc00209
ZJS
874# Work around intltoolize and gtk-doc problems in VPATH builds
875AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
876 [Define to do gtk-doc tests])
877AS_IF([test "x$0" != "x./configure"], [
878 AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
879])
880
d2d12cd1
LP
881AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
882AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
883AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
884AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
db059f1b 885AC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
8c6db833 886AC_SUBST([pamlibdir], [$with_pamlibdir])
b8079ae1 887AC_SUBST([rootprefix], [$with_rootprefix])
ae446765 888AC_SUBST([rootlibdir], [$with_rootlibdir])
8c4a3079 889
3e214785
KS
890AC_CONFIG_FILES([
891 Makefile po/Makefile.in
bb061708
KS
892 docs/libudev/Makefile
893 docs/libudev/version.xml
894 docs/gudev/Makefile
895 docs/gudev/version.xml
3e214785
KS
896])
897
a45a909f 898AC_OUTPUT
ae446765 899AC_MSG_RESULT([
0571e011
LP
900 $PACKAGE_NAME $VERSION
901
7f4e0805 902 libcryptsetup: ${have_libcryptsetup}
5b6319dc
LP
903 tcpwrap: ${have_tcpwrap}
904 PAM: ${have_pam}
12716238 905 AUDIT: ${have_audit}
81611586 906 IMA: ${have_ima}
12716238 907 SELinux: ${have_selinux}
807e17f0 908 XZ: ${have_xz}
5eda94dd 909 ACL: ${have_acl}
fb0951b0 910 XATTR: ${have_xattr}
7560fffc 911 GCRYPT: ${have_gcrypt}
f6a971bc 912 QRENCODE: ${have_qrencode}
7b17a7d7 913 MICROHTTPD: ${have_microhttpd}
77e68fa2 914 CHKCONFIG: ${have_chkconfig}
27669061 915 binfmt: ${have_binfmt}
e5e83e83
LP
916 vconsole: ${have_vconsole}
917 readahead: ${have_readahead}
83fdc450 918 bootchart: ${have_bootchart}
4de85612
LP
919 quotacheck: ${have_quotacheck}
920 randomseed: ${have_randomseed}
2a018e83 921 logind: ${have_logind}
b2e9fb99 922 hostnamed: ${have_hostnamed}
f47cd184 923 timedated: ${have_timedated}
4cd1eaa5 924 localed: ${have_localed}
f5e04665 925 coredump: ${have_coredump}
46ba8aae 926 polkit: ${have_polkit}
b872e9a0 927 efi: ${have_efi}
e3043162 928 kmod: ${have_kmod}
f553b3b1 929 blkid: ${have_blkid}
d562955e 930 nss-myhostname: ${have_myhostname}
3e214785
KS
931 gudev: ${enable_gudev}
932 gintrospection: ${enable_introspection}
933 keymap: ${enable_keymap}
8d7e170a
LP
934 Python: ${have_python}
935 Python Headers: ${have_python_devel}
2f4da3e6
ZJS
936 man pages: ${have_manpages}
937 gtk-doc: ${enable_gtk_doc}
938 Split /usr: ${enable_split_usr}
939 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
3e214785 940
8c4a3079 941 prefix: ${prefix}
b8079ae1 942 rootprefix: ${with_rootprefix}
3e214785
KS
943 sysconf dir: ${sysconfdir}
944 datarootdir: ${datarootdir}
945 includedir: ${includedir}
946 include_prefix: ${INCLUDE_PREFIX}
ae446765
KS
947 lib dir: ${libdir}
948 rootlib dir: ${with_rootlibdir}
2f4da3e6
ZJS
949 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
950 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
951 Build Python: ${PYTHON}
952 Installation Python: ${PYTHON_BINARY}
953 firmware path: ${FIRMWARE_PATH}
2c6db6fb 954 PAM modules dir: ${with_pamlibdir}
2c6db6fb
LP
955 D-Bus policy dir: ${with_dbuspolicydir}
956 D-Bus session dir: ${with_dbussessionservicedir}
957 D-Bus system dir: ${with_dbussystemservicedir}
958 D-Bus interfaces dir: ${with_dbusinterfacedir}
db059f1b 959 Bash completions dir: ${with_bashcompletiondir}
b1c4ca25
LP
960 Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
961 Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
66be6554 962
5a45a936 963 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
1f048a6b 964 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
5a45a936 965 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
568c7e02
ZJS
966 PYTHON_CFLAGS: ${PYTHON_CFLAGS}
967 PYTHON_LIBS: ${PYTHON_LIBS}
ae446765 968])