Skip to content

Commit

Permalink
Merge pull request #31 from worr/bug/autoconf-sched-yield
Browse files Browse the repository at this point in the history
Add check for sched_yield in librt
  • Loading branch information
xfxyjwf committed Sep 22, 2014
2 parents 7d50120 + 38b8494 commit a48c08a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ 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])])

# 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
# too.
Expand Down

0 comments on commit a48c08a

Please sign in to comment.