1496
1496
AC_SUBST([am__untar])
1497
1497
]) # _AM_PROG_TAR
1499
# Autoconf support for the Vala compiler
1501
# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
1503
# This file is free software; the Free Software Foundation
1504
# gives unlimited permission to copy and/or distribute it,
1505
# with or without modifications, as long as this notice is preserved.
1509
# Check whether the Vala compiler exists in `PATH'. If it is found, the
1510
# variable VALAC is set. Optionally a minimum release number of the
1511
# compiler can be requested.
1513
# AM_PROG_VALAC([MINIMUM-VERSION])
1514
# --------------------------------
1515
AC_DEFUN([AM_PROG_VALAC],
1516
[AC_PATH_PROG([VALAC], [valac], [])
1517
AS_IF([test -z "$VALAC"],
1518
[AC_MSG_WARN([No Vala compiler found. You will not be able to compile .vala source files.])],
1519
[AS_IF([test -n "$1"],
1520
[AC_MSG_CHECKING([$VALAC is at least version $1])
1521
am__vala_version=`$VALAC --version | sed 's/Vala *//'`
1522
AS_VERSION_COMPARE([$1], ["$am__vala_version"],
1523
[AC_MSG_RESULT([yes])],
1524
[AC_MSG_RESULT([yes])],
1525
[AC_MSG_RESULT([no])
1526
AC_MSG_ERROR([Vala $1 not found.])])])])
1499
1529
m4_include([m4/gtk-doc.m4])
1500
1530
m4_include([m4/intltool.m4])
1501
1531
m4_include([m4/libtool.m4])