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