diff options
author | Bruno Haible <bruno@clisp.org> | 2010-12-19 14:59:22 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-12-19 14:59:22 +0100 |
commit | eedb2b7b21f577d9b1ce0fbd2bbe3467a2ff165f (patch) | |
tree | ac5bd3d5685b412e2493672ade088bd9ae145849 /m4/ftello.m4 | |
parent | 7bdfdfca8d8948047946ea3aac8ca5027579f5e6 (diff) | |
download | gnulib-eedb2b7b21f577d9b1ce0fbd2bbe3467a2ff165f.tar.gz |
ftello: Add missing declaration on OSF/1 5.1.
* lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
* m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
* modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
* doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
Diffstat (limited to 'm4/ftello.m4')
-rw-r--r-- | m4/ftello.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/ftello.m4 b/m4/ftello.m4 index 33201a0107..21b61a3072 100644 --- a/m4/ftello.m4 +++ b/m4/ftello.m4 @@ -1,4 +1,4 @@ -# ftello.m4 serial 8 +# ftello.m4 serial 9 dnl Copyright (C) 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -13,6 +13,11 @@ AC_DEFUN([gl_FUNC_FTELLO], dnl Persuade glibc <stdio.h> to declare ftello(). AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) + AC_CHECK_DECLS_ONCE([ftello]) + if test $ac_cv_have_decl_ftello = no; then + HAVE_DECL_FTELLO=0 + fi + AC_CACHE_CHECK([for ftello], [gl_cv_func_ftello], [ AC_LINK_IFELSE( |