[Spice-devel,3/5] build: warn and instruct if valac is missing

Submitted by Marc-André Lureau on Aug. 17, 2011, 7:45 p.m.

Details

Message ID 1313585115-1459-3-git-send-email-marcandre.lureau@redhat.com
State New, archived
Headers show

Not browsing as part of any series.

Commit Message

Marc-André Lureau Aug. 17, 2011, 7:45 p.m.
---
 gtk/controller/Makefile.am |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

Patch hide | download patch | download mbox

diff --git a/gtk/controller/Makefile.am b/gtk/controller/Makefile.am
index bafad58..4a488e9 100644
--- a/gtk/controller/Makefile.am
+++ b/gtk/controller/Makefile.am
@@ -57,6 +57,13 @@  test_controller_SOURCES = test.c
 test_controller_LDADD = libspice-controller.la
 
 controller.vala.stamp: $(libspice_controller_la_VALASOURCES) custom.vapi
+	@if test -z "$(VALAC)"; then \
+		echo "" ; \
+		echo "  *** Error: missing valac!" ; \
+		echo "  *** You must run autogen.sh or --enable-vala" ; \
+		echo "" ; \
+		exit 1 ; \
+	fi
 	$(VALA_V)$(VALAC) $(VALAFLAGS) $(AM_VALAFLAGS) $(libspice_controller_la_VALASOURCES) -H spice-controller.h
 	@touch $@