diff options
author | Pacho Ramos <pacho@condmat1.ciencias.uniovi.es> | 2012-10-02 17:31:23 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2012-10-02 17:31:23 +0100 |
commit | ba271339a668d19c3b4d2926624d033ff1c608d1 (patch) | |
tree | 6f1b29830351aafa340b24bb3ad5f6c3ac983eed | |
parent | 032ef849de683f1a162d719b05ddb13f10625054 (diff) | |
download | colord-gtk-ba271339a668d19c3b4d2926624d033ff1c608d1.tar.gz |
Fix automatic dep on vala
Signed-off-by: Richard Hughes <richard@hughsie.com>
-rw-r--r-- | configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 061f6a0..0977d89 100644 --- a/configure.ac +++ b/configure.ac @@ -134,7 +134,9 @@ PKG_CHECK_MODULES(LCMS, lcms2 >= 2.2) dnl --------------------------------------------------------------------------- dnl - Build VALA support dnl --------------------------------------------------------------------------- -if test x$found_introspection != xno; then +AC_ARG_ENABLE(vala, AS_HELP_STRING([--enable-vala],[build vala bindings]), + enable_vala=$enableval,enable_vala=no) +if test x$found_introspection != xno -a x$enable_vala != xno; then AC_PATH_PROG([VAPIGEN], [vapigen], []) if test "x$VAPIGEN" = "x"; then has_vapigen="no" @@ -144,7 +146,9 @@ if test x$found_introspection != xno; then fi else has_vapigen="no" - AC_MSG_WARN([Not introspection found, will not build Vala binding]) + if test x$found_introspection = xno; then + AC_MSG_WARN([introspection not found, will not build Vala binding]) + fi fi AM_CONDITIONAL(HAVE_VAPIGEN, [test "x$has_vapigen" = "xyes"]) |