~ps-jenkins/account-plugins/trusty-proposed

« back to all changes in this revision

Viewing changes to acinclude.m4

  • Committer: Alberto Mardegan
  • Date: 2012-03-14 11:55:04 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: alberto.mardegan@canonical.com-20120314115504-zxziwnxkivb4rk8c
Add Facebook and Google plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Mode: m4; indent-tabs-mode: nil; tab-width: 2 -*-
 
2
#
 
3
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
 
4
#
 
5
# This file is free software; the Free Software Foundation
 
6
# gives unlimited permission to copy and/or distribute it,
 
7
# with or without modifications, as long as this notice is preserved.
 
8
 
 
9
# serial 4
 
10
 
 
11
# Check whether the Vala compiler exists in `PATH'. If it is found, the
 
12
# variable VALAC is set. Optionally a minimum release number of the
 
13
# compiler can be requested.
 
14
#
 
15
# OVERRIDE_PROG_VALAC([MINIMUM-VERSION])
 
16
# --------------------------------
 
17
AC_DEFUN([OVERRIDE_PROG_VALAC],
 
18
[AC_PATH_PROGS([VALAC], [$2], [])
 
19
 AS_IF([test -z "$VALAC"],
 
20
   [AC_MSG_ERROR([No Vala compiler found.])],
 
21
   [AS_IF([test -n "$1"],
 
22
      [AC_MSG_CHECKING([$VALAC is at least version $1])
 
23
       am__vala_version=`$VALAC --version | sed 's/Vala  *//'`
 
24
       AS_VERSION_COMPARE([$1], ["$am__vala_version"],
 
25
         [AC_MSG_RESULT([yes])],
 
26
         [AC_MSG_RESULT([yes])],
 
27
         [AC_MSG_RESULT([no])
 
28
          AC_MSG_ERROR([Vala $1 not found.])])])])
 
29
])