nvc0: Fix building without firmware
[mesa/nouveau-pmpeg.git] / autogen.sh
blobb5f6ec4a97a2bfa8b9d881111a7a7d4e7a4a6de7
1 #! /bin/sh
3 srcdir=`dirname "$0"`
4 test -z "$srcdir" && srcdir=.
6 SRCDIR=`(cd "$srcdir" && pwd)`
7 ORIGDIR=`pwd`
9 if test "x$SRCDIR" != "x$ORIGDIR"; then
10 echo "Mesa cannot be built when srcdir != builddir" 1>&2
11 exit 1
14 MAKEFLAGS=""
16 autoreconf -v --install || exit 1
18 if test -z "$NOCONFIGURE"; then
19 "$srcdir"/configure "$@"