]> git.proxmox.com Git - mirror_lxc.git/blame_incremental - configure.in
List the available containers and the processes belonging to such container.
[mirror_lxc.git] / configure.in
... / ...
CommitLineData
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_INIT([lxc], [0.4.1])
5
6AC_CONFIG_SRCDIR([configure.in])
7AC_CONFIG_AUX_DIR([config])
8AM_CONFIG_HEADER([src/config.h])
9AM_INIT_AUTOMAKE([-Wno-portability])
10AC_CANONICAL_HOST
11AC_PROG_RANLIB
12AM_PROG_CC_C_O
13AC_GNU_SOURCE
14AC_PROG_LIBTOOL
15AC_CHECK_PROG(SETCAP, setcap, yes, no)
16
17AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
18[#include <linux/types.h>
19#include <bits/sockaddr.h>
20#include <linux/socket.h>])
21AC_PROG_GCC_TRADITIONAL
22
23if test "x$GCC" = "xyes"; then
24 CFLAGS="$CFLAGS -Wall"
25fi
26
27LXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
28LXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
29LXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
30
31AC_ARG_ENABLE(network_destroy, [ --disable-network-destroy disable network destruction at exit [default=no]],, enable_network_destroy=yes)
32if test "x$enable_network_destroy" = "xyes"; then
33 CFLAGS="$CFLAGS -DNETWORK_DESTROY"
34fi
35
36AC_SUBST(LXC_MAJOR_VERSION)
37AC_SUBST(LXC_MINOR_VERSION)
38AC_SUBST(LXC_MICRO_VERSION)
39
40AC_CONFIG_FILES([
41 Makefile
42 lxc.spec
43 config/Makefile
44 src/Makefile
45 src/lxc/Makefile
46 src/lxc/lxc-ps
47 src/lxc/lxc-checkconfig
48 etc/Makefile
49 etc/lxc-macvlan.conf
50 etc/lxc-no-netns.conf
51 etc/lxc-empty-netns.conf
52 etc/lxc-phys.conf
53 etc/lxc-veth.conf
54 etc/lxc-complex-config
55 test/Makefile
56])
57AC_CONFIG_COMMANDS([default],[[]],[[]])
58AC_OUTPUT
59
60if test "x$SETCAP" = "xno"; then
61 AC_MSG_NOTICE([
62
63Warning:
64--------
65
66The libcap-2 is not installed. That means the tools to
67set the privilege for the lxc commands are not available,
68that's ok, but you will need to run these commands as root
69
70])
71
72else
73
74 AC_MSG_NOTICE([
75
76Advice:
77-------
78
79When installing the tools, it is adviced to install as
80root, so the privilege for the commands will be set and
81they will be usable by non-root user
82
83 make && sudo make install
84
85])
86
87fi