summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2016-03-20 17:57:56 +0000
committerAleksander Morgado <aleksander@aleksander.es>2016-03-21 10:25:14 +0100
commitd2a1a7f82ba01114f33113f97fc5a884a4a1a988 (patch)
treef3adbee5a8b86caaa85fd22606365c207851dbae
parente2b3db1a10ba7dd73eea4e96faeec126629b7c19 (diff)
downloadlibmbim-d2a1a7f82ba01114f33113f97fc5a884a4a1a988.tar.gz
build: Run configure script from builddir rather than srcdir
If building from a clean git clone with builddir ≠ srcdir, the configure script is (correctly) generated in builddir by autoconf. Execute it from there, rather than from the srcdir, so that all the configure products (Makefiles, etc.) are generated in the builddir. https://bugs.freedesktop.org/show_bug.cgi?id=94639
-rwxr-xr-xautogen.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index 88599c0..1b1d9b9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,7 +18,8 @@ PKG_NAME=libmbim
mkdir -p m4
touch ChangeLog
autoreconf --force --install --verbose
- if test -z "$NOCONFIGURE"; then
- ./configure --enable-maintainer-mode "$@"
- fi
)
+
+if test -z "$NOCONFIGURE"; then
+ $srcdir/configure --enable-maintainer-mode "$@"
+fi