2014-09-30  Paul Smith  <psmith@gnu.org>

	Update Copyright statements for 2014.

	* tests/scripts/features/load: Avoid unused variable warnings.

	* loadapi.c (gmk_eval): Use C90 syntax.

2014-09-30  Hartmut Becker  <becker.ismaning@freenet.de>

	* job.c: fix make action continuation lines.
	* vmsjobs.c: fix writing DCL command files when trimming (white
	  spaces and $ signs) especially after a split (command continuation).

2014-09-15  Bernhard Reutner-Fischer  <rep.dot.nop@gmail.com>  (tiny change)

	* configure.ac: Fix spacing in helptext of customs

2014-09-15  Eli Zaretskii  <eliz@gnu.org>

	Support MAKE_TERMOUT and MAKE_TERMERR on MS-Windows.
	* w32/compat/posixfcn.c (isatty, ttyname): New functions.
	* config.h.W32.template (HAVE_TTYNAME): Define.  Add a prototype
	for ttyname.

2014-09-15  Paul Smith  <psmith@gnu.org>

	* loadapi.c (gmk_eval): [SV 43221] Preserve var buff content for eval.

	* main.c, NEWS, doc/make.text: Rename MAKE_TTY* to MAKE_TERM*

2014-09-14  Paul Smith  <psmith@gnu.org>

	* main.c (main): Set MAKE_TTYOUT and MAKE_TTYERR.
	* configure.ac: Test for isatty() and ttyname()
	* makeint.h: provide a substitute for ttyname() if it's not available.
	* config.ami.template, config.h-vms.template, config.h.W32.template:
	define/undefine HAVE_ISATTY/HAVE_TTYNAME macros.
	* NEWS, doc/make.texi: Document these new variables.

2014-09-07  Paul Smith  <psmith@gnu.org>

	* tests/config-flags.pm.in, tests/scripts/features/archives: [SV 43046]
	Use the "ar" program detected by configure when running the test suite.

	* doc/make.texi: Clarify implicit rule lookup of phony targets
	Reported by Frank Heckenbach <f.heckenbach@fh-soft.de>

2014-09-07  Hartmut Becker  <becker.ismaning@freenet.de>

	Fix and enhance VMS library support.
	* ar.c: fix VMS library search for members, which do not have
	suffixes, aka filename extensions.
	* arscan.c: fix time conversion and library callback routines.
	* default.c: more suffixes and automatically create the VMS library
	if it doesn't exists.

	Enhance VMS exporting make environment variables.
	* config.h-vms.template: add feature macro USE_DCL_COM_FILE to always
	write a DCL command file, enabled by default.
	* vmsjobs.c: with USE_DCL_COM_FILE enabled write make variables as DCL
	symbol assignments into the command file.  This enables printing
	directory and make level info for recursive use of make. This also
	enables forced DCL symbol substitution in the actions.

	Fix VMS automatic variable expansion
	* function.c: add VMS code to func_notdir_suffix and func_basename_dir
	to work on comma separated lists; this fixes the expansion of
	$(^D), $(+D) and the F variants for VMS.

	* main.c [VMS]: Say that parallel jobs (-j) are not supported on VMS

	Enhance/fix VMS ONESHELL implementation and command execution
	* job.c, vmsjobs.c: fix some double quote and new line handling;
	implement ONESHELL with writing multiple lines into one DCL command
	procedure; in ONESHELL allow VMS/make internal redirection only on the
	first line; fix the created DCL command procedure, which didn't abort
	on errors; return correct exit status from the DCL command procedure;
	preserve current procedure verification; make the generated command
	procedure more robust.

	Enhance/fix VMS setting of program name, MAKE/MAKE_COMMAND variables
	* default.c, main.c, makeint.h, vmsfunctions.c: prefix argv[0] with
	"mcr " for MAKE/MAKE_COMMAND and set the program name to the image
	filename (without the .exe;version)
	* vmsfunctions.c: remove obsolete code
	* vmsify: use xmalloc

	Enhance/fix VMS exit code handling.
	* commands.c, function.c, hash.c, job.c, main.c, output.c:
	use MAKE exit codes.
	* makeint.h: encode make exit codes so that they are VMS compatible.
	* job.c: check child exit code for VMS style exit codes.
	* vmsjobs.c: save and return VMS style exit code.

	Enhance/fix VMS multi-line support.
	* job.c: split the command line at a newline.
	* default.c, vmsjobs.c: change ECHO variable to a pseudo builtin,
	which ensures that the VMS/DCL ECHO ("write sys$output") is used
	and is correctly quoted.
	* vmsjobs.c: remove unused builtin 'rm'.

	* config_flags_pm.com, [RENAMED test_make.com] run_make_tests.com:
	Moved into tests directory.

	Enhance/fix VMS build environment
	* config.h-vms.template: make sure the CRTL version is known
	* makefile.com: always compile/link the guile module, remove VAXCRTL
	parameter, new LIST parameter
	* makefile.vms: always compile/link the guile module, use more
	complete dependencies
	* prepare_vms.com: helper to create a VMS config file when building
	from a snapshot of the repository

2014-09-07  Paul Smith  <psmith@gnu.org>

	* configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues.
	Reported by Paul Eggert <eggert@cs.ucla.edu>

2014-08-30  Eli Zaretskii  <eliz@gnu.org>

	Change the order of "makefile" and "Makefile" to match the manual.

	Fix regression with "makefile" not being found on MS-Windows.
	* read.c (read_all_makefiles) [WINDOWS32]: Recognize "makefile",
	all-lowercase, as a makefile.  Reported by Michael Waeber
	<waeber@gmail.com>.

2014-07-16  Eli Zaretskii  <eliz@gnu.org>

	Fix compilation on MS-Windows.
	* makeint.h [WINDOWS32]: Don't declare 'program' as 'const char *',
	since it is modified in 'main'.

2014-07-12  Eli Zaretskii  <eliz@gnu.org>

	[SV 42695] Fix compilation error on MS-Windows.
	* main.c [WINDOWS32]: Don't declare 'program' as 'const char *',
	since it is modified in 'main'.

2014-07-12  Jonny Grant  <jg@jguk.org>  (tiny change)

	Fix defalt_makefiles[] for MS-Windows.
	* read.c (read_all_makefiles) [WINDOWS32]: Remove the redundant
	"makefile" and add "makefile.mak".

2014-07-07  Fredrik Fornwall  <fredrik@fornwall.net>  (tiny change)

	* arscan.c [ANDROID]: Android has no ar.h but supports archives.

2014-07-07  Paul Smith  <psmith@gnu.org>

	* read.c (eval): [SV 41677] Correct test for TAB vs. 8 spaces.

2014-07-07  Piotr Jaroszynski  <pjaroszynski@nvidia.com>  (tiny change)

	* output.c (pump_from_tmp): [SV 42378] Flush the output file regularly.

2014-07-07  John Malmberg  <wb8tyw@qsl.net>

	Update the regression test harness to support VMS.
	* config_flags_pm.com, test_make.com: set up and run the regression
	test environment on VMS.
	* tests/run_make_tests.pl [VMS]: Use an alternate rmdir()
	implementation on VMS.
	(run_make_with_options) [VMS]: Provide VMS-specific quoting and shell
	invocations.
	(set_more_defaults) [VMS]: Set default values when running on VMS.
	* tests/test_driver.pl (vms_get_process_logicals) [VMS]: Retrieve the
	proper values from %ENV on VMS.
	(resetENV) [VMS]: Use it.
	(toplevel) [VMS]: Fix a bug with opendir() on some logical_devices.
	(compare_output) [VMS]: Convert VMS test output to a "standard" format.
	(_run_command) [VMS]: Handle signals and exit codes the VMS way.
	(remove_directory_tree_inner) [VMS]: Unlink all versions of the file.

2014-07-07  Paul Smith  <psmith@gnu.org>

	* various: Assume ISO C89-compliant free() implementation.

	* maintMakefile, various: Improve constification of the codebase.

	[SV 41983] Support omitting the text argument to $(file ...)
	Reported by Tim Murphy <tnmurphy@gmail.com>
	* function.c (func_file): Only write TEXT if it is not NULL.
	* NEWS, doc/make.texi: Document the new feature
	* tests/scripts/functions/file: Verify that the no-text version of
	  $(file ...) works and doesn't add a newline.

2014-05-13  Jacques Germishuys  <jacques.germishuys@gmail.com>

	NMakefile.template ($(OUTDIR)/posixfcn.obj): Fix a typo.

2014-05-01  Paul Smith  <psmith@gnu.org>

	[SV 42249] Propagate correct rule status results.
	* remake.c (update_file, update_file_1, check_dep): Return an enum
	  update_status value instead of an int, and keep the highest value we
	  find as we walk the graph so that the ultimate status is correct.
	* tests/scripts/options/dash-q: Add a test for updating prerequisites.

2014-02-08  Paul Smith  <psmith@gnu.org>

	* Rename MAP_PATHSEP to MAP_DIRSEP.

	* configure.ac: Fixup for newer autoconf/automake

2014-02-08  Ray Donnelly  <mingw.android@gmail.com>  (tiny change)

	* output.c: Ensure space for final nul byte in fmtbuf.

2014-02-07  Gisle Vanem  <gvanem@yahoo.no>  (tiny change)

	Improve error reporting in the Windows port when env size is too large.
	w32/subproc/misc.c (arr2envblk): Compute and return the size of
	the environment passed to child process.

	w32/subproc/sub_proc.c (process_begin): If the call to
	CreateProcess failed with EINVAL, and the required environment
	size was larger than 32KB, assume it's a Windows XP limitation,
	and display an error message to that effect.

	w32/subproc/proc.h (arr2envblk): Update prototype.

2014-02-01  Paul Smith  <psmith@gnu.org>

	* job.c (set_child_handler_action_flags): [SV 41341]
	Ensure signal handler is in place before alarm(1).

2014-01-20  Alan Hourihane  <alanh@fairlite.co.uk>  (tiny change)

	* configure.ac: [SV 40790] Fix load autoconf variables.

2014-01-17  Pavel Fedin  <p.fedin@samsung.com>  (tiny change)

	Allow the EMX build to use output_sync.
	job.c (start_job_command): Move the child output diversion out
	of non-EMX branch.
	[__EMX__]: Don't use fixed FD_STDOUT and FD_STDERR in the call to
	child_execute_job.

2014-01-12  Paul Smith  <psmith@gnu.org>

	* commands.c: [SV 40789] Remove unneeded header dlfcn.h

	* main.c (die): Close output_context AND make_sync.
	die() can be invoked inside a separate output_context, if the
	$(error ...) function is expanded as part of a recipe.

2014-01-11  Pavel Fedin  <p.fedin@samsung.com>  (tiny change)

	Fix .LIBPATTERNS for MS-Windows builds.
	default.c (.LIBPATTERNS) [__CYGWIN__ || WINDOWS32]: Provide
	library patterns for MS-Windows.

2013-11-27  Paul Smith  <psmith@gnu.org>

	* w32/*: Remove TABs from the source code.
	I know whitespace commits are annoying, but having these TABs is
	causing me to miss things when I search through the code.  This
	doesn't try to change the w32 code to meet GNU coding standards.

	* main.c (decode_env_switches): Ensure we have enough space.
	Reported (with patch) by Gerte Hoogewerf <g.hoogewerf@gmail.com>

2013-11-27  Stephan T. Lavavej  <stl@nuwen.net>  (tiny change)

	Solve some Windows build issues.
	* main.c (main): Use ONS(), not OSN().
	(prepare_mutex_handle_string) [WINDOWS32]: Use %Ix formatting to
	support both 32bit and 64bit systems.
	* job.c (free_child, new_job): Use ONS(), not OSN().
	* w32/subproc/w32err.c (map_windws32_error_to_string): Use O() when
	calling fatal().

2013-11-24  Paul Smith  <psmith@gnu.org>

	* features/loadapi (test_expand): Allocate memory for the nul byte.

	* load.c (load_file): Reset the name length minus the symbol.

	* read.c (unescape_char): Use memmove() for overlapping memory.

	Fix memory leak during environment option decoding.
	* main.c (decode_switches): Always make a copy of option arguments.
	(decode_env_switches): Use a stack buffer to convert environment
	switches for parsing.

	[SV 40226] Add a new type of switch: single-string options
	* main.c (struct command_switch): Change the "string" types to "strlist"
	and make "string" be a single-valued string instead.
	(output_sync_option, jobserver_fds, sync_mutex): Change to string type.
	(decode_output_sync_flags): Handle single strings instead of lists.
	(prepare_mutex_handle_string): Ditto.
	(main): Ditto.
	(clean_jobserver): Ditto.
	(init_switches): Handle the new type.
	(decode_switches): Ditto.
	(define_makeflags): Ditto.

2013-11-23  Daniel Richard G  <skunk@iskunk.org>  (tiny change)

	* load.c: [SV 40515] Define RTLD_GLOBAL if not set.

2013-11-23  Paul Smith  <psmith@gnu.org>

	[SV 40361] Don't use vsnprintf(), which is an ISO C99 function.
	* output.c (error, fatal, message): Take an extra argument specifying
	how many bytes are used by the formatted arguments.
	(get_buffer): New function that allocates the requested buffer size.
	Remove msc_vsnprintf(), vfmtconcat(), and fmtconcat() as unneeded.
	* makeint.h: Declare various helper macros for generating output.
	* *.c: Change all error(), fatal(), message() calls to use the macros,
	or pass the extra length argument directly.

2013-10-27  Paul Smith  <psmith@gnu.org>

	* makeint.h (STOP_SET): [SV 40371] Cast to unsigned char.
	* tests/scripts/misc/utf8: Test variable names with characters >127.
	Fix suggested by Robert Bogomip <bob.bogo@milohedge.com>

2013-10-24  Gerte Hoogewerf  <g.hoogewerf@gmail.com>

	Fix MS Visual Studio NET2003 build.
	* make_msvc_net2003.vcproj: Do not exclude guile.c from compilation.

2013-10-23  Christian Boos  <cboos@edgewall.org>

	Fix SV bug #40227 with respect to stack size set for the MSVC build.
	* NMakefile.template (/STACK): Increase to 0x400000, mainly for
	the 64-bit builds.  Fixes SV bug #40227.
	(guile): Uncomment.

2013-10-23  Eli Zaretskii  <eliz@gnu.org>

	Fix the MS-Windows build: now guile.c must always be compiled in.
	* build_w32.bat: Always compile guile.c and link against guile.o.
	  Reported by Alexey Pavlov <alexpux@gmail.com>.

	* makeint.h (guile_gmake_setup): Define prototype unconditionally,
	to avoid compiler warnings.

2013-10-22  Eli Zaretskii  <eliz@gnu.org>

	Fix Savannah bug #31150 with failures due to setting window title.
	* sub_proc.c (process_begin): Don't set startInfo.lpTitle, it
	reportedly causes SV bug #31150, and according to MSDN it's a
	no-no.

	Fix Savannah bug 40241 with Unixy file names as commands to MSYS shell.
	* sub_proc.c: Include filedef.h and variable.h.
	(process_begin): If exec_path was not found, but its first
	character is '/', assume there's some shell magic, and invoke the
	command through '$(SHELL) -c "COMMAND"'.  Fixes SV bug#40241.
	(make_command_line): Kludgey feature: if full_exec_path is "-c",
	assume that argv[0] is not to be skipped, as it holds the command
	string to be passed to the shell.

2013-10-20  Paul Smith  <psmith@gnu.org>

	* glob.c (glob) [SV 18123]: Cherry-pick glibc fix
	Apply commit a471e96a5352a5f0bde6d32dd36d33524811a2b1 from
	git://sourceware.org/git/glibc.git to fix
	https://sourceware.org/bugzilla/show_bug.cgi?id=10278

	* read.c (record_files): [SV 33034] Change fatal() to error()
	Allows deprecated syntax.  However we don't guarantee this syntax
	will continue to be legal in the future.
	Change suggested by David Boyce <david.s.boyce@gmail.com>

	* README.git: Add some missing release steps.

2013-10-19  Paul Smith  <psmith@gnu.org>

	[SV 40240] Use configure info to build load test shared libs
	* tests/config-flags.pm.in: A new file containing variable assignments
	for the test suite; these variables are set by configure to contain
	the values detected there for compilers, flags, etc.
	* tests/run_make_tests.pl: Require the config-flags.pm file
	* tests/scripts/features/load, tests/scripts/features/loadapi: Use the
	configure-provided values when building the shared test library.
	* configure.ac: Replace tests/config-flags.pm.in
	* Makefile.am: Make sure tests/config-flags.pm is up to date

	* maintMakefile (checkcfg.%): Add testing of build.sh

	[SV 40254] Modify build.sh to work properly with Guile support.
	* guile.c (guile_gmake_setup) [HAVE_GUILE]: Define a stub function
	when Guile support is not enabled.
	* main.c (main) [HAVE_GUILE]: Always invoke guile_gmake_setup().
	* Makefile.am: Make guile.c standard, not optional.
	* build.template: Add the Guile compiler and linker flags.

	* maintMakefile: Accept variable overrides from the environment.

	* NEWS: Fix version so we can build a distfile.

	* read.c (eval): Avoid GCC warning to add braces.

	* GNUMAKEFLAGS: Remove -O so it passes in NO_OUTPUT_SYNC mode.

2013-10-18  Christian Boos  <cboos@edgewall.org>

	Fix initialization of stringlist variables for jobserver_fds and sync_mutex.
	 (tiny change)

	 main.c (prepare_mutex_handle_string, main): Initialize
	 stringlist variables with at least 2 members, as one member is not
	 currently supported.

2013-10-18  Eli Zaretskii  <eliz@gnu.org>

	Fix MinGW64 problem with non-compliant vsnprintf.
	 makeint.h (__USE_MINGW_ANSI_STDIO) [__MINGW64_VERSION_MAJOR]:
	 Define for MinGW64, to force it to use an ANSI-compliant
	 implementation of vsnprintf.  Reported by Christian Boos
	 <cboos@edgewall.org>.

	Fix the MSVC build on MS-Windows.
	 output.c (vsnprintf) [_MSC_VER]: Define, instead of defining
	 snprintf, which isn't used.  Reported by Christian Boos
	 <cboos@edgewall.org>.
	 NMakefile.template (OBJS): Add load.obj and posixfcn.obj.
	 ($(OUTDIR)/pathstuff.obj): New dependency.
	 Suggested by Christian Boos <cboos@edgewall.org>.

2013-10-13  Paul Smith  <psmith@gnu.org>

	[SV 40139] Modify "missing separator" for better translation

	Add support for updating the GNU make web pages.
	Add makefile rules for updating the http://www.gnu.org/software/make
	web pages, including the online GNU make manual.

	Convert to auto-generated ChangeLog files.
	Rename existing ChangeLog files so they won't be distributed.
	Add targets to maintMakefile to generate ChangeLog from the Git
	repository.  This will require a version of gnulib be available.
	Because ChangeLog is auto-generated, we have to switch our
	automake mode to "foreign" or it will complain and fail.

	Set up for the next release.
