Skip to content

Commit 20e0a61

Browse files
committed
Don't test for sched_yield on Windows
1 parent 419c94b commit 20e0a61

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

configure.ac

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,14 @@ AM_CONDITIONAL([USE_EXTERNAL_PROTOC], [test "$with_protoc" != "no"])
139139
ACX_PTHREAD
140140
AC_CXX_STL_HASH
141141

142-
# Need to link against rt on Solaris
143-
AC_SEARCH_LIBS([sched_yield], [rt], [], [AC_MSG_FAILURE([sched_yield was not found on your system])])
142+
case "$target_os" in
143+
mingw* | cygwin* | win*)
144+
;;
145+
*)
146+
# Need to link against rt on Solaris
147+
AC_SEARCH_LIBS([sched_yield], [rt], [], [AC_MSG_FAILURE([sched_yield was not found on your system])])
148+
;;
149+
esac
144150

145151
# HACK: Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
146152
# since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest

0 commit comments

Comments
 (0)