7067f4753f
* If we are on solaris, don't use the system qsort(), as it appears to be broken in 64 bit mode on Solaris 8 (there are bugs about this in SunSolve). Instead, use ompi_qsort(), which is taken from FreeBSD. A #define in ompi_config_bottom.h makes this invisible to most of the OMPI source tree. * Fix memory badness in ompi_progress_register where we were reallocing the array to be number of elements long instead of number of elements * sizeof(element). Found while using bcheck to track down our problems in 64 bit on big endian machines. * The debugging output code in session_dir.c could pass NULL as a value for a %s, which will turn into "(null)" automagically on glibc, but causes segfaults for older libcs (like those on Solaris). Check for this case in session_dir.c and don't pass NULL as a %s value into ompi_output(). * Fix missing header file in convertor.c This commit was SVN r6186.
38 строки
1.1 KiB
Bash
38 строки
1.1 KiB
Bash
dnl -*- shell-script -*-
|
|
dnl
|
|
dnl Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
dnl All rights reserved.
|
|
dnl Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
dnl All rights reserved.
|
|
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
dnl University of Stuttgart. All rights reserved.
|
|
dnl Copyright (c) 2004-2005 The Regents of the University of California.
|
|
dnl All rights reserved.
|
|
dnl $COPYRIGHT$
|
|
dnl
|
|
dnl Additional copyrights may follow
|
|
dnl
|
|
dnl $HEADER$
|
|
dnl
|
|
|
|
AC_DEFUN([OMPI_CHECK_BROKEN_QSORT],[
|
|
AC_MSG_CHECKING([for broken qsort])
|
|
|
|
result=
|
|
define_result=0
|
|
case "$host" in
|
|
*solaris*)
|
|
result="yes (solaris)"
|
|
define_result=1
|
|
;;
|
|
*)
|
|
result="no"
|
|
define_result=0
|
|
;;
|
|
esac
|
|
|
|
AC_MSG_RESULT([$result])
|
|
AC_DEFINE_UNQUOTED([OMPI_HAVE_BROKEN_QSORT], [$define_result],
|
|
[whether qsort is broken or not])
|
|
unset result define_result])dnl
|