From 65fedb9ea217134a842b7b34cf425c24ca6ca3b7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 31 May 2014 21:39:32 -0700 Subject: autogen.sh: Honor NOCONFIGURE=1 See http://people.gnome.org/~walters/docs/build-api.txt Also includes support for builds outside $srcdir as found in most other X.Org autogen.sh files. Signed-off-by: Alan Coopersmith --- autogen.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index d68a142..fc34bd5 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,14 @@ #! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + autoreconf -v --install || exit 1 -./configure "$@" +cd $ORIGDIR || exit $? + +if test -z "$NOCONFIGURE"; then + $srcdir/configure "$@" +fi -- cgit v1.2.3-70-g09d2