diff options
Diffstat (limited to 'patches/Python-2.7.16/0003-use-AC_TYPE_LONG_DOUBLE-to-detect-long-double-suppor.patch')
-rw-r--r-- | patches/Python-2.7.16/0003-use-AC_TYPE_LONG_DOUBLE-to-detect-long-double-suppor.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/patches/Python-2.7.16/0003-use-AC_TYPE_LONG_DOUBLE-to-detect-long-double-suppor.patch b/patches/Python-2.7.16/0003-use-AC_TYPE_LONG_DOUBLE-to-detect-long-double-suppor.patch new file mode 100644 index 000000000..f6c3f9143 --- /dev/null +++ b/patches/Python-2.7.16/0003-use-AC_TYPE_LONG_DOUBLE-to-detect-long-double-suppor.patch @@ -0,0 +1,35 @@ +From: Marc Kleine-Budde <mkl@pengutronix.de> +Date: Fri, 24 Apr 2009 18:47:19 +0200 +Subject: [PATCH] use AC_TYPE_LONG_DOUBLE to detect long double support + +use the correct AC_TYPE_LONG_DOUBLE function rahter than hand crafted +test to detect long double support. + +Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +--- + configure.ac | 12 ++---------- + 1 file changed, 2 insertions(+), 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c9cb9c802882..c89e4a601cf1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1890,16 +1890,8 @@ if test "$ac_cv_type_long_long_int" = "yes" ; then + AC_DEFINE(HAVE_LONG_LONG, 1, [Define this if you have the type long long.]) + fi + +-AC_MSG_CHECKING(for long double support) +-have_long_double=no +-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[long double x; x = (long double)0;]])],[ +- AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define this if you have the type long double.]) +- have_long_double=yes +-],[]) +-AC_MSG_RESULT($have_long_double) +-if test "$have_long_double" = yes ; then +-AC_CHECK_SIZEOF(long double, 12) +-fi ++AC_TYPE_LONG_DOUBLE ++AC_CHECK_SIZEOF(long double) + + AC_MSG_CHECKING(for _Bool support) + have_c99_bool=no |