[vinagre] Check whether building for a Windows host
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Check whether building for a Windows host
- Date: Fri, 1 Jul 2011 18:50:35 +0000 (UTC)
commit 016cd7de3a23de1680bec7f882216ef69a4e9434
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Fri Jul 1 20:40:14 2011 +0200
Check whether building for a Windows host
Using AC_CANONICAL_HOST, check if Vinagre is being built for a Windows
host, and select the correct GIO backend accordingly.
Signed-off-by: David King <amigadave amigadave com>
configure.ac | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7ba9746..7bb3039 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,15 @@ GNOME_MAINTAINER_MODE_DEFINES
LT_PREREQ([2.2.6])
LT_INIT([disable-static])
+# Libtool requires this, but it is only expanded once anyway.
+AC_CANONICAL_HOST
+
+AC_MSG_CHECKING([whether to build for a Windows host])
+AS_CASE([$host_os],
+ [*mingw*|*cygwin*], [gio_os=gio-windows-2.0; windows_host=yes],
+ [gio_os=gio-unix-2.0; windows_host=no])
+AC_MSG_RESULT([$windows_host])
+
PKG_PROG_PKG_CONFIG([0.16])
AC_PROG_SED
@@ -29,7 +38,7 @@ AC_DEFINE_UNQUOTED([VINAGRE_ABI_VERSION], ["$VINAGRE_ABI_VERSION"], [Vinagre ABI
AC_SUBST([PLUGIN_LIBTOOL_FLAGS], ["-avoid-version"])
AC_SUBST([VINAGRE_PLUGINS_LIBS_DIR], ["$libdir/vinagre-$VINAGRE_ABI_VERSION/plugins"])
-GLIB_DEPS="glib-2.0 >= 2.25.11 gio-unix-2.0 >= 2.25.11"
+GLIB_DEPS="glib-2.0 >= 2.25.11 $gio_os >= 2.25.11"
GTHREAD_DEPS="gthread-2.0 >= 2.0.0"
GTK_DEPS="gtk+-3.0 >= 3.0.3"
GTK_VNC_DEPS="gtk-vnc-2.0 >= 0.4.3"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]