From: Ivan Maidanski Date: Thu, 22 Sep 2011 11:40:31 +0000 (+0400) Subject: Fix thread model in configure for MinGW. X-Git-Tag: gc7_2~121^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1030c5bb5742ae6cc50287dd441c6ea4119a0e3;p=gc Fix thread model in configure for MinGW. * configure.ac (THREADS): Change "posix" to "win32" in case of cross-compiling to MinGW. --- diff --git a/configure.ac b/configure.ac index 01296f49..5040363d 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,14 @@ AC_ARG_ENABLE(threads, if test -z "$THREADS"; then THREADS=no fi + if test "$THREADS" = "posix"; then + case "$host" in + *-*-mingw*) + # Adjust thread model if cross-compiling for MinGW. + THREADS=win32 + ;; + esac + fi AC_MSG_RESULT([$THREADS]) ]) AC_ARG_ENABLE(parallel-mark,