From 0d42fa44c1956f976cc3fa3c4041862bec3acc1c Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Thu, 16 Nov 2006 06:31:52 +0000 Subject: [PATCH] check for set affinity in pthread - seems to bemissing from debian testing/etch (but is in ubuntu). weird as its a gnu extension in libc and been in for a few years. SVN revision: 27133 --- legacy/evas/configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/legacy/evas/configure.in b/legacy/evas/configure.in index e1302ddbec..198863c732 100644 --- a/legacy/evas/configure.in +++ b/legacy/evas/configure.in @@ -989,10 +989,16 @@ AM_CONDITIONAL(BUILD_LOADER_SVG, test x$have_svg = xyes) pthread_cflags="" pthread_libs="" build_pthreads="no" +# sched_getaffinity pthread_attr_setaffinity_np AC_CHECK_HEADER(pthread.h, [ AC_CHECK_HEADER(sched.h, - [ build_pthreads="yes" ], + [ + AC_CHECK_LIB(pthread, pthread_attr_setaffinity_np, + [ build_pthreads="yes" ], + [ build_pthreads="no" ] + ) + ], [ build_pthreads="no" ] ) ],