diff options
author | Maarten Bosmans <mkbosmans@gmail.com> | 2011-06-08 18:23:23 +0200 |
---|---|---|
committer | Maarten Bosmans <mkbosmans@gmail.com> | 2011-06-21 15:12:17 +0200 |
commit | f36ac546e6a70cc1bb4736f0b104d0dd13b12500 (patch) | |
tree | 77bb99d513a3c41ffa18e31b271427abfd5e3ec9 /configure.ac | |
parent | ee9da923e5b29c9ee304c416e7db6e7274ad1d0b (diff) |
build-sys: Use AX_PTHREAD macro from autoconf archive
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac index 72f44a4b..88ad875d 100644 --- a/configure.ac +++ b/configure.ac @@ -433,24 +433,7 @@ AS_IF([test "$ac_cv_tls" == "__thread"], # Win32 build breaks with win32 pthread installed AS_IF([test "x$os_is_win32" != "x1"], - [ACX_PTHREAD]) - -AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT], - pulseaudio_cv_PTHREAD_PRIO_INHERIT, [ - save_CC=$CC; CC=$PTHREAD_CC - save_CFLAGS=$CFLAGS; CFLAGS=$PTHREAD_CFLAGS - save_LIBS=$LIBS; LIBS=$PTHREAD_LIBS - AC_LINK_IFELSE( - AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]]), - [pulseaudio_cv_PTHREAD_PRIO_INHERIT=yes], - [pulseaudio_cv_PTHREAD_PRIO_INHERIT=no]) - CC=$save_CC - CFLAGS=$save_CFLAGS - LIBS=$save_LIBS - ]) - -AS_IF([test "$pulseaudio_cv_PTHREAD_PRIO_INHERIT" = "yes"], - AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.])) + [AX_PTHREAD]) #### Check for libs #### |