[m-rev.] for review: configure .NET support in bindist configuration.

Tyson Dowd trd at cs.mu.OZ.AU
Tue Mar 13 16:28:46 AEDT 2001


Hi,

Found this problem while using the 0.10 bindists on windows.

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


Estimated hours taken: 0.4

bindist/bindist.configure.in:
	Look for the .NET SDK on the machine which installs the bindist.
	If it is present, substitute the appropriate configuration
	variables, so that mmake can correctly build .NET components on this
	system.


Index: bindist/bindist.configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/bindist/bindist.configure.in,v
retrieving revision 1.30
diff -u -r1.30 bindist.configure.in
--- bindist/bindist.configure.in	2001/01/24 00:57:18	1.30
+++ bindist/bindist.configure.in	2001/03/13 05:17:28
@@ -198,6 +198,28 @@
 AC_PROG_CC
 AC_SUBST(CC)
 #-----------------------------------------------------------------------------#
+# Microsoft.NET configuration (the bindist may be installed on a machine
+# that supports .NET even if it was built on a machine that doesn't).
+# 
+AC_PATH_PROG(ILASM, ilasm)
+
+AC_MSG_CHECKING(for Microsoft.NET Framework SDK)
+AC_CACHE_VAL(mercury_cv_microsoft_dotnet, [
+if test "$ILASM" != ""; then
+	changequote(<<,>>) 
+	MS_DOTNET_SDK_DIR=`expr "$ILASM" : '\(.*\)[/\\]*[bB]in[/\\]*ilasm'`
+	changequote([,]) 
+	mercury_cv_microsoft_dotnet="yes"
+else
+	MS_DOTNET_SDK_DIR=""
+	mercury_cv_microsoft_dotnet="no"
+fi
+])
+AC_MSG_RESULT($mercury_cv_microsoft_dotnet)
+ILASM=`basename "$ILASM"`
+
+AC_SUBST(ILASM)
+AC_SUBST(MS_DOTNET_SDK_DIR)
 
 # The following allows us to share some subroutines between the
 # `ml' and `mgnuc' scripts.


-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list