summaryrefslogtreecommitdiff
blob: dcdef5578e9d1392020aff1af0ffa8ad45ab95bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- configure.ac.orig	2010-11-06 16:24:36.000000000 +0100
+++ configure.ac	2010-11-06 16:24:19.000000000 +0100
@@ -12,7 +12,15 @@
 
 # Check for programs
 AC_PROG_CC
-AM_PROG_VALAC([0.9.5])
+
+AC_ARG_ENABLE(vala,
+		AC_HELP_STRING([--disable-vala],
+				[Disable vala support]))
+AM_CONDITIONAL(ENABLE_VALA, test "x$enable_vala" != "xno")
+
+if test "x$enable_vala" != "xno"; then
+	AM_PROG_VALAC([0.9.5])
+fi
 
 # Introspection
 GOBJECT_INTROSPECTION_CHECK([0.9.5])