girparser: Fix critical warnings
[vala-lang.git] / autogen.sh
blob1eaa1cc3fb2b018617cfde45208d77023b9d27bb
1 #!/bin/sh
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
6 ORIGDIR=`pwd`
7 cd $srcdir
9 test -z "$VALAC" && VALAC=valac
10 if ! $VALAC --version | sed -e 's/^.*\([0-9]\+\.[0-9]\+\)\.[0-9]\+.*$/\1/' | grep -vq '^0\.[0-6]$'
11 then
12 echo "**Error**: You must have valac >= 0.7.0 installed"
13 echo " to build vala. Download the appropriate package"
14 echo " from your distribution or get the source tarball at"
15 echo " http://download.gnome.org/sources/vala/"
16 exit 1
19 # Automake requires that ChangeLog exist.
20 touch ChangeLog
21 mkdir -p m4
23 rm -f .version
24 autoreconf -v --install || exit 1
25 cd $ORIGDIR || exit $?
27 if test -z "$NOCONFIGURE"; then
28 $srcdir/configure --enable-maintainer-mode "$@"