projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lttng: Indicate file path and error reason when open_config fails
[lttng-tools.git]
/
m4
/
lttng_pthread_setname_np.m4
diff --git
a/m4/lttng_pthread_setname_np.m4
b/m4/lttng_pthread_setname_np.m4
index 6eff705baa3b7a6d00f4c480d19f3c02f7d2b5b1..99fcc8d1e69d79d348f77d058e817619994227f6 100644
(file)
--- a/
m4/lttng_pthread_setname_np.m4
+++ b/
m4/lttng_pthread_setname_np.m4
@@
-41,11
+41,14
@@
lttng_pthread_setname_np_save_LIBS="$LIBS"
LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS"
LIBS="$LIBS $PTHREAD_LIBS"
LDFLAGS="$LDFLAGS $PTHREAD_CFLAGS"
LIBS="$LIBS $PTHREAD_LIBS"
-# GLIBC >= 2.12, Solaris >= 11.3
+# GLIBC >= 2.12, Solaris >= 11.3
, FreeBSD >= 12.2
AC_MSG_CHECKING(for pthread_setname_np(pthread_t, const char*))
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
AC_MSG_CHECKING(for pthread_setname_np(pthread_t, const char*))
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
- [#include <pthread.h>],
+ [[#include <pthread.h>
+ #ifdef __FreeBSD__
+ #include <pthread_np.h>
+ #endif]],
[pthread_setname_np(pthread_self(), "example")])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_SETNAME_NP_WITH_TID,1,
[pthread_setname_np(pthread_self(), "example")])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_SETNAME_NP_WITH_TID,1,
@@
-56,7
+59,10
@@
AC_LINK_IFELSE(
AC_MSG_CHECKING(for pthread_setname_np(const char*))
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
AC_MSG_CHECKING(for pthread_setname_np(const char*))
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
- [#include <pthread.h>],
+ [[#include <pthread.h>
+ #ifdef __FreeBSD__
+ #include <pthread_np.h>
+ #endif]],
[pthread_setname_np("example")])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID,1,
[pthread_setname_np("example")])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID,1,
@@
-67,8
+73,10
@@
AC_LINK_IFELSE(
AC_MSG_CHECKING(for pthread_set_name_np(pthread_t, const char*))
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
AC_MSG_CHECKING(for pthread_set_name_np(pthread_t, const char*))
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(
- [#include <pthread.h>
- #include <pthread_np.h>],
+ [[#include <pthread.h>
+ #ifdef __FreeBSD__
+ #include <pthread_np.h>
+ #endif]],
[pthread_set_name_np(pthread_self(), "example")])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_SET_NAME_NP_WITH_TID,1,
[pthread_set_name_np(pthread_self(), "example")])],
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_PTHREAD_SET_NAME_NP_WITH_TID,1,
This page took
0.02367 seconds
and
4
git commands to generate.