configure.ac revision db059f1b031a92ed45b62d1036877abd9c128d1b
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 2010-2012 Kay Sievers
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart 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
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart 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
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Lesser General Public License for more details.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart 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/>.
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREREQ([2.64])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [http://www.freedesktop.org/wiki/Software/systemd])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_SRCDIR([src/core/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CONFIG_HEADERS([config.h])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CONFIG_AUX_DIR([build-aux])
907dd1953b7517534d646f5b2777780020c896e2Kay SieversAC_USE_SYSTEM_EXTENSIONS
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversAC_SYS_LARGEFILE
bbd9b8c2139a70005e4e83d198575e2a10fe1db2Lennart PoetteringAC_PREFIX_DEFAULT([/usr])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_SILENT_RULES([yes])
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_CANONICAL_HOST
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAC_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"],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversLT_PREREQ(2.2)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringLT_INIT([disable-static])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera# i18n stuff for the PolicyKit policy files
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraIT_PROG_INTLTOOL([0.40.0])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraGETTEXT_PACKAGE=systemd
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_SUBST(GETTEXT_PACKAGE)
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_MKDIR_P
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_GCC_TRADITIONAL
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier JardónAC_PATH_PROG([M4], [m4])
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay SieversAC_PATH_PROG([XSLTPROC], [xsltproc])
9e45e7d8f0d8d3f31d790f85694585d0d4b368b8Javier JardónAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay SieversAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay SieversAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
9a60da2834074d970ca063c210fe9d2f05c70532Thierry RedingAC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblm4_ifdef([GTK_DOC_CHECK], [
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblGTK_DOC_CHECK([1.18],[--flavour no-tmpl])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De MarchiAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart PoetteringGOBJECT_INTROSPECTION_CHECK([1.31.1])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering enable_introspection=no])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_TOOL(OBJCOPY, objcopy)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_TOOL(STRINGS, strings)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_TOOL(GPERF, gperf)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringif test -z "$GPERF" ; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_ERROR([*** gperf not found])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wlogical-op \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wsign-compare \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-include-dirs \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wdeclaration-after-statement \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wfloat-equal \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wmissing-prototypes \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -Wstrict-prototypes \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -Wredundant-decls \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-declarations \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wendif-labels \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wstrict-aliasing=2 \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wwrite-strings \
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi -Wno-long-long \
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi -Wno-overlength-strings \
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi -Wno-unused-parameter \
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi -Wno-missing-field-initializers \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wno-unused-result \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Werror=overflow \
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi -ffast-math \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -fdiagnostics-show-option \
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poettering -fno-strict-aliasing \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl -fvisibility=hidden \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl -ffunction-sections \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl -fdata-sections \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -fstack-protector \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering --param=ssp-buffer-size=4])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAC_SUBST([OUR_CFLAGS], $with_cflags)
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAS_CASE([$CFLAGS], [*-O[[12345\ ]]*], [
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen -Wp,-D_FORTIFY_SOURCE=2])], [
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer python_extra_cflags=-Wp,-U_FORTIFY_SOURCE
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST([OUR_CPPFLAGS], $with_cppflags)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen -Wl,--as-needed \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers -Wl,--gc-sections \
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu -Wl,-z,relro \
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_SUBST([OUR_LDFLAGS], $with_ldflags)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# ------------------------------------------------------------------------------
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# we use python to build the man page index, and for systemd-python
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuhave_python=no
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuhave_python_devel=no
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_WITH([python],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAS_IF([test "x$with_python" != "xno"], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AM_PATH_PYTHON(,, [:])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AS_IF([test "$PYTHON" != :], [have_python=yes])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAS_IF([test "x$PYTHON_BINARY" = "x"],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [AS_IF([test "x$have_python" = "xyes"],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [PYTHON_BINARY="`which "$PYTHON"`"],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [PYTHON_BINARY=/usr/bin/python])])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAS_IF([test "x$with_python" != "xno"], [
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_IF([test -n "$PYTHON_CONFIG"], [
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering have_python_devel=yes
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags` $python_extra_cflags"
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering PYTHON_LIBS="`$PYTHON_CONFIG --ldflags`"
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_SUBST(PYTHON_CFLAGS)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_SUBST(PYTHON_LIBS)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# ------------------------------------------------------------------------------
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringsave_LIBS="$LIBS"
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringCAP_LIBS="$LIBS"
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringLIBS="$save_LIBS"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(CAP_LIBS)
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_CHECK_FUNCS([fanotify_init fanotify_mark])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_CHECK_FUNCS([__secure_getenv secure_getenv])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering# This makes sure pkg.m4 is available.
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringPKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_kmod" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES(KMOD, [ libkmod >= 5 ],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available]) have_kmod=yes], have_kmod=no)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** kmod support requested but libraries not found])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_blkid" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** blkid support requested but libraries not found])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_ima=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_ima=no ;;
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_ima=yes])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_ima}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_chkconfig=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_chkconfig=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_chkconfig=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_PATH_PROG(CHKCONFIG, chkconfig)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test -z "$CHKCONFIG"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_chkconfig=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_chkconfig=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_chkconfig}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_selinux=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_selinux" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_selinux}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(sushell)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_xz" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** Xz support requested but libraries not found])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE([tcpwrap],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [case "${enableval}" in
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering yes) have_tcpwrap=yes ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering no) have_tcpwrap=no ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_tcpwrap=auto])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x${have_tcpwrap}" != xno ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x${LIBWRAP_LIBS}" = x ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x$have_tcpwrap" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** TCP wrappers support not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_tcpwrap=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_tcpwrap=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST(LIBWRAP_LIBS)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE([pam],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [case "${enableval}" in
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering yes) have_pam=yes ;;
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering no) have_pam=no ;;
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [have_pam=auto])
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x${have_pam}" != xno ; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_CHECK_HEADERS(
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [have_pam=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [if test "x$have_pam" = xyes ; then
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna AC_MSG_ERROR([*** PAM headers not found.])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AC_CHECK_LIB(
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna [pam_syslog],
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna [have_pam=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [if test "x$have_pam" = xyes ; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_MSG_ERROR([*** libpam not found.])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers if test "x$have_pam" = xyes ; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering PAM_LIBS="-lpam -lpam_misc"
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_SUBST(PAM_LIBS)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE([acl],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [case "${enableval}" in
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers yes) have_acl=yes ;;
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering no) have_acl=no ;;
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_acl=auto])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x${have_acl}" != xno ; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AC_CHECK_HEADERS(
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [have_acl=yes],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [if test "x$have_acl" = xyes ; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers AC_CHECK_LIB(
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [acl_get_file],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers [have_acl=yes],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers [if test "x$have_acl" = xyes ; then
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay Sievers AC_MSG_ERROR([*** libacl not found.])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna if test "x$have_acl" = xyes ; then
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna ACL_LIBS="-lacl"
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna AC_DEFINE(HAVE_ACL, 1, [ACL available])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_SUBST(ACL_LIBS)
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna# ------------------------------------------------------------------------------
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_ARG_ENABLE([xattr],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [case "${enableval}" in
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna yes) have_xattr=yes ;;
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna no) have_xattr=no ;;
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna [have_xattr=auto])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnaif test "x${have_xattr}" != xno ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_CHECK_HEADERS(
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering [have_xattr=yes],
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering [if test "x$have_xattr" = xyes ; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AC_MSG_ERROR([*** XATTR headers not found.])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [fsetxattr],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_xattr=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [if test "x$have_xattr" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** libattr not found.])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x$have_xattr" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers XATTR_LIBS="-lattr"
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_xattr=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(XATTR_LIBS)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([gcrypt],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [case "${enableval}" in
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers yes) have_gcrypt=yes ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers no) have_gcrypt=no ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_gcrypt=auto])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x${have_gcrypt}" != xno ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AM_PATH_LIBGCRYPT(
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_gcrypt=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [if test "x$have_gcrypt" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** GCRYPT headers not found.])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x$have_gcrypt" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers GCRYPT_LIBS="$LIBGCRYPT_LIBS"
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_gcrypt=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers GCRYPT_LIBS=
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers GCRYPT_CFLAGS=
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(GCRYPT_LIBS)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(GCRYPT_CFLAGS)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([audit],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [case "${enableval}" in
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers yes) have_audit=yes ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers no) have_audit=no ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_audit=auto])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x${have_audit}" != xno ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_CHECK_HEADERS(
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_audit=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [if test "x$have_audit" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** AUDIT headers not found.])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_CHECK_LIB(
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart Poettering [have_audit=yes],
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering [if test "x$have_audit" = xyes ; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AC_MSG_ERROR([*** libaudit not found.])
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering if test "x$have_audit" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AUDIT_LIBS="-laudit"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_SUBST(AUDIT_LIBS)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringhave_libcryptsetup=no
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay SieversAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringif test "x$enable_libcryptsetup" != "xno"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7d568925bda9797f611e36d1d00cd941701cb3c8Lennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering# ------------------------------------------------------------------------------
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardthave_qrencode=no
12e84679cc81cdf5f042540e54131a0ce37147adLennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringif test "x$enable_qrencode" != "xno"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay SieversAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
634826b51b074b2e6d9314031bdd9abdcf862b54Pavol Rusnak# ------------------------------------------------------------------------------
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringhave_microhttpd=no
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry GebhardtAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringif test "x$enable_microhttpd" != "xno"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew EdmundsAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering# ------------------------------------------------------------------------------
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmundshave_binfmt=no
d7c114c00030309435fc56c77c8578a25d228ebeDave ReisnerAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisnerif test "x$enable_binfmt" != "xno"; then
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner have_binfmt=yes
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze# ------------------------------------------------------------------------------
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciohave_vconsole=no
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henzeif test "x$enable_vconsole" != "xno"; then
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering have_vconsole=yes
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd# ------------------------------------------------------------------------------
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringhave_readahead=no
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajnaif test "x$enable_readahead" != "xno"; then
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna have_readahead=yes
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna# ------------------------------------------------------------------------------
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalinhave_bootchart=no
a338bab5d0603a179befce062bc6fc8a6521a232Alexey ShabalinAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalinif test "x$enable_bootchart" != "xno"; then
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering have_bootchart=yes
a338bab5d0603a179befce062bc6fc8a6521a232Alexey ShabalinAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov# ------------------------------------------------------------------------------
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkovhave_quotacheck=no
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardtif test "x$enable_quotacheck" != "xno"; then
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov have_quotacheck=yes
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E FerronAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron# ------------------------------------------------------------------------------
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringhave_randomseed=no
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooiif test "x$enable_randomseed" != "xno"; then
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi have_randomseed=yes
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan# ------------------------------------------------------------------------------
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morganhave_logind=no
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter MorganAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morganif test "x$enable_logind" != "xno"; then
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan have_logind=yes
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog HeenAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog Heen# ------------------------------------------------------------------------------
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringhave_hostnamed=no
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringif test "x$enable_hostnamed" != "xno"; then
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen have_hostnamed=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers# ------------------------------------------------------------------------------
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenhave_timedated=no
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenif test "x$enable_timedated" != "xno"; then
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen have_timedated=yes
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
d64b723a9e275ee4c6ccb947e3fd6ed6b3e4c359Lennart Poetteringhave_localed=no
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringif test "x$enable_localed" != "xno"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio have_localed=yes
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio# ------------------------------------------------------------------------------
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciohave_coredump=no
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioif test "x$enable_coredump" != "xno"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio have_coredump=yes
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering# ------------------------------------------------------------------------------
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poetteringif test "x$enable_polkit" != "xno"; then
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt have_polkit=yes
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry GebhardtAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmundsif test "x$enable_efi" != "xno"; then
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner have_efi=yes
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin# ------------------------------------------------------------------------------
1de4d79bf554946f486adf56ed765c5335816f15Andrey BorzenkovAC_ARG_WITH(rc-local-script-path-start,
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan [RC_LOCAL_SCRIPT_PATH_START="$withval"],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart PoetteringAC_ARG_WITH(rc-local-script-path-stop,
cd3f8b7ddb052ab5e4eab420968bae689db3899aJeff Mahoney AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# ------------------------------------------------------------------------------
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH(kbd-loadkeys,
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-kbd-loadkeys=PATH],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [Path to loadkeys]),
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering [KBD_LOADKEYS="$withval"],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [KBD_LOADKEYS="/usr/bin/loadkeys"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH(kbd-setfont,
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-kbd-setfont=PATH],
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering [Path to setfont]),
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers [KBD_SETFONT="$withval"],
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers [KBD_SETFONT="/usr/bin/setfont"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_SUBST(KBD_LOADKEYS)
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_SUBST(KBD_SETFONT)
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers# ------------------------------------------------------------------------------
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Bieblhave_myhostname=no
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sieversif test "x$enable_myhostname" != "xno"; then
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers AC_HEADER_STDC
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny 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])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AC_TYPE_SIZE_T
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AC_HEADER_TIME
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AC_FUNC_MALLOC
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AC_FUNC_SELECT_ARGTYPES
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering have_myhostname=yes
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart PoetteringAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# ------------------------------------------------------------------------------
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH(firmware-path,
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering [Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers [], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfor i in $with_firmware_path; do
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x${FIRMWARE_PATH}" = "x"; then
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers FIRMWARE_PATH="\\\"${i}/\\\""
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
a45a909fbbe11ad8c75cda5639d875476ac65453Christian RuppertAC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_ARG_ENABLE([gudev],
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [], [enable_gudev=yes])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([keymap],
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [], [enable_keymap=yes])
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart PoetteringAS_IF([test "x$enable_keymap" = "xyes"], [
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_PATH_PROG([GPERF], [gperf])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test -z "$GPERF"; then
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna AC_MSG_ERROR([gperf is needed])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart 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}')])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna# ------------------------------------------------------------------------------
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringhave_manpages=no
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry GebhardtAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "x$enable_manpages" != xno], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Location of the init scripts as mandated by LSB
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversSYSTEM_SYSVINIT_PATH=/etc/init.d
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversSYSTEM_SYSVRCND_PATH=/etc/rc.d
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_ARG_WITH([sysvinit-path],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [AS_HELP_STRING([--with-sysvinit-path=PATH],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [Specify the path to where the SysV init scripts are located])],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH([sysvrcnd-path],
5ee9f21e86bb6a06d3eb956546f85338e81395e6Lennart Poettering [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
66be6554807773028a0111addb8e75c3cab11117Kay Sievers [Specify the path to the base directory for the SysV rcN.d directories])],
66be6554807773028a0111addb8e75c3cab11117Kay Sievers [SYSTEM_SYSVRCND_PATH="$withval"],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sieversif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
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.])
[with_dbuspolicydir=`$PKG_CONFIG --variable=sysconfdir dbus-1`/dbus-1/system.d])
[with_dbussystemservicedir=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`/../system-services])
with_bashcompletiondir=${datadir}/bash-completion/completions
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
AS_IF([test "x$0" != "x./configure"], [
AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
Makefile po/Makefile.in