14
AC_CHECK_PROG(SETCAP, setcap, yes, no)
14
AC_CHECK_PROG(SETCAP, setcap, yes, no, $PATH$PATH_SEPARATOR/sbin)
15
15
AC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
16
16
AM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
17
AS_AC_EXPAND(PREFIX, $prefix)
18
AS_AC_EXPAND(LIBDIR, $libdir)
17
19
AS_AC_EXPAND(BINDIR, $bindir)
20
AS_AC_EXPAND(INCLUDEDIR, $includedir)
18
21
AS_AC_EXPAND(LIBEXECDIR, $libexecdir)
19
22
AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
23
AS_AC_EXPAND(DATADIR, $datadir)
20
24
AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
21
25
AS_AC_EXPAND(LXCPATH, "${localstatedir}/lib/lxc")
26
AS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
23
AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found]),
28
AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
24
29
[#include <linux/types.h>
25
30
#include <bits/sockaddr.h>
26
31
#include <linux/socket.h>])
28
33
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
29
[#include <sys/capability.h>])
34
[#include <sys/types.h>
35
#include <sys/capability.h>])
31
37
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
32
38
AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
49
55
[KERNEL_RELEASE="${withval}"],
50
56
[KERNEL_RELEASE=`uname -r`])
52
AX_COMPARE_VERSION([$KERNEL_RELEASE], [ge], [2.6.29],
53
AC_MSG_NOTICE([network autodestroy: yes]),
54
AC_MSG_NOTICE([network autodestroy: no]))
56
if test ${ax_compare_version} != "true"; then
57
CFLAGS="$CFLAGS -DNETWORK_DESTROY"
60
58
AC_ARG_ENABLE(test, [ --enable-test compile test program [default=no]],, enable_test=no)
61
59
AM_CONDITIONAL(ENABLE_TEST, test x$enable_test = xyes)
133
The libcap-2 is not installed. That means the tools to
134
set the privilege for the lxc commands are not available,
135
that's ok, but you will need to run these commands as root
135
The setcap binary was not found. This means the tools to set the
136
privilege for the lxc commands are not available, that's ok, but you
137
will need to run these commands as root or install libcap-2.
146
If you which to have a non root user to use the lxc tools,
148
If you wish to have a non root user to use the lxc tools,
147
149
you can add the needed capabilities to the tools by invoking
148
150
the 'lxc-setcap' script. To remove the capabilities, use