From 6042cf869a2192d0038327a3c00c1f5a6bf7eee2 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 4 Mar 2003 22:39:12 +0000 Subject: [PATCH] detection of csharp compiler - pnet then mono then Microsoft detection of CIL interpreter - just pnet for now git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4431 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- configure.in | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/configure.in b/configure.in index 9216a312e..dd42b7da6 100644 --- a/configure.in +++ b/configure.in @@ -1090,6 +1090,48 @@ AC_SUBST(CHICKENHOME) AC_SUBST(CHICKENOPTS) AC_SUBST(CHICKENLIB) +#---------------------------------------------------------------- +# Look for csharp +#---------------------------------------------------------------- + +AC_ARG_WITH(cil-interpreter, [ --with-cil-interpreter=path Set location of CIL interpreter for CSharp],[CSHARPBIN="$withval"], [CSHARPBIN=]) +AC_ARG_WITH(csharp-compiler, [ --with-csharp-compiler=path Set location of CSharp compiler],[CSHARPCOMPILERBIN="$withval"], [CSHARPCOMPILERBIN=]) + +if test -z "$CSHARPBIN" ; then + AC_CHECK_PROGS(CSHARPCILINTERPRETER, ilrun) +else + CSHARPCILINTERPRETER="$CSHARPBIN" +fi + +if test -z "$CSHARPCOMPILERBIN" ; then + AC_CHECK_PROGS(CSHARPCOMPILER, cscc msc csc) +else + CSHARPCOMPILER="$CSHARPCOMPILERBIN" +fi + +# Cygwin requires the Windows standard (Pascal) calling convention as it is a Windows executable and not a Cygwin built executable +case $host in +*-*-cygwin* | *-*-mingw*) + if test "$GCC" = yes; then + CSHARPDYNAMICLINKING=" -Wl,--add-stdcall-alias" + else + CSHARPDYNAMICLINKING="" + fi ;; +*)CSHARPDYNAMICLINKING="";; +esac + +# CSharp on Windows platforms including Cygwin doesn't use libname.dll, rather name.dll when loading dlls +case $host in +*-*-cygwin* | *-*-mingw*) CSHARPLIBRARYPREFIX="";; +*)CSHARPLIBRARYPREFIX="lib";; +esac + + +AC_SUBST(CSHARPCILINTERPRETER) +AC_SUBST(CSHARPCOMPILER) +AC_SUBST(CSHARPDYNAMICLINKING) +AC_SUBST(CSHARPLIBRARYPREFIX) # Is this going to be used? + #---------------------------------------------------------------- # Miscellaneous #----------------------------------------------------------------