aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorWilliam Orr <will@worrbase.com>2014-10-10 22:50:39 -0700
committerWilliam Orr <will@worrbase.com>2014-10-10 22:50:39 -0700
commit20e0a61ff6237709b285daec4337fd241e578dd2 (patch)
tree12071d257ac79096d0e8973e41182ecfbfaa2d77 /configure.ac
parent419c94b6e07f93610e5124a0be0a7ee7140006ed (diff)
downloadprotobuf-20e0a61ff6237709b285daec4337fd241e578dd2.tar.gz
protobuf-20e0a61ff6237709b285daec4337fd241e578dd2.tar.bz2
protobuf-20e0a61ff6237709b285daec4337fd241e578dd2.zip
Don't test for sched_yield on Windows
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3b5cb60b..ba408af3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,8 +139,14 @@ AM_CONDITIONAL([USE_EXTERNAL_PROTOC], [test "$with_protoc" != "no"])
ACX_PTHREAD
AC_CXX_STL_HASH
-# Need to link against rt on Solaris
-AC_SEARCH_LIBS([sched_yield], [rt], [], [AC_MSG_FAILURE([sched_yield was not found on your system])])
+case "$target_os" in
+ mingw* | cygwin* | win*)
+ ;;
+ *)
+ # Need to link against rt on Solaris
+ AC_SEARCH_LIBS([sched_yield], [rt], [], [AC_MSG_FAILURE([sched_yield was not found on your system])])
+ ;;
+esac
# HACK: Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
# since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest