summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-01-08 20:56:12 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-01-08 20:56:12 (GMT)
commit7faa297ea6144a08e3e2284d3065d502c2598a87 (patch)
tree3649e5e6a599f8ef27f9af0a78dd85fbcd0fdb58 /configure
parent19efec650d421d9f5c3d8baad6cedb54e935e8d5 (diff)
downloadhdf5-7faa297ea6144a08e3e2284d3065d502c2598a87.zip
hdf5-7faa297ea6144a08e3e2284d3065d502c2598a87.tar.gz
hdf5-7faa297ea6144a08e3e2284d3065d502c2598a87.tar.bz2
[svn-r9783] Purpose: Bug fix
Description: For HP-UX 11.00, the compiler generates 'floating exception' when converting 'long double' to most of integer types. Solution: Define a macro for all other systems except HP-UX 11.00. Hard set this macro to 'no' in config/hpux11.00 to skip this test for HP-UX 11.00. Platforms tested: modi4, kelgia, fuss
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure34
1 files changed, 28 insertions, 6 deletions
diff --git a/configure b/configure
index 7d5a85e..f394697 100755
--- a/configure
+++ b/configure
@@ -33547,19 +33547,41 @@ else
echo "${ECHO_T}no" >&6
fi
-echo "$as_me:$LINENO: checking if accurately converting between long double and integers works" >&5
-echo $ECHO_N "checking if accurately converting between long double and integers works... $ECHO_C" >&6
-if test "${hdf5_cv_sw_ldouble_to_int_works+set}" = set; then
+echo "$as_me:$LINENO: checking if accurately converting from long double to integers works" >&5
+echo $ECHO_N "checking if accurately converting from long double to integers works... $ECHO_C" >&6
+if test "${hdf5_cv_sw_ldouble_to_integer_works+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
- hdf5_cv_sw_ldouble_to_int_works=yes
+ hdf5_cv_sw_ldouble_to_integer_works=yes
fi
-if test ${hdf5_cv_sw_ldouble_to_int_works} = "yes"; then
+if test ${hdf5_cv_sw_ldouble_to_integer_works} = "yes"; then
cat >>confdefs.h <<\_ACEOF
-#define SW_LDOUBLE_TO_INT_WORKS 1
+#define SW_LDOUBLE_TO_INTEGER_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 accurately converting from integers to long double works" >&5
+echo $ECHO_N "checking if accurately converting from integers to long double works... $ECHO_C" >&6
+if test "${hdf5_cv_sw_integer_to_ldouble_works+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ hdf5_cv_sw_integer_to_ldouble_works=yes
+fi
+
+
+if test ${hdf5_cv_sw_integer_to_ldouble_works} = "yes"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define SW_INTEGER_TO_LDOUBLE_WORKS 1
_ACEOF
echo "$as_me:$LINENO: result: yes" >&5