Test for pthread_setschedparam. If not existant, disable priorities.

2003-06-03  Sebastian Wilhelmi  <seppi@seppi.de>

	* configure.in: Test for pthread_setschedparam. If not existant,
	disable priorities. (#104718)
This commit is contained in:
Sebastian Wilhelmi 2003-06-03 12:35:00 +00:00 committed by Sebastian Wilhelmi
parent 5f5ab2384c
commit 70ca727d22
7 changed files with 37 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-06-03 Sebastian Wilhelmi <seppi@seppi.de>
* configure.in: Test for pthread_setschedparam. If not existant,
disable priorities. (#104718)
Mon Jun 2 14:18:21 2003 Owen Taylor <otaylor@redhat.com>
Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

View File

@ -1,3 +1,8 @@
2003-06-03 Sebastian Wilhelmi <seppi@seppi.de>
* configure.in: Test for pthread_setschedparam. If not existant,
disable priorities. (#104718)
Mon Jun 2 14:18:21 2003 Owen Taylor <otaylor@redhat.com>
Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

View File

@ -1,3 +1,8 @@
2003-06-03 Sebastian Wilhelmi <seppi@seppi.de>
* configure.in: Test for pthread_setschedparam. If not existant,
disable priorities. (#104718)
Mon Jun 2 14:18:21 2003 Owen Taylor <otaylor@redhat.com>
Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

View File

@ -1,3 +1,8 @@
2003-06-03 Sebastian Wilhelmi <seppi@seppi.de>
* configure.in: Test for pthread_setschedparam. If not existant,
disable priorities. (#104718)
Mon Jun 2 14:18:21 2003 Owen Taylor <otaylor@redhat.com>
Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

View File

@ -1,3 +1,8 @@
2003-06-03 Sebastian Wilhelmi <seppi@seppi.de>
* configure.in: Test for pthread_setschedparam. If not existant,
disable priorities. (#104718)
Mon Jun 2 14:18:21 2003 Owen Taylor <otaylor@redhat.com>
Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

View File

@ -1,3 +1,8 @@
2003-06-03 Sebastian Wilhelmi <seppi@seppi.de>
* configure.in: Test for pthread_setschedparam. If not existant,
disable priorities. (#104718)
Mon Jun 2 14:18:21 2003 Owen Taylor <otaylor@redhat.com>
Patch from Jeffrey Stedfast <fejj@ximian.com> (#104825)

View File

@ -1690,8 +1690,14 @@ int main () {
posix_priority_max=-1
else
AC_MSG_RESULT($posix_priority_min/$posix_priority_max)
AC_MSG_CHECKING(for pthread_setschedparam)
AC_TRY_LINK([#include <pthread.h>],
[pthread_t t; pthread_setschedparam(&t, 0, NULL)],
[AC_MSG_RESULT(yes)
AC_DEFINE_UNQUOTED(POSIX_MIN_PRIORITY,$posix_priority_min,[Minimum POSIX RT priority])
AC_DEFINE_UNQUOTED(POSIX_MAX_PRIORITY,$posix_priority_max,[Maximum POSIX RT priority])
AC_DEFINE_UNQUOTED(POSIX_MAX_PRIORITY,$posix_priority_max,[Maximum POSIX RT priority])],
[AC_MSG_RESULT(no)
AC_MSG_WARN($POSIX_NO_PRIORITIES)])
fi
posix_yield_func=none
AC_MSG_CHECKING(for posix yield function)