From a03d3eab39b265fb9fcb5287d81061e7957f355a Mon Sep 17 00:00:00 2001 From: Julio Merino Date: Mon, 8 Feb 2016 20:48:45 -0500 Subject: Fix path to compat in -I flag When defining a -I flag to point into the source directory, we should prefix the directory with ${srcdir} so that it can be found when the build is configured to use a build directory that differs from the source directory. This fixes "make distcheck". --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7b4a13f..7fdc36a 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,7 @@ LIBS="$LIBS $SSHFS_LIBS" AC_CHECK_FUNC([fuse_opt_parse], [have_fuse_opt_parse=yes]) LIBS="$oldlibs" if test "$have_fuse_opt_parse" = no -o "$osname" = darwin; then - CFLAGS="$CFLAGS -Icompat" + CFLAGS="$CFLAGS -I${srcdir}/compat" fi AM_CONDITIONAL(FUSE_OPT_COMPAT, test "$have_fuse_opt_parse" = no) AM_CONDITIONAL(DARWIN_COMPAT, test "$osname" = darwin) -- cgit v1.2.3