[longomatch] use only one variable for the compiler check



commit 1bd36cddb5ca651b427f4730d27b2b4e6718b878
Author: Julian Taylor <jtaylor debian googlemail com>
Date:   Thu May 26 01:21:01 2011 +0200

    use only one variable for the compiler check

 configure.ac |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0954c83..19c5432 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,8 +50,9 @@ AM_GLIB_GNU_GETTEXT
 dnl Mono and C# compiler
 dnl Check first for a 4.0 compiler or than fallback to 2.0
 SHAMROCK_CHECK_MONO_MODULE(2.4.0)
-AC_PATH_PROG(DMCS, dmcs, no)
-	if test "x$DMCS" = "xno"; then
+AC_PATH_PROG(MCS, dmcs, no)
+	if test "x$MCS" = "xno"; then
+		unset ac_cv_path_MCS
 		SHAMROCK_FIND_MONO_2_0_COMPILER
 		SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([	
 			System.Data
@@ -59,7 +60,7 @@ AC_PATH_PROG(DMCS, dmcs, no)
 			Mono.Posix
 		])
 	else
-		AC_SUBST(MCS, ["$DMCS"])
+		AC_SUBST(MCS, ["$MCS"])
 		SHAMROCK_CHECK_MONO_4_0_GAC_ASSEMBLIES([	
 			System.Data
 			Mono.Cairo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]