configure.ac revision 7cb2086695fdeed33b2fb148492a224dd951fa7e
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],
251cc8194228ac86c9a7a4c75a54a94cea2095c7Lennart Poettering [198],
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])
bbd9b8c2139a70005e4e83d198575e2a10fe1db2Lennart PoetteringAM_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íguez# i18n stuff for the PolicyKit policy files
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart PoetteringIT_PROG_INTLTOOL([0.40.0])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraGETTEXT_PACKAGE=systemd
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_SUBST(GETTEXT_PACKAGE)
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PROG_MKDIR_P
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PROG_LN_S
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PROG_SED
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_GREP
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_AWK
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay SieversAC_PROG_CC
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_PROG_CC_C99
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAM_PROG_CC_C_O
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_GCC_TRADITIONAL
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PATH_PROG([M4], [m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PATH_PROG([XSLTPROC], [xsltproc])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart PoetteringAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerAC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
c1c02e07ed87e027a6364c4f4aa2468796ca1c56Dave Reisnerm4_ifdef([GTK_DOC_CHECK], [
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart PoetteringGTK_DOC_CHECK([1.18],[--flavour no-tmpl])
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers])
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmekm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-SzmekGOBJECT_INTROSPECTION_CHECK([1.31.1])
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek], [
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek enable_introspection=no])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_TOOL(OBJCOPY, objcopy)
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_TOOL(STRINGS, strings)
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay SieversAC_PATH_TOOL(GPERF, gperf)
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sieversif test -z "$GPERF" ; then
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** gperf not found])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmekfi
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -pipe \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -Wall \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -Wextra \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wno-inline \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wundef \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding -Wlogical-op \
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi -Wsign-compare \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wmissing-include-dirs \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering -Winit-self \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wdeclaration-after-statement \
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers -Wfloat-equal \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wredundant-decls \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-declarations \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wshadow \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wendif-labels \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wcast-align \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-aliasing=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wwrite-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-long-long \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-overlength-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-parameter \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-missing-field-initializers \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-result \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Werror=overflow \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -ffast-math \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fno-common \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -fdiagnostics-show-option \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -fno-strict-aliasing \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fvisibility=hidden \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -ffunction-sections \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -fdata-sections \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -fstack-protector \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering --param=ssp-buffer-size=4])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST([OUR_CFLAGS], $with_cflags)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
9f64229f9ca69f5652b238a67531432e56108bd6Zbigniew Jędrzejewski-SzmekAS_CASE([$CFLAGS], [*-O[[12345g\ ]]*], [
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wp,-D_FORTIFY_SOURCE=2])], [
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri python_extra_cflags=-Wp,-U_FORTIFY_SOURCE
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart PoetteringAC_SUBST([OUR_CPPFLAGS], $with_cppflags)
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wl,--as-needed \
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek -Wl,--gc-sections \
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek -Wl,-z,relro \
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek -Wl,-z,now])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_SUBST([OUR_LDFLAGS], $with_ldflags)
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi# ------------------------------------------------------------------------------
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi# we use python to build the man page index, and for systemd-python
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbierihave_python=no
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos Foutrashave_python_devel=no
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_ARG_WITH([python],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAS_IF([test "x$with_python" != "xno"], [
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AM_PATH_PYTHON(,, [:])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test "$PYTHON" != :], [have_python=yes])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_IF([test "x$PYTHON_BINARY" = "x"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AS_IF([test "x$have_python" = "xyes"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [PYTHON_BINARY="$(which "$PYTHON")"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [PYTHON_BINARY=/usr/bin/python])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_IF([test "x$with_python" != "xno"], [
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test -n "$PYTHON_CONFIG"], [
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl have_python_devel=yes
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek PYTHON_CFLAGS="$($PYTHON_CONFIG --cflags) $python_extra_cflags"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek PYTHON_LIBS="$($PYTHON_CONFIG --ldflags)"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_SUBST(PYTHON_CFLAGS)
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_SUBST(PYTHON_LIBS)
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek ])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmeksave_LIBS="$LIBS"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekLIBS=
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart PoetteringCAP_LIBS="$LIBS"
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversLIBS="$save_LIBS"
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_SUBST(CAP_LIBS)
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_CHECK_FUNCS([fanotify_init fanotify_mark])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAC_CHECK_FUNCS([__secure_getenv secure_getenv])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl#include <unistd.h>
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#include <sys/mount.h>
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl#include <fcntl.h>]])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# This makes sure pkg.m4 is available.
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sieversm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenPKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl# ------------------------------------------------------------------------------
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poetteringhave_kmod=no
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael OlbrichAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-Szmekif test "x$enable_kmod" != "xno"; then
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ],
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available]) have_kmod=yes], have_kmod=no)
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich AC_MSG_ERROR([*** kmod support requested but libraries not found])
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering fi
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heenfi
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenhave_blkid=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_blkid" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** blkid support requested but libraries not found])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen fi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenfi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_ima=yes
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [case "${enableval}" in
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen yes) have_ima=yes ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen no) have_ima=no ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen esac],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [have_ima=yes])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x${have_ima}" != xno ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenfi
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenhave_chkconfig=yes
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner [case "${enableval}" in
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner yes) have_chkconfig=yes ;;
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner no) have_chkconfig=no ;;
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner esac],
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner [AC_PATH_PROG(CHKCONFIG, chkconfig)
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen if test -z "$CHKCONFIG"; then
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom Gundersen have_chkconfig=no
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen else
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen have_chkconfig=yes
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen fi])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x${have_chkconfig}" != xno ; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
f553b3b1074151200187df916427a1468186435eAnders Olofssonfi
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofsson# ------------------------------------------------------------------------------
f553b3b1074151200187df916427a1468186435eAnders Olofssonhave_selinux=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x$enable_selinux" != "xno"; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
f553b3b1074151200187df916427a1468186435eAnders Olofsson if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen AC_MSG_ERROR([*** SELinux support requested but libraries not found])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers fi
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassufi
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x${have_selinux}" != xno ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu sushell=/sbin/sushell
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuelse
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu sushell=/bin/sh
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassufi
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_SUBST(sushell)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# ------------------------------------------------------------------------------
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuhave_xz=no
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x$enable_xz" != "xno"; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_MSG_ERROR([*** Xz support requested but libraries not found])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering fi
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringfi
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_ENABLE([tcpwrap],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [case "${enableval}" in
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering yes) have_tcpwrap=yes ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering no) have_tcpwrap=no ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering esac],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [have_tcpwrap=auto])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringif test "x${have_tcpwrap}" != xno ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers ACX_LIBWRAP
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering if test "x${LIBWRAP_LIBS}" = x ; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering if test "x$have_tcpwrap" = xyes ; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_ERROR([*** TCP wrappers support not found.])
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt fi
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering have_tcpwrap=no
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering else
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering have_tcpwrap=yes
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering fi
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshelse
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering LIBWRAP_LIBS=
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezfi
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_SUBST(LIBWRAP_LIBS)
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez# ------------------------------------------------------------------------------
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_ARG_ENABLE([pam],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [case "${enableval}" in
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers yes) have_pam=yes ;;
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh no) have_pam=no ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez esac],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [have_pam=auto])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezif test "x${have_pam}" != xno ; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_CHECK_HEADERS(
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [have_pam=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [if test "x$have_pam" = xyes ; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** PAM headers not found.])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering fi])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_CHECK_LIB(
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [pam],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [pam_syslog],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [have_pam=yes],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [if test "x$have_pam" = xyes ; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** libpam not found.])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering fi])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x$have_pam" = xyes ; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering PAM_LIBS="-lpam -lpam_misc"
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_pam=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringelse
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering PAM_LIBS=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_SUBST(PAM_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([acl],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [case "${enableval}" in
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering yes) have_acl=yes ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering no) have_acl=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering esac],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [have_acl=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringif test "x${have_acl}" != xno ; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_CHECK_HEADERS(
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [sys/acl.h acl/libacl.h],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_acl=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_acl" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_LIB(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [acl],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [acl_get_file],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_acl=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_acl" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** libacl not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_acl" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering ACL_LIBS="-lacl"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_ACL, 1, [ACL available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_acl=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringelse
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering ACL_LIBS=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(ACL_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([xattr],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering yes) have_xattr=yes ;;
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering no) have_xattr=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering esac],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_xattr=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_xattr}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [attr/xattr.h],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_xattr=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_xattr" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** XATTR headers not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_CHECK_LIB(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [attr],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [fsetxattr],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_xattr=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_xattr" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** libattr not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_xattr" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering XATTR_LIBS="-lattr"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering else
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_xattr=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringelse
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering XATTR_LIBS=
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(XATTR_LIBS)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([gcrypt],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_gcrypt=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_gcrypt=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering esac],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_gcrypt=auto])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_gcrypt}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AM_PATH_LIBGCRYPT(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [1.4.5],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [have_gcrypt=yes],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [if test "x$have_gcrypt" = xyes ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_MSG_ERROR([*** GCRYPT headers not found.])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering if test "x$have_gcrypt" = xyes ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering GCRYPT_LIBS="$LIBGCRYPT_LIBS"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering else
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_gcrypt=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringelse
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering GCRYPT_LIBS=
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering GCRYPT_CFLAGS=
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringfi
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_SUBST(GCRYPT_LIBS)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_SUBST(GCRYPT_CFLAGS)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE([audit],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [case "${enableval}" in
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering yes) have_audit=yes ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering no) have_audit=no ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering esac],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [have_audit=auto])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x${have_audit}" != xno ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_CHECK_HEADERS(
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [libaudit.h],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [have_audit=yes],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [if test "x$have_audit" = xyes ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_MSG_ERROR([*** AUDIT headers not found.])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_CHECK_LIB(
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [audit],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [audit_open],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [have_audit=yes],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [if test "x$have_audit" = xyes ; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_MSG_ERROR([*** libaudit not found.])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski fi])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski if test "x$have_audit" = xyes ; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AUDIT_LIBS="-laudit"
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski else
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski have_audit=no
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski fi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskielse
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AUDIT_LIBS=
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST(AUDIT_LIBS)
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskihave_libcryptsetup=no
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskiif test "x$enable_libcryptsetup" != "xno"; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_qrencode=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_qrencode" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_microhttpd=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_microhttpd" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_binfmt=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_binfmt" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_binfmt=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_vconsole=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_vconsole" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_vconsole=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_readahead=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_readahead" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_readahead=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_bootchart=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_bootchart" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_bootchart=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_quotacheck=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_quotacheck" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_quotacheck=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringhave_randomseed=no
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x$enable_randomseed" != "xno"; then
8cf3ca80680b43015971cbbf4625517ae859d50cJan Janssen have_randomseed=yes
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringfi
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringhave_logind=no
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x$enable_logind" != "xno"; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering have_logind=yes
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringfi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringhave_hostnamed=no
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringif test "x$enable_hostnamed" != "xno"; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering have_hostnamed=yes
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringfi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering# ------------------------------------------------------------------------------
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringhave_timedated=no
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
59bb9d9a14889bee001706a32a518fe0a5009048Zbigniew Jędrzejewski-Szmekif test "x$enable_timedated" != "xno"; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering have_timedated=yes
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringfi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering# ------------------------------------------------------------------------------
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringhave_localed=no
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_localed" != "xno"; then
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna have_localed=yes
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnafi
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna# ------------------------------------------------------------------------------
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnahave_coredump=no
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_coredump" != "xno"; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering have_coredump=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering# ------------------------------------------------------------------------------
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringhave_polkit=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_polkit" != "xno"; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering have_polkit=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering# ------------------------------------------------------------------------------
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringhave_efi=no
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokif test "x$enable_efi" != "xno"; then
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok have_efi=yes
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokfi
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(rc-local-script-path-start,
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [Path to /etc/rc.local]),
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [RC_LOCAL_SCRIPT_PATH_START="$withval"],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_WITH(rc-local-script-path-stop,
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar [Path to /usr/sbin/halt.local]),
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering# ------------------------------------------------------------------------------
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_WITH(kbd-loadkeys,
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AS_HELP_STRING([--with-kbd-loadkeys=PATH],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [Path to loadkeys]),
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [KBD_LOADKEYS="$withval"],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [KBD_LOADKEYS="/usr/bin/loadkeys"])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_ARG_WITH(kbd-setfont,
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering AS_HELP_STRING([--with-kbd-setfont=PATH],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [Path to setfont]),
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [KBD_SETFONT="$withval"],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [KBD_SETFONT="/usr/bin/setfont"])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_SUBST(KBD_LOADKEYS)
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_SUBST(KBD_SETFONT)
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers# ------------------------------------------------------------------------------
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievershave_myhostname=no
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay SieversAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversif test "x$enable_myhostname" != "xno"; then
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AC_HEADER_STDC
1ee306e1248866617c96ed9f4263f375588ad838Lennart 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])
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AC_C_CONST
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AC_TYPE_SIZE_T
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AC_HEADER_TIME
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AC_FUNC_MALLOC
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AC_FUNC_SELECT_ARGTYPES
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna have_myhostname=yes
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnafi
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna# ------------------------------------------------------------------------------
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAC_ARG_WITH(firmware-path,
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [Firmware search path (default="")]),
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [], [with_firmware_path=""])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaOLD_IFS=$IFS
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversIFS=:
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnafor i in $with_firmware_path; do
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna if test "x${FIRMWARE_PATH}" = "x"; then
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna FIRMWARE_PATH="\\\"${i}/\\\""
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers else
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna fi
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnadone
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversIFS=$OLD_IFS
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_SUBST(FIRMWARE_PATH)
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_ENABLE([gudev],
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering [], [enable_gudev=yes])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAS_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]) ])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering# ------------------------------------------------------------------------------
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_ARG_ENABLE([keymap],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [], [enable_keymap=yes])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAS_IF([test "x$enable_keymap" = "xyes"], [
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AC_PATH_PROG([GPERF], [gperf])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering if test -z "$GPERF"; then
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AC_MSG_ERROR([gperf is needed])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering fi
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering# ------------------------------------------------------------------------------
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poetteringhave_manpages=no
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAS_IF([test "x$enable_manpages" != xno], [
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering ])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering# ------------------------------------------------------------------------------
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering# Location of the init scripts as mandated by LSB
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringSYSTEM_SYSVRCND_PATH=/etc/rc.d
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringM4_DEFINES=
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_WITH([sysvinit-path],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [AS_HELP_STRING([--with-sysvinit-path=PATH],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [Specify the path to where the SysV init scripts are located])],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_WITH([sysvrcnd-path],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [Specify the path to the base directory for the SysV rcN.d directories])],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [SYSTEM_SYSVRCND_PATH="$withval"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering SYSTEM_SYSV_COMPAT="yes"
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart 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.])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringelse
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering SYSTEM_SYSV_COMPAT="no"
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringfi
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_SUBST(SYSTEM_SYSVINIT_PATH)
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_SUBST(SYSTEM_SYSVRCND_PATH)
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_SUBST(M4_DEFINES)
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_ARG_WITH([tty-gid],
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [AS_HELP_STRING([--with-tty-gid=GID],
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [Specify the numeric GID of the 'tty' group])],
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering [])
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_WITH([dbuspolicydir],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
f8c5a5815ff7c137d9a1e5d7b48a6532b9f31407Lennart Poettering [],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_WITH([dbussessionservicedir],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_WITH([dbussystemservicedir],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_WITH([dbusinterfacedir],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH([bashcompletiondir],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen [],
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers ] , [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers with_bashcompletiondir=${datadir}/bash-completion/completions
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers ])])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH([rootprefix],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [], [with_rootprefix=${ac_default_prefix}])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH([rootlibdir],
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
d8d4bee76cf3b40ea923bc57d44aa0815ca9b5ffKay Sievers [],
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen [with_rootlibdir=${libdir}])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH([pamlibdir],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [with_pamlibdir=${with_rootlibdir}/security])
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([split-usr],
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering [],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering enable_split_usr=yes
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart Poettering ], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek enable_split_usr=no
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek ])])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAS_IF([test "x${enable_split_usr}" = "xyes"], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering# Work around intltoolize and gtk-doc problems in VPATH builds
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [Define to do gtk-doc tests])
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringAS_IF([test "x$0" != "x./configure"], [
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart Poettering])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering
12e84679cc81cdf5f042540e54131a0ce37147adLennart PoetteringAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST([pamlibdir], [$with_pamlibdir])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_SUBST([rootprefix], [$with_rootprefix])
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart PoetteringAC_SUBST([rootlibdir], [$with_rootlibdir])
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_CONFIG_FILES([
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen Makefile po/Makefile.in
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen docs/libudev/Makefile
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen docs/libudev/version.xml
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio docs/gudev/Makefile
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio docs/gudev/version.xml
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAC_OUTPUT
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart PoetteringAC_MSG_RESULT([
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio $PACKAGE_NAME $VERSION
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio libcryptsetup: ${have_libcryptsetup}
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio tcpwrap: ${have_tcpwrap}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering PAM: ${have_pam}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering AUDIT: ${have_audit}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering IMA: ${have_ima}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering SELinux: ${have_selinux}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering XZ: ${have_xz}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering ACL: ${have_acl}
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering XATTR: ${have_xattr}
a05ea46dc788929bc8b13afb4208ca29cad68572Michael Biebl GCRYPT: ${have_gcrypt}
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering QRENCODE: ${have_qrencode}
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering MICROHTTPD: ${have_microhttpd}
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering CHKCONFIG: ${have_chkconfig}
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering binfmt: ${have_binfmt}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering vconsole: ${have_vconsole}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering readahead: ${have_readahead}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering bootchart: ${have_bootchart}
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl quotacheck: ${have_quotacheck}
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering randomseed: ${have_randomseed}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering logind: ${have_logind}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering hostnamed: ${have_hostnamed}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering timedated: ${have_timedated}
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl localed: ${have_localed}
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering coredump: ${have_coredump}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering polkit: ${have_polkit}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering efi: ${have_efi}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering kmod: ${have_kmod}
03c149144d374cffd40a17ffb067837e3e220933Michael Biebl blkid: ${have_blkid}
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering nss-myhostname: ${have_myhostname}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering gudev: ${enable_gudev}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering gintrospection: ${enable_introspection}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering keymap: ${enable_keymap}
03c149144d374cffd40a17ffb067837e3e220933Michael Biebl Python: ${have_python}
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering Python Headers: ${have_python_devel}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl man pages: ${have_manpages}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl gtk-doc: ${enable_gtk_doc}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl Split /usr: ${enable_split_usr}
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl SysV compatibility: ${SYSTEM_SYSV_COMPAT}
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl prefix: ${prefix}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl rootprefix: ${with_rootprefix}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl sysconf dir: ${sysconfdir}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl datarootdir: ${datarootdir}
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas includedir: ${includedir}
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas include_prefix: ${INCLUDE_PREFIX}
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas lib dir: ${libdir}
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas rootlib dir: ${with_rootlibdir}
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
39ad55a9aa99451f982628af6e14581092b2d2f6Kay Sievers Build Python: ${PYTHON}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering Installation Python: ${PYTHON_BINARY}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers firmware path: ${FIRMWARE_PATH}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers PAM modules dir: ${with_pamlibdir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers D-Bus policy dir: ${with_dbuspolicydir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers D-Bus session dir: ${with_dbussessionservicedir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers D-Bus system dir: ${with_dbussystemservicedir}
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers D-Bus interfaces dir: ${with_dbusinterfacedir}
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl Bash completions dir: ${with_bashcompletiondir}
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny PYTHON_CFLAGS: ${PYTHON_CFLAGS}
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny PYTHON_LIBS: ${PYTHON_LIBS}
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny