From 98a492123a836a7025b8674753eaaae7a404661c Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sun, 20 Mar 2016 18:02:51 +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=94640 --- autogen.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autogen.sh b/autogen.sh index a34089b..21c3cd0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -18,7 +18,8 @@ PKG_NAME=libqmi mkdir -p m4 touch README NEWS 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