|
20 | 20 | # Copyright (c) 2013 Mellanox Technologies, Inc. |
21 | 21 | # All rights reserved. |
22 | 22 | # Copyright (c) 2013-2017 Intel, Inc. All rights reserved. |
23 | | -# Copyright (c) 2014-2016 Research Organization for Information Science |
| 23 | +# Copyright (c) 2014-2017 Research Organization for Information Science |
24 | 24 | # and Technology (RIST). All rights reserved. |
25 | 25 | # Copyright (c) 2016 IBM Corporation. All rights reserved. |
26 | 26 | # $COPYRIGHT$ |
@@ -420,6 +420,8 @@ if test "$ac_cv_type_ssize_t" = yes ; then |
420 | 420 | fi |
421 | 421 | if test "$ac_cv_type_ptrdiff_t" = yes; then |
422 | 422 | AC_CHECK_SIZEOF(ptrdiff_t) |
| 423 | +else |
| 424 | + AC_MSG_ERROR([ptrdiff_t type is not available, this is required by C99 standard. Cannot continue]) |
423 | 425 | fi |
424 | 426 | AC_CHECK_SIZEOF(wchar_t) |
425 | 427 |
|
@@ -782,27 +784,6 @@ AC_INCLUDES_DEFAULT |
782 | 784 | #endif |
783 | 785 | ]) |
784 | 786 |
|
785 | | -# |
786 | | -# Check for ptrdiff type. Yes, there are platforms where |
787 | | -# sizeof(void*) != sizeof(long) (64 bit Windows, apparently). |
788 | | -# |
789 | | -AC_MSG_CHECKING([for pointer diff type]) |
790 | | -if test $ac_cv_type_ptrdiff_t = yes ; then |
791 | | - opal_ptrdiff_t="ptrdiff_t" |
792 | | - opal_ptrdiff_size=$ac_cv_sizeof_ptrdiff_t |
793 | | -elif test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long ; then |
794 | | - opal_ptrdiff_t="long" |
795 | | - opal_ptrdiff_size=$ac_cv_sizeof_long |
796 | | -elif test $ac_cv_type_long_long = yes && test $ac_cv_sizeof_void_p -eq $ac_cv_sizeof_long_long ; then |
797 | | - opal_ptrdiff_t="long long" |
798 | | - opal_ptrdiff_size=$ac_cv_sizeof_long_long |
799 | | -else |
800 | | - AC_MSG_ERROR([Could not find datatype to emulate ptrdiff_t. Cannot continue]) |
801 | | -fi |
802 | | -AC_DEFINE_UNQUOTED([OPAL_PTRDIFF_TYPE], [$opal_ptrdiff_t], |
803 | | - [type to use for ptrdiff_t]) |
804 | | -AC_MSG_RESULT([$opal_ptrdiff_t (size: $opal_ptrdiff_size)]) |
805 | | - |
806 | 787 | # |
807 | 788 | # Find corresponding types for MPI_Aint, MPI_Count, and MPI_Offset. |
808 | 789 | # And if relevant, find the corresponding MPI_ADDRESS_KIND, |
|
0 commit comments