diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 8d689e0..7d487e7 100644 --- a/configure.in +++ b/configure.in @@ -1483,6 +1483,37 @@ else fi dnl ---------------------------------------------------------------------- +dnl Check if pthread_attr_setscope(&attribute, PTHREAD_SCOPE_SYSTEM) +dnl is supported on this system +dnl +AC_MSG_CHECKING([Threads support system scope]) +AC_CACHE_VAL(hdf5_cv_system_scope_threads, +AC_TRY_RUN([ +#if STDC_HEADERS +#include <stdlib.h> +#include <pthread.h> +#endif + +int main(void) +{ + pthread_attr_t attribute; + int ret; + + pthread_attr_init(&attribute); + ret=pthread_attr_setscope(&attribute, PTHREAD_SCOPE_SYSTEM); + exit(ret==0 ? 0 : 1); +} +], hdf5_cv_system_scope_threads=yes, hdf5_cv_system_scope_threads=no,)) + +if test ${hdf5_cv_system_scope_threads} = "yes"; then + AC_DEFINE(SYSTEM_SCOPE_THREADS, 1, + [Define if your system supports pthread_attr_setscope(&attribute, PTHREAD_SCOPE_SYSTEM) call.]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +dnl ---------------------------------------------------------------------- dnl Checking to see if GPFS is available on this filesystem dnl AC_CHECK_HEADERS([gpfs.h], |