diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2015-03-18 23:50:31 +0000 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2015-05-11 12:53:46 -0700 |
commit | 3b3bf77ad67957be69b76c1c94dce981d75c4e9a (patch) | |
tree | 8f4bb59bbf1e2a3c3de94c712f09c91b12a919b9 | |
parent | e4681ab2b71638a48fc857669903f7ac7ec8b3cb (diff) |
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: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
-rwxr-xr-x | autogen.sh | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,12 +1,14 @@ #! /bin/sh -srcdir=`dirname $0` +srcdir=`dirname "$0"` test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` -cd $srcdir +cd "$srcdir" -autoreconf -v --install || exit 1 -cd $ORIGDIR || exit $? +autoreconf --force --verbose --install || exit 1 +cd "$ORIGDIR" || exit $? -$srcdir/configure "$@" +if test -z "$NOCONFIGURE"; then + "$srcdir"/configure "$@" +fi |