Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2015-05-06 19:38:45 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-05-06 19:38:57 +0300
commit4dbb913bf36a03b3f0490ac5f8078530bc0ae375 (patch)
treeaf90da99349471b356f7b1877e3f6559c9f379fb /main/configure.in
parent9335e1852e85be44c0b9af17bdef3527dcaf444b (diff)
[LibGit2] Test for existence of cmake and libssh2 to build git.
Diffstat (limited to 'main/configure.in')
-rw-r--r--main/configure.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/main/configure.in b/main/configure.in
index a2cb283855..34c3991891 100644
--- a/main/configure.in
+++ b/main/configure.in
@@ -120,14 +120,6 @@ MONOADDINS_REQUIRED_VERSION=0.6
GTKSHARP_REQUIRED_VERSION=2.12.8
MONODOC_REQUIRED_VERSION=1.0
-AC_PATH_PROG(CMAKE, cmake, no)
-if test "x$CMAKE" = "xno"; then
- AC_MSG_ERROR([You need to install cmake for Git support to be built])
-fi
-
-PKG_CHECK_MODULES(LIBSSH2, libssh2)
-AC_SUBST(LIBSSH2_LIBS)
-
PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
AC_SUBST(GLIB_SHARP_LIBS)
PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION)
@@ -240,6 +232,16 @@ fi
AM_CONDITIONAL(ENABLE_WINDOWSPLATFORM, [test x$enable_windowsplatform = xyes])
+if test x$enable_gnomeplatform = xyes && test x$enable_git = xyes; then
+ AC_PATH_PROG(CMAKE, cmake, no)
+ if test "x$CMAKE" = "xno"; then
+ AC_MSG_ERROR([You need to install cmake for Git support to be built])
+ fi
+
+ PKG_CHECK_MODULES(LIBSSH2, libssh2)
+ AC_SUBST(LIBSSH2_LIBS)
+fi
+
dnl Intl
ALL_LINGUAS="cs da de es fr ja pt_BR tr pl it zh_TW zh_CN ru sl ca gl pt sv nl id hu nb ko uk"
AC_SUBST(ALL_LINGUAS)