mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 11:41:07 +08:00
configure.in (sched_yield): Try librt first, then libposix4.
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * configure.in (sched_yield): Try librt first, then libposix4. Add -lrt, -lposix4 to THREADSPEC. From-SVN: r28629
This commit is contained in:
parent
ad171e80b8
commit
05ca950a64
@ -1,3 +1,8 @@
|
||||
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
|
||||
|
||||
* configure.in (sched_yield): Try librt first, then libposix4.
|
||||
Add -lrt, -lposix4 to THREADSPEC.
|
||||
|
||||
1999-08-08 Anthony Green <green@cygnus.com>
|
||||
|
||||
* gnu/gcj/util/path/SearchPath.java: Comment out verbose output.
|
||||
|
417
libjava/configure
vendored
417
libjava/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -381,15 +381,17 @@ else
|
||||
LIBS="$LIBS $THREADLIBS"
|
||||
AC_CHECK_FUNCS(pthread_mutexattr_settype pthread_mutexattr_setkind_np)
|
||||
|
||||
# Look for sched_yield. Sometimes it is in the posix4 library
|
||||
# (Solaris) and sometimes in -lrt (x86 Solaris).
|
||||
# Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
|
||||
# Solaris 7 the name librt is preferred.
|
||||
AC_CHECK_FUNCS(sched_yield, , [
|
||||
AC_CHECK_LIB(posix4, sched_yield, [
|
||||
AC_CHECK_LIB(rt, sched_yield, [
|
||||
AC_DEFINE(HAVE_SCHED_YIELD)
|
||||
THREADLIBS="$THREADLIBS -lposix4"], [
|
||||
AC_CHECK_LIB(rt, sched_yield, [
|
||||
THREADLIBS="$THREADLIBS -lrt"
|
||||
THREADSPECS="$THREADSPECS -lrt"], [
|
||||
AC_CHECK_LIB(posix4, sched_yield, [
|
||||
AC_DEFINE(HAVE_SCHED_YIELD)
|
||||
THREADLIBS="$THREADLIBS -lrt"])])])
|
||||
THREADLIBS="$THREADLIBS -lposix4"
|
||||
THREADSPECS="$THREADSPECS -lposix4"])])])
|
||||
LIBS="$save_LIBS"
|
||||
|
||||
# We require a way to get the time.
|
||||
|
Loading…
x
Reference in New Issue
Block a user