From ac1a99ad0677b70e1367b6a708243a824a9cb78c Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 19 Jul 2016 11:19:21 +0200 Subject: [PATCH] build: Fix running autogen.sh out-of-tree --- autogen.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 6948a79..328822a 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,4 +1,10 @@ #!/bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +pushd $srcdir + aclocal || exit 1 autoheader || exit 1 glib-gettextize -f -c || exit 1 @@ -7,6 +13,8 @@ intltoolize -c -f || exit 1 libtoolize -c || exit 1 autoconf || exit 1 automake -a -c || exit 1 +popd + if test -z "$NOCONFIGURE"; then - ./configure $* + $srcdir/configure --enable-maintainer-mode $* fi