summaryrefslogtreecommitdiff
path: root/t/vala2.sh
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-04-21 15:51:09 +0200
committerStefano Lattarini <stefano.lattarini@gmail.com>2012-04-21 15:51:09 +0200
commit001db08953af104250a2d00f7e46c9b4817d2ced (patch)
tree30c831c709fed450b251923c78f3c7b466f4784f /t/vala2.sh
parent64b18e07df13c9cc96232cc77e03f7d31a0b5046 (diff)
downloadautomake-001db08953af104250a2d00f7e46c9b4817d2ced.tar.gz
vala: configure exit with status 77, not 1, if valac version is too old
From a report by Bruno Haible in automake bug#1193. This change should also automatically avoid spurious testsuite failures with older vala versions. * m4/vala.m4 (AM_PROG_VALAC): Exit with status 77, rather than 1, if the Vala compiler found older than the minimal required version (if any). This is more consistent with what is done by other macros like AM_PROG_UPC or AC_PROG_CC. * NEWS: Update. * t/vala-headers.sh: Adjust, so that the test is only skipped of the vala compiler is too old or the required PKG_CHECK_MODULES third-party macro is not found by aclocal, and not if a generic error happens in the configure script. * t/vala-libs.sh: Likewise. * t/vala2.sh: Likewise. * t/vala3.sh: Likewise. * t/vala5.sh: Likewise. * t/vala-vpath.sh: Likewise (but don't check for the potential error with PKG_CHECK_MODULES, as that macro is not used in any way here). * t/vala4.sh: Adjust, to avoid the new semantic causing this test to skip instead of failing. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/vala2.sh')
-rwxr-xr-xt/vala2.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/vala2.sh b/t/vala2.sh
index 4ed1c79e7..cf52c5044 100755
--- a/t/vala2.sh
+++ b/t/vala2.sh
@@ -56,7 +56,9 @@ $ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-./configure || skip_ "configure failure"
+grep PKG_CHECK_MODULES configure && skip_ "pkg-config m4 macros not found"
+
+./configure
$MAKE
# Test rebuild rules.