diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-28 17:02:12 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-04-28 17:02:12 (GMT) |
commit | 12ba2eed6ad676507de5ad5aabe2e3631d8a1100 (patch) | |
tree | 57488773a49ee6c58f52352412052aa789505113 /configure.in | |
parent | b3d2f04490363a24f1d43581116a61356ca89f77 (diff) | |
download | hdf5-12ba2eed6ad676507de5ad5aabe2e3631d8a1100.zip hdf5-12ba2eed6ad676507de5ad5aabe2e3631d8a1100.tar.gz hdf5-12ba2eed6ad676507de5ad5aabe2e3631d8a1100.tar.bz2 |
[svn-r8425] Purpose:
Bug fix (sorta)
Description:
The SGI machines have problems accurately (and consistently) converting
unsigned long values to float and double values, so put in a bit of a hack in
the datatype conversion test code to allow them to get "close enough". This
hack is enabled at configure time by a flag which should only be set on machines
with this problem.
Platforms tested:
FreeBSD 4.9 (sleipnir)
h5committest
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2b1a52f..dee22c2 100644 --- a/configure.in +++ b/configure.in @@ -2381,6 +2381,23 @@ else fi dnl ---------------------------------------------------------------------- +dnl Set the flag to indicate that the machine can accurately convert +dnl 'unsigned long long' values to 'float' and 'double' values. +dnl (This flag should be set for all machines, except for the SGIs, where +dnl the cache value is set in the config/irix6.x config file) +dnl +AC_MSG_CHECKING([if accurately converting unsigned long long to floating-point values works]) +AC_CACHE_VAL([hdf5_cv_sw_ulong_to_fp_bottom_bit_works], [hdf5_cv_sw_ulong_to_fp_bottom_bit_works=yes]) + +if test ${hdf5_cv_sw_ulong_to_fp_bottom_bit_works} = "yes"; then + AC_DEFINE([SW_ULONG_TO_FP_BOTTOM_BIT_WORKS], [1], + [Define if your system can accurately convert unsigned long long values to floating-point values.]) + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi + +dnl ---------------------------------------------------------------------- dnl Set some variables for general configuration information to be saved dnl and installed with the libraries. dnl |