--- configure.in.orig	2010-10-31 22:45:15.000000000 +0100
+++ configure.in	2010-10-31 22:52:02.000000000 +0100
@@ -267,10 +267,23 @@
 dnl Check for vala
 dnl -------------------------------------------------------------
 
-PKG_CHECK_MODULES(VALA,
-	[vala-0.10 >= $VALA_REQUIRED],
-	[enable_vala="yes"],
-	[enable_vala="no"])
+AC_ARG_ENABLE(vala,
+	AC_HELP_STRING([--disable-vala],[Disable vala support]),
+	[ if test "$enableval" = "no"; then
+		user_disabled_vala=1
+	  fi ],
+	[ user_disabled_vala=0 ])
+
+AC_MSG_CHECKING(if vala support is disabled)
+if test "$user_disabled_vala" = 1; then
+        AC_MSG_RESULT(yes)
+	enable_vala="no"
+else
+	AC_MSG_RESULT(no)
+	enable_vala="yes"
+	PKG_CHECK_MODULES(VALA,
+		[vala-0.10 >= $VALA_REQUIRED])
+fi
 
 if test x$enable_vala = xyes; then
 	AC_PATH_PROG(VALAC, valac, valac)
