configure.ac revision 8e27452380193a5f81bfd08a59aab8b07008ba0b
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)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_INIT([systemd],[0],[mzflfgrzq (at) 0pointer (dot) net])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_SRCDIR([main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(PACKAGE_URL, [http://git.0pointer.de/?p=systemd.git])
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}"
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_GCC_TRADITIONAL
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_USE_SYSTEM_EXTENSIONS
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringCC_CHECK_CFLAGS_APPEND([-Wall -W -Wextra -pipe -Wno-long-long -Winline -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2 -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option -Wno-missing-field-initializers])
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])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringPKG_CHECK_MODULES(UDEV, [ libudev ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(UDEV_CFLAGS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(UDEV_LIBS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringPKG_CHECK_MODULES(DBUS, [ dbus-1 ])
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)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringPKG_CHECK_MODULES(GEE, [ gee-1.0 ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(GEE_CFLAGS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(GEE_LIBS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringPKG_CHECK_MODULES(GTK, [ gtk+-2.0 ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(GTK_CFLAGS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(GTK_LIBS)
8e27452380193a5f81bfd08a59aab8b07008ba0bLennart PoetteringPKG_CHECK_MODULES(CGROUP, [ libcgroup ])
8e27452380193a5f81bfd08a59aab8b07008ba0bLennart PoetteringAC_SUBST(CGROUP_CFLAGS)
8e27452380193a5f81bfd08a59aab8b07008ba0bLennart PoetteringAC_SUBST(CGROUP_LIBS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_PROG_VALAC()
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(VAPIDIR)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_OUTPUT([Makefile])