1 # Process this file with autoconf to produce a configure script.
4 AC_INIT([lxcfs], [2.0.0.beta1], [lxc-devel@lists.linuxcontainers.org])
5 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
6 AC_CONFIG_MACRO_DIR([m4])
8 AM_INIT_AUTOMAKE([subdir-objects -Wno-portability])
11 AC_CONFIG_HEADERS([config.h])
27 AC_CHECK_LIB(pthread, main)
29 PKG_CHECK_MODULES(FUSE, fuse)
31 AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //)
32 AM_CONDITIONAL([HAVE_HELP2MAN], [test "x$HELP2MAN" != "xfalse // No help2man //" ])
34 AC_ARG_WITH([runtime-path],
36 [--with-runtime-path=dir],
37 [runtime directory (default: /run)]
38 )], [], [with_runtime_path=['/run']])
40 AS_AC_EXPAND(RUNTIME_PATH, "$with_runtime_path")
41 AS_AC_EXPAND(LXCFSSHAREDIR, "$datarootdir/lxcfs")
42 AS_AC_EXPAND(LXCCONFDIR, "$datarootdir/lxc/config/common.conf.d")
43 AS_AC_EXPAND(LXCFSTARGETDIR, "$localstatedir/lib/lxcfs")
47 [AS_HELP_STRING([--with-pamdir=PATH],[Specify the directory where PAM modules are stored,
48 or "none" if PAM modules are not to be built])],
49 [pamdir="${withval}"],
51 if test "${prefix}" = "/usr"; then
52 pamdir="/lib${libdir##*/lib}/security"
54 pamdir="\$(libdir)/security"
59 AM_CONDITIONAL([HAVE_PAM], [test x"$pamdir" != "xnone"])
60 if test "z$pamdir" != "znone"; then
61 AC_ARG_VAR([PAM_CFLAGS], [C compiler flags for pam])
62 AC_ARG_VAR([PAM_LIBS], [linker flags for pam])
67 [AC_MSG_ERROR([*** libpam not found.])
74 # Rootfs path, where the container mount structure is assembled
75 AC_ARG_WITH([rootfs-path],
77 [--with-rootfs-path=dir],
78 [lxc rootfs mount point]
79 )], [], [with_rootfs_path=['${libdir}/lxc/rootfs']])
81 AS_AC_EXPAND(LIBDIR, "$libdir")