summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: b5f6ec4a97a2bfa8b9d881111a7a7d4e7a4a6de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /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

MAKEFLAGS=""

autoreconf -v --install || exit 1

if test -z "$NOCONFIGURE"; then
    "$srcdir"/configure "$@"
fi