chiark / gitweb /
console: add user console daemon
[elogind.git] / configure.ac
1 #
2 #  This file is part of systemd.
3 #
4 #  Copyright 2010-2012 Lennart Poettering
5 #  Copyright 2010-2012 Kay Sievers
6 #
7 #  systemd is free software; you can redistribute it and/or modify it
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
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
15 #  Lesser General Public License for more details.
16 #
17 #  You should have received a copy of the GNU Lesser General Public License
18 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
19
20 AC_PREREQ([2.64])
21
22 AC_INIT([systemd],
23         [216],
24         [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
25         [systemd],
26         [http://www.freedesktop.org/wiki/Software/systemd])
27
28 AC_CONFIG_SRCDIR([src/core/main.c])
29 AC_CONFIG_MACRO_DIR([m4])
30 AC_CONFIG_HEADERS([config.h])
31 AC_CONFIG_AUX_DIR([build-aux])
32
33 AC_USE_SYSTEM_EXTENSIONS
34 AC_SYS_LARGEFILE
35 AC_PREFIX_DEFAULT([/usr])
36 AM_MAINTAINER_MODE([enable])
37 AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects])
38 AM_SILENT_RULES([yes])
39 AC_CANONICAL_HOST
40 AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
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])])
44
45 LT_PREREQ(2.2)
46 LT_INIT([disable-static])
47
48 AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
49 AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
50
51 # i18n stuff for the PolicyKit policy files
52
53 # Check whether intltool can be found, disable NLS otherwise
54 AC_CHECK_PROG(intltool_found, [intltool-merge], [yes], [no])
55 AS_IF([test x"$intltool_found" != xyes],
56       [AS_IF([test x"$enable_nls" = xyes],
57              [AC_MSG_ERROR([--enable-nls requested but intltool not found])],
58              [AS_IF([test x"$enable_nls" != xno],
59                     [AC_MSG_WARN([*** Disabling NLS support because intltool was not found])
60                      enable_nls=no])
61              ])
62       ])
63
64 AM_NLS
65 AS_IF([test x"$enable_nls" != xno -o "x$enable_polkit" != xno], [
66     # intltoolize greps for '^(AC|IT)_PROG_INTLTOOL', so it needs to be on its own line
67 IT_PROG_INTLTOOL([0.40.0])
68 ])
69
70 AS_IF([test -z "$INTLTOOL_POLICY_RULE"], [
71     # If intltool is not available, provide a dummy rule to fail generation of %.policy files with a meaningful error message
72     INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo "  ITMRG   " $@ && echo "*** intltool support required to build target $@" && false'
73     AC_SUBST(INTLTOOL_POLICY_RULE)
74 ])
75
76 GETTEXT_PACKAGE=systemd
77 AC_SUBST(GETTEXT_PACKAGE)
78
79 AC_PROG_MKDIR_P
80 AC_PROG_LN_S
81 AC_PROG_SED
82 AC_PROG_GREP
83 AC_PROG_AWK
84
85 AC_PROG_CC_C99
86
87 AC_PATH_PROG([M4], [m4])
88 AC_PATH_PROG([XSLTPROC], [xsltproc])
89
90 AC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon], [$PATH:/usr/sbin:/sbin])
91 AC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck], [$PATH:/usr/sbin:/sbin])
92
93 AC_PATH_PROG([KILL], [kill], [/usr/bin/kill], [$PATH:/usr/sbin:/sbin])
94
95 AC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
96
97 AC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
98
99 AS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
100
101 M4_DEFINES=
102
103 # gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
104 m4_ifdef([GTK_DOC_CHECK], [
105 GTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
106          [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
107           enable_gtk_doc=no])
108
109 AS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
110         AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
111 ])
112
113 m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
114 GOBJECT_INTROSPECTION_CHECK([1.31.1])
115 ], [
116    AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
117    enable_introspection=no])
118
119 AC_CHECK_TOOL(STRINGS, strings)
120 AC_CHECK_TOOL(GPERF, gperf)
121 if test -z "$GPERF" ; then
122         AC_MSG_ERROR([*** gperf not found])
123 fi
124
125 # ------------------------------------------------------------------------------
126 address_sanitizer_cflags=
127 address_sanitizer_cppflags=
128 address_sanitizer_ldflags=
129 AC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
130 AS_IF([test "x$enable_address_sanitizer" = "xyes"], [
131             CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
132             AS_IF([test -z "$with_as_cflags"],
133                   [AC_MSG_ERROR([*** -fsanitize=address is not supported])])
134             address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1"
135             address_sanitizer_cppflags="-DVALGRIND=1"
136             address_sanitizer_ldflags="-Wc,-fsanitize=address"
137       ])
138
139 undefined_sanitizer_cflags=
140 undefined_sanitizer_cppflags=
141 undefined_sanitizer_ldflags=
142 AC_ARG_ENABLE(undefined-sanitizer, AS_HELP_STRING([--enable-undefined-sanitizer], [enable -fsanitize=undefined]))
143 AS_IF([test "x$enable_undefined_sanitizer" = "xyes"], [
144             CC_CHECK_FLAG_APPEND([with_us_cflags], [CFLAGS], [-fsanitize=undefined])
145             AS_IF([test -z "$with_us_cflags"],
146                   [AC_MSG_ERROR([*** -fsanitize=undefined is not supported])])
147             undefined_sanitizer_cflags="$with_us_cflags -fno-omit-frame-pointer -DVALGRIND=1"
148             undefined_sanitizer_cppflags="-DVALGRIND=1"
149             undefined_sanitizer_ldflags="-Wc,-fsanitize=undefined"
150       ])
151
152 sanitizer_cflags="$address_sanitizer_cflags $undefined_sanitizer_cflags"
153 sanitizer_cppflags="$address_sanitizer_cppflags $undefined_sanitizer_cppflags"
154 sanitizer_ldflags="$address_sanitizer_ldflags $undefined_sanitizer_ldflags"
155
156 CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
157         -pipe \
158         -Wall \
159         -Wextra \
160         -Wno-inline \
161         -Wundef \
162         "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
163         -Wlogical-op \
164         -Wsign-compare \
165         -Wmissing-include-dirs \
166         -Wold-style-definition \
167         -Wpointer-arith \
168         -Winit-self \
169         -Wdeclaration-after-statement \
170         -Wfloat-equal \
171         -Wsuggest-attribute=noreturn \
172         -Wmissing-prototypes \
173         -Wstrict-prototypes \
174         -Wredundant-decls \
175         -Wmissing-declarations \
176         -Wmissing-noreturn \
177         -Wshadow \
178         -Wendif-labels \
179         -Wstrict-aliasing=2 \
180         -Wwrite-strings \
181         -Wno-long-long \
182         -Wno-overlength-strings \
183         -Wno-unused-parameter \
184         -Wno-missing-field-initializers \
185         -Wno-unused-result \
186         -Wno-typedef-redefinition \
187         -Werror=overflow \
188         -Wdate-time \
189         -Wnested-externs \
190         -ffast-math \
191         -fno-common \
192         -fdiagnostics-show-option \
193         -fno-strict-aliasing \
194         -fvisibility=hidden \
195         -ffunction-sections \
196         -fdata-sections \
197         -fstack-protector \
198         -fstack-protector-strong \
199         -fPIE \
200         --param=ssp-buffer-size=4])
201 AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
202         [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
203                -flto -ffat-lto-objects])],
204         [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
205 AC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
206
207 AS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
208         [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
209                -Wp,-D_FORTIFY_SOURCE=2])],
210         [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
211 AC_SUBST([OUR_CPPFLAGS], "$with_cppflags $sanitizer_cppflags")
212
213 CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
214         -Wl,--as-needed \
215         -Wl,--no-undefined \
216         -Wl,--gc-sections \
217         -Wl,-z,relro \
218         -Wl,-z,now \
219         -pie \
220         -Wl,-fuse-ld=gold])
221 AC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
222
223 AC_CHECK_SIZEOF(pid_t)
224 AC_CHECK_SIZEOF(uid_t)
225 AC_CHECK_SIZEOF(gid_t)
226 AC_CHECK_SIZEOF(time_t)
227 AC_CHECK_SIZEOF(dev_t)
228 AC_CHECK_SIZEOF(rlim_t,,[
229        #include <sys/time.h>
230        #include <sys/resource.h>
231 ])
232
233 # ------------------------------------------------------------------------------
234 # we use python to build the man page index, and for systemd-python
235 have_python=no
236 AC_ARG_WITH([python],
237         [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
238
239 have_lxml=no
240 AS_IF([test "x$with_python" != "xno"], [
241         AM_PATH_PYTHON(,, [:])
242         AS_IF([test "x$PYTHON" != "x:"], [
243                 AC_MSG_CHECKING([for python lxml module])
244                 AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes])
245                 AC_MSG_RESULT([$have_lxml])
246                 AS_IF([test "x$have_lxml" = "xyes"], [have_python=yes],
247                       [AC_MSG_WARN([*** python support requires python-lxml module installed])])
248         ])
249 ])
250 AS_IF([test "$have_python" != "yes"], [
251       AS_IF([test "$with_python" = "yes"],
252             [AC_MSG_ERROR([*** python support requested but python support not found])])
253       AS_IF([test "$with_python" != "no"],
254             [AC_MSG_WARN([*** python support not found, some documentation cannot be built])])
255 ])
256
257 AM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
258 AS_IF([test "x$PYTHON_BINARY" = "x"],
259       [AS_IF([test "x$have_python" = "xyes"],
260              [PYTHON_BINARY="$(which "$PYTHON")"],
261              [PYTHON_BINARY=/usr/bin/python])])
262 AC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
263
264 AS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
265       [AC_MSG_ERROR([*** python-devel support requires --with-python])])
266
267 have_python_devel=no
268 AC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
269 AS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
270       PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
271             [have_python_devel=yes],
272             [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
273                   [have_python_devel=yes],
274                   [have_python_devel=no])])
275       AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
276             [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
277       AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
278 ])
279 AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
280
281 # ------------------------------------------------------------------------------
282
283 AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
284 AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
285 AC_CHECK_HEADERS([linux/btrfs.h], [], [])
286
287 # unconditionally pull-in librt with old glibc versions
288 AC_SEARCH_LIBS([clock_gettime], [rt], [], [])
289
290 save_LIBS="$LIBS"
291 LIBS=
292 AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
293 CAP_LIBS="$LIBS"
294 AC_SUBST(CAP_LIBS)
295
296 LIBS=
297 AC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
298 RT_LIBS="$LIBS"
299 AC_SUBST(RT_LIBS)
300 LIBS="$save_LIBS"
301
302 AC_CHECK_FUNCS([fanotify_init fanotify_mark])
303 AC_CHECK_FUNCS([__secure_getenv secure_getenv])
304 AC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, LO_FLAGS_PARTSCAN],
305                [], [], [[
306 #include <sys/types.h>
307 #include <unistd.h>
308 #include <sys/mount.h>
309 #include <fcntl.h>
310 #include <sched.h>
311 #include <linux/loop.h>
312 ]])
313
314 AC_CHECK_DECLS([IFLA_MACVLAN_FLAGS,
315                 IFLA_VTI_REMOTE,
316                 IFLA_PHYS_PORT_ID,
317                 IFLA_BOND_AD_INFO,
318                 IFLA_VLAN_PROTOCOL,
319                 IFLA_VXLAN_LOCAL6,
320                 IFLA_IPTUN_6RD_RELAY_PREFIXLEN,
321                 IFLA_BRIDGE_VLAN_INFO],
322 [], [], [[
323 #include <inttypes.h>
324 #include <netinet/in.h>
325 #include <netinet/ether.h>
326 #include <linux/rtnetlink.h>
327 #include <net/if.h>
328 #include <linux/ip.h>
329 #include <linux/if_tunnel.h>
330 #include <linux/if_link.h>
331 #include <linux/if_bridge.h>
332 ]])
333
334 # This makes sure pkg.m4 is available.
335 m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
336
337 # ------------------------------------------------------------------------------
338 have_dbus=no
339 AC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
340 AS_IF([test "x$enable_dbus" != "xno"], [
341         PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
342                 [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
343                 [have_dbus=no])
344         AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
345                 [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
346 AM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
347
348 # ------------------------------------------------------------------------------
349 have_utmp=yes
350 AC_ARG_ENABLE([utmp], AS_HELP_STRING([--disable-utmp], [disable utmp/wtmp log handling]),
351         AS_CASE("x${enableval}",
352                 [xyes], [have_utmp=yes],
353                 [xno],  [have_utmp=no],
354                 AC_MSG_ERROR(bad value ${enableval} for --enable-utmp)))
355 AS_IF([test "x$have_utmp" = "xyes"], [AC_DEFINE(HAVE_UTMP, 1, [Define if utmp/wtmp support is enabled])])
356 AM_CONDITIONAL([HAVE_UTMP], [test "x$have_utmp" = "xyes"])
357
358 # ------------------------------------------------------------------------------
359 have_compat_libs=no
360 AC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
361                 [case "${enableval}" in
362                         yes) have_compat_libs=yes ;;
363                         no) have_compat_libs=no ;;
364                         *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
365                 esac],
366                 [have_compat_libs=no])
367 AM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
368
369 # ------------------------------------------------------------------------------
370 have_coverage=no
371 AC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
372 if test "x$enable_coverage" = "xyes" ; then
373         AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
374         if test "x$lcov_found" = xno ; then
375                 AC_MSG_ERROR([*** lcov support requested but the program was not found])
376         else
377                 lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
378                 lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
379                 if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
380                         AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
381                 else
382                         have_coverage=yes
383                         CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
384                         -fprofile-arcs \
385                         -ftest-coverage])
386                         AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
387                 fi
388         fi
389 fi
390 AM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
391
392 # ------------------------------------------------------------------------------
393 have_kmod=no
394 AC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
395 if test "x$enable_kmod" != "xno"; then
396         PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
397         if test "x$have_kmod" = "xyes"; then
398                 PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
399                         [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
400                         AC_MSG_ERROR([*** kmod version >= 15 not found]))
401         fi
402         if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
403                 AC_MSG_ERROR([*** kmod support requested, but libraries not found])
404         fi
405 fi
406 AM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
407
408 # ------------------------------------------------------------------------------
409 have_blkid=no
410 AC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
411 if test "x$enable_blkid" != "xno"; then
412         PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
413                 [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
414         if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
415                 AC_MSG_ERROR([*** blkid support requested but libraries not found])
416         fi
417 fi
418 AM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
419
420 # ------------------------------------------------------------------------------
421 have_seccomp=no
422 AC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support]))
423 if test "x$enable_seccomp" != "xno"; then
424         PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0],
425                [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available])
426                 have_seccomp=yes
427                 M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"],
428                [have_seccomp=no])
429         if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then
430                 AC_MSG_ERROR([*** seccomp support requested but libraries not found])
431         fi
432 fi
433 AM_CONDITIONAL(HAVE_SECCOMP, [test "$have_seccomp" = "yes"])
434
435 # ------------------------------------------------------------------------------
436 have_ima=yes
437 AC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
438                 [case "${enableval}" in
439                         yes) have_ima=yes ;;
440                         no) have_ima=no ;;
441                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
442                 esac],
443                 [have_ima=yes])
444
445 if test "x${have_ima}" != xno ; then
446         AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
447 fi
448
449 # ------------------------------------------------------------------------------
450 have_chkconfig=yes
451 AC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
452                 [case "${enableval}" in
453                         yes) have_chkconfig=yes ;;
454                         no) have_chkconfig=no ;;
455                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
456                 esac],
457                 [AC_PATH_PROG(CHKCONFIG, chkconfig)
458                 if test -z "$CHKCONFIG"; then
459                         have_chkconfig=no
460                 else
461                         have_chkconfig=yes
462                 fi])
463
464 if test "x${have_chkconfig}" != xno ; then
465         AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
466 fi
467
468 # ------------------------------------------------------------------------------
469 have_selinux=no
470 AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
471 if test "x$enable_selinux" != "xno"; then
472         PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
473                 [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available])
474                  have_selinux=yes
475                  M4_DEFINES="$M4_DEFINES -DHAVE_SELINUX"],
476                 [have_selinux=no])
477         if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
478                 AC_MSG_ERROR([*** SELinux support requested but libraries not found])
479         fi
480 fi
481 AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
482
483 have_apparmor=no
484 AC_ARG_ENABLE(apparmor, AS_HELP_STRING([--disable-apparmor], [Disable optional AppArmor support]))
485 if test "x$enable_apparmor" != "xno"; then
486         PKG_CHECK_MODULES([APPARMOR], [libapparmor],
487                 [AC_DEFINE(HAVE_APPARMOR, 1, [Define if AppArmor is available])
488                  have_apparmor=yes
489                  M4_DEFINES="$M4_DEFINES -DHAVE_APPARMOR"],
490                 [have_apparmor=no])
491         if test "x$have_apparmor" = xno -a "x$enable_apparmor" = xyes; then
492                 AC_MSG_ERROR([*** AppArmor support requested but libraries not found])
493         fi
494 fi
495 AM_CONDITIONAL(HAVE_APPARMOR, [test "$have_apparmor" = "yes"])
496
497
498 AC_ARG_WITH(debug-shell,
499         AS_HELP_STRING([--with-debug-shell=PATH],
500                 [Path to debug shell binary]),
501         [SUSHELL="$withval"],[
502         AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
503
504 AC_SUBST(SUSHELL)
505
506 AC_ARG_WITH([debug-tty],
507         AS_HELP_STRING([--with-debug-tty=PATH],
508                 [Specify the tty device for debug shell]),
509         [DEBUGTTY="$withval"],
510         [DEBUGTTY=/dev/tty9])
511
512 AC_SUBST(DEBUGTTY)
513
514 AC_ARG_WITH([certificate-root],
515         AS_HELP_STRING([--with-certificate-root=PATH],
516                 [Specify the prefix for TLS certificates [/etc/ssl]]),
517         [CERTIFICATEROOT="$withval"],
518         [CERTIFICATEROOT="/etc/ssl"])
519
520 AC_SUBST(CERTIFICATEROOT)
521
522 # ------------------------------------------------------------------------------
523 have_xz=no
524 AC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
525 if test "x$enable_xz" != "xno"; then
526         PKG_CHECK_MODULES(XZ, [ liblzma ],
527                 [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes])
528         if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
529                 AC_MSG_ERROR([*** XZ support requested but libraries not found])
530         fi
531 fi
532 AM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
533
534 # ------------------------------------------------------------------------------
535 have_lz4=no
536 AC_ARG_ENABLE(lz4, AS_HELP_STRING([--enable-lz4], [Enable optional LZ4 support]))
537 AS_IF([test "x$enable_lz4" == "xyes"], [
538         AC_CHECK_HEADERS(lz4.h,
539                [AC_DEFINE(HAVE_LZ4, 1, [Define in LZ4 is available]) have_lz4=yes],
540                [AC_MSG_ERROR([*** LZ4 support requested but headers not found])])
541 ])
542 AM_CONDITIONAL(HAVE_LZ4, [test "$have_lz4" = "yes"])
543
544 AM_CONDITIONAL(HAVE_COMPRESSION, [test "$have_xz" = "yes" -o "$have_lz4" = "yes"])
545
546 # ------------------------------------------------------------------------------
547 AC_ARG_ENABLE([pam],
548         AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
549                 [case "${enableval}" in
550                         yes) have_pam=yes ;;
551                         no) have_pam=no ;;
552                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
553                 esac],
554                 [have_pam=auto])
555
556 if test "x${have_pam}" != xno ; then
557         AC_CHECK_HEADERS(
558                 [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
559                 [have_pam=yes],
560                 [if test "x$have_pam" = xyes ; then
561                         AC_MSG_ERROR([*** PAM headers not found.])
562                 fi])
563
564         AC_CHECK_LIB(
565                 [pam],
566                 [pam_syslog],
567                 [have_pam=yes],
568                 [if test "x$have_pam" = xyes ; then
569                         AC_MSG_ERROR([*** libpam not found.])
570                 fi])
571
572         if test "x$have_pam" = xyes ; then
573                 PAM_LIBS="-lpam -lpam_misc"
574                 AC_DEFINE(HAVE_PAM, 1, [PAM available])
575                 M4_DEFINES="$M4_DEFINES -DHAVE_PAM"
576         else
577                 have_pam=no
578         fi
579 else
580         PAM_LIBS=
581 fi
582 AC_SUBST(PAM_LIBS)
583 AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
584
585 # ------------------------------------------------------------------------------
586 AC_ARG_ENABLE([acl],
587         AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
588                 [case "${enableval}" in
589                         yes) have_acl=yes ;;
590                         no) have_acl=no ;;
591                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
592                 esac],
593                 [have_acl=auto])
594
595 if test "x${have_acl}" != xno ; then
596         AC_CHECK_HEADERS(
597                 [sys/acl.h acl/libacl.h],
598                 [have_acl=yes],
599                 [if test "x$have_acl" = xyes ; then
600                         AC_MSG_ERROR([*** ACL headers not found.])
601                 fi])
602
603         AC_CHECK_LIB(
604                 [acl],
605                 [acl_get_file],
606                 [have_acl=yes],
607                 [if test "x$have_acl" = xyes ; then
608                         AC_MSG_ERROR([*** libacl not found.])
609                 fi])
610
611         if test "x$have_acl" = xyes ; then
612                 ACL_LIBS="-lacl"
613                 AC_DEFINE(HAVE_ACL, 1, [ACL available])
614         else
615                 have_acl=no
616         fi
617 else
618         ACL_LIBS=
619 fi
620 AC_SUBST(ACL_LIBS)
621 AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
622
623 # ------------------------------------------------------------------------------
624 AC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
625                 [case "${enableval}" in
626                         yes) have_smack=yes ;;
627                         no) have_smack=no ;;
628                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
629                 esac],
630                 [have_smack=auto])
631
632 if test "x${have_smack}" = xauto; then
633         M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
634         have_smack=yes
635 fi
636
637 AC_ARG_WITH(smack-run-label,
638 AS_HELP_STRING([--with-smack-run-label=STRING],
639         [run systemd --system with a specific SMACK label]),
640         [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])],
641         [])
642
643 if test "x${have_smack}" = xyes ; then
644         AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
645 fi
646
647 # ------------------------------------------------------------------------------
648 AC_ARG_ENABLE([gcrypt],
649         AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
650                 [case "${enableval}" in
651                         yes) have_gcrypt=yes ;;
652                         no) have_gcrypt=no ;;
653                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
654                 esac],
655                 [have_gcrypt=auto])
656
657 if test "x${have_gcrypt}" != xno ; then
658         AM_PATH_LIBGCRYPT(
659                 [1.4.5],
660                 [have_gcrypt=yes],
661                 [if test "x$have_gcrypt" = xyes ; then
662                         AC_MSG_ERROR([*** GCRYPT headers not found.])
663                 fi])
664
665         if test "x$have_gcrypt" = xyes ; then
666                 GCRYPT_LIBS="$LIBGCRYPT_LIBS"
667                 GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
668                 AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
669         else
670                 have_gcrypt=no
671         fi
672 else
673         GCRYPT_LIBS=
674         GCRYPT_CFLAGS=
675 fi
676 AC_SUBST(GCRYPT_LIBS)
677 AC_SUBST(GCRYPT_CFLAGS)
678 AM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
679
680 # ------------------------------------------------------------------------------
681 AC_ARG_ENABLE([audit],
682         AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
683                 [case "${enableval}" in
684                         yes) have_audit=yes ;;
685                         no) have_audit=no ;;
686                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
687                 esac],
688                 [have_audit=auto])
689
690 if test "x${have_audit}" != xno ; then
691         AC_CHECK_HEADERS(
692                 [libaudit.h],
693                 [have_audit=yes],
694                 [if test "x$have_audit" = xyes ; then
695                         AC_MSG_ERROR([*** AUDIT headers not found.])
696                 fi])
697
698         AC_CHECK_LIB(
699                 [audit],
700                 [audit_open],
701                 [have_audit=yes],
702                 [if test "x$have_audit" = xyes ; then
703                         AC_MSG_ERROR([*** libaudit not found.])
704                 fi])
705
706         if test "x$have_audit" = xyes ; then
707                 AUDIT_LIBS="-laudit"
708                 AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
709         else
710                 have_audit=no
711         fi
712 else
713         AUDIT_LIBS=
714 fi
715 AC_SUBST(AUDIT_LIBS)
716
717 # ------------------------------------------------------------------------------
718 AC_ARG_ENABLE([elfutils],
719         AS_HELP_STRING([--disable-elfutils],[Disable optional ELFUTILS support]),
720                 [case "${enableval}" in
721                         yes) have_elfutils=yes ;;
722                         no) have_elfutils=no ;;
723                         *) AC_MSG_ERROR(bad value ${enableval} for --disable-elfutils) ;;
724                 esac],
725                 [have_elfutils=auto])
726
727 if test "x${have_elfutils}" != xno ; then
728         AC_CHECK_HEADERS(
729                 [elfutils/libdwfl.h],
730                 [],
731                 [if test "x$have_elfutils" = xyes ; then
732                         AC_MSG_ERROR([*** ELFUTILS headers not found.])
733                 fi])
734
735         AC_CHECK_LIB(
736                 [dw],
737                 [dwfl_begin],
738                 [],
739                 [if test "x$have_elfutils" = xyes ; then
740                         AC_MSG_ERROR([*** ELFUTILS libs not found.])
741                 fi])
742
743         AC_CHECK_LIB(
744                 [dw],
745                 [dwfl_core_file_attach],
746                 [have_elfutils=yes],
747                 [if test "x$have_elfutils" = xyes ; then
748                         AC_MSG_ERROR([*** ELFUTILS >= 158 is required.])
749                 fi])
750
751         if test "x$have_elfutils" = xyes ; then
752                 ELFUTILS_LIBS="-lelf -ldw"
753                 AC_DEFINE(HAVE_ELFUTILS, 1, [ELFUTILS available])
754         else
755                 have_elfutils=no
756         fi
757 else
758         ELFUTILS_LIBS=
759 fi
760 AC_SUBST(ELFUTILS_LIBS)
761 AM_CONDITIONAL(HAVE_ELFUTILS, [test "$have_elfutils" = "yes"])
762
763 # ------------------------------------------------------------------------------
764 have_libcryptsetup=no
765 AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
766 if test "x$enable_libcryptsetup" != "xno"; then
767         PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ],
768                 [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
769         if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
770                 AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
771         fi
772 fi
773 AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
774
775 # ------------------------------------------------------------------------------
776 have_qrencode=no
777 AC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
778 if test "x$enable_qrencode" != "xno"; then
779         PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
780                 [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
781         if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
782                 AC_MSG_ERROR([*** qrencode support requested but libraries not found])
783         fi
784 fi
785 AM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
786
787 # ------------------------------------------------------------------------------
788 have_microhttpd=no
789 AC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
790 if test "x$enable_microhttpd" != "xno"; then
791         PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.33],
792                 [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
793         if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
794                 AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
795         fi
796 fi
797 AM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
798
799 # ------------------------------------------------------------------------------
800 have_gnutls=no
801 AC_ARG_ENABLE(gnutls, AS_HELP_STRING([--disable-gnutls], [disable gnutls support]))
802 if test "x$enable_gnutls" != "xno"; then
803         PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.1.4],
804                 [AC_DEFINE(HAVE_GNUTLS, 1, [Define if gnutls is available]) have_gnutls=yes], have_gnutls=no)
805         if test "x$have_gnutls" = xno -a "x$enable_gnutls" = xyes; then
806                 AC_MSG_ERROR([*** gnutls support requested but libraries not found])
807         fi
808 fi
809 AM_CONDITIONAL(HAVE_GNUTLS, [test "$have_gnutls" = "yes"])
810
811 # ------------------------------------------------------------------------------
812 have_libcurl=no
813 AC_ARG_ENABLE(libcurl, AS_HELP_STRING([--disable-libcurl], [disable libcurl support]))
814 if test "x$enable_libcurl" != "xno"; then
815         PKG_CHECK_MODULES(LIBCURL, [libcurl],
816                 [AC_DEFINE(HAVE_LIBCURL, 1, [Define if libcurl is available]) have_libcurl=yes], have_libcurl=no)
817         if test "x$have_libcurl" = xno -a "x$enable_libcurl" = xyes; then
818                 AC_MSG_ERROR([*** libcurl support requested but libraries not found])
819         fi
820 fi
821 AM_CONDITIONAL(HAVE_LIBCURL, [test "$have_libcurl" = "yes"])
822
823 # ------------------------------------------------------------------------------
824 have_libidn=no
825 AC_ARG_ENABLE(libidn, AS_HELP_STRING([--disable-libidn], [Disable optional LIBIDN support]))
826 if test "x$enable_libidn" != "xno"; then
827         PKG_CHECK_MODULES(LIBIDN, [libidn],
828                [AC_DEFINE(HAVE_LIBIDN, 1, [Define if libidn is available])
829                 have_libidn=yes
830                 M4_DEFINES="$M4_DEFINES -DHAVE_LIBIDN"],
831                [have_libidn=no])
832         if test "x$have_libidn" = "xno" -a "x$enable_libidn" = "xyes"; then
833                 AC_MSG_ERROR([*** libidn support requested but libraries not found])
834         fi
835 fi
836 AM_CONDITIONAL(HAVE_LIBIDN, [test "$have_libidn" = "yes"])
837
838 # ------------------------------------------------------------------------------
839 have_binfmt=no
840 AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
841 if test "x$enable_binfmt" != "xno"; then
842         have_binfmt=yes
843 fi
844 AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
845
846 # ------------------------------------------------------------------------------
847 have_vconsole=no
848 AC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
849 if test "x$enable_vconsole" != "xno"; then
850         have_vconsole=yes
851 fi
852 AM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
853
854 # ------------------------------------------------------------------------------
855 have_bootchart=no
856 AC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
857 if test "x$enable_bootchart" != "xno"; then
858         have_bootchart=yes
859 fi
860 AM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
861
862 # ------------------------------------------------------------------------------
863 have_quotacheck=no
864 AC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
865 if test "x$enable_quotacheck" != "xno"; then
866         have_quotacheck=yes
867 fi
868 AM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
869
870 # ------------------------------------------------------------------------------
871 have_tmpfiles=no
872 AC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
873 if test "x$enable_tmpfiles" != "xno"; then
874         have_tmpfiles=yes
875 fi
876 AM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
877
878 # ------------------------------------------------------------------------------
879 have_sysusers=no
880 AC_ARG_ENABLE(sysusers, AS_HELP_STRING([--disable-sysusers], [disable sysusers support]))
881 if test "x$enable_sysusers" != "xno"; then
882         have_sysusers=yes
883 fi
884 AM_CONDITIONAL(ENABLE_SYSUSERS, [test "$have_sysusers" = "yes"])
885
886 # ------------------------------------------------------------------------------
887 have_firstboot=no
888 AC_ARG_ENABLE(firstboot, AS_HELP_STRING([--disable-firstboot], [disable firstboot support]))
889 if test "x$enable_firstboot" != "xno"; then
890         have_firstboot=yes
891 fi
892 AM_CONDITIONAL(ENABLE_FIRSTBOOT, [test "$have_firstboot" = "yes"])
893
894 # ------------------------------------------------------------------------------
895 have_randomseed=no
896 AC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
897 if test "x$enable_randomseed" != "xno"; then
898         have_randomseed=yes
899 fi
900 AM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
901
902 # ------------------------------------------------------------------------------
903 have_backlight=no
904 AC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
905 if test "x$enable_backlight" != "xno"; then
906         have_backlight=yes
907 fi
908 AM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
909
910 # ------------------------------------------------------------------------------
911 have_rfkill=no
912 AC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
913 if test "x$enable_rfkill" != "xno"; then
914         have_rfkill=yes
915 fi
916 AM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
917
918 # ------------------------------------------------------------------------------
919 have_logind=no
920 AC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
921 if test "x$enable_logind" != "xno"; then
922         have_logind=yes
923 fi
924 AM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
925 AS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
926
927 # ------------------------------------------------------------------------------
928 have_machined=no
929 AC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
930 if test "x$enable_machined" != "xno"; then
931         have_machined=yes
932 fi
933 AM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
934 AS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
935
936 # ------------------------------------------------------------------------------
937 have_hostnamed=no
938 AC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
939 if test "x$enable_hostnamed" != "xno"; then
940         have_hostnamed=yes
941 fi
942 AM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
943
944 # ------------------------------------------------------------------------------
945 have_timedated=no
946 AC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
947 if test "x$enable_timedated" != "xno"; then
948         have_timedated=yes
949 fi
950 AM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
951
952 # ------------------------------------------------------------------------------
953 have_timesyncd=no
954 AC_ARG_ENABLE(timesyncd, AS_HELP_STRING([--disable-timesyncd], [disable timesync daemon]))
955 if test "x$enable_timesyncd" != "xno"; then
956         have_timesyncd=yes
957 fi
958 AM_CONDITIONAL(ENABLE_TIMESYNCD, [test "$have_timesyncd" = "yes"])
959
960 AC_ARG_WITH(ntp-servers,
961         AS_HELP_STRING([--with-ntp-servers=NTPSERVERS],
962                 [Space-separated list of default NTP servers]),
963         [NTP_SERVERS="$withval"],
964         [NTP_SERVERS="time1.google.com time2.google.com time3.google.com time4.google.com"])
965
966 AC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers])
967 AC_SUBST(NTP_SERVERS)
968
969 AC_ARG_WITH(time-epoch,
970         AS_HELP_STRING([--with-time-epoch=SECONDS],
971                 [Time epoch for time clients]),
972         [TIME_EPOCH="$withval"],
973         [TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"])
974
975 AC_DEFINE_UNQUOTED(TIME_EPOCH, [$TIME_EPOCH], [Time Epoch])
976
977 # ------------------------------------------------------------------------------
978 AC_ARG_WITH(system-uid-max,
979         AS_HELP_STRING([--with-system-uid-max=UID]
980                 [Maximum UID for system users]),
981         [SYSTEM_UID_MAX="$withval"],
982         [SYSTEM_UID_MAX="`awk 'BEGIN { uid=999 } /^\s*SYS_UID_MAX\s+/ { uid=$2 } END { print uid }' /etc/login.defs 2>/dev/null || echo 999`"])
983
984 AC_DEFINE_UNQUOTED(SYSTEM_UID_MAX, [$SYSTEM_UID_MAX], [Maximum System UID])
985 AC_SUBST(SYSTEM_UID_MAX)
986
987 # ------------------------------------------------------------------------------
988 AC_ARG_WITH(system-gid-max,
989         AS_HELP_STRING([--with-system-gid-max=GID]
990                 [Maximum GID for system groups]),
991         [SYSTEM_GID_MAX="$withval"],
992         [SYSTEM_GID_MAX="`awk 'BEGIN { gid=999 } /^\s*SYS_GID_MAX\s+/ { gid=$2 } END { print gid }' /etc/login.defs 2>/dev/null || echo 999`"])
993
994 AC_DEFINE_UNQUOTED(SYSTEM_GID_MAX, [$SYSTEM_GID_MAX], [Maximum System GID])
995 AC_SUBST(SYSTEM_GID_MAX)
996
997 # ------------------------------------------------------------------------------
998 have_localed=no
999 AC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
1000 if test "x$enable_localed" != "xno"; then
1001         have_localed=yes
1002 fi
1003 AM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
1004
1005 # ------------------------------------------------------------------------------
1006 have_coredump=no
1007 AC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
1008 if test "x$enable_coredump" != "xno"; then
1009         have_coredump=yes
1010 fi
1011 AM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
1012
1013 # ------------------------------------------------------------------------------
1014 have_polkit=no
1015 AC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
1016 if test "x$enable_polkit" != "xno"; then
1017         AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
1018         have_polkit=yes
1019 fi
1020 AM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
1021
1022 # ------------------------------------------------------------------------------
1023 have_resolved=no
1024 AC_ARG_ENABLE(resolved, AS_HELP_STRING([--disable-resolved], [disable resolve daemon]))
1025 if test "x$enable_resolved" != "xno"; then
1026         have_resolved=yes
1027         M4_DEFINES="$M4_DEFINES -DENABLE_RESOLVED"
1028 fi
1029 AM_CONDITIONAL(ENABLE_RESOLVED, [test "$have_resolved" = "yes"])
1030
1031 AC_ARG_WITH(dns-servers,
1032         AS_HELP_STRING([--with-dns-servers=DNSSERVERS],
1033                 [Space-separated list of default DNS servers]),
1034         [DNS_SERVERS="$withval"],
1035         [DNS_SERVERS="8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844"])
1036
1037 AC_DEFINE_UNQUOTED(DNS_SERVERS, ["$DNS_SERVERS"], [Default DNS Servers])
1038 AC_SUBST(DNS_SERVERS)
1039
1040 # ------------------------------------------------------------------------------
1041 have_networkd=no
1042 AC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
1043 AS_IF([test "x$enable_networkd" != "xno"], [
1044         AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
1045         have_networkd=yes
1046 ])
1047 AM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
1048
1049 # ------------------------------------------------------------------------------
1050 have_efi=no
1051 AC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
1052 if test "x$enable_efi" != "xno"; then
1053         AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
1054         have_efi=yes
1055 fi
1056 AM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
1057
1058 # ------------------------------------------------------------------------------
1059 have_multi_seat_x=no
1060 AC_ARG_ENABLE(multi_seat_x, AS_HELP_STRING([--disable-multi-seat-x], [do not build multi-seat-x]))
1061 if test "x$enable_multi_seat_x" != "xno"; then
1062         have_multi_seat_x=yes
1063 fi
1064 AM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"])
1065
1066 # ------------------------------------------------------------------------------
1067 have_terminal=no
1068 AC_ARG_ENABLE(terminal, AS_HELP_STRING([--enable-terminal], [enable terminal support]))
1069 if test "x$enable_terminal" = "xyes"; then
1070         PKG_CHECK_MODULES([TERMINAL], [ libevdev >= 1.2 xkbcommon >= 0.4 libdrm >= 2.4], [have_terminal=yes])
1071         AS_IF([test "x$have_terminal" != xyes -a "x$enable_terminal" = xyes],
1072               [AC_MSG_ERROR([*** terminal support requested but required dependencies not available])],
1073               [test "x$have_terminal" = xyes],
1074               [AC_DEFINE(ENABLE_TERMINAL, 1, [Define if terminal support is to be enabled])])
1075 fi
1076 AM_CONDITIONAL(ENABLE_TERMINAL, [test "x$have_terminal" = "xyes"])
1077
1078 # ------------------------------------------------------------------------------
1079 have_kdbus=no
1080 AC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
1081 if test "x$enable_kdbus" = "xyes"; then
1082         AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
1083         have_kdbus=yes
1084         M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
1085 fi
1086 AM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
1087
1088 # ------------------------------------------------------------------------------
1089 AC_ARG_WITH(rc-local-script-path-start,
1090         AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
1091                 [Path to /etc/rc.local]),
1092         [RC_LOCAL_SCRIPT_PATH_START="$withval"],
1093         [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
1094
1095 AC_ARG_WITH(rc-local-script-path-stop,
1096         AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
1097                 [Path to /usr/sbin/halt.local]),
1098         [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
1099         [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
1100
1101 AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
1102 AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
1103
1104 AC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
1105 AC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
1106
1107 # ------------------------------------------------------------------------------
1108 AC_ARG_WITH(kbd-loadkeys,
1109         AS_HELP_STRING([--with-kbd-loadkeys=PATH],
1110                 [Path to loadkeys]),
1111         [KBD_LOADKEYS="$withval"],
1112         [KBD_LOADKEYS="/usr/bin/loadkeys"])
1113
1114 AC_ARG_WITH(kbd-setfont,
1115         AS_HELP_STRING([--with-kbd-setfont=PATH],
1116                 [Path to setfont]),
1117         [KBD_SETFONT="$withval"],
1118         [KBD_SETFONT="/usr/bin/setfont"])
1119
1120 AC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
1121 AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
1122
1123 AC_SUBST(KBD_LOADKEYS)
1124 AC_SUBST(KBD_SETFONT)
1125
1126 AC_ARG_WITH(telinit,
1127         AS_HELP_STRING([--with-telinit=PATH],
1128                 [Path to telinit]),
1129         [TELINIT="$withval"],
1130         [TELINIT="/lib/sysvinit/telinit"])
1131
1132 AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
1133
1134 AC_SUBST(TELINIT)
1135
1136 AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
1137
1138 # ------------------------------------------------------------------------------
1139 have_myhostname=no
1140 AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
1141 if test "x$enable_myhostname" != "xno"; then
1142         AC_HEADER_STDC
1143         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])
1144
1145         AC_C_CONST
1146         AC_TYPE_SIZE_T
1147         AC_HEADER_TIME
1148
1149         AC_FUNC_MALLOC
1150         AC_FUNC_SELECT_ARGTYPES
1151         AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
1152
1153         have_myhostname=yes
1154 fi
1155 AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
1156
1157 # ------------------------------------------------------------------------------
1158 AC_ARG_ENABLE([gudev],
1159        AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
1160        [], [enable_gudev=yes])
1161 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]) ])
1162 AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
1163 AS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
1164
1165 # ------------------------------------------------------------------------------
1166 have_manpages=no
1167 AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
1168 AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
1169 AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
1170
1171 # ------------------------------------------------------------------------------
1172 AC_ARG_ENABLE(hibernate,
1173        [AC_HELP_STRING([--disable-hibernate], [disable hibernation support])],
1174        enable_hibernate=$enableval, enable_hibernate=yes)
1175 AM_CONDITIONAL(ENABLE_HIBERNATE, [test x$enable_hibernate = xyes])
1176
1177 # ------------------------------------------------------------------------------
1178 AC_ARG_ENABLE(ldconfig,
1179        [AC_HELP_STRING([--disable-ldconfig], [disable ldconfig])],
1180        enable_ldconfig=$enableval, enable_ldconfig=yes)
1181 AM_CONDITIONAL(ENABLE_LDCONFIG, [test x$enable_ldconfig = xyes])
1182
1183 # ------------------------------------------------------------------------------
1184 # Location of the init scripts as mandated by LSB
1185 SYSTEM_SYSVINIT_PATH=/etc/init.d
1186 SYSTEM_SYSVRCND_PATH=/etc/rc.d
1187
1188 AC_ARG_WITH([sysvinit-path],
1189         [AS_HELP_STRING([--with-sysvinit-path=PATH],
1190                 [Specify the path to where the SysV init scripts are located])],
1191         [SYSTEM_SYSVINIT_PATH="$withval"],
1192         [])
1193
1194 AC_ARG_WITH([sysvrcnd-path],
1195         [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
1196                 [Specify the path to the base directory for the SysV rcN.d directories])],
1197         [SYSTEM_SYSVRCND_PATH="$withval"],
1198         [])
1199
1200 if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
1201         AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
1202         SYSTEM_SYSV_COMPAT="yes"
1203         M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
1204 elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
1205         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.])
1206 else
1207         SYSTEM_SYSV_COMPAT="no"
1208 fi
1209
1210 AC_SUBST(SYSTEM_SYSVINIT_PATH)
1211 AC_SUBST(SYSTEM_SYSVRCND_PATH)
1212 AC_SUBST(M4_DEFINES)
1213
1214 AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
1215
1216 AC_ARG_WITH([tty-gid],
1217         [AS_HELP_STRING([--with-tty-gid=GID],
1218                 [Specify the numeric GID of the 'tty' group])],
1219         [TTY_GID="$withval"],
1220         [TTY_GID="5"])
1221
1222 AC_DEFINE_UNQUOTED(TTY_GID, [$TTY_GID], [GID of the 'tty' group])
1223 AC_SUBST(TTY_GID)
1224
1225 AC_ARG_WITH([dbuspolicydir],
1226         AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
1227         [],
1228         [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
1229
1230 AC_ARG_WITH([dbussessionservicedir],
1231         AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
1232         [],
1233         [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
1234
1235 AC_ARG_WITH([dbussystemservicedir],
1236         AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
1237         [],
1238         [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
1239
1240 AC_ARG_WITH([dbusinterfacedir],
1241         AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
1242         [],
1243         [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
1244
1245 AC_ARG_WITH([bashcompletiondir],
1246         AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
1247         [],
1248         [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
1249                 with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
1250         ] , [
1251                 with_bashcompletiondir=${datadir}/bash-completion/completions
1252         ])])
1253
1254 AC_ARG_WITH([zshcompletiondir],
1255         AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]),
1256         [], [with_zshcompletiondir=${datadir}/zsh/site-functions])
1257
1258 AC_ARG_WITH([rootprefix],
1259         AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
1260         [], [with_rootprefix=${ac_default_prefix}])
1261
1262 AC_ARG_WITH([rootlibdir],
1263         AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
1264         [],
1265         [with_rootlibdir=${libdir}])
1266
1267 AC_ARG_WITH([pamlibdir],
1268         AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
1269         [],
1270         [with_pamlibdir=${with_rootlibdir}/security])
1271
1272 AC_ARG_WITH([pamconfdir],
1273         AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
1274         [],
1275         [with_pamconfdir=${sysconfdir}/pam.d])
1276
1277 AC_ARG_ENABLE([split-usr],
1278         AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
1279         [],
1280         [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
1281                 enable_split_usr=yes
1282         ], [
1283                 enable_split_usr=no
1284         ])])
1285
1286 AS_IF([test "x${enable_split_usr}" = "xyes"], [
1287         AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
1288 ])
1289
1290 # Work around intltoolize and gtk-doc problems in VPATH builds
1291 AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
1292                                        [Define to do gtk-doc tests])
1293 AS_IF([test "x$0" != "x./configure"], [
1294         AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
1295 ])
1296
1297 AC_ARG_ENABLE(tests,
1298        [AC_HELP_STRING([--disable-tests], [disable tests])],
1299        enable_tests=$enableval, enable_tests=yes)
1300 AM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
1301
1302 AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
1303 AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
1304 AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
1305 AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
1306 AC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
1307 AC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
1308 AC_SUBST([pamlibdir], [$with_pamlibdir])
1309 AC_SUBST([pamconfdir], [$with_pamconfdir])
1310 AC_SUBST([rootprefix], [$with_rootprefix])
1311 AC_SUBST([rootlibdir], [$with_rootlibdir])
1312
1313 AC_CONFIG_FILES([
1314         Makefile po/Makefile.in
1315         docs/libudev/Makefile
1316         docs/libudev/version.xml
1317         docs/gudev/Makefile
1318         docs/gudev/version.xml
1319 ])
1320
1321 AC_OUTPUT
1322 AC_MSG_RESULT([
1323         $PACKAGE_NAME $VERSION
1324
1325         libcryptsetup:           ${have_libcryptsetup}
1326         PAM:                     ${have_pam}
1327         AUDIT:                   ${have_audit}
1328         IMA:                     ${have_ima}
1329         AppArmor:                ${have_apparmor}
1330         SELinux:                 ${have_selinux}
1331         SECCOMP:                 ${have_seccomp}
1332         SMACK:                   ${have_smack}
1333         XZ:                      ${have_xz}
1334         LZ4:                     ${have_lz4}
1335         ACL:                     ${have_acl}
1336         GCRYPT:                  ${have_gcrypt}
1337         QRENCODE:                ${have_qrencode}
1338         MICROHTTPD:              ${have_microhttpd}
1339         CHKCONFIG:               ${have_chkconfig}
1340         GNUTLS:                  ${have_gnutls}
1341         libcurl:                 ${have_libcurl}
1342         libidn:                  ${have_libidn}
1343         ELFUTILS:                ${have_elfutils}
1344         binfmt:                  ${have_binfmt}
1345         vconsole:                ${have_vconsole}
1346         bootchart:               ${have_bootchart}
1347         quotacheck:              ${have_quotacheck}
1348         tmpfiles:                ${have_tmpfiles}
1349         sysusers:                ${have_sysusers}
1350         firstboot:               ${have_firstboot}
1351         randomseed:              ${have_randomseed}
1352         backlight:               ${have_backlight}
1353         rfkill:                  ${have_rfkill}
1354         logind:                  ${have_logind}
1355         machined:                ${have_machined}
1356         hostnamed:               ${have_hostnamed}
1357         timedated:               ${have_timedated}
1358         timesyncd:               ${have_timesyncd}
1359         default NTP servers:     ${NTP_SERVERS}
1360         time epoch:              ${TIME_EPOCH}
1361         localed:                 ${have_localed}
1362         networkd:                ${have_networkd}
1363         resolved:                ${have_resolved}
1364         default DNS servers:     ${DNS_SERVERS}
1365         coredump:                ${have_coredump}
1366         polkit:                  ${have_polkit}
1367         efi:                     ${have_efi}
1368         kmod:                    ${have_kmod}
1369         blkid:                   ${have_blkid}
1370         dbus:                    ${have_dbus}
1371         nss-myhostname:          ${have_myhostname}
1372         gudev:                   ${enable_gudev}
1373         gintrospection:          ${enable_introspection}
1374         multi-seat-x:            ${have_multi_seat_x}
1375         terminal:                ${have_terminal}
1376         kdbus:                   ${have_kdbus}
1377         Python:                  ${have_python}
1378         Python Headers:          ${have_python_devel}
1379         man pages:               ${have_manpages}
1380         gtk-doc:                 ${enable_gtk_doc}
1381         test coverage:           ${have_coverage}
1382         Split /usr:              ${enable_split_usr}
1383         SysV compatibility:      ${SYSTEM_SYSV_COMPAT}
1384         compatibility libraries: ${have_compat_libs}
1385         utmp/wtmp support:       ${have_utmp}
1386
1387         prefix:                  ${prefix}
1388         rootprefix:              ${with_rootprefix}
1389         sysconf dir:             ${sysconfdir}
1390         datarootdir:             ${datarootdir}
1391         includedir:              ${includedir}
1392         include_prefix:          ${INCLUDE_PREFIX}
1393         lib dir:                 ${libdir}
1394         rootlib dir:             ${with_rootlibdir}
1395         SysV init scripts:       ${SYSTEM_SYSVINIT_PATH}
1396         SysV rc?.d directories:  ${SYSTEM_SYSVRCND_PATH}
1397         Build Python:            ${PYTHON}
1398         Installation Python:     ${PYTHON_BINARY}
1399         sphinx binary:           ${SPHINX_BUILD}
1400         PAM modules dir:         ${with_pamlibdir}
1401         PAM configuration dir:   ${with_pamconfdir}
1402         D-Bus policy dir:        ${with_dbuspolicydir}
1403         D-Bus session dir:       ${with_dbussessionservicedir}
1404         D-Bus system dir:        ${with_dbussystemservicedir}
1405         D-Bus interfaces dir:    ${with_dbusinterfacedir}
1406         Bash completions dir:    ${with_bashcompletiondir}
1407         Zsh completions dir:     ${with_zshcompletiondir}
1408         Extra start script:      ${RC_LOCAL_SCRIPT_PATH_START}
1409         Extra stop script:       ${RC_LOCAL_SCRIPT_PATH_STOP}
1410         Debug shell:             ${SUSHELL} @ ${DEBUGTTY}
1411         TTY GID:                 ${TTY_GID}
1412         Maximum System UID:      ${SYSTEM_UID_MAX}
1413         Maximum System GID:      ${SYSTEM_GID_MAX}
1414         Certificate root:        ${CERTIFICATEROOT}
1415
1416         CFLAGS:                  ${OUR_CFLAGS} ${CFLAGS}
1417         CPPFLAGS:                ${OUR_CPPFLAGS} ${CPPFLAGS}
1418         LDFLAGS:                 ${OUR_LDFLAGS} ${LDFLAGS}
1419         PYTHON_CFLAGS:           ${PYTHON_DEVEL_CFLAGS}
1420         PYTHON_LIBS:             ${PYTHON_DEVEL_LIBS}
1421 ])