X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=autogen.sh;h=51796237ffe8026bbddeb75c35d213a655523c86;hb=19bb2e59f4b976a0022fd1acb7b1620403985b70;hp=ba4612cd8bf4989aa8ce908d4f24c143136e1df7;hpb=349814e9d912c4f372b8fbdfb10b03749911021f;p=libguestfs.git diff --git a/autogen.sh b/autogen.sh index ba4612c..5179623 100755 --- a/autogen.sh +++ b/autogen.sh @@ -21,6 +21,17 @@ set -e set -v +# Ensure that whenever we pull in a gnulib update or otherwise change to a +# different version (i.e., when switching branches), we also rerun ./bootstrap. +curr_status=.git-module-status +t=$(git submodule status) +if test "$t" = "$(cat $curr_status 2>/dev/null)"; then + : # good, it's up to date +else + echo running bootstrap... + ./bootstrap && echo "$t" > $curr_status +fi + mkdir -p daemon/m4 autoreconf -i