Commit bf96448d authored by Pacho Ramos's avatar Pacho Ramos Committed by Johannes Schmid

build: bgo#633661 - vala support is automagic

parent f85e740e
......@@ -266,10 +266,23 @@ AM_CONDITIONAL(HAVE_PLUGIN_SOURCEVIEW, [test x$sourceview = xyes])
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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment