1
AC_DEFUN([SHAMROCK_FIND_MONO_1_0_COMPILER],
3
SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs)
6
AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER],
8
SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs)
11
AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME],
13
SHAMROCK_FIND_PROGRAM_OR_BAIL(MONO, mono)
16
AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE],
18
PKG_CHECK_MODULES(MONO_MODULE, mono >= $1)
21
AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE_NOBAIL],
23
PKG_CHECK_MODULES(MONO_MODULE, mono >= $1,
24
HAVE_MONO_MODULE=yes, HAVE_MONO_MODULE=no)
25
AC_SUBST(HAVE_MONO_MODULE)
28
AC_DEFUN([SHAMROCK_CHECK_LINQ_FLAG],
30
AC_MSG_CHECKING([for LINQ flag for mcs])
31
if $PKG_CONFIG --atleast-version=1.9 mono ; then
32
AC_MSG_RESULT([none needed])
35
AC_MSG_RESULT([-langversion:linq])
36
MCS_LINQ_FLAG=-langversion:linq
38
AC_SUBST(MCS_LINQ_FLAG)
41
AC_DEFUN([_SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES],
43
for asm in $(echo "$*" | cut -d, -f2- | sed 's/\,/ /g')
45
AC_MSG_CHECKING([for Mono $1 GAC for $asm.dll])
47
-e "$($PKG_CONFIG --variable=libdir mono)/mono/$1/$asm.dll" -o \
48
-e "$($PKG_CONFIG --variable=prefix mono)/lib/mono/$1/$asm.dll"; \
50
AC_MSG_RESULT([found])
52
AC_MSG_RESULT([not found])
53
AC_MSG_ERROR([missing reqired Mono $1 assembly: $asm.dll])
58
AC_DEFUN([SHAMROCK_CHECK_MONO_1_0_GAC_ASSEMBLIES],
60
_SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES(1.0, $*)
63
AC_DEFUN([SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES],
65
_SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES(2.0, $*)