summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-09-22 13:40:31 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-09-22 13:55:15 +0200
commite1030c5bb5742ae6cc50287dd441c6ea4119a0e3 (patch)
tree8e0418fff18d95da38432043f29e457734ca90a8 /configure.ac
parent5b4010ff05254178e43cd802250e69f35d05bce5 (diff)
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 01296f4..5040363 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,