forked from enlightenment/efl
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
This commit is contained in:
parent
f80a02f999
commit
0d42fa44c1
|
@ -989,15 +989,21 @@ 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,
|
||||
[
|
||||
AC_CHECK_LIB(pthread, pthread_attr_setaffinity_np,
|
||||
[ build_pthreads="yes" ],
|
||||
[ build_pthreads="no" ]
|
||||
)
|
||||
],
|
||||
[ build_pthreads="no" ]
|
||||
)
|
||||
],
|
||||
[ build_pthreads="no" ]
|
||||
)
|
||||
AC_MSG_CHECKING(whether to build pthread code)
|
||||
AC_ARG_ENABLE(pthreads,
|
||||
[ --enable-pthreads enable threaded rendering], [
|
||||
|
|
Loading…
Reference in New Issue