Fixes building the docs from within the source directory. No need to
backpatch, as we previously didn't rely on srcdir being set.
PG_CONFIG :=@PG_CONFIG@
PGXS := $(shell $(PG_CONFIG) --pgxs)
-VPATH := $(bdr_abs_srcdir)/$(bdr_subdir)
-USE_VPATH :=$(VPATH)
+vpath_build=@vpath_build@
+ifeq ($(vpath_build),yes)
+ VPATH := $(bdr_abs_srcdir)/$(bdr_subdir)
+ USE_VPATH :=$(VPATH)
+endif
GIT_WORK_TREE=${bdr_abs_srcdir}
GIT_DIR=${bdr_abs_srcdir}/.git
export GIT_DIR
ac_subst_vars='LTLIBOBJS
LIBOBJS
+vpath_build
BUILDING_BDR
BUILDING_UDR
OBJEXT
fi;
+# check whether we're building inside the source tree.
+if test "$srcdir" -ef '.' ; then
+ vpath_build=no
+else
+ vpath_build=yes
+fi
+
+
ac_config_files="$ac_config_files Makefile"
ac_config_files="$ac_config_files Makefile.global"
fi;
+# check whether we're building inside the source tree.
+if test "$srcdir" -ef '.' ; then
+ vpath_build=no
+else
+ vpath_build=yes
+fi
+AC_SUBST(vpath_build)
+
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile.global])
AC_CONFIG_FILES([doc/Makefile])