configure.ac revision 32dcef3ab1eb91ee469c3246ef859578dccd8a45
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Kay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# under the terms of the GNU Lesser General Public License as published by
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# (at your option) any later version.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is distributed in the hope that it will be useful, but
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# Lesser General Public License for more details.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU Lesser General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREREQ([2.64])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],
98077125580d5600842a6d13d0597e50dfb9572aLennart Poettering [208],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://www.freedesktop.org/wiki/Software/systemd])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
78a825f216d39ee0295b00647b059d45467e1d02Kay SieversAC_CONFIG_SRCDIR([src/core/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CONFIG_AUX_DIR([build-aux])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier Jardón
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAC_USE_SYSTEM_EXTENSIONS
907dd1953b7517534d646f5b2777780020c896e2Kay SieversAC_SYS_LARGEFILE
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversAC_PREFIX_DEFAULT([/usr])
6aad7f2cd75c88f990c7857bb173b3e8d0faee0fUmut Tezduyar LindskogAM_MAINTAINER_MODE([enable])
91ca5bf0b6f3b487a16cc262527c9de6744db624Martin PittAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CANONICAL_HOST
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversLT_PREREQ(2.2)
8666abb452db73d9a11ead61251eec42bc531cceKay SieversLT_INIT([disable-static])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian RodríguezAS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart PoetteringAS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera# i18n stuff for the PolicyKit policy files
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerIT_PROG_INTLTOOL([0.40.0])
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerGETTEXT_PACKAGE=systemd
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_SUBST(GETTEXT_PACKAGE)
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_PROG_MKDIR_P
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_PROG_LN_S
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_PROG_SED
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_PROG_GREP
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_PROG_AWK
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_PROG_CC_C99
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger
a59f16ce4a11c440cb2136ad3d5e3184714c545eRobert SchieleAC_PATH_PROG([M4], [m4])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([XSLTPROC], [xsltproc])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringM4_DEFINES=
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sieversm4_ifdef([GTK_DOC_CHECK], [
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringGTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering enable_gtk_doc=no])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominenm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerGOBJECT_INTROSPECTION_CHECK([1.31.1])
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierski], [
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierski AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen enable_introspection=no])
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart Poettering
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_CHECK_TOOL(STRINGS, strings)
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom GundersenAC_CHECK_TOOL(GPERF, gperf)
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominenif test -z "$GPERF" ; then
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** gperf not found])
66b0e0e0e3652227fe107ab9d09fa14fd4bc4dfaCristian Rodríguezfi
66b0e0e0e3652227fe107ab9d09fa14fd4bc4dfaCristian Rodríguez
446883528524429283626208928b51f49f28f810Lennart Poettering# ------------------------------------------------------------------------------
446883528524429283626208928b51f49f28f810Lennart Poetteringaddress_sanitizer_cflags=
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmekaddress_sanitizer_cppflags=
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmekaddress_sanitizer_ldflags=
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay SieversAC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_address_sanitizer" = "xyes"], [
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek AS_IF([test -z "$with_as_cflags"],
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** -fsanitize=address is not supported])])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1"
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek address_sanitizer_cppflags="-DVALGRIND=1"
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek address_sanitizer_ldflags="-Wc,-fsanitize=address"
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek ])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay SieversCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sievers -pipe \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wall \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wextra \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wno-inline \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers -Wundef \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -Wlogical-op \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wsign-compare \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wmissing-include-dirs \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wold-style-definition \
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding -Wpointer-arith \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Winit-self \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wdeclaration-after-statement \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wfloat-equal \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wsuggest-attribute=noreturn \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wmissing-prototypes \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wstrict-prototypes \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wredundant-decls \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wmissing-declarations \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wmissing-noreturn \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wshadow \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wendif-labels \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wcast-align \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wstrict-aliasing=2 \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wwrite-strings \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-long-long \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-overlength-strings \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-unused-parameter \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-missing-field-initializers \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-unused-result \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Werror=overflow \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wdate-time \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wnested-externs \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -ffast-math \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fno-common \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fdiagnostics-show-option \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fdiagnostics-color \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fno-strict-aliasing \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fvisibility=hidden \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -ffunction-sections \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fdata-sections \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fstack-protector \
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi --param=ssp-buffer-size=4])
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -flto])],
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST([OUR_CFLAGS], "$with_cflags $address_sanitizer_cflags")
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wp,-D_FORTIFY_SOURCE=2])],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $address_sanitizer_cppflags")
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
03930e48636e86ad84946253ca2bf4f91deeb645Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,--as-needed \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering -Wl,--no-undefined \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,--gc-sections \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,-z,relro \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,-z,now \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,-fuse-ld=gold])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST([OUR_LDFLAGS], "$with_ldflags $address_sanitizer_ldflags")
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_SIZEOF(pid_t)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_SIZEOF(uid_t)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering# ------------------------------------------------------------------------------
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering# we use python to build the man page index, and for systemd-python
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringhave_python=no
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringAC_ARG_WITH([python],
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt
213298fb822258bb69c6b85b7c8d7f019fd2306aLennart Poetteringhave_lxml=no
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart PoetteringAS_IF([test "x$with_python" != "xno"], [
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering AM_PATH_PYTHON(,, [:])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes], [have_lxml=no])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_IF([test "$PYTHON" != : -a $have_lxml = yes], [have_python=yes])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAS_IF([test "x$PYTHON_BINARY" = "x"],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [AS_IF([test "x$have_python" = "xyes"],
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering [PYTHON_BINARY="$(which "$PYTHON")"],
aca33b078cd32c5416a7fa3d5020a5d461c130eeCristian Rodríguez [PYTHON_BINARY=/usr/bin/python])])
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian RodríguezAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-SzmekAS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** python-devel support requires --with-python])])
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmekhave_python_devel=no
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-SzmekAS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers [have_python_devel=yes],
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
235c6e628199221b7885f159367614b7105547cfJohn [have_python_devel=yes],
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers [have_python_devel=no])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
03a170c03cd4a09721369ece48affb70d66c6b90Kay Sievers AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi
9e7adc3ae1133fa08a468768a490812299fad030Lucas De MarchiAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos FoutrasAC_CHECK_HEADERS([linux/btrfs.h], [], [])
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering# unconditionally pull-in librt with old glibc versions
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmeksave_LIBS="$LIBS"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekLIBS=
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekCAP_LIBS="$LIBS"
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_SUBST(CAP_LIBS)
1c231f56482546725c4dbd3303f70300bd3c63e9Lennart Poettering
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekLIBS=
de99c9dcbaf6e474551266d8f0b519bf2d8d0522Lennart PoetteringAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekRT_LIBS="$LIBS"
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_SUBST(RT_LIBS)
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekLIBS="$save_LIBS"
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([fanotify_init fanotify_mark])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([__secure_getenv secure_getenv])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek#include <unistd.h>
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek#include <sys/mount.h>
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek#include <fcntl.h>]])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek# This makes sure pkg.m4 is available.
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger# ------------------------------------------------------------------------------
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburgerhave_dbus=no
be8737ae386166d2f279767ac87b226204c0de7eFilipe BrandenburgerAC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
be8737ae386166d2f279767ac87b226204c0de7eFilipe BrandenburgerAS_IF([test "x$enable_dbus" != "xno"], [
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger [have_dbus=no])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmekhave_compat_libs=no
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek yes) have_compat_libs=yes ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek no) have_compat_libs=no ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl esac],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [have_compat_libs=no])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmekhave_coverage=no
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekif test "x$enable_coverage" = "xyes" ; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek if test "x$lcov_found" = xno ; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** lcov support requested but the program was not found])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek else
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek else
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-Szmek have_coverage=yes
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fprofile-arcs \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -ftest-coverage])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek fi
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poettering fi
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sieversfi
4b357e15876b730343db08719c877fdb45b6ad42Michael MarineauAM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmek
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievershave_kmod=no
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Bieblif test "x$enable_kmod" != "xno"; then
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl if test "x$have_kmod" = "xyes"; then
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers AC_MSG_ERROR([*** kmod version >= 15 not found]))
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers fi
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden AC_MSG_ERROR([*** kmod support requested, but libraries not found])
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden fi
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landdenfi
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-Szmekhave_blkid=no
f7ad54a301e4ae8dceab54d3ab3934e56c1134eaLennart PoetteringAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekif test "x$enable_blkid" != "xno"; then
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
3b794314149e40afaf3c456285e1e529747b6560Holger Schurig AC_MSG_ERROR([*** blkid support requested but libraries not found])
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering fi
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekfi
539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60Lennart PoetteringAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmekhave_ima=yes
c4a5ddc9f29cf910fac9d814cd898b4cc2bd79b1Tom GundersenAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
6589d0dba2b1ccf2406db527c2c1b51c7143e117Jean-André Santoni [case "${enableval}" in
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmek yes) have_ima=yes ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek no) have_ima=no ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek esac],
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek [have_ima=yes])
8ecec322fe6b34b64868d8cc3808b5613f09e8d3Zbigniew Jędrzejewski-Szmek
8ecec322fe6b34b64868d8cc3808b5613f09e8d3Zbigniew Jędrzejewski-Szmekif test "x${have_ima}" != xno ; then
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekfi
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekhave_chkconfig=yes
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek yes) have_chkconfig=yes ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek no) have_chkconfig=no ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek esac],
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering [AC_PATH_PROG(CHKCONFIG, chkconfig)
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen if test -z "$CHKCONFIG"; then
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer have_chkconfig=no
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering else
2270309471213a3c960543e523130627e9cb10e2Kay Sievers have_chkconfig=yes
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek fi])
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek
8114dedc5910d9a9cec702f6b6658551a0cd9edeChengwei Yangif test "x${have_chkconfig}" != xno ; then
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmekfi
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmekhave_selinux=no
2270309471213a3c960543e523130627e9cb10e2Kay SieversAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineauif test "x$enable_selinux" != "xno"; then
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing AC_MSG_ERROR([*** SELinux support requested but libraries not found])
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing fi
37161c5148396448921841ae1026b281c7949652Emil Renner Berthingfi
37161c5148396448921841ae1026b281c7949652Emil Renner BerthingAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing
37161c5148396448921841ae1026b281c7949652Emil Renner BerthingAC_ARG_WITH(debug-shell,
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing AS_HELP_STRING([--with-debug-shell=PATH],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [Path to debug shell binary]),
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [SUSHELL="$withval"],[
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAC_SUBST(SUSHELL)
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAC_ARG_WITH([debug-tty],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-debug-tty=PATH],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [Specify the tty device for debug shell]),
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [DEBUGTTY="$withval"],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [DEBUGTTY=/dev/tty9])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_SUBST(DEBUGTTY)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_xz=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_xz" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen PKG_CHECK_MODULES(XZ, [ liblzma ],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** Xz support requested but libraries not found])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen fi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenfi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE([tcpwrap],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [case "${enableval}" in
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen yes) have_tcpwrap=yes ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen no) have_tcpwrap=no ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen esac],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [have_tcpwrap=auto])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenif test "x${have_tcpwrap}" != xno ; then
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen ACX_LIBWRAP
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner if test "x${LIBWRAP_LIBS}" = x ; then
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner if test "x$have_tcpwrap" = xyes ; then
a18535d9e138c525d0443ec9f30a90b3e2184686Tom Gundersen AC_MSG_ERROR([*** TCP wrappers support not found.])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner fi
70d8320978dcbce022d9acbb953a10a7aca049abDavid Strauss have_tcpwrap=no
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner else
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen have_tcpwrap=yes
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom Gundersen fi
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenelse
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen LIBWRAP_LIBS=
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenfi
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_SUBST(LIBWRAP_LIBS)
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann# ------------------------------------------------------------------------------
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David HerrmannAC_ARG_ENABLE([pam],
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann [case "${enableval}" in
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann yes) have_pam=yes ;;
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann no) have_pam=no ;;
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann esac],
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann [have_pam=auto])
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannif test "x${have_pam}" != xno ; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_CHECK_HEADERS(
f553b3b1074151200187df916427a1468186435eAnders Olofsson [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [have_pam=yes],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [if test "x$have_pam" = xyes ; then
d47f6ca5f9b7a0b400d8bdb050151a0284fb4bdbGabriel de Perthuis AC_MSG_ERROR([*** PAM headers not found.])
f553b3b1074151200187df916427a1468186435eAnders Olofsson fi])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_CHECK_LIB(
f553b3b1074151200187df916427a1468186435eAnders Olofsson [pam],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [pam_syslog],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [have_pam=yes],
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen [if test "x$have_pam" = xyes ; then
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech AC_MSG_ERROR([*** libpam not found.])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech fi])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech if test "x$have_pam" = xyes ; then
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech PAM_LIBS="-lpam -lpam_misc"
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech AC_DEFINE(HAVE_PAM, 1, [PAM available])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech else
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech have_pam=no
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech fi
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierelse
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier PAM_LIBS=
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierfi
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAC_SUBST(PAM_LIBS)
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering# ------------------------------------------------------------------------------
17df7223be064b1542dbe868e3b35cca977ee639Lennart PoetteringAC_ARG_ENABLE([acl],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [case "${enableval}" in
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier yes) have_acl=yes ;;
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier no) have_acl=no ;;
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier esac],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [have_acl=auto])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x${have_acl}" != xno ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_CHECK_HEADERS(
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [sys/acl.h acl/libacl.h],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_acl=yes],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [if test "x$have_acl" = xyes ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_MSG_ERROR([*** ACL headers not found.])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu fi])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_CHECK_LIB(
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [acl],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [acl_get_file],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_acl=yes],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [if test "x$have_acl" = xyes ; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_MSG_ERROR([*** libacl not found.])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering fi])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering if test "x$have_acl" = xyes ; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering ACL_LIBS="-lacl"
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_DEFINE(HAVE_ACL, 1, [ACL available])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering else
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering have_acl=no
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering fi
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringelse
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering ACL_LIBS=
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringfi
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SUBST(ACL_LIBS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_ENABLE([xattr],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [case "${enableval}" in
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers yes) have_xattr=yes ;;
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering no) have_xattr=no ;;
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering esac],
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt [have_xattr=auto])
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poetteringif test "x${have_xattr}" != xno ; then
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering AC_CHECK_HEADERS(
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [attr/xattr.h],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [have_xattr=yes],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [if test "x$have_xattr" = xyes ; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_ERROR([*** XATTR headers not found.])
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh fi])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_CHECK_LIB(
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [attr],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [fsetxattr],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [have_xattr=yes],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [if test "x$have_xattr" = xyes ; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_MSG_ERROR([*** libattr not found.])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer fi])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "x$have_xattr" = xyes ; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer XATTR_LIBS="-lattr"
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer else
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer have_xattr=no
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer fi
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererelse
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer XATTR_LIBS=
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezfi
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_SUBST(XATTR_LIBS)
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez# ------------------------------------------------------------------------------
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers [case "${enableval}" in
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh yes) have_smack=yes ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez no) have_smack=no ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez esac],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [have_smack=auto])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezif test "x${have_xattr}" = xno; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez if test "x${have_smack}" = xyes; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_MSG_ERROR(SMACK requires xattr support)
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek else
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek have_smack=no
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek fi
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmekelse
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek if test "x${have_smack}" = xauto; then
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek have_smack=yes
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek fi
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmekfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_WITH(smack-run-label,
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAS_HELP_STRING([--with-smack-run-label=STRING],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [run systemd --system with a specific SMACK label]),
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])],
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek [])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmekif test "x${have_smack}" = xyes ; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringfi
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# ------------------------------------------------------------------------------
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart PoetteringAC_ARG_ENABLE([gcrypt],
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering [case "${enableval}" in
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering yes) have_gcrypt=yes ;;
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering no) have_gcrypt=no ;;
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering esac],
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering [have_gcrypt=auto])
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poetteringif test "x${have_gcrypt}" != xno ; then
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering AM_PATH_LIBGCRYPT(
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering [1.4.5],
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering [have_gcrypt=yes],
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering [if test "x$have_gcrypt" = xyes ; then
831f18cbf3f250207fcde15ea736639898317d77Lennart Poettering AC_MSG_ERROR([*** GCRYPT headers not found.])
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering fi])
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering
831f18cbf3f250207fcde15ea736639898317d77Lennart Poettering if test "x$have_gcrypt" = xyes ; then
831f18cbf3f250207fcde15ea736639898317d77Lennart Poettering GCRYPT_LIBS="$LIBGCRYPT_LIBS"
831f18cbf3f250207fcde15ea736639898317d77Lennart Poettering GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
831f18cbf3f250207fcde15ea736639898317d77Lennart Poettering AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering else
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering have_gcrypt=no
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering fi
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmekelse
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek GCRYPT_LIBS=
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek GCRYPT_CFLAGS=
0a7f0fcc79772d257e0c42358ad472a37a8ab151Dave Reisnerfi
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAC_SUBST(GCRYPT_LIBS)
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAC_SUBST(GCRYPT_CFLAGS)
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([audit],
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers yes) have_audit=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_audit=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering esac],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_audit=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_audit}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [libaudit.h],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_audit=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_audit" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** AUDIT headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_LIB(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [audit],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [audit_open],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_audit=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_audit" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** libaudit not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_audit" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AUDIT_LIBS="-laudit"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_audit=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringelse
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering AUDIT_LIBS=
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poetteringfi
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart PoetteringAC_SUBST(AUDIT_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_libcryptsetup=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_libcryptsetup" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_qrencode=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_qrencode" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_microhttpd=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_microhttpd" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
a48a62a1af02aec4473c9deed98dd5b89d210f93Zbigniew Jędrzejewski-Szmek
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_binfmt=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_binfmt" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_binfmt=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskihave_vconsole=no
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskiif test "x$enable_vconsole" != "xno"; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski have_vconsole=yes
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskihave_readahead=no
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay SieversAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sieversif test "x$enable_readahead" != "xno"; then
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sievers have_readahead=yes
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok# ------------------------------------------------------------------------------
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kokhave_bootchart=no
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke KokAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kokif test "x$enable_bootchart" != "xno"; then
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok have_bootchart=yes
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierskihave_quotacheck=no
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw KedzierskiAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_quotacheck" != "xno"; then
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart Poettering have_quotacheck=yes
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_tmpfiles=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_tmpfiles" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_tmpfiles=yes
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_randomseed=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_randomseed" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_randomseed=yes
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_backlight=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_backlight" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_backlight=yes
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_rfkill=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_rfkill" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_rfkill=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_logind=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_logind" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_logind=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_machined=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_machined" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_machined=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_hostnamed=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_hostnamed" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_hostnamed=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_timedated=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_timedated" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_timedated=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_localed=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_localed" != "xno"; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering have_localed=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringfi
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_coredump=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_coredump" != "xno"; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau have_coredump=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringfi
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_polkit=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_polkit" != "xno"; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering have_polkit=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringfi
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau# ------------------------------------------------------------------------------
972bded03215d4602fdd2ed2d680350c8eacb056Michael MarineauAC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineauif test "x$enable_networkd" != "xno"; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau have_networkd=yes
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineaufi
972bded03215d4602fdd2ed2d680350c8eacb056Michael MarineauAM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_efi=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_efi" != "xno"; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering have_efi=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringfi
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_multi_seat_x=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(multi_seat_x, AS_HELP_STRING([--disable-multi-seat-x], [do not build multi-seat-x]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_multi_seat_x" != "xno"; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering have_multi_seat_x=yes
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringfi
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"])
8cf3ca80680b43015971cbbf4625517ae859d50cJan Janssen
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringhave_kdbus=no
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x$enable_kdbus" = "xyes"; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering have_kdbus=yes
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringfi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_WITH(rc-local-script-path-start,
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [Path to /etc/rc.local]),
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [RC_LOCAL_SCRIPT_PATH_START="$withval"],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_WITH(rc-local-script-path-stop,
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering [Path to /usr/sbin/halt.local]),
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
3f573096641cf3d350c8779971c644ca74aab93aZbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering# ------------------------------------------------------------------------------
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_WITH(kbd-loadkeys,
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-kbd-loadkeys=PATH],
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [Path to loadkeys]),
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [KBD_LOADKEYS="$withval"],
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [KBD_LOADKEYS="/usr/bin/loadkeys"])
f12be7e8ca278a5a207d0fd051acec700b804a7aZbigniew Jędrzejewski-Szmek
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAC_ARG_WITH(kbd-setfont,
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-kbd-setfont=PATH],
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [Path to setfont]),
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [KBD_SETFONT="$withval"],
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [KBD_SETFONT="/usr/bin/setfont"])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_SUBST(KBD_LOADKEYS)
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_SUBST(KBD_SETFONT)
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_ARG_WITH(telinit,
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-telinit=PATH],
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek [Path to telinit]),
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek [TELINIT="$withval"],
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek [TELINIT="/lib/sysvinit/telinit"])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAC_SUBST(TELINIT)
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering# ------------------------------------------------------------------------------
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poetteringhave_myhostname=no
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poetteringif test "x$enable_myhostname" != "xno"; then
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering AC_HEADER_STDC
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering 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])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering AC_C_CONST
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering AC_TYPE_SIZE_T
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering AC_HEADER_TIME
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering AC_FUNC_MALLOC
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering AC_FUNC_SELECT_ARGTYPES
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering have_myhostname=yes
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poetteringfi
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering# ------------------------------------------------------------------------------
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringAC_ARG_WITH(firmware-path,
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering [Firmware search path (default="")]),
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering [], [with_firmware_path=""])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringOLD_IFS=$IFS
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversIFS=:
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnafor i in $with_firmware_path; do
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna if test "x${FIRMWARE_PATH}" = "x"; then
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna FIRMWARE_PATH="\\\"${i}/\\\""
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers else
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna fi
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnadone
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversIFS=$OLD_IFS
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_SUBST(FIRMWARE_PATH)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering# ------------------------------------------------------------------------------
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE([gudev],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok [], [enable_gudev=yes])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAS_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]) ])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok# ------------------------------------------------------------------------------
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokhave_manpages=no
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "x$enable_manpages" != xno], [
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering ])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering])
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar# ------------------------------------------------------------------------------
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar# Location of the init scripts as mandated by LSB
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarSYSTEM_SYSVINIT_PATH=/etc/init.d
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarSYSTEM_SYSVRCND_PATH=/etc/rc.d
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_ARG_WITH([sysvinit-path],
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar [AS_HELP_STRING([--with-sysvinit-path=PATH],
1b99214789101976d6bbf75c351279584b071998Lennart Poettering [Specify the path to where the SysV init scripts are located])],
1b99214789101976d6bbf75c351279584b071998Lennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
1b99214789101976d6bbf75c351279584b071998Lennart Poettering [])
1b99214789101976d6bbf75c351279584b071998Lennart Poettering
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAC_ARG_WITH([sysvrcnd-path],
1b99214789101976d6bbf75c351279584b071998Lennart Poettering [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
1b99214789101976d6bbf75c351279584b071998Lennart Poettering [Specify the path to the base directory for the SysV rcN.d directories])],
1b99214789101976d6bbf75c351279584b071998Lennart Poettering [SYSTEM_SYSVRCND_PATH="$withval"],
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering [])
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering SYSTEM_SYSV_COMPAT="yes"
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering 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.])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieverselse
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering SYSTEM_SYSV_COMPAT="no"
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST(SYSTEM_SYSVINIT_PATH)
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_SUBST(M4_DEFINES)
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_ARG_WITH([tty-gid],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [AS_HELP_STRING([--with-tty-gid=GID],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [Specify the numeric GID of the 'tty' group])],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAC_ARG_WITH([dbuspolicydir],
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering [],
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering [],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_WITH([dbussystemservicedir],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay SieversAC_ARG_WITH([dbusinterfacedir],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAC_ARG_WITH([bashcompletiondir],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering ] , [
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering with_bashcompletiondir=${datadir}/bash-completion/completions
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering ])])
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart PoetteringAC_ARG_WITH([zshcompletiondir],
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]),
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering [], [with_zshcompletiondir=${datadir}/zsh/site-functions])
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart PoetteringAC_ARG_WITH([rootprefix],
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [], [with_rootprefix=${ac_default_prefix}])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAC_ARG_WITH([rootlibdir],
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [],
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [with_rootlibdir=${libdir}])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAC_ARG_WITH([pamlibdir],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [with_pamlibdir=${with_rootlibdir}/security])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_ARG_WITH([pamconfdir],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [with_pamconfdir=${sysconfdir}/pam.d])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAC_ARG_ENABLE([split-usr],
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
43ba1b3e642253652cc29c92903cf53e310ce6cbLennart Poettering [],
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
5a16bc264c32237e38a844d55e7a1820a31b8440Łukasz Stelmach enable_split_usr=yes
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers ], [
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers enable_split_usr=no
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers ])])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAS_IF([test "x${enable_split_usr}" = "xyes"], [
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering# Work around intltoolize and gtk-doc problems in VPATH builds
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering [Define to do gtk-doc tests])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAS_IF([test "x$0" != "x./configure"], [
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering])
5ea846cc5197682d07ee46398996a8c3ccfbcc38Zbigniew Jędrzejewski-Szmek
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_ARG_ENABLE(tests,
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering [AC_HELP_STRING([--disable-tests], [disable tests])],
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering enable_tests=$enableval, enable_tests=yes)
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([pamlibdir], [$with_pamlibdir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([pamconfdir], [$with_pamconfdir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([rootprefix], [$with_rootprefix])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST([rootlibdir], [$with_rootlibdir])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_CONFIG_FILES([
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering Makefile po/Makefile.in
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering docs/libudev/Makefile
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering docs/libudev/version.xml
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering docs/gudev/Makefile
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering docs/gudev/version.xml
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_OUTPUT
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAC_MSG_RESULT([
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna $PACKAGE_NAME $VERSION
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna libcryptsetup: ${have_libcryptsetup}
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers tcpwrap: ${have_tcpwrap}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna PAM: ${have_pam}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna AUDIT: ${have_audit}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna IMA: ${have_ima}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers SELinux: ${have_selinux}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering SMACK: ${have_smack}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering XZ: ${have_xz}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering ACL: ${have_acl}
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers XATTR: ${have_xattr}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering GCRYPT: ${have_gcrypt}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering QRENCODE: ${have_qrencode}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering MICROHTTPD: ${have_microhttpd}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering CHKCONFIG: ${have_chkconfig}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering binfmt: ${have_binfmt}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering vconsole: ${have_vconsole}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering readahead: ${have_readahead}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering bootchart: ${have_bootchart}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering quotacheck: ${have_quotacheck}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering tmpfiles: ${have_tmpfiles}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering randomseed: ${have_randomseed}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering backlight: ${have_backlight}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters rfkill: ${have_rfkill}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen logind: ${have_logind}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen machined: ${have_machined}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen hostnamed: ${have_hostnamed}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen timedated: ${have_timedated}
aeb50ff0bd4bbbca74c4695072232348351d512dTom Gundersen localed: ${have_localed}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters coredump: ${have_coredump}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen polkit: ${have_polkit}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters efi: ${have_efi}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen kmod: ${have_kmod}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen blkid: ${have_blkid}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen dbus: ${have_dbus}
49e5c2b26aa72a7aa117c1e04763852a4b69136bZbigniew Jędrzejewski-Szmek nss-myhostname: ${have_myhostname}
7b4d79683998a78d6e123dd034b1e06b74d8030bTom Gundersen gudev: ${enable_gudev}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen gintrospection: ${enable_introspection}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen multi-seat-x: ${have_multi_seat_x}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen kdbus: ${have_kdbus}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen Python: ${have_python}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen Python Headers: ${have_python_devel}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen man pages: ${have_manpages}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen gtk-doc: ${enable_gtk_doc}
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek test coverage: ${have_coverage}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen Split /usr: ${enable_split_usr}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen SysV compatibility: ${SYSTEM_SYSV_COMPAT}
5a16bc264c32237e38a844d55e7a1820a31b8440Łukasz Stelmach compatibility libraries: ${have_compat_libs}
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen prefix: ${prefix}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen rootprefix: ${with_rootprefix}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering sysconf dir: ${sysconfdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering datarootdir: ${datarootdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering includedir: ${includedir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering include_prefix: ${INCLUDE_PREFIX}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering lib dir: ${libdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering rootlib dir: ${with_rootlibdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering Build Python: ${PYTHON}
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann Installation Python: ${PYTHON_BINARY}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek sphinx binary: ${SPHINX_BUILD}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek firmware path: ${FIRMWARE_PATH}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek PAM modules dir: ${with_pamlibdir}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek PAM configuration dir: ${with_pamconfdir}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek D-Bus policy dir: ${with_dbuspolicydir}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek D-Bus session dir: ${with_dbussessionservicedir}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek D-Bus system dir: ${with_dbussystemservicedir}
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann D-Bus interfaces dir: ${with_dbusinterfacedir}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek Bash completions dir: ${with_bashcompletiondir}
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann Zsh completions dir: ${with_zshcompletiondir}
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
cdcd0ccdbe427de53d8e5ff8f2f1b06b3f477bdeDavid Herrmann Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek Debug shell: ${SUSHELL} @ ${DEBUGTTY}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek
c93e5a62ff599528c3bf2a8656825403aaebe093David Herrmann CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
c93e5a62ff599528c3bf2a8656825403aaebe093David Herrmann LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann PYTHON_CFLAGS: ${PYTHON_DEVEL_CFLAGS}
10bc4cd469fc677892b07748ec85804ca120825fZbigniew Jędrzejewski-Szmek PYTHON_LIBS: ${PYTHON_DEVEL_LIBS}
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann])
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering