summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-06-03 13:19:53 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-06-03 13:19:53 +0100
commit0c197cce44a01ce8f1628e157768d8ea94ec4ed2 (patch)
treea02b5044d26943c618a2aad4bbbf1038c176cf60
parent80569a87df863ef84650c7238c1ae399c429bd60 (diff)
downloadnetwork-manager-applet-0c197cce44a01ce8f1628e157768d8ea94ec4ed2.tar.gz
Ensure autogen.sh works with non-srcdir builds
Only the tools to generate the configure script should be executed inside the source directory; the configure script should be called from the build directory.
-rwxr-xr-xautogen.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/autogen.sh b/autogen.sh
index 2296a6d9..53705a15 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -16,9 +16,9 @@ PKG_NAME=nm-applet
(cd $srcdir;
autoreconf --install --symlink &&
intltoolize --force &&
- autoreconf &&
- if test -z "$NOCONFIGURE"; then
- ./configure --enable-maintainer-mode "$@"
- fi
+ autoreconf
)
+if test -z "$NOCONFIGURE"; then
+ "$srcdir/configure" --enable-maintainer-mode "$@"
+fi