PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/build/m4/shamrock/mono.m4

http://github.com/hbons/SparkleShare
m4 | 68 lines | 56 code | 12 blank | 0 comment | 0 complexity | 5297223fb3e123fd8a94258a73b8b254 MD5 | raw file
 1AC_DEFUN([SHAMROCK_FIND_MONO_1_0_COMPILER],
 2[
 3	SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, mcs)
 4])
 5
 6AC_DEFUN([SHAMROCK_FIND_MONO_2_0_COMPILER],
 7[
 8	SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, gmcs)
 9])
10
11AC_DEFUN([SHAMROCK_FIND_MONO_4_0_COMPILER],
12[
13	SHAMROCK_FIND_PROGRAM_OR_BAIL(MCS, dmcs)
14])
15
16AC_DEFUN([SHAMROCK_FIND_MONO_RUNTIME],
17[
18	SHAMROCK_FIND_PROGRAM_OR_BAIL(MONO, mono)
19])
20
21AC_DEFUN([_SHAMROCK_CHECK_MONO_MODULE],
22[
23	PKG_CHECK_MODULES(MONO_MODULE, $1 >= $2)
24])
25
26AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE],
27[
28	_SHAMROCK_CHECK_MONO_MODULE(mono, $1)
29])
30
31AC_DEFUN([SHAMROCK_CHECK_MONO2_MODULE],
32[
33	_SHAMROCK_CHECK_MONO_MODULE(mono-2, $1)
34])
35
36AC_DEFUN([_SHAMROCK_CHECK_MONO_MODULE_NOBAIL],
37[
38	PKG_CHECK_MODULES(MONO_MODULE, $2 >= $1,
39		HAVE_MONO_MODULE=yes, HAVE_MONO_MODULE=no)
40	AC_SUBST(HAVE_MONO_MODULE)
41])
42
43AC_DEFUN([SHAMROCK_CHECK_MONO_MODULE_NOBAIL],
44[
45	_SHAMROCK_CHECK_MONO_MODULE_NOBAIL(mono, $1)
46])
47
48AC_DEFUN([SHAMROCK_CHECK_MONO2_MODULE_NOBAIL],
49[
50	_SHAMROCK_CHECK_MONO_MODULE_NOBAIL(mono-2, $1)
51])
52
53AC_DEFUN([SHAMROCK_CHECK_MONO_GAC_ASSEMBLIES],
54[
55	for asm in $(echo "$*" | cut -d, -f3- | sed 's/\,/ /g')
56	do
57		AC_MSG_CHECKING([for Mono $2 GAC for $asm.dll])
58
59		eval "gacutil -l | grep '^$asm, ' &> /dev/null"
60		if test $? == 0; then
61			AC_MSG_RESULT([found])
62		else
63			AC_MSG_RESULT([not found])
64			AC_MSG_ERROR([missing required Mono $2 assembly: $asm.dll])
65		fi
66	done
67])
68