34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
|
From b0adfbe1197ad97f39e5db583fdc63f78c3fbff3 Mon Sep 17 00:00:00 2001
|
||
|
From: Dominique Leuenberger <dimstar@opensuse.org>
|
||
|
Date: Tue, 6 Aug 2013 11:17:45 +0200
|
||
|
Subject: [PATCH] build: add support for libvala-0.22
|
||
|
|
||
|
To make maintenance a little bit easier in the future, rewrite the
|
||
|
detection to use foreach instead of nesting the checks.
|
||
|
---
|
||
|
configure.ac | 8 +++-----
|
||
|
1 file changed, 3 insertions(+), 5 deletions(-)
|
||
|
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index 41c482d..f7a9c18 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -310,11 +310,9 @@ if test "$user_disabled_vala" = 1; then
|
||
|
else
|
||
|
AC_MSG_RESULT(no)
|
||
|
AC_MSG_CHECKING(if libvala is available)
|
||
|
- PKG_CHECK_EXISTS([ libvala-0.20 ],
|
||
|
- [ valaver="-0.20" ],
|
||
|
- [ PKG_CHECK_EXISTS([ libvala-0.18 ],
|
||
|
- [ valaver="-0.18" ],
|
||
|
- [ valaver="" ])
|
||
|
+ m4_foreach([VERSION], [[0.18], [0.20], [0.22]],
|
||
|
+ [PKG_CHECK_EXISTS([ libvala-VERSION ],
|
||
|
+ [ valaver="-VERSION" ])
|
||
|
])
|
||
|
if test "x$valaver" != "x"; then
|
||
|
AC_MSG_RESULT(yes)
|
||
|
--
|
||
|
1.7.10.4
|
||
|
|