diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2011-07-08 19:09:07 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2011-07-08 19:09:07 +0300 |
commit | 2135ad723dce9654f1844ec4f76f06c9e240be98 (patch) | |
tree | 31b94696aa7e3da71b823e8d856febb7ee245e5c /configure.ac | |
download | bindfs-2135ad723dce9654f1844ec4f76f06c9e240be98.tar.gz |
Initial commit to git.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..2e0974c --- /dev/null +++ b/configure.ac @@ -0,0 +1,42 @@ +AC_INIT([bindfs],[1.9],[martin.partel@gmail.com]) + +AM_INIT_AUTOMAKE +AM_CONFIG_HEADER(config.h) + +AC_PROG_CC +AC_LANG(C) +AC_PROG_LIBTOOL + +# --enable and --with options +AC_ARG_ENABLE([debug], + [AS_HELP_STRING([--enable-debug], [enable extra debug output])]) +AC_ARG_WITH([core-foundation], + AS_HELP_STRING([--with-core-foundation], [link against Core Foundation (OS X only) @<:@default=no@:>@])) + + +if test x"$enable_debug" == "xyes" ; then + CFLAGS="${CFLAGS} -g -O0 -DMALLOC_CHECK_=2" + AC_DEFINE([BINDFS_DEBUG], [1], [Define to 1 to enable debugging messages]) +else + CFLAGS="${CFLAGS} -O2" +fi + +if test x"$with_core_foundation" == "xyes" ; then + AC_MSG_NOTICE([Linking with Core Foundation]) + LDFLAGS="${LDFLAGS} -framework CoreFoundation" +fi + +CFLAGS="${CFLAGS} -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=25" + +# Check for xattrs +AC_CHECK_FUNCS([setxattr getxattr listxattr removexattr]) +AC_CHECK_FUNCS([lsetxattr lgetxattr llistxattr lremovexattr]) + +# Check for fuse +PKG_CHECK_MODULES([fuse], [fuse >= 2.5.3]) + +AC_CONFIG_FILES([Makefile \ + src/Makefile \ + tests/Makefile]) +AC_OUTPUT + |