Fix for detecting mono with non-gnu sed (for Solaris)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6531 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d7e5a0dc45
commit
8bd857fcc7
1 changed files with 6 additions and 3 deletions
|
|
@ -1341,15 +1341,18 @@ if test -z "$CSHARPBIN" ; then
|
||||||
# Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version'
|
# Check that mcs is the C# compiler and not the Unix mcs utility by examining the output of 'mcs --version'
|
||||||
# The Mono compiler should emit: Mono C# compiler version a.b.c.d
|
# The Mono compiler should emit: Mono C# compiler version a.b.c.d
|
||||||
csharp_version_raw=`(mcs --version) 2>/dev/null`
|
csharp_version_raw=`(mcs --version) 2>/dev/null`
|
||||||
csharp_version_searched=`(mcs --version | sed -n "/C#\|Mono/p") 2>/dev/null`
|
csharp_version_searched=`(mcs --version | sed -e "/C#/b" -e "/Mono/b" -e d) 2>/dev/null` # return string if contains 'Mono' or 'C#'
|
||||||
CSHARPCOMPILER="";
|
CSHARPCOMPILER="";
|
||||||
if test -n "$csharp_version_raw" ; then
|
if test -n "$csharp_version_raw" ; then
|
||||||
if test "$csharp_version_raw" = "$csharp_version_searched" ; then
|
if test "$csharp_version_raw" = "$csharp_version_searched" ; then
|
||||||
CSHARPCOMPILER="mcs"
|
CSHARPCOMPILER="mcs"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if test "mcs" = "$CSHARPCOMPILER" ; then
|
||||||
AC_CHECK_PROGS(CSHARPCILINTERPRETER, mono) # Mono JIT
|
AC_CHECK_PROGS(CSHARPCILINTERPRETER, mono) # Mono JIT
|
||||||
|
else
|
||||||
|
echo "mcs is not the Mono C# compiler"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
if test "csc" = "$CSHARPCOMPILER"; then
|
if test "csc" = "$CSHARPCOMPILER"; then
|
||||||
CSHARPPATHSEPARATOR="\\\\"
|
CSHARPPATHSEPARATOR="\\\\"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue