vala: if no proper compiler found, set $(VALAC) to 'valac'
commit1b187099d61143733e35ff58bfc6a0cedd2e2322
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 26 Oct 2012 16:01:17 +0000 (26 18:01 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 26 Oct 2012 19:17:10 +0000 (26 21:17 +0200)
treee5f4527fb5ae4da3971e96916e1f4f31a41b3bdf
parent9fe696bc9d6654a972d99f524c14a22fdc429e79
vala: if no proper compiler found, set $(VALAC) to 'valac'

This is better than setting it to ':' (as is currently done), because
a triggered makefile rule invoking a vala compilation will then clearly
fail with an informative error message like "valac: command not found",
rather than silently, with the error possibly going unnoticed, or
triggering harder-to-diagnose fallout failures in later steps.

For a precedent of a similar behaviour, see the AC_PROG_YACC macro.

* m4/valac.m4: Implement the new semantic.
* doc/automake.texi (Vala Support): Document it.
* t/vala4.sh: Adjust.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
doc/automake.texi
m4/vala.m4
t/vala4.sh