Commit 9d604f8d authored by Sergei Trofimovich's avatar Sergei Trofimovich Committed by Simon Marlow

base: use --host as target, not uname

Fixed bootstrap failure on linux for --target=mingw32
Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
parent 6e04f053
......@@ -5,17 +5,23 @@ AC_CONFIG_SRCDIR([include/HsBase.h])
AC_CONFIG_HEADERS([include/HsBaseConfig.h include/EventConfig.h])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
AC_ARG_WITH([cc],
[C compiler],
[CC=$withval])
AC_PROG_CC()
case `uname -s` in
MINGW*|CYGWIN*)
AC_MSG_CHECKING(for WINDOWS platform)
case $host in
*mingw32*|*cygwin*)
WINDOWS=YES;;
*)
WINDOWS=NO;;
esac
AC_MSG_RESULT($WINDOWS)
# do we have long longs?
AC_CHECK_TYPES([long long])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment