1AC_DEFUN([REALTIME_CHECK_PRIO_INHERIT],[ 2AC_MSG_CHECKING([for PTHREAD_PRIO_INHERIT]) 3AC_TRY_COMPILE([ 4#include <pthread.h>],[int main(void) { 5 pthread_mutexattr_t attr; 6 return pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT); 7}],[has_priority_inherit="yes"],[]) 8if test "x$has_priority_inherit" = "xyes" ; then 9 AC_DEFINE(HAS_PRIORITY_INHERIT,1,[Define to 1 if you have PTHREAD_PRIO_INHERIT]) 10 AC_MSG_RESULT(yes) 11else 12 AC_MSG_RESULT(no) 13fi 14]) 15 16AC_DEFUN([REALTIME_CHECK_ROBUST_APIS],[ 17 AC_CHECK_DECLS([pthread_mutexattr_getrobust, pthread_mutexattr_setrobust],[],[has_robust="no"],[[#include <pthread.h>]]) 18 AC_MSG_CHECKING([for pthread_mutexattr_*robust* APIs]) 19if test "x$has_robust" != "xno"; then 20 AC_MSG_RESULT(yes) 21else 22 AC_MSG_RESULT(no) 23fi 24]) 25