From: Stef Walter Date: Tue, 8 Aug 2017 06:14:13 +0000 (+0200) Subject: autogen.sh: Fix running out of tree X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~33^2~37 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=773154a51324abc3947a716f62fe6eb3d8496fa5;p=ostree.git autogen.sh: Fix running out of tree The autogen.sh script should be runnable out of tree. It's mostly already the case, just one little tweak to make it work. $ mkdir build $ cd build $ ../autogen.sh --prefix=/usr Closes: #1063 Approved by: cgwalters --- diff --git a/autogen.sh b/autogen.sh index 0f32089a..17f6abf4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -28,7 +28,6 @@ else gtkdocize fi -cd $olddir if ! test -f libglnx/README.md || ! test -f bsdiff/README.md; then git submodule update --init fi @@ -41,4 +40,5 @@ ln -sf ../libglnx/libglnx.m4 buildutil/libglnx.m4 autoreconf --force --install --verbose +cd $olddir test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"