bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

round on AIX 7.1BETA


From: Bruno Haible
Subject: round on AIX 7.1BETA
Date: Fri, 30 Jul 2010 21:14:52 +0200
User-agent: KMail/1.9.9

The logs show:

configure:45348: checking whether round works
configure:45384: xlc -o conftest -g  -D_THREAD_SAFE  conftest.c  -lm >&5
configure:45384: $? = 0
configure:45384: ./conftest
configure:45384: $? = 1
configure: program exited with status 1

gl_cv_func_round_works=${gl_cv_func_round_works=no}


2010-07-30  Bruno Haible  <address@hidden>

        round: Update regarding AIX.
        * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
        * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
        Reported by Rainer Tammer.

--- doc/posix-functions/round.texi.orig Fri Jul 30 21:06:35 2010
+++ doc/posix-functions/round.texi      Fri Jul 30 12:16:21 2010
@@ -13,7 +13,7 @@
 FreeBSD 5.2.1, OpenBSD 3.8, AIX 5.1, IRIX 6.5, OSF/1 4.0, Solaris 9, Interix 
3.5.
 @item
 This functions returns a wrong result for x = 1/2 - 2^-54 on some platforms:
-NetBSD 3.0.
+NetBSD 3.0, AIX 7.1.
 @end itemize
 
 Portability problems not fixed by Gnulib:
--- m4/round.m4.orig    Fri Jul 30 21:06:35 2010
+++ m4/round.m4 Fri Jul 30 12:16:05 2010
@@ -1,4 +1,4 @@
-# round.m4 serial 8
+# round.m4 serial 9
 dnl Copyright (C) 2007, 2009-2010 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -40,8 +40,8 @@
   exit (x < 0.5 && round (x) != 0.0);
 }]])], [gl_cv_func_round_works=yes], [gl_cv_func_round_works=no],
           [case "$host_os" in
-             netbsd*) gl_cv_func_round_works="guessing no";;
-             *)       gl_cv_func_round_works="guessing yes";;
+             netbsd* | aix*) gl_cv_func_round_works="guessing no";;
+             *)              gl_cv_func_round_works="guessing yes";;
            esac
           ])
           LIBS="$save_LIBS"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]