From: Bruno Haible <bruno@clisp.org>
Date: Fri, 30 Jul 2010 18:45:50 +0000 (+0200)
Subject: ldexpl; Update regarding AIX.
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d7314bdeb3d2022ed572f48feba6546baf5f5b;p=pspp

ldexpl; Update regarding AIX.
---

diff --git a/ChangeLog b/ChangeLog
index 424e209539..63f9b262ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-07-30  Bruno Haible  <bruno@clisp.org>
+
+	ldexpl; Update regarding AIX.
+	* m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
+	on AIX 7.
+	Reported by Rainer Tammer.
+
 2010-07-30  Bruno Haible  <bruno@clisp.org>
 
 	frexpl: Update regarding AIX.
diff --git a/m4/ldexpl.m4 b/m4/ldexpl.m4
index 6fdbf00631..84f0977185 100644
--- a/m4/ldexpl.m4
+++ b/m4/ldexpl.m4
@@ -1,4 +1,4 @@
-# ldexpl.m4 serial 6
+# ldexpl.m4 serial 7
 dnl Copyright (C) 2007-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,
@@ -88,10 +88,13 @@ int main()
   volatile long double y2 = ldexpl (x2, 0);
   return (y1 != 0.5L) || (y2 != x2);
 }], [gl_cv_func_ldexpl_works=yes], [gl_cv_func_ldexpl_works=no],
-      [case "$host_os" in
-         aix*) gl_cv_func_ldexpl_works="guessing no";;
-         *)    gl_cv_func_ldexpl_works="guessing yes";;
+      [
+changequote(,)dnl
+       case "$host_os" in
+         aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no";;
+         *)               gl_cv_func_ldexpl_works="guessing yes";;
        esac
+changequote([,])dnl
       ])
     ])
 ])