summaryrefslogtreecommitdiff
path: root/m4/ax_pthread.m4
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-06-15 12:45:34 +0200
committerPeter Simons <simons@cryp.to>2011-06-15 12:45:34 +0200
commit3b4f1719a411fec4fb12949f9c62488fb0f08f96 (patch)
tree9e932870a8a0463707447d34e30bdd4e253be9b5 /m4/ax_pthread.m4
parent09a8175bd7a77e98a2e268053228d2641d8de7b6 (diff)
downloadautoconf-archive-3b4f1719a411fec4fb12949f9c62488fb0f08f96.tar.gz
AX_PTHREAD: add check for PTHREAD_PRIO_INHERIT
See <http://savannah.gnu.org/patch/?7552> for further details.
Diffstat (limited to 'm4/ax_pthread.m4')
-rw-r--r--m4/ax_pthread.m410
1 files changed, 9 insertions, 1 deletions
diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4
index a0cdbe7..75bebe4 100644
--- a/m4/ax_pthread.m4
+++ b/m4/ax_pthread.m4
@@ -78,7 +78,7 @@
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 12
+#serial 13
AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
AC_DEFUN([AX_PTHREAD], [
@@ -259,6 +259,14 @@ if test "x$ax_pthread_ok" = xyes; then
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
fi
+ AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
+ ax_cv_PTHREAD_PRIO_INHERIT, [
+ AC_LINK_IFELSE(
+ AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]]),
+ [ax_cv_PTHREAD_PRIO_INHERIT=yes],
+ [ax_cv_PTHREAD_PRIO_INHERIT=no])
+ ])
+
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"