mcst-linux-kernel/patches-2024.06.26/hdf5-1.10.3/0002-Add-cross-bypass-for-c...

79 lines
2.5 KiB
Diff

diff -Naur a/configure.ac b/configure.ac
--- a/configure.ac 2023-09-26 14:18:13.189828873 +0000
+++ b/configure.ac 2023-09-26 14:27:18.971783585 +0000
@@ -2894,7 +2894,23 @@
AC_CACHE_VAL([hdf5_cv_ldouble_to_long_special],
[AC_RUN_IFELSE(
[AC_LANG_SOURCE([$TEST_SRC])]
- , [hdf5_cv_ldouble_to_long_special=yes], [hdf5_cv_ldouble_to_long_special=no],)])
+ , [hdf5_cv_ldouble_to_long_special=yes], [hdf5_cv_ldouble_to_long_special=no]
+ ,[
+ case $host_cpu in
+ e2k*)
+ hdf5_cv_ldouble_to_llong_accurate=yes
+ ;;
+ sparc*)
+ hdf5_cv_ldouble_to_llong_accurate=yes
+ ;;
+ x86*)
+ hdf5_cv_ldouble_to_llong_accurate=yes
+ ;;
+ *)
+ AC_MSG_ERROR([Unknown architecture])
+ ;;
+ esac
+ ])])
fi
if test ${hdf5_cv_ldouble_to_long_special} = "yes"; then
@@ -2923,7 +2939,23 @@
AC_CACHE_VAL([hdf5_cv_long_to_ldouble_special],
[AC_RUN_IFELSE(
[AC_LANG_SOURCE([$TEST_SRC])]
- , [hdf5_cv_long_to_ldouble_special=yes], [hdf5_cv_long_to_ldouble_special=no],)])
+ , [hdf5_cv_long_to_ldouble_special=yes], [hdf5_cv_long_to_ldouble_special=no]
+ ,[
+ case $host_cpu in
+ e2k*)
+ hdf5_cv_long_to_ldouble_special=no
+ ;;
+ sparc*)
+ hdf5_cv_long_to_ldouble_special=no
+ ;;
+ x86*)
+ hdf5_cv_long_to_ldouble_special=no
+ ;;
+ *)
+ AC_MSG_ERROR([Unknown architecture])
+ ;;
+ esac
+ ])])
fi
if test ${hdf5_cv_long_to_ldouble_special} = "yes"; then
@@ -2983,7 +3015,23 @@
else
AC_CACHE_VAL([hdf5_cv_llong_to_ldouble_correct],
[AC_RUN_IFELSE([AC_LANG_SOURCE([$TEST_SRC])],
- [hdf5_cv_llong_to_ldouble_correct=yes], [hdf5_cv_llong_to_ldouble_correct=no],[])])
+ [hdf5_cv_llong_to_ldouble_correct=yes], [hdf5_cv_llong_to_ldouble_correct=no]
+ ,[
+ case $host_cpu in
+ e2k*)
+ hdf5_cv_llong_to_ldouble_correct=yes
+ ;;
+ sparc*)
+ hdf5_cv_llong_to_ldouble_correct=yes
+ ;;
+ x86*)
+ hdf5_cv_llong_to_ldouble_correct=yes
+ ;;
+ *)
+ AC_MSG_ERROR([Unknown architecture])
+ ;;
+ esac
+ ])])
fi
if test ${hdf5_cv_llong_to_ldouble_correct} = "yes"; then