[libgda/LIBGDA_5.2] Improvements to detect dependencies for Vala bindings



commit d4c2788ce66b58deec48052732b2a0c54ff88562
Author: Daniel Espinosa <esodan gmail com>
Date:   Sun Sep 30 12:08:03 2018 -0500

    Improvements to detect dependencies for Vala bindings

 NEWS         |  4 ++++
 configure.ac | 16 +++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/NEWS b/NEWS
index dbe238d9b..a7c0bdb99 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,8 @@
 
+libgda-5.2.6
+ - Fixed compilation on MacOS
+ - Improvements to Continuous Integration
+
 libgda 5.2.5 2018-09-25
  - GdaConnection has removed the use of g_object_weak_*, improving
    multi-threading behaviour
diff --git a/configure.ac b/configure.ac
index c99897e89..eb945caae 100644
--- a/configure.ac
+++ b/configure.ac
@@ -524,9 +524,9 @@ dnl ******************************
 AC_PATH_PROG([VALAC], [valac], [no])
 
 AC_PATH_PROG(VAPIGEN, [vapigen], [no])
-if test "x$VAPIGEN" = "xno"
+if test "x$VAPIGEN" = "xno" -a "x$enable_vala" = yes
 then
-       enable_vala_ext = "no"
+       AC_MSG_ERROR([GDA Vala bindings is requested but vapigen is not found])
 fi
 AM_CONDITIONAL(ENABLE_VAPIGEN, test "x$VAPIGEN" != "xno")
 
@@ -553,17 +553,23 @@ then
        AC_MSG_ERROR([Vala Bindigs are requested but Vala's compiler is not found])
 fi
 
-if test "x$enable_vala" != "xyes" -a "x$enable_vala_ext" = "xyes" -a "x$found_valac" != "xno"
+if test "x$enable_vala" != "xyes" -a "x$enable_vala_ext" = "xyes" -a "x$VALAC" = "xno"
 then
-       AC_MSG_ERROR([Vala Extensions (Utility GObject clases written in Vala) is requested but Vala Bindings 
is disable. Use --enable-vala])
+       AC_MSG_ERROR([Vala Extensions (Utility GObject clases written in Vala) is requested but Vala's 
compiler is not present])
 fi
 
 dnl Check for libgee
+found_gee="xyes"
 GEE_REQUIRED="0.8.0"
-PKG_CHECK_MODULES(GEE, gee-0.8 >= $GEE_REQUIRED,[],enable_vala_ext=no)
+PKG_CHECK_MODULES(GEE, gee-0.8 >= $GEE_REQUIRED,[],found_gee=no)
 AC_SUBST(GEE_CFLAGS)
 AC_SUBST(GEE_LIBS)
 
+if test "x$enable_vala_ext" = "xyes" -a "x$found_gee" = "xno"
+then
+       AC_MSG_ERROR([Vala Extensions (Utility GObject clases written in Vala) is requested but GEE library 
development is not present])
+fi
+
 AM_CONDITIONAL(ENABLE_VALA_EXTENSIONS, test "x$enable_vala_ext" = "xyes")
 
 dnl ******************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]