diff options
author | Bruno Haible <bruno@clisp.org> | 2007-05-28 14:48:52 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-05-28 14:48:52 +0000 |
commit | cab1c5a2da80863739e730225ee4c1842b05e217 (patch) | |
tree | b6f6abe078440c78857e5b773482c3c90670dc6a /m4 | |
parent | 97c12f59197ed29353e1dde89db3af59bcb3e1ff (diff) | |
download | gnulib-cab1c5a2da80863739e730225ee4c1842b05e217.tar.gz |
New module 'fseek'.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/fseek.m4 | 16 | ||||
-rw-r--r-- | m4/stdio_h.m4 | 4 |
2 files changed, 19 insertions, 1 deletions
diff --git a/m4/fseek.m4 b/m4/fseek.m4 new file mode 100644 index 0000000000..80e4501083 --- /dev/null +++ b/m4/fseek.m4 @@ -0,0 +1,16 @@ +# fseek.m4 serial 1 +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, +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 $REPLACE_FSEEKO != 0; then + AC_LIBOBJ([fseek]) + REPLACE_FSEEK=1 + fi +]) diff --git a/m4/stdio_h.m4 b/m4/stdio_h.m4 index 2cddcc3313..43e96835ec 100644 --- a/m4/stdio_h.m4 +++ b/m4/stdio_h.m4 @@ -1,4 +1,4 @@ -# stdio_h.m4 serial 5 +# stdio_h.m4 serial 6 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, @@ -30,6 +30,7 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS], GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF]) GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX]) GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF]) + GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK]) GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO]) GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO]) GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH]) @@ -48,6 +49,7 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS], REPLACE_VASPRINTF=0; AC_SUBST([REPLACE_VASPRINTF]) HAVE_FSEEKO=1; AC_SUBST([HAVE_FSEEKO]) REPLACE_FSEEKO=0; AC_SUBST([REPLACE_FSEEKO]) + REPLACE_FSEEK=0; AC_SUBST([REPLACE_FSEEK]) HAVE_FTELLO=1; AC_SUBST([HAVE_FTELLO]) REPLACE_FTELLO=0; AC_SUBST([REPLACE_FTELLO]) REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) |