]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Correct --enable-build-info on out-of-tree builds
authorHenrik Nordstrom <hno@squid-cache.org>
Thu, 11 Oct 2012 21:14:50 +0000 (23:14 +0200)
committerHenrik Nordstrom <hno@squid-cache.org>
Thu, 11 Oct 2012 21:14:50 +0000 (23:14 +0200)
bzr expects to be run from the source tree, not the build directory

acinclude/squid-util.m4

index 721a81ead55ecff1108b197bddb264d5786016b2..cc7569724a94dd2d8bd795d4d0ad3d7c25826e9e 100644 (file)
@@ -196,12 +196,12 @@ AC_DEFUN([SQUID_EMBED_BUILD_INFO],[
     yes)
       if test -d "${srcdir}/.bzr"; then
         AC_PATH_PROG(BZR,bzr,$FALSE)
-        squid_bzr_branch_nick=`${BZR} nick 2>/dev/null`
+        squid_bzr_branch_nick=`cd ${srcdir} && ${BZR} nick 2>/dev/null`
         if test $? -eq 0 -a "x$squid_bzr_branch_nick" != "x"; then
-          squid_bzr_branch_revno=`${BZR} revno 2>/dev/null | sed 's/\"//g'`
+          squid_bzr_branch_revno=`cd ${srcdir} && ${BZR} revno 2>/dev/null | sed 's/\"//g'`
         fi
         if test $? -eq 0 -a "x$squid_bzr_branch_revno" != "x"; then
-          ${BZR} diff 2>&1 >/dev/null
+          sh -c "cd ${srcdir} && ${BZR} diff 2>&1 >/dev/null"
           if test $? -eq 1; then
               squid_bzr_branch_revno="$squid_bzr_branch_revno+changes"
           fi