glib-2.0: Fix Idle.add default argument
[vala-lang.git] / autogen.sh
blob7ea434bdeacaf46d84899fca54204104026f0553
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 autoreconf -v --install || exit 1
24 cd $ORIGDIR || exit $?
26 $srcdir/configure --enable-maintainer-mode "$@"