]> git.proxmox.com Git - mirror_lxcfs.git/blob - configure.ac
configure.ac: release v0.12
[mirror_lxcfs.git] / configure.ac
1 # Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.61)
4 AC_INIT([lxcfs], [0.12], [lxc-devel@lists.linuxcontainers.org])
5 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
6 AC_CONFIG_MACRO_DIR([m4])
7
8 AC_GNU_SOURCE
9 AC_CONFIG_HEADERS([config.h])
10 AC_CONFIG_FILES([
11 Makefile
12 share/Makefile
13 share/00-lxcfs.conf
14 share/lxc.mount.hook
15 share/lxc.reboot.hook
16 tests/Makefile ])
17
18 AM_INIT_AUTOMAKE
19
20 LT_INIT
21 AC_PROG_CC
22
23 AC_PROG_CC_C99
24
25 AC_CHECK_LIB(pthread, main)
26
27 PKG_CHECK_MODULES(FUSE, fuse)
28
29 AC_PATH_PROG(HELP2MAN, help2man, false // No help2man //)
30 AM_CONDITIONAL([HAVE_HELP2MAN], [test "x$HELP2MAN" != "xfalse // No help2man //" ])
31
32 AC_ARG_WITH([runtime-path],
33 [AC_HELP_STRING(
34 [--with-runtime-path=dir],
35 [runtime directory (default: /run)]
36 )], [], [with_runtime_path=['/run']])
37
38 AS_AC_EXPAND(RUNTIME_PATH, "$with_runtime_path")
39 AS_AC_EXPAND(LXCFSSHAREDIR, "$datarootdir/lxcfs")
40 AS_AC_EXPAND(LXCCONFDIR, "$datarootdir/lxc/config/common.conf.d")
41 AS_AC_EXPAND(LXCFSTARGETDIR, "$localstatedir/lib/lxcfs")
42
43 AC_OUTPUT