3
AM_CONFIG_HEADER(include/config.h)
10
# compatibility for automake < 1.8
11
if test -z "$mkdir_p"; then
12
mkdir_p="../mkinstalldirs"
16
CFLAGS="-Wall -W -g -O2"
17
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=22"
19
AC_ARG_ENABLE(kernel-module,
20
[ --enable-kernel-module Compile kernel module ])
22
[ --enable-lib Compile with library ])
24
[ --enable-util Compile with util ])
25
AC_ARG_ENABLE(example,
26
[ --enable-example Compile with examples ])
27
AC_ARG_ENABLE(auto-modprobe,
28
[ --enable-auto-modprobe Automatically insert kernel module])
32
if test "$enable_kernel_module" != "no"; then
33
AC_CONFIG_SUBDIRS(kernel)
36
if test "$enable_lib" != "no"; then
37
subdirs2="$subdirs2 lib";
39
if test "$enable_util" != "no"; then
40
subdirs2="$subdirs2 util";
42
if test "$enable_example" != "no"; then
43
subdirs2="$subdirs2 example";
45
if test "$enable_auto_modprobe" = "yes"; then
46
AC_DEFINE(AUTO_MODPROBE, 1, [Automatically insert kernel module])
49
AC_CHECK_FUNCS([setxattr])
50
AC_CHECK_MEMBERS([struct stat.st_atim])
54
AC_CONFIG_FILES([fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile])