-# printf.m4 serial 19
+# 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,
[gl_cv_func_printf_infinite_long_double],
[
AC_TRY_RUN([
+]GL_NOCRASH[
#include <float.h>
#include <stdio.h>
#include <string.h>
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;
[
if test "$cross_compiling" = no; then
AC_LANG_CONFTEST([AC_LANG_SOURCE([
+]GL_NOCRASH[
changequote(,)dnl
#include <stdio.h>
#include <sys/types.h>
{
struct rlimit limit;
int ret;
+ nocrash_init ();
/* Some printf implementations allocate temporary space with malloc. */
/* On BSD systems, malloc() is limited by RLIMIT_DATA. */
#ifdef RLIMIT_DATA