[libgfortran,patch] C99 complex cleanup

François-Xavier Coudert fxcoudert@gmail.com
Mon Sep 26 16:54:00 GMT 2005


>         Adding the __clog test appears to fix the problem.

Works fine on i686-linux too. Can someone okay this patch?

2005-09-26  David Edelsohn  <dje@watson.ibm.com>

         * configure.ac: Add check for __clog.
         * configure: Regenerate.


Index: libgfortran/configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/configure.ac,v
retrieving revision 1.34
diff -u -3 -p -r1.34 configure.ac
--- libgfortran/configure.ac    25 Sep 2005 21:39:57 -0000      1.34
+++ libgfortran/configure.ac    26 Sep 2005 15:51:54 -0000
@@ -325,6 +325,9 @@ AC_CHECK_LIB([m],[ynf],[AC_DEFINE([HAVE_
 AC_CHECK_LIB([m],[yn],[AC_DEFINE([HAVE_YN],[1],[libm includes yn])])
 AC_CHECK_LIB([m],[ynl],[AC_DEFINE([HAVE_YNL],[1],[libm includes ynl])])

+# On AIX, clog is present in libm as __clog
+AC_CHECK_LIB([m],[__clog],[AC_DEFINE([HAVE_CLOG],[1],[libm includes clog])])
+
 # Fallback in case isfinite is not available.
 AC_CHECK_LIB([m],[finite],[AC_DEFINE([HAVE_FINITE],[1],[libm includes
finite])])



More information about the Fortran mailing list