summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-12-04 01:14:53 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-12-04 01:14:53 +0000
commit19c9a25be68e45e6c08b20b72eee4e542b4f40aa (patch)
treee3e8b2a7ef20411bd6e7a5a734ba359658617196 /autogen.sh
parent82fa0659f9834b3b0a2b5a27f23c25e605124cf2 (diff)
downloadxdg-app-19c9a25be68e45e6c08b20b72eee4e542b4f40aa.tar.gz
build: Switch to olddir after autoreconf
Otherwise this won't work: $ mkdir _build && cd _build $ ../autogen.sh As `autoreconf` won't find configure.ac.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 14a7e83..619802e 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,7 +18,6 @@ fi
# regenerated from their corresponding *.in files by ./configure anyway.
touch INSTALL
-cd "$olddir"
if ! test -f libglnx/README.md; then
git submodule update --init
fi
@@ -27,4 +26,5 @@ sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx,g < libglnx/Makefile-libglnx.am
autoreconf --force --install --verbose || exit $?
+cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"