Re: multiple vala versions in 3.4



On Fri, 2012-01-20 at 11:49 +0100, Matteo Settenvini wrote:
> Il giorno gio, 19/01/2012 alle 16.32 -0500, Colin Walters ha scritto:
> > However, modules will need to be patched to find the correct valac and
> > vapigen with the -0.14 suffix.  For example, folks just does:
> > 
> >         AC_PATH_PROG([VAPIGEN], [vapigen], [])
> >         if test "x$VAPIGEN" = "x"; then
> >               AC_MSG_ERROR([Vala must be built with --enable-vapigen])
> >         fi
> > 
> > We could manually pass VALAC=valac-0.14 VAPIGEN=vapigen-0.14 to
> > configure, but it's probably better to fix this inside the configure
> > scripts.
> > 
> 
> Wouldn't it be a good idea for Vala to install a valac.m4 file
> in /usr/share/aclocal, containing a pertaining macro?
> 
> Something like AC_PROG_VALA([== 0.15]), so that everyone can use the
> same macro, avoiding this kind of duplication and differences among
> modulesets. This can set variables for both valac and vapigen in one go.
> 
> Cheers,

It's included by default in new automake:

AM_PROG_VALAC([0.14.0])

(checks for valac >= 0.14.0).

Regards



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]