configure.ac revision 75db9a77605b33a1b9355eae957f26380441fce6
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 2010 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# systemd is free software; you can redistribute it and/or modify it
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# under the terms of the GNU General Public License as published by
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# the Free Software Foundation; either version 2 of the License, or
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# (at your option) any later version.
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
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# General Public License for more details.
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PREREQ(2.63)
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],[41],[systemd-devel@lists.freedesktop.org])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_CONFIG_SRCDIR([src/main.c])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_CONFIG_MACRO_DIR([m4])
3b5b000fbc2ed6d953df2de528a50a8348afc618Lennart PoetteringAC_CONFIG_HEADERS([config.h])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_USE_SYSTEM_EXTENSIONS
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_SYS_LARGEFILE
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREFIX_DEFAULT([/usr])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CANONICAL_HOST
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
907dd1953b7517534d646f5b2777780020c896e2Kay Sievers test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay Sievers [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
bbd9b8c2139a70005e4e83d198575e2a10fe1db2Lennart PoetteringAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# i18n stuff for the PolicyKit policy files
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringIT_PROG_INTLTOOL([0.40.0])
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeGETTEXT_PACKAGE=systemd
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAC_SUBST(GETTEXT_PACKAGE)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_PROG_MKDIR_P
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PROG_CC_C99
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAM_PROG_CC_C_O
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PROG_GCC_TRADITIONAL
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_CHECK_TOOL(OBJCOPY, objcopy)
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_CHECK_TOOL(STRINGS, strings)
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_CHECK_TOOL(GPERF, gperf)
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poetteringif test -z "$GPERF" ; then
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering AC_MSG_ERROR([*** gperf not found])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringCC_CHECK_CFLAGS_APPEND([ \
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón -Wno-inline \
b51fc639f01ee6194af3e7e944a79accce474fe1Dave Reisner -Wformat=2 \
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen -Wlogical-op \
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering -Wsign-compare \
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen -Wformat-security \
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart Poettering -Wmissing-include-dirs \
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen -Wformat-nonliteral \
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen -Wold-style-definition \
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen -Wpointer-arith \
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek -Wdeclaration-after-statement \
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers -Wmissing-prototypes \
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek -Wstrict-prototypes \
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek -Wredundant-decls \
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek -Wmissing-declarations \
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek -Wmissing-noreturn \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek -Wendif-labels \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek -Wstrict-aliasing=2 \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek -Wwrite-strings \
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers -Wno-long-long \
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sievers -Wno-overlength-strings \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wno-unused-parameter \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wno-missing-field-initializers \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wno-unused-result \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers -Werror=overflow \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -Wp,-D_FORTIFY_SOURCE=2 \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -ffast-math \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -fno-common \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -fdiagnostics-show-option \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -fno-strict-aliasing \
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding -fvisibility=hidden \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -ffunction-sections \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -fdata-sections \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wl,--as-needed \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wl,--gc-sections])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmeksave_LIBS="$LIBS"
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekLIBS="$save_LIBS"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_SUBST(CAP_LIBS)
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek# This makes sure pkg.m4 is available.
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekPKG_CHECK_MODULES(UDEV, [ libudev >= 172 ])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekPKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekPKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekif test "x$enable_selinux" != "xno"; then
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(SELINUX, [ libselinux ],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringif test "x$enable_xz" != "xno"; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_ERROR([*** Xz support requested but libraries not found])
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_ARG_ENABLE([tcpwrap],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [case "${enableval}" in
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering yes) have_tcpwrap=yes ;;
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering no) have_tcpwrap=no ;;
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [have_tcpwrap=auto])
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poetteringif test "x${have_tcpwrap}" != xno ; then
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering if test "x${LIBWRAP_LIBS}" = x ; then
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering if test "x$have_tcpwrap" = xyes ; then
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt AC_MSG_ERROR([*** TCP wrappers support not found.])
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering have_tcpwrap=no
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering have_tcpwrap=yes
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAC_SUBST(LIBWRAP_LIBS)
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart PoetteringAC_ARG_ENABLE([pam],
aca33b078cd32c5416a7fa3d5020a5d461c130eeCristian Rodríguez AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering [case "${enableval}" in
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers yes) have_pam=yes ;;
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers no) have_pam=no ;;
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [have_pam=auto])
03a170c03cd4a09721369ece48affb70d66c6b90Kay Sieversif test "x${have_pam}" != xno ; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_CHECK_HEADERS(
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [if test "x$have_pam" = xyes ; then
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi AC_MSG_ERROR([*** PAM headers not found.])
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmek [if test "x$have_pam" = xyes ; then
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** libpam not found.])
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek if test "x$have_pam" = xyes ; then
1c231f56482546725c4dbd3303f70300bd3c63e9Lennart Poettering PAM_LIBS="-lpam -lpam_misc"
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_PAM, 1, [PAM available])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SUBST(PAM_LIBS)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([acl],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek yes) have_acl=yes ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek no) have_acl=no ;;
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [have_acl=auto])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekif test "x${have_acl}" != xno ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_CHECK_HEADERS(
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [if test "x$have_acl" = xyes ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** ACL headers not found.])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [if test "x$have_acl" = xyes ; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** libacl not found.])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek if test "x$have_acl" = xyes ; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek ACL_LIBS="-lacl"
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_ACL, 1, [ACL available])
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart PoetteringAC_SUBST(ACL_LIBS)
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_ARG_ENABLE([audit],
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers [case "${enableval}" in
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl yes) have_audit=yes ;;
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl no) have_audit=no ;;
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [have_audit=auto])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sieversif test "x${have_audit}" != xno ; then
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers AC_CHECK_HEADERS(
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden [have_audit=yes],
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden [if test "x$have_audit" = xyes ; then
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl AC_MSG_ERROR([*** AUDIT headers not found.])
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich [have_audit=yes],
3b794314149e40afaf3c456285e1e529747b6560Holger Schurig [if test "x$have_audit" = xyes ; then
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering AC_MSG_ERROR([*** libaudit not found.])
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen if test "x$have_audit" = xyes ; then
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer AUDIT_LIBS="-laudit"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-SzmekAC_SUBST(AUDIT_LIBS)
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmekhave_libcryptsetup=no
2270309471213a3c960543e523130627e9cb10e2Kay SieversAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineauif test "x$enable_libcryptsetup" != "xno"; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup ],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmekif test "x$enable_binfmt" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen have_binfmt=yes
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_vconsole=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_vconsole" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen have_vconsole=yes
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_readahead=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_readahead" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen have_readahead=yes
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_quotacheck=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_quotacheck" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen have_quotacheck=yes
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenhave_randomseed=no
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisnerif test "x$enable_randomseed" != "xno"; then
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner have_randomseed=yes
e2ca86cf78f911a8be51f0224796e24883019139Dave ReisnerAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisnerhave_logind=no
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom Gundersenif test "x$enable_logind" != "xno"; then
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen have_logind=yes
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
f553b3b1074151200187df916427a1468186435eAnders Olofssonhave_hostnamed=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x$enable_hostnamed" != "xno"; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson have_hostnamed=yes
f553b3b1074151200187df916427a1468186435eAnders OlofssonAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
f553b3b1074151200187df916427a1468186435eAnders Olofssonhave_timedated=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x$enable_timedated" != "xno"; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson have_timedated=yes
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierhave_localed=no
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierif test "x$enable_localed" != "xno"; then
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering have_localed=yes
17df7223be064b1542dbe868e3b35cca977ee639Lennart PoetteringAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierhave_coredump=no
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierif test "x$enable_coredump" != "xno"; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier have_coredump=yes
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuhave_manpages=no
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpage], [disable manpages]))
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x$enable_manpages" != "xno"; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu have_manpages=yes
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAM_CONDITIONAL(ENABLE_MANPAGES, [test "$have_manpages" = "yes"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x$enable_gtk" != "xno"; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 gee-1.0],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_MSG_ERROR([*** gtk support requested but libraries not found])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringif test "$have_gtk" = "yes"; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_PROG_VALAC([0.10])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SUBST(VAPIDIR)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_PATH_PROG([XSLTPROC], [xsltproc])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_PATH_PROG([M4], [m4])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux or other]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "z$with_distro" = "z"; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering if test "$cross_compiling" = yes; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt test -f "/etc/redhat-release" && with_distro="fedora"
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering test -f "/etc/SuSE-release" && with_distro="suse"
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering test -f "/etc/debian_version" && with_distro="debian"
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering test -f "/etc/arch-release" && with_distro="arch"
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering test -f "/etc/gentoo-release" && with_distro="gentoo"
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering test -f "/etc/slackware-version" && with_distro="slackware"
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering test -f "/etc/frugalware-release" && with_distro="frugalware"
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering test -f "/etc/altlinux-release" && with_distro="altlinux"
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh test -f "/etc/mandriva-release" && with_distro="mandriva"
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering test -f "/etc/meego-release" && with_distro="meego"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/angstrom-version" && with_distro="angstrom"
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer test -f "/etc/mageia-release" && with_distro="mageia"
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer with_distro="ubuntu"
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "z$with_distro" = "z"; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer with_distro=`uname -s`
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererwith_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer# Location of the init scripts as mandated by LSB
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererSYSTEM_SYSVINIT_PATH=/etc/init.d
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererSYSTEM_SYSVRCND_PATH=/etc/rc.d
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezhave_plymouth=no
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezcase $with_distro in
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez M4_DEFINES=-DTARGET_FEDORA=1
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez have_plymouth=yes
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez SYSTEM_SYSVRCND_PATH=/etc/init.d
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez M4_DEFINES=-DTARGET_SUSE=1
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez have_plymouth=yes
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering M4_DEFINES=-DTARGET_DEBIAN=1
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering M4_DEFINES=-DTARGET_UBUNTU=1
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers SYSTEM_SYSVINIT_PATH=/etc/rc.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=/etc
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DEFINES=-DTARGET_ARCH=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DEFINES=-DTARGET_GENTOO=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DEFINES=-DTARGET_SLACKWARE=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DEFINES=-DTARGET_FRUGALWARE=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_plymouth=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DEFINES=-DTARGET_ALTLINUX=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_plymouth=yes
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering M4_DEFINES=-DTARGET_MANDRIVA=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_plymouth=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_MEEGO, [], [Target is MeeGo])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DEFINES=-DTARGET_MEEGO=1
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering M4_DEFINES=-DTARGET_ANGSTROM=1
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering M4_DISTRO_FLAG=-DTARGET_MAGEIA=1
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_plymouth=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, SysV init scripts could not be found! (patches welcome); you can specify --with-distro=other to skip this check])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_WITH([sysvinit-path],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AS_HELP_STRING([--with-sysvinit-path=PATH],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_WITH([sysvrcd-path],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AS_HELP_STRING([--with-sysvrcd-path=PATH],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [SYSTEM_SYSVRCND_PATH="$withval"],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(M4_DEFINES)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering SYSTEM_SYSV_COMPAT="yes"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering SYSTEM_SYSV_COMPAT="no"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_WITH([tty-gid],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [AS_HELP_STRING([--with-tty-gid=GID],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [Specify the numeric GID of the 'tty' group])],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(plymouth, AS_HELP_STRING([--enable-plymouth], [enable plymouth support]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test -n "$enable_plymouth"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_plymouth="$enable_plymouth"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(HAVE_PLYMOUTH, test "$have_plymouth" = "yes")
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_WITH([dbuspolicydir],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([dbussessionservicedir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([dbussystemservicedir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([dbusinterfacedir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([udevrulesdir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke KokAC_ARG_WITH([rootprefix],
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok [], [with_rootprefix=${ac_default_prefix}])
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke KokAC_ARG_WITH([rootlibdir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_rootlibdir=${libdir}])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_WITH([pamlibdir],
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart Poettering AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [with_pamlibdir=${with_rootlibdir}/security])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_split_usr=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x${ac_default_prefix}" != "x${with_rootprefix}" ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_split_usr=yes
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([udevrulesdir], [$with_udevrulesdir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([pamlibdir], [$with_pamlibdir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([rootprefix], [$with_rootprefix])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([rootlibdir], [$with_rootlibdir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_CONFIG_FILES([Makefile po/Makefile.in])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_MSG_RESULT([
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering $PACKAGE_NAME $VERSION
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering Distribution: ${with_distro}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering SysV compatibility: ${SYSTEM_SYSV_COMPAT}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering Gtk: ${have_gtk}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering libcryptsetup: ${have_libcryptsetup}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering tcpwrap: ${have_tcpwrap}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering PAM: ${have_pam}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AUDIT: ${have_audit}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering SELinux: ${have_selinux}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering XZ: ${have_xz}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering ACL: ${have_acl}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering binfmt: ${have_binfmt}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering vconsole: ${have_vconsole}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering readahead: ${have_readahead}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering quotacheck: ${have_quotacheck}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering randomseed: ${have_randomseed}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering logind: ${have_logind}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering hostnamed: ${have_hostnamed}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering timedated: ${have_timedated}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering localed: ${have_localed}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering coredump: ${have_coredump}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering plymouth: ${have_plymouth}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering prefix: ${prefix}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering rootprefix: ${with_rootprefix}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering libexec dir: ${libexecdir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering lib dir: ${libdir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering rootlib dir: ${with_rootlibdir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering PAM modules dir: ${with_pamlibdir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering udev rules dir: ${with_udevrulesdir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering D-Bus policy dir: ${with_dbuspolicydir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering D-Bus session dir: ${with_dbussessionservicedir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering D-Bus system dir: ${with_dbussystemservicedir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering D-Bus interfaces dir: ${with_dbusinterfacedir}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering Split /usr: ${have_split_usr}
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering Build man pages: ${have_manpages}