From 00d98718d0e3a34119afb138ded7fba82f88f493 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sun, 20 Mar 2016 17:57:56 +0000 Subject: [PATCH] build: Run configure script from builddir rather than srcdir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- autogen.sh | 7 ++++--- 1 file 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 -- 2.5.0