summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias Ringwald <mringwal@inf.ethz.ch>2008-07-08 22:49:00 +0200
committerMatthias Ringwald <mringwal@inf.ethz.ch>2008-07-08 22:49:00 +0200
commitdb77cc621ac71f2a18aba0c2072c3d379e871e85 (patch)
tree9ec418aaf1d4313672f217e14bf177e27a12e678 /configure.ac
parentcfd21368e1eaaad3ab1659fb221e1d4241fac7cf (diff)
downloadxine-lib-db77cc621ac71f2a18aba0c2072c3d379e871e85.tar.gz
xine-lib-db77cc621ac71f2a18aba0c2072c3d379e871e85.tar.bz2
Fix compilation for pthread support provided by PTHREAD_{CFLAGS+LIBS}
<xine-internals.h> includes <xine-utils/refcounter.h> which includes <pthread.h>. As all xine sources include <xine-internal.h>, the PTHREAD_CFLAGS are always needed. This patch removed it from two Makefile.am and adds them to CPPFLAGS
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e15311cdf..7c7030009 100644
--- a/configure.ac
+++ b/configure.ac
@@ -228,6 +228,8 @@ dnl ---------------------------------------------
CC_PTHREAD_FLAGS(, [AC_MSG_ERROR([Pthread support is needed])])
CC_PTHREAD_RECURSIVE_MUTEX(, [AC_MSG_ERROR([recursive mutex support is needed - please report])])
+dnl <pthread.h> is implicitly included by xine-internals.h, so the include dir is needed everywhere
+CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
AC_CHECK_DECL(sysi86,[
AC_DEFINE(HAVE_SYSI86,1,[Define this if the 'sysi86' function is declared in sys/sysi86.h])