[json-glib] build: Use AC_CANONICAL_HOST
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] build: Use AC_CANONICAL_HOST
- Date: Wed, 23 Mar 2011 11:38:51 +0000 (UTC)
commit 2158cecee6fe1da8786afe2fad94d1098f879786
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Wed Mar 23 11:35:28 2011 +0000
build: Use AC_CANONICAL_HOST
Since we check for the contents of the $host variable to detect
compilation on/for win32, we should also be using the canonicalization
facilities from autoconf.
configure.ac | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6661e24..61daaa3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -62,16 +62,18 @@ JSON_LT_AGE=lt_age
JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
+AC_CANONICAL_HOST
AC_MSG_CHECKING([if building for some Win32 platform])
-case "$host" in
- *-*-mingw*|*-*-cygwin*)
- JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
- platform_win32=yes
- ;;
- *)
- platform_win32=no
- ;;
-esac
+AS_CASE([$host],
+
+ [*-*-mingw*|*-*-cygwin*],
+ [
+ JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
+ platform_win32=yes
+ ],
+
+ [platform_win32=no]
+)
AC_MSG_RESULT([$platform_win32])
AC_SUBST(JSON_LT_LDFLAGS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]