[Xfce4-commits] <xfce4-vala:master> Fix two small mistakes in the autotools example

Mike Massonnet mmassonnet at xfce.org
Fri Sep 11 18:20:01 CEST 2009


Updating branch refs/heads/master
         to 4c8fba0f90aaf9b99d66a710d34662a4308355ff (commit)
       from b3ac8b9a062fc0293ef2b649d96faff52ccb892c (commit)

commit 4c8fba0f90aaf9b99d66a710d34662a4308355ff
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Fri Sep 11 18:12:04 2009 +0200

    Fix two small mistakes in the autotools example
    
    Pass the generated header file to the _VALABUILTSOURCES variable and
    quit with an error within the autoconf script in case VALAC was not
    found.

 examples/autotools/configure.in.in |    2 +-
 examples/autotools/src/Makefile.am |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/autotools/configure.in.in b/examples/autotools/configure.in.in
index 2f5023a..cdbb354 100644
--- a/examples/autotools/configure.in.in
+++ b/examples/autotools/configure.in.in
@@ -42,7 +42,7 @@ dnl Check for valac
 if test "x$USE_MAINTAINER_MODE" = "xyes" ; then
 	AM_PROG_VALAC([0.7.1])
 	if test "x$VALAC" = "x" ; then
-		AC_MSG_WARN([Cannot find the "valac" compiler in your PATH])
+		AC_MSG_ERROR([Cannot find the "valac" compiler in your PATH])
 	fi
 	XDT_CHECK_PACKAGE([XFCE4VALA], [xfce4-vala], [0.1]) # 4.6
 fi
diff --git a/examples/autotools/src/Makefile.am b/examples/autotools/src/Makefile.am
index 1a942e7..66f5c86 100644
--- a/examples/autotools/src/Makefile.am
+++ b/examples/autotools/src/Makefile.am
@@ -15,7 +15,7 @@ product_VALASOURCES =							\
 	obj2.vala							\
 	main.vala
 
-product_VALABUILTSOURCES = $(product_VALASOURCES:.vala=.c)
+product_VALABUILTSOURCES = $(product_VALASOURCES:.vala=.c) product.h
 
 if MAINTAINER_MODE
 PACKAGES = --pkg=gtk+-2.0



More information about the Xfce4-commits mailing list