ChangeLog: I forgot to add the entries for the past few commits
[castfs.git] / configure.in
blob12f3af9dd52413b39d175c0fc1709e84c8185084
1 AC_INIT(castfs, 0.5.1)
2 AM_INIT_AUTOMAKE
3 AC_PROG_CC
5 AM_MAINTAINER_MODE
7 AC_ARG_ENABLE(debug,
8 AC_HELP_STRING([--enable-debug],[Enable debug flags]),
9         [ CFLAGS="$CFLAGS -Wall -g" ],
10         [])
12 AC_ARG_WITH(pkgconfigdir,
13 AC_HELP_STRING([--with-pkgconfigdir=DIR],[pkgconfig file in DIR @<:@LIBDIR/pkgconfig@:>@]),
14         [pkgconfigdir=$withval],
15         [pkgconfigdir='${libdir}/pkgconfig'])
16 AC_SUBST(pkgconfigdir)
18 CPPFLAGS="${CPPFLAGS} `pkg-config --cflags fuse` -D_REENTRANT -DFUSE_USE_VERSION=25"
20 AC_CHECK_HEADERS(fuse.h,, AC_MSG_ERROR([fuse 2.4 or newer is required to build castfs]))
22 AC_CHECK_LIB(fuse, fuse_main,, AC_MSG_ERROR([fuse 2.4 or newer is required to build castfs]))
24 FUSE_PREFIX=`pkg-config --variable=prefix fuse `
25 AC_SUBST(FUSE_PREFIX,PREFIX,DATAROOTDIR)
27 AC_ARG_ENABLE(static-fuse,
28 AC_HELP_STRING([--enable-static-fuse], [Enable building castfs against fuse statically]),
29 [static_fuse=${enableval}], [static_fuse=no])
31 if test "x$static_fuse" = "xyes"
32 then
33   LIBS=`pkg-config --libs fuse | sed 's/-lfuse/$(FUSE_PREFIX)\/lib\/libfuse.a -lrt/'`
36 AC_CHECK_FUNCS([setxattr])
38 AC_CONFIG_FILES([
39 Makefile
40 include/Makefile
41 src/Makefile
42 test/Makefile
43 debian/Makefile
44 include/config.h
46 AC_OUTPUT