configure.ac revision f49d83e90fb1f09b7ac223ad03506fe8c14367d1
1516N/A# -*- Autoconf -*-
838N/A# Process this file with autoconf to produce a configure script.
838N/A
838N/AAC_INIT([lxc], [0.6.3])
838N/A
838N/AAC_CONFIG_SRCDIR([configure.ac])
838N/AAC_CONFIG_AUX_DIR([config])
838N/AAM_CONFIG_HEADER([src/config.h])
838N/AAM_INIT_AUTOMAKE([-Wno-portability])
838N/AAC_CANONICAL_HOST
838N/AAM_PROG_CC_C_O
838N/AAC_GNU_SOURCE
838N/AAC_PROG_LIBTOOL
838N/AAC_CHECK_PROG(SETCAP, setcap, yes, no, $PATH$PATH_SEPARATOR/sbin)
838N/AAC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
838N/AAM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
838N/AAS_AC_EXPAND(PREFIX, $prefix)
838N/AAS_AC_EXPAND(LIBDIR, $libdir)
838N/AAS_AC_EXPAND(BINDIR, $bindir)
838N/AAS_AC_EXPAND(INCLUDEDIR, $includedir)
838N/AAS_AC_EXPAND(LIBEXECDIR, $libexecdir)
838N/AAS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
2091N/AAS_AC_EXPAND(DATADIR, $datadir)
3339N/AAS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
2091N/AAS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
838N/AAS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
1934N/A
838N/AAC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
2091N/A[#include <linux/types.h>
2091N/A#include <bits/sockaddr.h>
3339N/A#include <linux/socket.h>])
2639N/A
2639N/AAC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
2091N/A[#include <sys/types.h>
2639N/A#include <sys/capability.h>])
838N/A
838N/A# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
3070N/AAC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
1934N/A
838N/AAC_CHECK_HEADERS([sys/signalfd.h])
838N/A
838N/AAC_PROG_GCC_TRADITIONAL
838N/A
838N/Aif test "x$GCC" = "xyes"; then
838N/A CFLAGS="$CFLAGS -Wall"
838N/Afi
838N/A
838N/ALXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
838N/ALXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
3418N/ALXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
3418N/A
3339N/AAC_ARG_WITH([kernel-release],
3339N/A [AC_HELP_STRING([--with-kernel-release=RELEASE],
3339N/A [specify the "uname -r"-value to build for])],
3339N/A [KERNEL_RELEASE="${withval}"],
3339N/A [KERNEL_RELEASE=`uname -r`])
3070N/A
3070N/AAC_ARG_ENABLE(test, [ --enable-test compile test program [default=no]],, enable_test=no)
3070N/AAM_CONDITIONAL(ENABLE_TEST, test x$enable_test = xyes)
3070N/A
3070N/AAC_SUBST(LXC_MAJOR_VERSION)
3070N/AAC_SUBST(LXC_MINOR_VERSION)
3070N/AAC_SUBST(LXC_MICRO_VERSION)
3070N/A
3070N/AAC_CONFIG_FILES([
3070N/A Makefile
3070N/A lxc.pc
3070N/A lxc.spec
3070N/A config/Makefile
3070N/A
3070N/A doc/Makefile
3070N/A doc/lxc-create.sgml
3070N/A doc/lxc-destroy.sgml
3070N/A doc/lxc-execute.sgml
3070N/A doc/lxc-start.sgml
3194N/A doc/lxc-stop.sgml
3070N/A doc/lxc-console.sgml
3070N/A doc/lxc-freeze.sgml
3070N/A doc/lxc-unfreeze.sgml
3070N/A doc/lxc-monitor.sgml
3363N/A doc/lxc-wait.sgml
3363N/A doc/lxc-ls.sgml
3070N/A doc/lxc-ps.sgml
3070N/A doc/lxc-cgroup.sgml
3070N/A doc/lxc.conf.sgml
1505N/A doc/lxc.sgml
1231N/A doc/common_options.sgml
2091N/A doc/see_also.sgml
2091N/A
2091N/A scripts/Makefile
2091N/A scripts/lxc-debian
2091N/A scripts/lxc-fedora
2091N/A scripts/lxc-sshd
2091N/A
2091N/A src/Makefile
2091N/A src/lxc/Makefile
2091N/A src/lxc/lxc-ps
2091N/A src/lxc/lxc-ls
2091N/A src/lxc/lxc-netstat
2091N/A src/lxc/lxc-checkconfig
2091N/A src/lxc/lxc-setcap
2091N/A src/lxc/lxc-version
2091N/A
2091N/A etc/Makefile
2091N/A etc/lxc-macvlan.conf
2091N/A etc/lxc-no-netns.conf
1337N/A etc/lxc-empty-netns.conf
3070N/A etc/lxc-phys.conf
2091N/A etc/lxc-veth.conf
2091N/A etc/lxc-complex-config
1337N/A
2091N/A test/Makefile
2091N/A])
1934N/AAC_CONFIG_COMMANDS([default],[[]],[[]])
1337N/AAC_OUTPUT
3070N/A
2091N/Aif test "x$DOCBOOK" = "xno"; then
2091N/A AC_MSG_NOTICE([
1337N/A
1337N/AWarning:
1337N/A--------
1337N/AThe docbook tool is not installed, the man pages won't be generated.
3070N/AIf you want the man pages, install docbook and rerun 'configure'.
1934N/A
1231N/A])
1231N/A
2091N/Afi
2091N/A
2091N/Aif test "x$SETCAP" = "xno"; then
2091N/A AC_MSG_NOTICE([
2091N/A
1231N/AWarning:
1231N/A--------
2091N/A
2091N/AThe setcap binary was not found. This means the tools to set the
2091N/Aprivilege for the lxc commands are not available, that's ok, but you
2091N/Awill need to run these commands as root or install libcap-2.
1231N/A
1337N/A])
1337N/A
1337N/Aelse
1337N/A
1337N/A AC_MSG_NOTICE([
1337N/A
1337N/AAdvice:
2275N/A-------
2275N/A
2275N/AIf you wish to have a non root user to use the lxc tools,
2275N/Ayou can add the needed capabilities to the tools by invoking
2275N/Athe 'lxc-setcap' script. To remove the capabilities, use
2091N/A'lxc-setcap -d'.
3158N/A])
2091N/A
2091N/Afi
2091N/A