diff --git a/ChangeLog b/ChangeLog index 917dd91e1ab136c5974e638adb240d85b34bb816..1feddc0a8e278e15b58ea48dee6cacc01cebc842 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-08-12 Paul Eggert + + Merge from gnulib, incorporating: + 2013-08-11 fpending: port to recent Cygwin change to stdio_ext.h + 2013-08-10 sys_time: port to OpenBSD + 2013-08-12 Glenn Morris * configure.ac (etcdocdir): Rename from docdir, to avoid confusion diff --git a/doc/misc/texinfo.tex b/doc/misc/texinfo.tex index 3427d2ad0e3e9e0a7acf0d69a5c66d1423df5ce4..e8fed2907349aa80d26a02eee93635ea282697fb 100644 --- a/doc/misc/texinfo.tex +++ b/doc/misc/texinfo.tex @@ -3,7 +3,7 @@ % Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi % -\def\texinfoversion{2013-06-23.10} +\def\texinfoversion{2013-08-09.09} % % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, @@ -2377,8 +2377,10 @@ \ifx\next,% \else\ifx\next-% \else\ifx\next.% + \else\ifx\next\.% + \else\ifx\next\comma% \else\ptexslash - \fi\fi\fi + \fi\fi\fi\fi\fi \aftersmartic } @@ -2519,7 +2521,9 @@ \ifx\codedashprev\codedash \else \discretionary{}{}{}\fi \fi - \global\let\codedashprev=\next + % we need the space after the = for the case when \next itself is a + % space token; it would get swallowed otherwise. As in @code{- a}. + \global\let\codedashprev= \next } } \def\normaldash{-} diff --git a/lib/fpending.h b/lib/fpending.h index bf40d3732e76ea8214ae433985ba725557e7021b..4eca3f18e17087803ac4fd729b6883e0329f1c36 100644 --- a/lib/fpending.h +++ b/lib/fpending.h @@ -20,11 +20,10 @@ #include #include +#if HAVE_STDIO_EXT_H +# include +#endif -#if HAVE_DECL___FPENDING -# if HAVE_STDIO_EXT_H -# include -# endif -#else +#ifndef __fpending size_t __fpending (FILE *); #endif diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h index 3dbf63206675daa06604ae219ca994a8862f1ee1..f721580a765aa557d61296602c95b99a31e3d3dc 100644 --- a/lib/sys_time.in.h +++ b/lib/sys_time.in.h @@ -24,11 +24,12 @@ #endif @PRAGMA_COLUMNS@ -/* On Cygwin, includes itself recursively via . +/* On Cygwin and on many BSDish systems, includes itself + recursively via . Simply delegate to the system's header in this case; it is a no-op. Without this extra ifdef, the C++ gettimeofday declaration below would be a forward declaration in gnulib's nested . */ -#ifdef _CYGWIN_SYS_TIME_H +#if defined _CYGWIN_SYS_TIME_H || defined _SYS_TIME_H || defined _SYS_TIME_H_ # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@ #else diff --git a/m4/fpending.m4 b/m4/fpending.m4 index 8f5856243170c34ce2d6cfbba5144e7228414dd3..c8d9e8b7ba80abb1aafa4770a60cd7bd92d02453 100644 --- a/m4/fpending.m4 +++ b/m4/fpending.m4 @@ -1,4 +1,4 @@ -# serial 19 +# serial 20 # Copyright (C) 2000-2001, 2004-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -16,14 +16,19 @@ dnl we have to grub around in the FILE struct. AC_DEFUN([gl_FUNC_FPENDING], [ AC_CHECK_HEADERS_ONCE([stdio_ext.h]) - AC_CHECK_FUNCS_ONCE([__fpending]) - fp_headers=' -# include -# if HAVE_STDIO_EXT_H -# include -# endif -' - AC_CHECK_DECLS([__fpending], , , $fp_headers) + AC_CACHE_CHECK([for __fpending], [gl_cv_func___fpending], + [ + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include + #if HAVE_STDIO_EXT_H + # include + #endif + ]], + [[return ! __fpending (stdin);]])], + [gl_cv_func___fpending=yes], + [gl_cv_func___fpending=no]) + ]) ]) AC_DEFUN([gl_PREREQ_FPENDING], diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index af9a9ca3ae0ab7c93733612f44cce9ffc71c62f0..7c5f22861b5f760b64e4865520f63572c5992179 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 @@ -216,7 +216,7 @@ AC_DEFUN([gl_INIT], gl_MODULE_INDICATOR([fdopendir]) gl_FILEMODE gl_FUNC_FPENDING - if test $ac_cv_func___fpending = no; then + if test $gl_cv_func___fpending = no; then AC_LIBOBJ([fpending]) gl_PREREQ_FPENDING fi