configure.ac revision add060fea4071db5b3e7b18234d51fd65d4aefac
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 2010 Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# 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
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
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# General Public License for more details.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart 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)
add060fea4071db5b3e7b18234d51fd65d4aefacLennart PoetteringAC_INIT([systemd],[7],[systemd-devel@lists.freedesktop.org])
e99e38bbdcca3fe5956823bdb3d38544ccf93221Lennart PoetteringAC_CONFIG_SRCDIR([src/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
b60e6bbf67063c6b81b5025d572ebe71aa7ab799Lennart PoetteringAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects dist-bzip2])
1b322bdb2a147e999c3861cba8a6b3ac0f3b712aTollef Fog HeenAC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CANONICAL_HOST
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_PROG([STOW], [stow], [yes], [no])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_MKDIR_P
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_GCC_TRADITIONAL
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_USE_SYSTEM_EXTENSIONS
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringCC_CHECK_CFLAGS_APPEND([ \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wlogical-op \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wsign-compare \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wformat-security \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-include-dirs \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wformat-nonliteral \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wdeclaration-after-statement \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wfloat-equal \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wredundant-decls \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-declarations \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wendif-labels \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wcast-align \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-aliasing=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wwrite-strings \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-long-long \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-overlength-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-parameter \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-missing-field-initializers \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -Wno-unused-result \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wp,-D_FORTIFY_SOURCE=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fdiagnostics-show-option \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -fno-strict-aliasing])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen# This makes sure pkg.m4 is available.
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
f1dfb62962fd25c1fba9d9479cb5df2d23e6712dLennart PoetteringPKG_CHECK_MODULES(UDEV, [ libudev >= 160 ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(UDEV_CFLAGS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(UDEV_LIBS)
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringPKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(DBUS_CFLAGS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(DBUS_LIBS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringPKG_CHECK_MODULES(DBUSGLIB, [ dbus-glib-1 ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(DBUSGLIB_CFLAGS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(DBUSGLIB_LIBS)
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshhave_selinux=no
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshif test "x$enable_selinux" != "xno"; then
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh # not using PKG_CHECK_MODULES as for some reason libselinux didn't
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh # install any pkg-config modules here
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AC_SEARCH_LIBS([getcon], [selinux],
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELINUX is available]) have_selinux=yes],
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh have_selinux=no)
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AC_SUBST(SELINUX_CFLAGS)
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AC_SUBST(SELINUX_LIBS)
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AC_MSG_ERROR([*** selinux support requested but libraries not found])
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_ARG_ENABLE([tcpwrap],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_tcpwrap=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_tcpwrap=no ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_tcpwrap=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_tcpwrap}" != xno ; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_tcpwrap" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** TCP wrappers support not found.])
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering have_tcpwrap=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_tcpwrap=yes
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_SUBST(LIBWRAP_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([pam],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_pam=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_pam=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_pam}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** PAM headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** libpam not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM_LIBS="-lpam -lpam_misc"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(PAM_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerif test "x$enable_gtk" != "xno"; then
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer PKG_CHECK_MODULES(GTK, [ gtk+-2.0 ],
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer AC_SUBST(GTK_CFLAGS)
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer AC_SUBST(GTK_LIBS)
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer AC_MSG_ERROR([*** gtk support requested but libraries not found])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
d3d91d10c9ca3782c5936c630e87730e3bf9c32dLennart PoetteringAM_PROG_VALAC([0.9])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(VAPIDIR)
42e39f0b326d27f6392a81a7400f9af7cf0af3abLennart PoetteringAM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([XSLTPROC], [xsltproc])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
5e6afdd3d359fc42de7ac432243e98673577e81fLennart PoetteringAC_PATH_PROG([M4], [m4])
9f2c5942e1e10099027f0da438aafdd9f40440baLennart PoetteringAC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, arch, gentoo, slackware or other]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringif test "z$with_distro" = "z"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "$cross_compiling" = yes; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart 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)])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora")
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "z$with_distro" = "z"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering with_distro=`uname -s`
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringwith_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering# Default generic names
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringSPECIAL_SYSLOG_SERVICE=syslog.service
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering# Location of the init scripts as mandated by LSB
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
12e84679cc81cdf5f042540e54131a0ce37147adLennart PoetteringM4_DISTRO_FLAG=
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringcase $with_distro in
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc/rc.d
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering # A little background why we define this special unit
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering # names here in configure.ac: SysV services currently
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering # cannot have aliases. As long as syslog is started
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering # via a SysV init script we hence define this name to
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering # the actual SysV name here. Later on when SysV init
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering # scripts are not used anymore it is advisable to use
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering # the generic name instead and use symlinks in the
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering # unit directories to point to the right native unit
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering SPECIAL_SYSLOG_SERVICE=rsyslog.service
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering M4_DISTRO_FLAG=-DTARGET_FEDORA=1
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc/init.d
634826b51b074b2e6d9314031bdd9abdcf862b54Pavol Rusnak AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering M4_DISTRO_FLAG=-DTARGET_SUSE=1
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering SPECIAL_SYSLOG_SERVICE=rsyslog.service
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian/Ubuntu])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering M4_DISTRO_FLAG=-DTARGET_DEBIAN=1
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner SYSTEM_SYSVINIT_PATH=/etc/rc.d
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner SYSTEM_SYSVRCND_PATH=/etc
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering SPECIAL_SYSLOG_SERVICE=syslog-ng.service
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering M4_DISTRO_FLAG=-DTARGET_ARCH=1
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze SYSTEM_SYSVRCND_PATH=/etc
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering SPECIAL_SYSLOG_SERVICE=syslog-ng.service
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering M4_DISTRO_FLAG=-DTARGET_GENTOO=1
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd SYSTEM_SYSVRCND_PATH=/etc/rc.d
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering M4_DISTRO_FLAG=-DTARGET_SLACKWARE=1
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen AS_IF([test "x$with_sysvinit_path" = "x"],
b6c2bf61c5de1bb0c4996b0be016d55877d9688cLennart Poettering [AC_MSG_ERROR([With --distro=other, you must pass --with-sysvinit-path= to configure])])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen AS_IF([test "x$with_sysvrcd_path" = "x"],
b6c2bf61c5de1bb0c4996b0be016d55877d9688cLennart Poettering [AC_MSG_ERROR([With --distro=other, you must pass --with-sysvrcd-path= to configure])])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen AS_IF([test "x$with_syslog_service" = "x"],
b6c2bf61c5de1bb0c4996b0be016d55877d9688cLennart Poettering [AC_MSG_ERROR([With --distro=other, you must pass --with-syslog-service= to configure])])
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog Heen 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])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_WITH([sysvinit-path],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [AS_HELP_STRING([--with-sysvinit-path=PATH],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [SYSTEM_SYSVINIT_PATH="$withval"],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_WITH([sysvrcd-path],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [AS_HELP_STRING([--with-sysvrcd-path=PATH],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [SYSTEM_SYSVRCND_PATH="$withval"],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_WITH([syslog-service],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [AS_HELP_STRING([--with-syslog-service=UNIT],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [Specify the name of the special syslog service @<:@default=based on distro@:>@])],
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering [SPECIAL_SYSLOG_SERVICE="$withval"],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
d64b723a9e275ee4c6ccb947e3fd6ed6b3e4c359Lennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart PoetteringAC_SUBST(SPECIAL_SYSLOG_SERVICE)
12e84679cc81cdf5f042540e54131a0ce37147adLennart PoetteringAC_SUBST(M4_DISTRO_FLAG)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
d7c114c00030309435fc56c77c8578a25d228ebeDave ReisnerAM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian HenzeAM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddAM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart PoetteringAC_DEFINE_UNQUOTED(SPECIAL_SYSLOG_SERVICE, ["$SPECIAL_SYSLOG_SERVICE"], [Syslog service name])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbuspolicydir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussystemservicedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbusinterfacedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_ARG_WITH([udevrulesdir],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering [with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_ARG_WITH([pamlibdir],
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering AS_HELP_STRING([--with-pamlibdir=DIR], [Diectory for PAM modules]),
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering [with_pamlibdir=/lib/`$CC -print-multi-os-directory`/security])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart PoetteringAC_ARG_WITH([rootdir],
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering AS_HELP_STRING([--with-rootdir=DIR], [Root directory for files necessary for boot]),
a6baa3f681fad58555e28c50589595d98ec81a23Lennart Poettering [with_rootdir=${ac_default_prefix}])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([udevrulesdir], [$with_udevrulesdir])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_SUBST([pamlibdir], [$with_pamlibdir])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart PoetteringAC_SUBST([rootdir], [$with_rootdir])
a45a909fbbe11ad8c75cda5639d875476ac65453Christian RuppertAC_CONFIG_FILES([Makefile])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $PACKAGE_NAME $VERSION
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering Distribution: ${with_distro}
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering Syslog service: ${SPECIAL_SYSLOG_SERVICE}
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer Gtk: ${have_gtk}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering tcpwrap: ${have_tcpwrap}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM: ${have_pam}
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering prefix: ${prefix}
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering root dir: ${with_rootdir}
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering udev rules dir: ${with_udevrulesdir}
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering pam modules dir: ${with_pamlibdir}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering dbus policy dir: ${with_dbuspolicydir}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering dbus session dir: ${with_dbussessionservicedir}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering dbus system dir: ${with_dbussystemservicedir}
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering dbus interfaces dir: ${with_dbusinterfacedir}