Fix git-tree deps for version.c in out-of-tree build
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 8 Jun 2012 10:27:57 +0000 (11:27 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 8 Jun 2012 10:27:57 +0000 (11:27 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
configure.ac

index a5aad75..682db8e 100644 (file)
@@ -384,7 +384,8 @@ AC_SUBST(APIMINOR)
 # and we cannot use $(wildcard) in a non-GNU makefile. So we just
 # depend on the files which happen to exist at configure time.
 GITVERSIONDEPS=
-for a in .git/index .git/packed-refs .git/refs/tags .git/HEAD; do
+for a in ${srcdir}/.git/index ${srcdir}/.git/packed-refs \
+         ${srcdir}/.git/refs/tags ${srcdir}/.git/HEAD; do
     if test -r $a ; then
        GITVERSIONDEPS="$GITVERSIONDEPS $a"
     fi