diff options
-rwxr-xr-x | configure | 22 | ||||
-rw-r--r-- | configure.in | 18 | ||||
-rw-r--r-- | src/H5config.h.in | 3 | ||||
-rw-r--r-- | src/Makefile.in | 6 |
4 files changed, 46 insertions, 3 deletions
@@ -50119,6 +50119,28 @@ else echo "${ECHO_T}no" >&6 fi +echo "$as_me:$LINENO: checking if compiling long long to floating-point typecasts work" >&5 +echo $ECHO_N "checking if compiling long long to floating-point typecasts work... $ECHO_C" >&6 +if test "${hdf5_cv_llong_to_fp_cast_works+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + hdf5_cv_llong_to_fp_cast_works=yes +fi + + +if test ${hdf5_cv_llong_to_fp_cast_works} = "yes"; then + +cat >>confdefs.h <<\_ACEOF +#define LLONG_TO_FP_CAST_WORKS 1 +_ACEOF + + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + echo "$as_me:$LINENO: checking if converting unsigned long long to long double with precision work" >&5 echo $ECHO_N "checking if converting unsigned long long to long double with precision work... $ECHO_C" >&6 if test "${hdf5_cv_ullong_to_ldouble_precision_works+set}" = set; then diff --git a/configure.in b/configure.in index 5949ed0..46dcbad 100644 --- a/configure.in +++ b/configure.in @@ -2623,6 +2623,24 @@ else fi dnl ---------------------------------------------------------------------- +dnl Set the flag to indicate that the machine can _compile_ +dnl 'long long' to 'float' and 'double' typecasts. +dnl (This flag should be set for all machines, except for under Windows when +dnl compiled with Visual Studio 6, where the macro value is set in the +dnl src/H5pubconf.h file) +dnl +AC_MSG_CHECKING([if compiling long long to floating-point typecasts work]) +AC_CACHE_VAL([hdf5_cv_llong_to_fp_cast_works], [hdf5_cv_llong_to_fp_cast_works=yes]) + +if test ${hdf5_cv_llong_to_fp_cast_works} = "yes"; then + AC_DEFINE([LLONG_TO_FP_CAST_WORKS], [1], + [Define if your system can compile long long to floating-point casts.]) + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi + +dnl ---------------------------------------------------------------------- dnl Set the flag to indicate that the machine can convert from dnl 'unsigned long long' to 'long double' without precision loss. dnl (This flag should be set for all machines, except for FreeBSD(sleipnir) diff --git a/src/H5config.h.in b/src/H5config.h.in index d639e50..d805b36 100644 --- a/src/H5config.h.in +++ b/src/H5config.h.in @@ -348,6 +348,9 @@ /* Define if `__tm_gmtoff' is a member of `struct tm' */ #undef HAVE___TM_GMTOFF +/* Define if your system can compile long long to floating-point casts. */ +#undef LLONG_TO_FP_CAST_WORKS + /* Define if your system can handle complicated MPI derived datatype correctly. */ #undef MPI_COMPLEX_DERIVED_DATATYPE_WORKS diff --git a/src/Makefile.in b/src/Makefile.in index e88cbd9..4b877ab 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -340,9 +340,9 @@ H5FC_PP = $(bindir)/h5pfc # Add libtool shared library version numbers to the HDF5 library # See libtool versioning documentation online. -LT_VERS_INTERFACE = 0 -LT_VERS_REVISION = 1 -LT_VERS_AGE = 0 +LT_VERS_INTERFACE = 2 +LT_VERS_REVISION = 0 +LT_VERS_AGE = 2 H5detect_CFLAGS = -g # Our main target, the HDF5 library |