configure.ac revision 64c3c9020bb797cc902f3915c71971a4b1bd8502
145N/AAC_CONFIG_SRCDIR([configure.ac])
145N/AAM_CONFIG_HEADER([src/config.h])
145N/AAC_CHECK_PROG(SETCAP, setcap, yes, no, $PATH$PATH_SEPARATOR/sbin)
145N/AAC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, oracle, fedora, suse, gentoo, debian, arch, slackware, paldo, mandriva or pardus]))
5630N/A AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
145N/A AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle")
145N/A AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora")
145N/A AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
187N/A AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
3996N/A AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
187N/A AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
187N/A AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
187N/A AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
145N/A AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="mandriva")
187N/A AC_CHECK_FILE(/etc/mandriva-release,with_distro="mandriva")
187N/A AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
5630N/A conffile=lxc.conf.ubuntu
5630N/A conffile=lxc.conf.libvirt
197N/A echo -n "Linux distribution network config unknown, defaulting to lxc.network.type = empty"
197N/A conffile=lxc.conf.unknown
5630N/AAM_CONDITIONAL([HAVE_DEBIAN], [test x"$with_distro" = "xdebian" -o x"$with_distro" = "xubuntu"])
4409N/A [AC_HELP_STRING([--enable-doc], [make mans (require docbook2man installed) [default=auto]])],
1900N/A [AC_CHECK_HEADER([sys/apparmor.h],[],[AC_MSG_ERROR([You must install the AppArmor development package in order to compile lxc])])
191N/A AC_CHECK_LIB([apparmor], [aa_change_profile],[],[AC_MSG_ERROR([You must install the AppArmor development package in order to compile lxc])])
1900N/A [AC_CHECK_HEADER([seccomp.h],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])])
1900N/A AC_CHECK_LIB([seccomp], [seccomp_init],[],[AC_MSG_ERROR([You must install the seccomp development package in order to compile lxc])])
AC_CHECK_HEADER([python$PYTHON_VERSION/Python.h],[],[AC_MSG_ERROR([You must install python3-dev])])
[AC_HELP_STRING([--enable-tests], [build test/example binaries])],
)], [], [with_config_path=['${localstatedir}/lib/lxc']])
)], [], [with_rootfs_path=['${libdir}/lxc/rootfs']])
AS_AC_EXPAND(LXCTEMPLATEDIR, ['${datadir}/lxc/templates'])
[#include <sys/socket.h>
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([Please install the libcap development files.]),
[#include <sys/types.h>
#include <sys/capability.h>])
AC_CHECK_DECLS([PR_CAPBSET_DROP], [], [], [#include <sys/prctl.h>])
AC_CHECK_HEADERS([sys/signalfd.h])