[polypaudio-commits] r1044 - /trunk/acinclude.m4

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Jun 20 07:22:37 PDT 2006


Author: ossman
Date: Tue Jun 20 16:22:34 2006
New Revision: 1044

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1044&root=pulseaudio&view=rev
Log:
Check for pthread_yield() as not all platforms have that.

Modified:
    trunk/acinclude.m4

Modified: trunk/acinclude.m4
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/acinclude.m4?rev=1044&root=pulseaudio&r1=1043&r2=1044&view=diff
==============================================================================
--- trunk/acinclude.m4 (original)
+++ trunk/acinclude.m4 Tue Jun 20 16:22:34 2006
@@ -172,6 +172,17 @@
         AC_MSG_RESULT(${flag})
         if test "x$flag" != xno; then
                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
+        fi
+
+        AC_MSG_CHECKING([if pthread_yield is available])
+        flag=no
+        AC_TRY_LINK([#include <pthread.h>],
+                    [pthread_yield();],
+                    [flag=yes])
+        AC_MSG_RESULT(${flag})
+        if test "x$flag" != xno; then
+                AC_DEFINE(HAVE_PTHREAD_YIELD, 1,
+                          [Define to 1 if you have the 'pthread_yield' function.])
         fi
 
         LIBS="$save_LIBS"




More information about the pulseaudio-commits mailing list