# Autoconf support for the Vala compiler # Copyright (C) 2008-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the Vala compiler exists in $PATH. If it is found, the # variable VALAC is set pointing to its absolute path. Otherwise, it is # simply set to 'valac'. # Optionally a minimum release number of the compiler can be requested. # If the ACTION-IF-FOUND parameter is given, it will be run if a proper # Vala compiler is found. # Similarly, if the ACTION-IF-FOUND is given, it will be run if no proper # Vala compiler is found. It defaults to simply print a warning about the # situation, but otherwise proceeding with the configuration. # # AM_PROG_VALAC([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # -------------------------------------------------------------------------- AC_DEFUN([AM_PROG_VALAC], [AC_PATH_PROG([VALAC], [valac], [valac]) AS_IF([test "$VALAC" != valac && test -n "$1"], [AC_MSG_CHECKING([whether $VALAC is at least version $1]) am__vala_version=`$VALAC --version | sed 's/Vala *//'` AS_VERSION_COMPARE([$1], ["$am__vala_version"], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) VALAC=valac])]) if test "$VALAC" = valac; then m4_default([$3], [AC_MSG_WARN([no proper vala compiler found]) AC_MSG_WARN([you will not be able to compile vala source files])]) else m4_default([$2], [:]) fi])
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
internal | Folder | 0755 |
|
|
amversion.m4 | File | 1.58 KB | 0644 |
|
ar-lib.m4 | File | 1.98 KB | 0644 |
|
as.m4 | File | 767 B | 0644 |
|
auxdir.m4 | File | 2.37 KB | 0644 |
|
cond-if.m4 | File | 1.01 KB | 0644 |
|
cond.m4 | File | 1.01 KB | 0644 |
|
depend.m4 | File | 7.11 KB | 0644 |
|
depout.m4 | File | 2.93 KB | 0644 |
|
dmalloc.m4 | File | 906 B | 0644 |
|
extra-recurs.m4 | File | 738 B | 0644 |
|
gcj.m4 | File | 649 B | 0644 |
|
init.m4 | File | 5.78 KB | 0644 |
|
install-sh.m4 | File | 677 B | 0644 |
|
lead-dot.m4 | File | 641 B | 0644 |
|
lex.m4 | File | 689 B | 0644 |
|
lispdir.m4 | File | 2.1 KB | 0644 |
|
maintainer.m4 | File | 1.62 KB | 0644 |
|
make.m4 | File | 1.3 KB | 0644 |
|
minuso.m4 | File | 1.25 KB | 0644 |
|
missing.m4 | File | 1.13 KB | 0644 |
|
mkdirp.m4 | File | 1.32 KB | 0644 |
|
obsolete.m4 | File | 1008 B | 0644 |
|
options.m4 | File | 1.06 KB | 0644 |
|
python.m4 | File | 8.87 KB | 0644 |
|
runlog.m4 | File | 718 B | 0644 |
|
sanity.m4 | File | 2.58 KB | 0644 |
|
silent.m4 | File | 1.87 KB | 0644 |
|
strip.m4 | File | 1.36 KB | 0644 |
|
substnot.m4 | File | 675 B | 0644 |
|
tar.m4 | File | 4.37 KB | 0644 |
|
upc.m4 | File | 836 B | 0644 |
|
vala.m4 | File | 1.62 KB | 0644 |
|