mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-05-29 20:57:10 +00:00
build: Rework handling of missing C# compiler in configure.ac
Only print the error in one place. Also add some comments.
This commit is contained in:
parent
85443823e9
commit
a531510431
|
@ -136,25 +136,23 @@ if test "x$SDCHECK" = "xSystem.Drawing"; then
|
|||
else
|
||||
enable_dotnet=no
|
||||
fi
|
||||
dnl End of has_mono = true
|
||||
else
|
||||
dnl Check for .NET Framework
|
||||
AC_PATH_PROG(CSC, csc.exe, no)
|
||||
GACUTIL_FLAGS=
|
||||
GENERATED_SOURCES=generated\\\\*.cs
|
||||
AM_CONDITIONAL(ENABLE_THREADCHECK, false)
|
||||
enable_dotnet=yes
|
||||
|
||||
if test x$CSC = "xno"; then
|
||||
AC_MSG_ERROR([You need to install either mono (>=$MONO_REQUIRED_VERSION) or .Net])
|
||||
else
|
||||
RUNTIME=
|
||||
LIB_PREFIX=
|
||||
LIB_SUFFIX=.dylib
|
||||
fi
|
||||
fi
|
||||
|
||||
CS="C#"
|
||||
if test "x$CSC" = "xno" ; then
|
||||
AC_MSG_ERROR([No $CS compiler found])
|
||||
AC_MSG_ERROR([No $CS compiler found. You need to install either mono (>=$MONO_REQUIRED_VERSION) or .Net])
|
||||
fi
|
||||
|
||||
AC_SUBST(RUNTIME)
|
||||
|
|
Loading…
Reference in a new issue