mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 12:12:25 +00:00
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.
This commit is contained in:
parent
1de13713ae
commit
a5c87c74a6
15
configure.ac
15
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_VERSION="$CLUTTER_LT_CURRENT:$CLUTTER_LT_REV:$CLUTTER_LT_AGE"
|
||||||
CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION"
|
CLUTTER_LT_LDFLAGS="-version-info $CLUTTER_LT_VERSION"
|
||||||
|
|
||||||
|
AC_CANONICAL_HOST
|
||||||
AC_MSG_CHECKING([if building for some Win32 platform])
|
AC_MSG_CHECKING([if building for some Win32 platform])
|
||||||
case "$host" in
|
AS_CASE([$host],
|
||||||
*-*-mingw*|*-*-cygwin*)
|
[*-*-mingw*|*-*-cygwin*],
|
||||||
|
[
|
||||||
CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined"
|
CLUTTER_LT_LDFLAGS="$CLUTTER_LT_LDFLAGS -no-undefined"
|
||||||
platform_win32=yes
|
platform_win32=yes
|
||||||
;;
|
],
|
||||||
*)
|
|
||||||
platform_win32=no
|
[platform_win32=no]
|
||||||
;;
|
)
|
||||||
esac
|
|
||||||
AC_MSG_RESULT([$platform_win32])
|
AC_MSG_RESULT([$platform_win32])
|
||||||
|
|
||||||
AC_SUBST(CLUTTER_LT_VERSION)
|
AC_SUBST(CLUTTER_LT_VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user