Import of m4-1.4
* Release 1.4.1.

* configure.in (VERSION): Bump to 1.4.1.
* NEWS: Describe 1.4.1's changes.

* aclocal.m4 (fp_PROG_CC_STDC): Use AC_DEFUN, not define, to
pacify Autoconf 2.59.

* doc/m4.texinfo: Insert commas after @xref's that lack them,
to pacify Texinfo 4.7.
* doc/Makefile.in (info): Remove info-1, info-2, info-3.

* src/m4.h, src/debug.c: Use #ifdef __STDC__, not #if __STDC__, to
pacify Sun C compilers.

* src/symtab.c (lookup_symbol): Fix an uninitialized-variable
botch.

* examples/stackovf.sh: Use tempfile if available.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=92629
* src/output.c (m4_insert_file): Do not mix buffered and
unbuffered I/O, as this breaks on the Hurd.  (trivial change)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84451
* src/m4.c (main): Fix format vulnerabilities.  (trivial change)

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84416
* doc/m4.texinfo (Maketemp): Change maketemp to refer to a new,
empty file rather than to a nonexistent file.  This closes a common
security hole.
* src/builtin.c (m4_maketemp): Implement the above, by using
mkstemp rather than mktemp.  (trivial change)

* src/builtin.c (expand_ranges): Added break after trailing dash.
This caused misbehaviors on some systems.
* configure.in (VERSION): Bump to 1.4.1a.
* NEWS: Place holder for next stable release.
* Release 1.4.2.

* configure.in (VERSION): Bump to 1.4.2.
* NEWS: Describe 1.4.2's changes.

* src/m4.c (reference_error): Preserve errno, since M4ERROR
relies on this.
* src/builtin.c (m4_esyscmd): Clear errno before calling popen.
(m4_maketemp): Clear errno before calling mkstemp.
* src/path.c (path_search): Don't let "free" trash errno when
returning NULL.
* src/output.c (insert_file): Don't assume errno has a valid
value simply because fread returns zero.  This fixes a
portability bug reported by Marion Hakanson in
<http://lists.gnu.org/archive/html/bug-m4/2004-07/msg00029.html>.
* configure.in (VERSION): Bump to 1.4.2a.
Refactoring of the string read case in next_char provides about a
20% speedup of M4 as typically used by autoconf:

* src/input.c (next_char_1): Renamed from next_char.
(next_char): New macro.
* NEWS: Updated.
* configure.in (AC_CHECK_HEADERS):  Add signal.h, sys/signal.h.
* src/m4.c: And include them as appropriate.
* NEWS: Updated.
* configure.in (AC_CHECK_HEADERS): Commit works best when you save
changes from your editor buffer first.
* src/output.c (mkstemp): Make non-static, and build regardless of
HAVE_TMPFILE; src/builtin.c also needs this replacement.
* NEWS: Update.
Modernise the configury a little to prevent spurious errors from
Autoconf-2.59's autoreconf:

* config.h.in: Renamed to...
* config-h.in: ...this to better support DOS 8.3 file systems.
* acconfig.h: Removed.
* configure.in: Renamed to...
* configure.ac: ...this, and AC_DEFINE used to declare config.h
entry comments.  Slight reorganisation and reformatting.
* aclocal.m4: Use third argument to AC_DEFINE to declare config.h
entry comments.
(AC_INIT): Use a modern 3 argument call.
* Makefile.in, checks/Makefile.in, doc/Makefile.in,
examples/Makefile.in, lib/Makefile.in, src/Makefile.in:
s/PRODUCT/PACKAGE/g.
* Makefile.in (DISTFILES): Removed acconfig.h, configure.in,
config.h.in.  Added configure.ac, config-h.in.
(stamp-h.in): Removed acconfig.h from dependencies.
(configure): Depends on configure.ac, not configure.in.
* doc/Makefile.in (stamp-vti): Ditto.
* src/freeze.c (produce_frozen_state), src/m4.c (main): Adjust for
difference between PRODUCT="m4" and PACKAGE="GNU M4".
* configure: Regenerated.
* src/m4.c (main): Modernise the --version output.
* src/m4.h (__CYGWIN__, WIN32): Canonicalise Windows and Cygwin
recognition macros.
* src/freeze.c (produce_frozen_state): Use n line-endings even
on Windows, so that the frozen file reader will work.
Reported by Josef T. Burger <bolo@bolo.com>
* configure.ac (AC_DEFINE): Fix overquoting of description
argument.
* Makefile.in (stamp-h): Regenerate config.h properly.
* lib/regex.c, lib/regex.h: Updated from gnulib.
* src/input.c (set_word_regexp):  Don't change the word_regexp
unless it compiles correctly.
* NEWS: Updated.
Reported by Frank Schwidom <schwidom@impernet.de>
* lib/regex.c, lib/regex.h:  Reverted gnulib update, which broke
on Cygwin.
Reported by Eric Blake <ericblake@comcast.net>
s/ericblake@comcast.net/ebb9@byu.net/
Add ChangeLog timestamp for mkstamp
* doc/Makefile.in (install, uninstall): Accomodate DESTDIR.
* src/Makefile.in (install, uninstall): Likewise.
* doc/m4.texinfo (Patsubst): Re-add trailing space required by
checks/47.patsubst, with a redundant @comment to prevent emacs
from removing it accidentally again.
* checks/get-them: Allow for trailing spaces tucked behind
@comment marks.