view m4/fseek.m4 @ 14910:6d0e0db0535e

fseek: Respect rules for use of AC_LIBOBJ. * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from here... * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 13:23:50 +0200
parents 97fc9a21a8fb
children 51b1cc0a0bc7
line wrap: on
line source

# fseek.m4 serial 3
dnl Copyright (C) 2007, 2009-2011 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.

AC_DEFUN([gl_FUNC_FSEEK],
[
  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
  AC_REQUIRE([gl_FUNC_FSEEKO])
  dnl When fseeko needs fixes, fseek needs them too.
  if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
    gl_REPLACE_FSEEK
  fi
])

AC_DEFUN([gl_REPLACE_FSEEK],
[
  AC_LIBOBJ([fseek])
  AC_REQUIRE([gl_STDIO_H_DEFAULTS])
  REPLACE_FSEEK=1
])