summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-07-13 14:27:06 +0200
committerJürg Billeter <j@bitron.ch>2009-07-13 14:28:10 +0200
commitc27a20ba47b9a2226272b5e6846170c9c453e8ca (patch)
tree622aed8ff94c59e7096a9fd22bba199344c8d64f /autogen.sh
parent9a9181b115373077f58215c2edc0f91dd5960acd (diff)
downloadvala-c27a20ba47b9a2226272b5e6846170c9c453e8ca.tar.gz
Check for valac >= 0.7.0 in autogen.sh
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 7708a0ce1..7ea434bde 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,6 +6,16 @@ test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
+test -z "$VALAC" && VALAC=valac
+if ! $VALAC --version | sed -e 's/^.*\([0-9]\+\.[0-9]\+\)\.[0-9]\+.*$/\1/' | grep -vq '^0\.[0-6]$'
+then
+ echo "**Error**: You must have valac >= 0.7.0 installed"
+ echo " to build vala. Download the appropriate package"
+ echo " from your distribution or get the source tarball at"
+ echo " http://download.gnome.org/sources/vala/"
+ exit 1
+fi
+
# Automake requires that ChangeLog exist.
touch ChangeLog
mkdir -p m4