changeset 9304:a31d1cfce720

Ensure glibc declares trunc().
author Bruno Haible <bruno@clisp.org>
date Sun, 07 Oct 2007 05:10:20 +0200
parents 136d24950879
children 129a6911febf
files ChangeLog m4/trunc.m4 modules/trunc
diffstat 3 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-10-06  Bruno Haible  <bruno@clisp.org>
+
+	* modules/trunc (Dependencies): Add 'extensions'.
+	* m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
+	Reported by Ben Pfaff <blp@gnu.org>.
+
 2007-10-06  Bruno Haible  <bruno@clisp.org>
 
 	* modules/freopen-tests: New file.
--- a/m4/trunc.m4
+++ b/m4/trunc.m4
@@ -1,4 +1,4 @@
-# trunc.m4 serial 1
+# trunc.m4 serial 2
 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,
@@ -7,6 +7,8 @@
 AC_DEFUN([gl_FUNC_TRUNC],
 [
   AC_REQUIRE([gl_MATH_H_DEFAULTS])
+  dnl Persuade glibc <math.h> to declare truncl().
+  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
   dnl Test whether trunc() is declared.
   AC_CHECK_DECLS([trunc], , , [#include <math.h>])
   if test "$ac_cv_have_decl_trunc" = yes; then
--- a/modules/trunc
+++ b/modules/trunc
@@ -7,6 +7,7 @@
 
 Depends-on:
 math
+extensions
 float
 
 configure.ac: