diff options
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 33d3f3ab7..f74509755 100644 --- a/configure.ac +++ b/configure.ac @@ -186,6 +186,11 @@ AC_CHECK_HEADERS(valgrind/memcheck.h) AC_CHECK_HEADERS([sys/prctl.h], AC_CHECK_FUNCS([prctl])) +AX_PTHREAD +LIBS="$PTHREAD_LIBS $LIBS" +AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" +AM_CXXFLAGS="$AM_CXXFLAGS $PTHREAD_CFLAGS" + AC_CHECK_LIB([pthread], [pthread_setname_np], [have_pthread_setname_np=yes], [have_pthread_setname_np=no]) |