mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
[svn-r10700] Purpose:
Bug fix Description: Kent reminded me that switching the logic wasn't enough, we really needed to add the definition to the configure script. Solution: Do that. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
This commit is contained in:
parent
55f8e19fc7
commit
8f4b37accf
22
configure
vendored
22
configure
vendored
@ -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
|
||||
|
18
configure.in
18
configure.in
@ -2622,6 +2622,24 @@ else
|
||||
AC_MSG_RESULT([no])
|
||||
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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user