Commit 3b3bf77a authored by Emil Velikov's avatar Emil Velikov Committed by Aaron Plattner
Browse files

autogen.sh: update/copy over from mesa



This commit addresses three concerns:
 - Places quotes around variables. Otherwise things will fail badly if
either one of then contains space.
 - Adds --force to autoreconf, which will ensure that the build is
regenerated, if one updates autotools.
 - Honours the NOCONFIGURE variable, which is set by gnome-continuous
(iirc).
Signed-off-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: default avatarAaron Plattner <aplattner@nvidia.com>
parent e4681ab2
#! /bin/sh #! /bin/sh
srcdir=`dirname $0` srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=. test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd` ORIGDIR=`pwd`
cd $srcdir cd "$srcdir"
autoreconf -v --install || exit 1 autoreconf --force --verbose --install || exit 1
cd $ORIGDIR || exit $? cd "$ORIGDIR" || exit $?
$srcdir/configure "$@" if test -z "$NOCONFIGURE"; then
"$srcdir"/configure "$@"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment