]> git.proxmox.com Git - mirror_lxc.git/blame - configure.in
Give the ability to non-root user to play with the containers. This feature
[mirror_lxc.git] / configure.in
CommitLineData
5e97c3fc 1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
805415fc 4AC_INIT([lxc], [0.4.0])
5e97c3fc 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
c2cc9f0a 14AC_PROG_LIBTOOL
805415fc 15AC_CHECK_PROG(SETCAP, setcap, yes, no, "/usr/sbin")
16
86f7d054 17AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
69437d52 18[#include <linux/types.h>
19#include <bits/sockaddr.h>
20#include <linux/socket.h>])
5e97c3fc 21AC_PROG_GCC_TRADITIONAL
22
23if test "x$GCC" = "xyes"; then
8642237a 24 CFLAGS="$CFLAGS -Wall"
5e97c3fc 25fi
26
27AC_CONFIG_FILES([
28 Makefile
29 lxc.spec
30 config/Makefile
31 src/Makefile
5e97c3fc 32 src/lxc/Makefile
33 src/lxc/lxc-ps
805415fc 34 src/lxc/lxc-checkconfig
5e97c3fc 35 etc/Makefile
36 etc/lxc-macvlan.conf
37 etc/lxc-no-netns.conf
5f58350a 38 etc/lxc-empty-netns.conf
5e97c3fc 39 etc/lxc-phys.conf
40 etc/lxc-veth.conf
41 etc/lxc-complex-config
42 test/Makefile
43])
44AC_CONFIG_COMMANDS([default],[[]],[[]])
45AC_OUTPUT
805415fc 46
47if test "x$SETCAP" = "xno"; then
48 AC_MSG_NOTICE([
49
50Warning:
51--------
52
53The libcap-2 is not installed. That means the tools to
54set the privilege for the lxc commands are not available
55and you will need to run these commands as root
56
57])
58
59else
60
61 AC_MSG_NOTICE([
62
63Advice:
64-------
65
66When installing the tools, it is adviced to install as
67root, so the privilege for the commands will be set and
68they will be usable by non-root user
69
70 make && sudo make install
71
72])
73
74fi