autoconf-archive-maintainers | |
[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread
From: |
Maarten Bosmans |
Subject: |
[patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread |
Date: |
Thu, 16 Jun 2011 17:46:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.26+ (KHTML, like Gecko) Version/5.0 Safari/534.26+ Ubuntu/10.10 (2.30.6-1ubuntu5) Epiphany/2.30.6 |
Follow-up Comment #6, patch #7552 (project autoconf-archive):
Here is the patch for the latest suggestion:
--- ax_pthread.m4.old 2011-06-16 19:31:18.549809899 +0200
+++ ax_pthread.m4 2011-06-16 19:44:01.933810275 +0200
@@ -33,6 +33,9 @@
# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
#
+# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
+# PTHREAD_PRIO_INHERIT symbol is defined when compiling with
PTHREAD_CFLAGS.
+#
# ACTION-IF-FOUND is a list of shell commands to run if a threads library
# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
# is not found. If ACTION-IF-FOUND is not specified, the default action
@@ -78,7 +81,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 13
+#serial 14
AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
AC_DEFUN([AX_PTHREAD], [
@@ -266,6 +269,8 @@
[ax_cv_PTHREAD_PRIO_INHERIT=yes],
[ax_cv_PTHREAD_PRIO_INHERIT=no])
])
+ AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"],
+ AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have
PTHREAD_PRIO_INHERIT.]))
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?7552>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Maarten Bosmans, 2011/06/10
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Peter Simons, 2011/06/15
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Maarten Bosmans, 2011/06/16
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Daniel Richard G., 2011/06/16
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Maarten Bosmans, 2011/06/16
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Daniel Richard G., 2011/06/16
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread,
Maarten Bosmans <=
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Peter Simons, 2011/06/21
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Peter Simons, 2011/06/25
- [patch #7552] Add check for PTHREAD_PRIO_INHERIT to ax_pthread, Maarten Bosmans, 2011/06/25