154N/A# Process this file with autoconf to produce a configure script.
154N/AAC_CONFIG_AUX_DIR([config])
154N/AAM_INIT_AUTOMAKE([-Wno-portability])
154N/A [AC_HELP_STRING([--enable-doc], [make mans (require docbook2man installed) [default=auto]])],
154N/Aif test "x$enable_doc" = "xyes" -o "x$enable_doc" = "xauto"; then
154N/A AC_CHECK_PROG(have_docbook, [docbook2man], [yes], [no])
154N/A test "x$have_docbook" = "xno" -a "x$enable_doc" = "xyes" && \
3301N/A AC_MSG_ERROR([docbook2man required by man request, but not found])
61N/AAM_CONDITIONAL([ENABLE_DOCBOOK], [test "x$have_docbook" = "xyes"])
155N/AAC_ARG_ENABLE([examples],
61N/A [AC_HELP_STRING([--disable-examples], [do not install configuration examples])],
533N/A [], [enable_examples=yes])
533N/AAM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"])
61N/AAS_AC_EXPAND(PREFIX, $prefix)
3301N/AAS_AC_EXPAND(LIBDIR, $libdir)
61N/AAS_AC_EXPAND(BINDIR, $bindir)
61N/AAS_AC_EXPAND(INCLUDEDIR, $includedir)
61N/AAS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
1173N/AAS_AC_EXPAND(DATADIR, $datadir)
1173N/AAS_AC_EXPAND(LOCALSTATEDIR, $localstatedir)
1173N/AAS_AC_EXPAND(DOCDIR, $docdir)
155N/AAC_ARG_WITH([config-path],
61N/A [--with-config-path=dir],
61N/A [lxc configuration repository path]
61N/AAC_ARG_WITH([rootfs-path],
61N/A [--with-rootfs-path=dir],
61N/A [lxc rootfs mount point]
155N/AAS_AC_EXPAND(LXC_GENERATE_DATE, "$(date)")
61N/AAS_AC_EXPAND(LXCPATH, "${with_config_path}")
155N/AAS_AC_EXPAND(LXCROOTFSMOUNT, "${with_rootfs_path}")
61N/AAH_TEMPLATE([LXCPATH], [lxc configuration repository])
61N/AAH_TEMPLATE([LXCINITDIR], [lxc-init directory location])
61N/AAH_TEMPLATE([LXCROOTFSMOUNT], [lxc default rootfs mount point])
61N/AAC_DEFINE_UNQUOTED(LXCPATH, "$LXCPATH")
61N/AAC_DEFINE_UNQUOTED(LXCINITDIR, "$LXCINITDIR")
61N/AAC_DEFINE_UNQUOTED(LXCROOTFSMOUNT, "$LXCROOTFSMOUNT")
61N/A AC_MSG_ERROR([netlink headers not found. Please install the linux kernel headers.]),
1173N/AAC_CHECK_LIB(cap,cap_set_proc,caplib=yes,caplib=no)
1173N/AAC_MSG_CHECKING([linux capabilities])
1173N/Aif test "x$caplib" = "xyes" ; then
155N/A AC_MSG_RESULT([$CAP_LIBS])
61N/A AC_MSG_ERROR([not found])
61N/A# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
61N/AAC_PROG_GCC_TRADITIONAL
61N/Aif test "x$GCC" = "xyes"; then
61N/AAC_CONFIG_COMMANDS([default],[[]],[[]])
if test "x$SETCAP" = "xno"; then
The setcap binary was not found. This means the tools to set the
privilege for the lxc commands are not available, that's ok, but you
will need to run these commands as root or install libcap-2.
If you wish to have a non root user to use the lxc tools,
you can add the needed capabilities to the tools by invoking
the 'lxc-setcap' script. To remove the capabilities, use