bffa5c8f7e
* Convert from AC_TRY_RUN to AC_RUN_IFELSE. * Excellent suggestion from Paul Hargrove: use AC_CHECK_FUNC to look for a Linuxthreads-specific symbol when we're cross compiling to see if threads will have different PIDs (because AC_CHECK_FUNC works properly even when in cross-compiling environments). Background: the old/Linuxthreads-based pthreads implementation used the Linux clone() call to make threads, which effectively meant that each thread had a different PID. The new NPTL pthreads implementation does things better, meaning that threads have the same PID. Open MPI no longer supports threads with different PIDs -- we ripped out the supporting code for threads with different PIDs because we don't have systems available to test this on anymore (anyone who still has such a system can still use older versions of Open MPI). Hence, configure needs to determine whether the target system will have the same PID for threads or not -- even if we're cross-compiling. The current test compiles and runs a multi-threaded app that checks PIDs of different threads, but we clearly can't do that in a cross-compiling environment. So use AC_CHECK_FUNC in cross-compiling environments. Simple, no? This commit was SVN r24537. |
||
---|---|---|
.. | ||
config_files.m4 | ||
opal_case_sensitive_fs_setup.m4 | ||
opal_check_attributes.m4 | ||
opal_check_compiler_version.m4 | ||
opal_check_ident.m4 | ||
opal_check_offsetof.m4 | ||
opal_check_os_flavors.m4 | ||
opal_check_pthread_pids.m4 | ||
opal_check_visibility.m4 | ||
opal_config_asm.m4 | ||
opal_config_threads.m4 | ||
opal_configure_options.m4 | ||
opal_functions.m4 | ||
opal_setup_cc.m4 | ||
opal_setup_cxx.m4 | ||
opal_setup_libltdl.m4 | ||
opal_setup_wrappers.m4 |