bug-gnulib
[Top][All Lists]
Advanced

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

update the printf-frexpl module


From: Bruno Haible
Subject: update the printf-frexpl module
Date: Fri, 18 May 2007 19:27:28 +0200
User-agent: KMail/1.5.4

On AIX 5.1, frexpl is in libc (not libm) and doesn't work (see frexpl.m4).
The printf-frexpl module needs to know that it cannot use this function.


2007-05-18  Bruno Haible  <address@hidden>

        * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
        gl_FUNC_FREXPL_WORKS.
        * modules/printf-frexpl (Files): Add m4/frexpl.m4.

*** m4/printf-frexpl.m4 6 Apr 2007 14:36:56 -0000       1.5
--- m4/printf-frexpl.m4 18 May 2007 17:16:14 -0000
***************
*** 1,4 ****
! # printf-frexpl.m4 serial 4
  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,
--- 1,4 ----
! # printf-frexpl.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,
***************
*** 9,14 ****
--- 9,15 ----
  AC_DEFUN([gl_FUNC_PRINTF_FREXPL],
  [
    AC_REQUIRE([gl_MATH_H_DEFAULTS])
+   dnl Subset of gl_FUNC_FREXPL_NO_LIBM.
    AC_CACHE_CHECK([whether frexpl can be used without linking with libm],
      [gl_cv_func_frexpl_no_libm],
      [
***************
*** 20,25 ****
--- 21,35 ----
          [gl_cv_func_frexpl_no_libm=no])
      ])
    if test $gl_cv_func_frexpl_no_libm = yes; then
+     gl_FUNC_FREXPL_WORKS
+     case "$gl_cv_func_frexpl_works" in
+       *yes) gl_func_frexpl_no_libm=yes ;;
+       *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
+     esac
+   else
+     gl_func_frexpl_no_libm=no
+   fi
+   if test $gl_func_frexpl_no_libm = yes; then
      AC_DEFINE([HAVE_FREXPL_IN_LIBC], 1,
        [Define if the frexpl function is available in libc.])
      dnl Also check whether it's declared.
*** modules/printf-frexpl       6 Apr 2007 14:36:56 -0000       1.7
--- modules/printf-frexpl       18 May 2007 17:16:14 -0000
***************
*** 7,12 ****
--- 7,13 ----
  lib/printf-frexpl.c
  lib/printf-frexp.c
  m4/printf-frexpl.m4
+ m4/frexpl.m4
  m4/ldexpl.m4
  
  Depends-on:





reply via email to

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