[m-rev.] diff: Add the other Mono C# compiler names to the configure script

Peter Ross pro at missioncriticalit.com
Mon Jul 16 18:48:01 AEST 2012


On Mon, Jul 16, 2012 at 12:25:26PM +1000, Julien Fischer wrote:
> 
> On Sun, 15 Jul 2012, Peter Ross wrote:
> 
> >===================================================================
> >
> >
> >Estimated hours taken: 0.1
> >Branches: main, 11.07
> >
> >m4/mercury.m4:
> >	Add the other Mono C# compiler names to the configure script.
> >
> >
> You also need to update the invocation of AC_PATH_PROGs about 14 lines
> or so down.
> 

===================================================================


Estimated hours taken: 1
Branches: main, 11.07

m4/mercury.m4:
	Add missing places to check for the other names of the mono C# compiler.

Index: m4/mercury.m4
===================================================================
RCS file: /home/mercury1/repository/mercury/m4/mercury.m4,v
retrieving revision 1.8
diff -u -r1.8 mercury.m4
--- m4/mercury.m4	14 Jul 2012 20:57:29 -0000	1.8
+++ m4/mercury.m4	16 Jul 2012 08:41:54 -0000
@@ -267,7 +267,7 @@
         then
             AC_MSG_WARN([$CANDIDATE_CSC is not the Microsoft C sharp compiler])
-            AC_PATH_PROGS([CSC], [gmcs cscc])
+            AC_PATH_PROGS([CSC], [mcs dmcs gmcs cscc])
             CSC=`basename "$CSC"`
         else
             CSC="$CANDIDATE_CSC"
@@ -284,6 +284,14 @@
         CSHARP_COMPILER_TYPE=microsoft
     ;;
 
+    mcs*)
+        CSHARP_COMPILER_TYPE=mono
+    ;;
+
+    dmcs*)
+        CSHARP_COMPILER_TYPE=mono
+    ;;
+
     gmcs*)
         CSHARP_COMPILER_TYPE=mono
     ;;

--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list