From 8e9b35958cc2102a37b6aa0e64509599c3460ebb Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 6 Mar 2008 23:19:33 +0100 Subject: [PATCH] Ensure that fseeko is declared when possible. --- ChangeLog | 6 ++++++ m4/fseeko.m4 | 8 ++++++-- modules/fseeko | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 361022370..71d79a747 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-03-06 Bruno Haible + * modules/fseeko (Dependencies): Add extensions. + * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS. + Needed on glibc systems. + +2008-03-06 Bruno Haible + * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside email address. Reported by Thien-Thi Nguyen . diff --git a/m4/fseeko.m4 b/m4/fseeko.m4 index 40be63b4c..3d7736568 100644 --- a/m4/fseeko.m4 +++ b/m4/fseeko.m4 @@ -1,5 +1,5 @@ -# fseeko.m4 serial 3 -dnl Copyright (C) 2007 Free Software Foundation, Inc. +# fseeko.m4 serial 4 +dnl Copyright (C) 2007-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -9,6 +9,10 @@ AC_DEFUN([gl_FUNC_FSEEKO], AC_REQUIRE([gl_STDIO_H_DEFAULTS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([gl_STDIN_LARGE_OFFSET]) + + dnl Persuade glibc to declare fseeko(). + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_CACHE_CHECK([for fseeko], [gl_cv_func_fseeko], [ AC_TRY_LINK([#include ], [fseeko (stdin, 0, 0);], diff --git a/modules/fseeko b/modules/fseeko index eb109011e..ced94529c 100644 --- a/modules/fseeko +++ b/modules/fseeko @@ -6,6 +6,7 @@ lib/fseeko.c m4/fseeko.m4 Depends-on: +extensions lseek stdio -- 2.11.0