2 # Process this file with autoconf to produce a configure script.
4 AC_INIT([lxc], [0.4.0])
6 AC_CONFIG_SRCDIR([configure.in])
7 AC_CONFIG_AUX_DIR([config])
8 AM_CONFIG_HEADER([src/config.h])
9 AM_INIT_AUTOMAKE([-Wno-portability])
15 AC_CHECK_PROG(SETCAP, setcap, yes, no, "/usr/sbin")
17 AC_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>])
21 AC_PROG_GCC_TRADITIONAL
23 if test "x$GCC" = "xyes"; then
24 CFLAGS="$CFLAGS -Wall"
34 src/lxc/lxc-checkconfig
38 etc/lxc-empty-netns.conf
41 etc/lxc-complex-config
44 AC_CONFIG_COMMANDS([default],[[]],[[]])
47 if test "x$SETCAP" = "xno"; then
53 The libcap-2 is not installed. That means the tools to
54 set the privilege for the lxc commands are not available
55 and you will need to run these commands as root
66 When installing the tools, it is adviced to install as
67 root, so the privilege for the commands will be set and
68 they will be usable by non-root user
70 make && sudo make install