Guess isnanl does not work when cross-compiling to ia64, x86_64, i386.
authorBruno Haible <bruno@clisp.org>
Wed, 13 Jun 2007 01:30:34 +0000 (01:30 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 13 Jun 2007 01:30:34 +0000 (01:30 +0000)
ChangeLog
m4/isnanl.m4

index 458f3a5..3d8ed57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2007-06-12  Bruno Haible  <bruno@clisp.org>
 
+       * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
+       to ia64, x86_64, i386.
+       Reported by Eric Blake.
+
+2007-06-12  Bruno Haible  <bruno@clisp.org>
+
        * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
        cross-compiling to x86_64.
 
index 7a73d4e..a02ded7 100644 (file)
@@ -1,4 +1,4 @@
-# isnanl.m4 serial 4
+# isnanl.m4 serial 5
 dnl Copyright (C) 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,
@@ -200,9 +200,15 @@ int main ()
 
   return 0;
 }], [gl_cv_func_isnanl_works=yes], [gl_cv_func_isnanl_works=no],
-      [case "$host_os" in
-         netbsd*) gl_cv_func_isnanl_works="guessing no";;
-         *)       gl_cv_func_isnanl_works="guessing yes";;
+      [case "$host_cpu" in
+                               # Guess no on ia64, x86_64, i386.
+         ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
+         *)
+           case "$host_os" in
+             netbsd*) gl_cv_func_isnanl_works="guessing no";;
+             *)       gl_cv_func_isnanl_works="guessing yes";;
+           esac
+           ;;
        esac
       ])
     ])