[chronojump] Use CSC c-sharp compilerZ and fallback to gmcs or gmcs2 if not found
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [chronojump] Use CSC c-sharp compilerZ and fallback to gmcs or gmcs2 if not found
- Date: Fri, 4 Sep 2009 19:35:13 +0000 (UTC)
commit 3fe26903369267eb5dc847c60dba6c391781930f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 4 21:34:22 2009 +0200
Use CSC c-sharp compilerZ and fallback to gmcs or gmcs2 if not found
configure.ac | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d5d6bac..6856eb5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,17 +17,22 @@ fi
AC_PROG_INSTALL
dnl Check for C# compiler
-AC_PATH_PROG(MCS, gmcs, no)
-if test "x$MCS" = "xno"; then
- AC_PATH_PROG(MCS2, gmcs2,no)
- if test "x$MCS2" = "xno"; then
- AC_MSG_ERROR([gmcs not found])
+AC_PATH_PROG(CSC, csc, no)
+if test "x$CSC" = "xno"; then
+ AC_PATH_PROG(MCS, gmcs, no)
+ if test "x$MCS" = "xno"; then
+ AC_PATH_PROG(MCS2, gmcs2,no)
+ if test "x$MCS2" = "xno"; then
+ AC_MSG_ERROR([You need to install a C-sharp compiler])
+ else
+ AC_SUBST(GMCS,[gmcs2])
+ fi
+
else
- AC_SUBST(GMCS,[gmcs2])
+ AC_SUBST(GMCS,[gmcs])
fi
-
else
- AC_SUBST(GMCS,[gmcs])
+ AC_SUBST(GMCS,[csc])
fi
dnl Check for gettext utils
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]