From 841369ba5c77e58a6fa19723b33d04720a7d4fec Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Thu, 05 Feb 2009 09:44:50 +0000 Subject: Make session manager code compile for w32. These changes have been taken 2009-02-05 Carlos Garcia Campos * configure.ac: * cut-n-paste/smclient/Makefile.am: * cut-n-paste/smclient/eggdesktopfile.c: * cut-n-paste/smclient/eggsmclient-win32.c: * shell/main.c: Make session manager code compile for w32. These changes have been taken from upstream libegg. Based on patch by Hib Eris. See bug #339172. svn path=/trunk/; revision=3416 --- (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c04a07b..e66b125 100644 --- a/configure.ac +++ b/configure.ac @@ -72,6 +72,20 @@ AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) AM_GLIB_GNU_GETTEXT +dnl check for win32 platform +AC_MSG_CHECKING([for Win32 platform]) +case "$host" in + *-*-mingw*|*-*-cygwin*) + platform_win32=yes + AC_CHECK_TOOL(WINDRES, windres) + ;; + *) + platform_win32=no + ;; +esac +AC_MSG_RESULT([$platform_win32]) +AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") + dnl Check dependencies # LIB_CFLAGS for helpers and generic widgets. (libdocument, cut-and-paste) -- cgit v0.9.1