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