Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[configure] Add check for Mono 2.10.9 at config time

As it is said in BXC#11134, MonoDevelop depends on Mono 2.10.9 or newer
so then the configure phase should fail with a friendly error rather than
having a cryptic compiler error.
  • Loading branch information...
commit 1887798788eaad59cc1184a941406dda46262617 1 parent 4bace30
@knocte knocte authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 main/configure.in
View
16 main/configure.in
@@ -25,6 +25,22 @@ if test "x$MCS" = "x" ; then
AC_MSG_ERROR([Can't find "gmcs" in your PATH])
fi
+AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
+
+# On OSX use Mono's private copy of pkg-config if it exists
+OSX_PKG_CONFIG=/Library/Frameworks/Mono.framework/Versions/Current/bin/pkg-config
+if test -e $OSX_PKG_CONFIG; then
+ PKG_CONFIG=$OSX_PKG_CONFIG
+elif test "x$PKG_CONFIG" = "xno"; then
+ AC_MSG_ERROR([You need to install pkg-config])
+fi
+
+MONO_REQUIRED_VERSION=2.10.9
+
+if ! $PKG_CONFIG --atleast-version=$MONO_REQUIRED_VERSION mono; then
+ AC_MSG_ERROR([You need mono $MONO_REQUIRED_VERSION or newer])
+fi
+
#ensure we have the same env as when configured
AC_SUBST(PATH)
AC_SUBST(PKG_CONFIG_PATH)
Please sign in to comment.
Something went wrong with that request. Please try again.