]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 24 Mar 2014 19:20:09 +0000 (19:20 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 24 Mar 2014 19:20:09 +0000 (19:20 +0000)
MagickCore/magick-baseconfig.h
MagickCore/version.h
config/config.h.in
configure
configure.ac

index 6bc9ebba86a3b91a5662535a5717bb105a7f76b2..43156aef5c778c1676a2be5d5a78453efb572036 100644 (file)
 #define MAGICKCORE_HAVE_LOCALTIME_R 1
 #endif
 
-/* Define to 1 if the system has the type `long double'. */
+/* Define to 1 if the type `long double' works and has more range or precision
+   than `double'. */
 #ifndef MAGICKCORE_HAVE_LONG_DOUBLE
 #define MAGICKCORE_HAVE_LONG_DOUBLE 1
 #endif
 #endif
 
 /* The size of `long double', as computed by sizeof. */
-#ifndef MAGICKCORE_SIZEOF_LONG_DOUBLE
-#define MAGICKCORE_SIZEOF_LONG_DOUBLE 16
-#endif
+/* #undef SIZEOF_LONG_DOUBLE */
 
 /* The size of `off_t', as computed by sizeof. */
 #ifndef MAGICKCORE_SIZEOF_OFF_T
index 6883fdda2f94d0003e21050ea91c1c0b073e8098..8d08a1e5942c13eaecdaca258356a252fc0ce419 100644 (file)
@@ -27,7 +27,7 @@ extern "C" {
 */
 #define MagickPackageName "ImageMagick"
 #define MagickCopyright  "Copyright (C) 1999-2014 ImageMagick Studio LLC"
-#define MagickSVNRevision  "15136:15146M"
+#define MagickSVNRevision  "15198:15212M"
 #define MagickLibVersion  0x700
 #define MagickLibVersionText  "7.0.0"
 #define MagickLibVersionNumber  1,0,0
@@ -48,7 +48,7 @@ extern "C" {
 #define MagickppLibAddendum  "-0"
 #define MagickppLibInterface  1
 #define MagickppLibMinInterface  1
-#define MagickReleaseDate  "2014-03-16"
+#define MagickReleaseDate  "2014-03-24"
 #define MagickChangeDate   "20120427"
 #define MagickAuthoritativeURL  "http://www.imagemagick.org"
 #define MagickFeatures "DPC HDRI OpenMP"
index e49ca2a0a67b8b6e7965688ebf6bf2594814dc95..f1b9802b47197dbf848900ef0cb0f8d97388274e 100644 (file)
 /* Define to 1 if you have the `localtime_r' function. */
 #undef HAVE_LOCALTIME_R
 
-/* Define to 1 if the system has the type `long double'. */
+/* Define to 1 if the type `long double' works and has more range or precision
+   than `double'. */
 #undef HAVE_LONG_DOUBLE
 
 /* Define to 1 if the type `long double' works and has more range or precision
index 153c2c1a597335dd126102efa4b7751b2bcb6849..e89cf61144aeb0ab98b342e172475f8706c1d29c 100755 (executable)
--- a/configure
+++ b/configure
@@ -3702,7 +3702,7 @@ MAGICK_PATCHLEVEL_VERSION=0
 
 MAGICK_VERSION=7.0.0-0
 
-MAGICK_SVN_REVISION=15136:15146M
+MAGICK_SVN_REVISION=15198:15212M
 
 
 # Substitute library versioning
@@ -23626,7 +23626,70 @@ cat >>confdefs.h <<_ACEOF
 _ACEOF
 
 
-# The cast to long int works around a bug in the HP C Compiler
+if test ${cross_compiling} = "no"; then
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
+$as_echo_n "checking for long double with more range or precision than double... " >&6; }
+if ${ac_cv_type_long_double_wider+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <float.h>
+           long double const a[] =
+             {
+                0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
+                LDBL_MIN, LDBL_MAX, LDBL_EPSILON
+             };
+           long double
+           f (long double x)
+           {
+              return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
+                       + (x ? f (x) : 'c'));
+           }
+
+int
+main ()
+{
+static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
+                  + (DBL_MANT_DIG < LDBL_MANT_DIG)
+                  - (LDBL_MAX_EXP < DBL_MAX_EXP)
+                  - (LDBL_MANT_DIG < DBL_MANT_DIG)))
+           && (int) LDBL_EPSILON == 0
+         )];
+test_array [0] = 0;
+return test_array [0];
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_type_long_double_wider=yes
+else
+  ac_cv_type_long_double_wider=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
+$as_echo "$ac_cv_type_long_double_wider" >&6; }
+  if test $ac_cv_type_long_double_wider = yes; then
+
+$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
+
+  fi
+
+    ac_cv_c_long_double=$ac_cv_type_long_double_wider
+    if test $ac_cv_c_long_double = yes; then
+
+$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
+
+    fi
+
+fi
+if test "${ac_cv_c_have_long_double}" = "yes" ; then
+  # The cast to long int works around a bug in the HP C Compiler
 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 # This bug is HP SR number 8606223364.
@@ -23659,6 +23722,7 @@ cat >>confdefs.h <<_ACEOF
 _ACEOF
 
 
+fi
 
 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
 # The cast to long int works around a bug in the HP C Compiler
index a251471e3f2c5e823edf0fd8eb61625040a1157b..398a9eec275773fa0a964a5184b7f28b3ea4299d 100755 (executable)
@@ -1003,7 +1003,12 @@ AC_CHECK_SIZEOF([double_t], [], [[#include <math.h>]])
 # Get size of float, double and long double for comparaison.
 AC_CHECK_SIZEOF([float])
 AC_CHECK_SIZEOF([double])
-AC_CHECK_SIZEOF([long double])
+if test ${cross_compiling} = "no"; then
+  AC_C_LONG_DOUBLE
+fi
+if test "${ac_cv_c_have_long_double}" = "yes" ; then
+  AC_CHECK_SIZEOF([long double])
+fi
 
 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
 AC_CHECK_SIZEOF(signed short)