aboutsummaryrefslogtreecommitdiffstats
path: root/autogen.sh
blob: 19e5b55fcfa67dfd31ce6a7ec23e6ac0ce23ebb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

srcdir=`dirname "$0"`
test -z "$srcdir" && srcdir=.

SRCDIR=`(cd "$srcdir" && pwd)`
ORIGDIR=`pwd`

if test "x$SRCDIR" != "x$ORIGDIR"; then
	echo "Mesa cannot be built when srcdir != builddir" 1>&2
	exit 1
fi

autoreconf -v --install || exit 1

"$srcdir"/configure "$@"