[clutter/clutter-1.6] build: Use AC_CANONICAL_HOST
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.6] build: Use AC_CANONICAL_HOST
- Date: Tue, 22 Mar 2011 17:25:27 +0000 (UTC)
commit 410a58a8562aed74d78aec3372d7fb3bcb488cfc
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Tue Mar 22 17:10:49 2011 +0000
build: Use AC_CANONICAL_HOST
Since we're checking the value of the $host variable, it's a good idea
to use the canonicalization support in autoconf.
(cherry picked from commit a5c87c74a6e8f1590130b95720e19e82d48d86e4)
Signed-off-by: Emmanuele Bassi <ebassi linux intel com>
configure.ac | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c7ee369..5e2a8f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,16 +79,17 @@ CLUTTER_LT_AGE=lt_age
CLUTTER_LT_VERSION="$CLUTTER_LT_CURRENT:$CLUTTER_LT_REV:$CLUTTER_LT_AGE"
CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION"
+AC_CANONICAL_HOST
AC_MSG_CHECKING([if building for some Win32 platform])
-case "$host" in
- *-*-mingw*|*-*-cygwin*)
- CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined"
- platform_win32=yes
- ;;
- *)
- platform_win32=no
- ;;
-esac
+AS_CASE([$host],
+ [*-*-mingw*|*-*-cygwin*],
+ [
+ CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined"
+ platform_win32=yes
+ ],
+
+ [platform_win32=no]
+)
AC_MSG_RESULT([$platform_win32])
AC_SUBST(CLUTTER_LT_VERSION)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]