blob: a3a9330ef31db6a53bd4d657eb604bb2b7da4114 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001From 35267d995a81263b98f0ad56399ac3e30f9cf152 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Tue, 30 Apr 2019 09:48:08 +0200
4Subject: [PATCH] configure.ac: Detect vala-api version if not set explicitly
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Upstream-Status: Pending
10
11Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
12---
13 configure.ac | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/configure.ac b/configure.ac
17index 9bf4230..c489385 100644
18--- a/configure.ac
19+++ b/configure.ac
20@@ -38,7 +38,7 @@ AC_ARG_WITH([vala-api],
21 AC_HELP_STRING([--with-vala-api=VERSION],
22 [Use Vala API version VERSION]),
23 [vala_api=$withval],
24- [vala_api='0.16'])
25+ [vala_api=`$PKG_CONFIG --variable=vapidir_versioned vapigen | sed -e 's:.*vala-::' -e s:/vapi::`])
26 M8T_CHECK_VALA([$vala_api])
27 AC_ARG_WITH([default-vapidir],
28 AC_HELP_STRING([--with-default-vapidir],
29--
302.20.1
31