294N/A# Process this file with autoconf to produce a configure script.
294N/AAC_CONFIG_AUX_DIR([config])
294N/AAM_INIT_AUTOMAKE([-Wno-portability])
294N/AAC_CHECK_PROG(SETCAP, setcap, yes, no)
294N/AAC_CHECK_PROG(DOCBOOK, docbook2man, yes, no)
294N/AAM_CONDITIONAL(ENABLE_DOCBOOK, test x$DOCBOOK = xyes)
294N/AAS_AC_EXPAND(BINDIR, $bindir)
294N/AAS_AC_EXPAND(LIBEXECDIR, $libexecdir)
294N/AAS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
294N/AAS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
294N/AAS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
294N/A# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
294N/Aif test "x$GCC" = "xyes"; then
294N/ALXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
294N/ALXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
294N/ALXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
294N/AAC_ARG_WITH([kernel-release],
294N/A [AC_HELP_STRING([--with-kernel-release=RELEASE],
294N/A [specify the "uname -r"-value to build for])],
294N/A [KERNEL_RELEASE="${withval}"],
294N/A [KERNEL_RELEASE=`uname -r`])
294N/AAC_ARG_ENABLE(test, [ --enable-test compile test program [default=no]],, enable_test=no)
294N/AAM_CONDITIONAL(ENABLE_TEST, test x$enable_test = xyes)
294N/AAC_SUBST(LXC_MAJOR_VERSION)
294N/AAC_SUBST(LXC_MINOR_VERSION)
294N/AAC_SUBST(LXC_MICRO_VERSION)
294N/AAC_CONFIG_COMMANDS([default],[[]],[[]])
294N/Aif test "x$DOCBOOK" = "xno"; then
294N/AThe docbook tool is not installed, the man pages won't be generated.
294N/AIf you want the man pages, install docbook and rerun 'configure'.
294N/Aif test "x$SETCAP" = "xno"; then
294N/AThe libcap-2 is not installed. That means the tools to
294N/Aset the privilege for the lxc commands are not available,
294N/Athat's ok, but you will need to run these commands as root
294N/AIf you which to have a non root user to use the lxc tools,
294N/Ayou can add the needed capabilities to the tools by invoking
294N/Athe 'lxc-setcap' script. To remove the capabilities, use