[clutter] build: Use AC_CANONICAL_HOST



commit a5c87c74a6e8f1590130b95720e19e82d48d86e4
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.

 configure.ac |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 66718a3..f7b4696 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]