]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Correctly determine ccache version when building in a separate directory
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 15 Jul 2010 15:32:11 +0000 (17:32 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 15 Jul 2010 15:51:47 +0000 (17:51 +0200)
NEWS.txt
configure.ac

index 7f2cdb233b3cb9f9c3e2c68cc8b4ada34d4fb31a..db6f6382617bd38458f050341ff7b8d668e0e318 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -10,6 +10,7 @@ Bug fixes
 
     - The statistics counter ``called for link'' is now correctly updated when
       linking with a single object file.
+    - Fixed a problem with out-of-source builds.
 
 
 ccache 3.0 (2010-06-20)
index bf71b9d813815a5844e4187e22823dbc14bcc63b..95e89d21fea8943cfa4d8934869028e23b3bbec6 100644 (file)
@@ -294,7 +294,7 @@ mv config.h.tmp config.h
 if test "x$ccache_dev" = "xyes"; then
     version=`(git describe --dirty 2>/dev/null || echo vunknown) | sed -e 's/v//' -e 's/-/+/' -e 's/-/_/g'`
     echo "const char CCACHE_VERSION@<:@@:>@ = \"$version\";" >version.c
-elif test ! -f version.c; then
+elif test ! -f $srcdir/version.c; then
     AC_MSG_WARN(unable to determine ccache version)
     echo "const char CCACHE_VERSION@<:@@:>@ = \"unknown\";" >version.c
 fi