summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-09-22 15:40:31 +0400
committerIvan Maidanski <ivmai@mail.ru>2011-09-22 15:40:31 +0400
commita2cf0d76c53a98f7b5bcfc917f59154c19137c24 (patch)
treefcfc49ff00b7bbbe66daf3691b9c7ed991f081a9 /configure.ac
parent2b9c66041c3c59e29f2cde111cb2b0dd5b8a59fe (diff)
downloadbdwgc-a2cf0d76c53a98f7b5bcfc917f59154c19137c24.tar.gz
Fix thread model in configure for MinGW.
* configure.ac (THREADS): Change "posix" to "win32" in case of cross-compiling to MinGW.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5f7da9e0..c3698d2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,6 +89,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,