From ed9767560b43d3970d32743525727f4e66473ad9 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 17 Dec 2007 12:21:10 +0100 Subject: [PATCH] Avoid a crash of a configure test on some x86_64 systems. --- ChangeLog | 5 +++++ m4/printf.m4 | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 65d495a91..f9159cbd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-17 Bruno Haible + + * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to + avoid a segmentation fault of the configure test on x86_64 systems. + 2007-12-15 Jim Meyering * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary. diff --git a/m4/printf.m4 b/m4/printf.m4 index d5ac9413e..37bf90520 100644 --- a/m4/printf.m4 +++ b/m4/printf.m4 @@ -1,4 +1,4 @@ -# printf.m4 serial 20 +# printf.m4 serial 21 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -240,6 +240,7 @@ AC_DEFUN([gl_PRINTF_INFINITE_LONG_DOUBLE], [gl_cv_func_printf_infinite_long_double], [ AC_TRY_RUN([ +]GL_NOCRASH[ #include #include #include @@ -265,6 +266,7 @@ static char buf[10000]; static long double zeroL = 0.0L; int main () { + nocrash_init(); if (sprintf (buf, "%Lf", 1.0L / 0.0L) < 0 || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0)) return 1; -- 2.11.0