[easytag/wip/easytag-next: 4/4] Avoid use of AC_CYGWIN and AC_MINGW32
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/easytag-next: 4/4] Avoid use of AC_CYGWIN and AC_MINGW32
- Date: Wed, 9 Jan 2013 21:37:46 +0000 (UTC)
commit 4d429eecb4a011cc361b778cf912354ed911da76
Author: David King <amigadave amigadave com>
Date: Sat Dec 8 12:34:12 2012 +0000
Avoid use of AC_CYGWIN and AC_MINGW32
Use AC_CANONICAL_HOST and AS_CASE instead.
configure.ac | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c347e81..d4bc5b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,11 +34,17 @@ AC_PROG_CXX
AC_PROG_CXXCPP
PKG_PROG_PKG_CONFIG([0.24])
-dnl -------------------------
-dnl Handle mingw32 or cygwin
-dnl -------------------------
-AC_MINGW32
-AC_CYGWIN
+dnl -------------------------------
+dnl Handle cross-compiling with mingw32.
+dnl -------------------------------
+AC_CANONICAL_HOST
+AC_MSG_CHECKING([whether to build with mingw32 for a Windows host])
+AS_CASE([$host_os],
+ [*mingw*], [windows_host=yes],
+ [windows_host=no])
+AC_MSG_RESULT([$windows_host])
+
+AM_CONDITIONAL([WINDOWS_HOST], [test "x$windows_host" = "xyes"])
dnl -------------------------------
dnl Configure switches.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]