[systemd-devel] [PATCH] Don't require vala if gtk is disabled

Lennart Poettering lennart at poettering.net
Tue Nov 16 14:04:57 PST 2010


On Tue, 16.11.10 11:47, Lucas De Marchi (lucas.demarchi at profusion.mobi) wrote:

Vala is actually not required for building the tarball, since the
tarball includes generated code. However, we do require people who build
from git to have a recent Vala version around, so that the tarballs they
can build from that are complete.

It's a misconception that AM_PROG_VALAC would actually cause the build
to fail. It does so only if you don't have the prebuilt stuff around.

Lennart

> ---
>  configure.ac |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index b37e994..56f9413 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -259,10 +259,10 @@ if test "$have_gtk" = "yes"; then
>          PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify >= 0.7.0 ])
>          AC_SUBST(LIBNOTIFY_CFLAGS)
>          AC_SUBST(LIBNOTIFY_LIBS)
> -fi
>  
> -AM_PROG_VALAC([0.11])
> -AC_SUBST(VAPIDIR)
> +	AM_PROG_VALAC([0.11])
> +	AC_SUBST(VAPIDIR)
> +fi
>  AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
>  
>  AC_PATH_PROG([XSLTPROC], [xsltproc])


Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list