X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=autogen.sh;h=0c74faebcadbde1603db9e18bda92995d619b722;hp=649ca7be3e8fadf1ea10a34a9985a980677182c5;hb=61cfe13ec49f1d1e9d6124f0ee98520aab720087;hpb=f482e7ea665938152518fe15cd71cfe882dd2b30 diff --git a/autogen.sh b/autogen.sh index 649ca7b..0c74fae 100755 --- a/autogen.sh +++ b/autogen.sh @@ -24,7 +24,7 @@ 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) +t=$(git submodule status|sed 's/^[ +-]//;s/ .*//') if test "$t" = "$(cat $curr_status 2>/dev/null)"; then : # good, it's up to date else @@ -32,13 +32,6 @@ else ./bootstrap && echo "$t" > $curr_status fi -mkdir -p daemon/m4 - -# Remove this file, so autoreconf doesn't complain about it being -# locally modified. -rm -f build-aux/config.rpath -autoreconf -i - CONFIGUREDIR=. # Run configure in BUILDDIR if it's set @@ -51,7 +44,7 @@ fi # If no arguments were specified and configure has run before, use the previous # arguments -if [ $# == 0 -a -x ./config.status ]; then +if test $# == 0 && test -x ./config.status; then ./config.status --recheck else $CONFIGUREDIR/configure "$@"