|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
dnl vala.m4
|
|
Packit |
712bc5 |
dnl
|
|
Packit |
712bc5 |
dnl Copyright 2010 Marc-Andre Lureau
|
|
Packit |
712bc5 |
dnl Copyright 2011 Rodney Dawes <dobey.pwns@gmail.com>
|
|
Packit |
712bc5 |
dnl
|
|
Packit |
712bc5 |
dnl This library is free software; you can redistribute it and/or
|
|
Packit |
712bc5 |
dnl modify it under the terms of the GNU Lesser General Public
|
|
Packit |
712bc5 |
dnl License as published by the Free Software Foundation; either
|
|
Packit |
712bc5 |
dnl version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
712bc5 |
dnl
|
|
Packit |
712bc5 |
dnl This library is distributed in the hope that it will be useful,
|
|
Packit |
712bc5 |
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
712bc5 |
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
712bc5 |
dnl Lesser General Public License for more details.
|
|
Packit |
712bc5 |
dnl
|
|
Packit |
712bc5 |
dnl You should have received a copy of the GNU Lesser General Public
|
|
Packit |
712bc5 |
dnl License along with this library; if not, write to the Free Software
|
|
Packit |
712bc5 |
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
dnl dropped everything but VALA_PROG_VAPIGEN - Jens Georg <mail@jensge.org>
|
|
Packit |
712bc5 |
|
|
Packit |
712bc5 |
# Check whether the Vala API Generator exists in `PATH'. If it is found,
|
|
Packit |
712bc5 |
# the variable VAPIGEN is set. Optionally a minimum release number of the
|
|
Packit |
712bc5 |
# generator can be requested.
|
|
Packit |
712bc5 |
#
|
|
Packit |
712bc5 |
# VALA_PROG_VAPIGEN([MINIMUM-VERSION])
|
|
Packit |
712bc5 |
# ------------------------------------
|
|
Packit |
712bc5 |
AC_DEFUN([GUPNP_PROG_VAPIGEN],
|
|
Packit |
712bc5 |
[AC_PATH_PROG([VAPIGEN], [vapigen], [])
|
|
Packit |
712bc5 |
AS_IF([test -z "$VAPIGEN"],
|
|
Packit |
712bc5 |
[AC_MSG_WARN([No Vala API Generator found. You will not be able to generate .vapi files.])],
|
|
Packit |
712bc5 |
[AS_IF([test -n "$1"],
|
|
Packit |
712bc5 |
[AC_MSG_CHECKING([$VAPIGEN is at least version $1])
|
|
Packit |
712bc5 |
am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator *//'`
|
|
Packit |
712bc5 |
AS_VERSION_COMPARE([$1], ["$am__vapigen_version"],
|
|
Packit |
712bc5 |
[AC_MSG_RESULT([yes])],
|
|
Packit |
712bc5 |
[AC_MSG_RESULT([yes])],
|
|
Packit |
712bc5 |
[AC_MSG_RESULT([no])
|
|
Packit |
712bc5 |
AC_MSG_WARN([Vala API Generator $1 not found.])
|
|
Packit |
712bc5 |
VAPIGEN=""
|
|
Packit |
712bc5 |
])])])
|
|
Packit |
712bc5 |
])
|