common/autoconf/build-performance.m4
changeset 18021 680b9b43e2d6
parent 17660 b226baa345a2
child 20363 fa7663fc5d50
child 22466 25aaf85d1ada
--- a/common/autoconf/build-performance.m4	Tue Jun 18 11:29:34 2013 +0200
+++ b/common/autoconf/build-performance.m4	Tue Jun 18 11:30:36 2013 +0200
@@ -162,7 +162,12 @@
 	      		      [disable using ccache to speed up recompilations @<:@enabled@:>@])],
               [ENABLE_CCACHE=${enable_ccache}], [ENABLE_CCACHE=yes])
     if test "x$ENABLE_CCACHE" = xyes; then
+        OLD_PATH="$PATH"
+        if test "x$TOOLS_DIR" != x; then
+          PATH=$TOOLS_DIR:$PATH
+        fi
         AC_PATH_PROG(CCACHE, ccache)
+        PATH="$OLD_PATH"
     else
         AC_MSG_CHECKING([for ccache])
         AC_MSG_RESULT([explicitly disabled])