From 245c4a67375a4b154eeef5fd7b541ea07bac97c6 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Tue, 5 Aug 2014 20:55:04 -0700 Subject: [PATCH] Correctly use the AC_CANONICAL_* macros http://www.gnu.org/software/autoconf/manual/autoconf.html#Using-System-Type Signed-off-by: Timothy Gu (cherry picked from commit 63c2fc02ce3d0674a0a6d1e10e9ee04a76aa9d5d) Change-Id: I40a13e84f5266ed20bc4db098502b1610ab71206 --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index d76569eb..32b99e9a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ AC_INIT([libwebp], [0.4.1], [http://code.google.com/p/webp/issues],, [http://developers.google.com/speed/webp]) -AC_CANONICAL_TARGET +AC_CANONICAL_HOST AC_PREREQ([2.60]) AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) @@ -409,8 +409,9 @@ AC_ARG_ENABLE([wic], @<:@default=auto@:>@]),, [enable_wic=yes]) -if test \( "$target_os" = "mingw32" -o "$target_os" = "mingw64" \) \ - -a "$enable_wic" = "yes"; then +case $host_os in +mingw*) +if test "$enable_wic" = "yes"; then AC_CHECK_HEADERS([wincodec.h shlwapi.h windows.h]) if test "$ac_cv_header_wincodec_h" = "yes"; then AC_MSG_CHECKING(for Windows Imaging Component support) @@ -450,6 +451,7 @@ if test \( "$target_os" = "mingw32" -o "$target_os" = "mingw64" \) \ AC_MSG_RESULT(${wic_support-no}) fi fi +esac dnl === If --enable-aligned is defined, define WEBP_FORCE_ALIGNED