"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "m4/vala.m4" between
automake-1.16.2.tar.xz and automake-1.16.3.tar.xz

About: GNU Automake is a Makefile generator (input Makefile.am, output Makefile.in; intended for use with autoconf).

vala.m4  (automake-1.16.2.tar.xz):vala.m4  (automake-1.16.3.tar.xz)
# Autoconf support for the Vala compiler # Autoconf support for the Vala compiler
# Copyright (C) 2008-2020 Free Software Foundation, Inc. # Copyright (C) 2008-2020 Free Software Foundation, Inc.
# #
# This file is free software; the Free Software Foundation # This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it, # gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved. # with or without modifications, as long as this notice is preserved.
# Check whether the Vala compiler exists in $PATH. If it is found, the # Search for a Vala compiler in PATH. If it is found, the variable VALAC is
# variable VALAC is set pointing to its absolute path. Otherwise, it is # set to point to it. Otherwise, it is simply set to 'valac'. This macro
# simply set to 'valac'. # takes three optional arguments. The first argument, if present, is the
# Optionally a minimum release number of the compiler can be requested. # minimum version of the Vala API required to compile this package. For Vala
# If the ACTION-IF-FOUND parameter is given, it will be run if a proper # releases, this is the same as the major and minor release number; e.g., when
# Vala compiler is found. # `valac --version' reports 0.48.7, `valac --api-version' reports 0.48. If a
# Similarly, if the ACTION-IF-FOUND is given, it will be run if no proper # compiler is found and satisfies MINIMUM-VERSION, then ACTION-IF-FOUND is run
# Vala compiler is found. It defaults to simply print a warning about the # (this defaults to do nothing). Otherwise, ACTION-IF-NOT-FOUND is run. If
# situation, but otherwise proceeding with the configuration. # ACTION-IF-NOT-FOUND is not specified, the default value is to print a
# warning in case no compiler is found, or if a too-old version of the
# compiler is found.
# #
# AM_PROG_VALAC([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # AM_PROG_VALAC([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
AC_DEFUN([AM_PROG_VALAC], AC_DEFUN([AM_PROG_VALAC],
[AC_PATH_PROG([VALAC], [valac], [valac]) [AC_PATH_PROG([VALAC], [valac], [valac])
AS_IF([test "$VALAC" != valac && test -n "$1"], AS_IF([test "$VALAC" != valac && test -n "$1"],
[AC_MSG_CHECKING([whether $VALAC is at least version $1]) [AC_MSG_CHECKING([whether $VALAC supports at least API version $1])
am__vala_version=`$VALAC --version | sed 's/Vala *//'` am__vala_version=`$VALAC --api-version`
AS_VERSION_COMPARE([$1], ["$am__vala_version"], AS_VERSION_COMPARE([$1], ["$am__vala_version"],
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no]) [AC_MSG_RESULT([no])
VALAC=valac])]) VALAC=valac])])
if test "$VALAC" = valac; then if test "$VALAC" = valac; then
m4_default([$3], m4_default([$3],
[AC_MSG_WARN([no proper vala compiler found]) [AC_MSG_WARN([Vala compiler not found or too old])
AC_MSG_WARN([you will not be able to compile vala source files])]) AC_MSG_WARN([you will not be able to compile Vala source files])])
else else
m4_default([$2], [:]) m4_default([$2], [:])
fi]) fi])
 End of changes. 3 change blocks. 
13 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)