Installed a new French translation (resolves Debian Bug #106720)
[make.git] / ChangeLog
blob9bc2482437f99d60c7ca721a5091fcf28ed658bb
1 2001-08-03  Paul D. Smith  <psmith@gnu.org>
3         * i18n/fr.po: Installed an updated translation.
4         Resolves Debian bug #106720.
6 2001-06-13  Paul D. Smith  <psmith@gnu.org>
8         * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
9         translation.
11 2001-06-11  Paul D. Smith  <psmith@gnu.org>
13         * i18n/ko.po: Installed a new translation.
15 2001-05-06  Paul D. Smith  <psmith@gnu.org>
17         Modify the EINTR handling.
19         * job.c (new_job): Reorganize the jobserver algorithm.  Reorder
20         the way in which we manage the file descriptor/signal handler race
21         trap to be more efficient.
23 2001-05-06  Paul Eggert  <eggert@twinsun.com>
25         Restart almost all system calls that are interrupted, instead
26         of worrying about EINTR.  The lone exception is the read() for
27         job tokens.
29         * configure.in (HAVE_SA_RESTART): New macro.
30         (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
31         * main.c (main): Use SA_RESTART instead of the old,
32         nonstandard SA_INTERRUPT.
34         * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
35         * main.c (bsd_signal): New function or macro,
36         if the implementation doesn't supply it.
37         (The bsd_signal function will be in POSIX 1003.1-200x.)
38         (HANDLESIG): Remove.
39         (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
41         * make.h (EINTR_SET): Remove.
42         (SA_RESTART): New macro.
44         * arscan.c (ar_member_touch): Don't worry about EINTR.
45         * function.c (func_shell): Likewise.
46         * job.c (reap_children, free_child, new_job): Likewise.
47         * main.c (main): Likewise.
48         * remake.c (touch_file, name_mtime): Likewise.
50         * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
51         if fstat failed with errno!=EINTR, the error was ignored.
53         * job.c (set_child_handler_action_flags): New function.
54         (new_job): Use it to temporarily clear the SIGCHLD action flags
55         while reading the token.
57 2001-05-02  Paul D. Smith  <psmith@gnu.org>
59         * job.c (start_job_command): Don't add define/endef per-line flags
60         to the top-level flags setting.
62 2001-04-03  Paul D. Smith  <psmith@gnu.org>
64         * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
65         bit on error, so check for odd return values, not non-0 return
66         values.
67         (VMS_get_member_info): Calculate the timezone differences correctly.
68         Reported by John Fowler <jfowler@nyx.net>.
71 2001-03-14  Paul D. Smith  <psmith@gnu.org>
73         * variable.c (lookup_variable) [VMS]: Null-terminate the variable
74         value before invoking define_variable().
75         Reported by John Fowler <jfowler@nyx.net>.
77 2001-02-07  Paul D. Smith  <psmith@gnu.org>
79         * read.c (record_target_var): If we reset the variable due to a
80         command-line variable setting overriding it, turn off the "append"
81         flag.
83 2001-01-17  Paul D. Smith  <psmith@gnu.org>
85         * variable.c (lookup_variable) [VMS]: When getting values from the
86         environment, allocate enough space for the _value_ plus escapes,
87         not enough space for the name plus escapes :-/.
88         Reported by John Fowler <jfowler@nyx.net>.
90         * remake.c (f_mtime): Removed the "***" prefix from the mod time
91         warnings that make generates, so it doesn't look like an error.
92         Reported by Karl Berry <karl@gnu.org>.
95         Fix for PR/2020:  Rework appended target-specific variables.  I'm
96         fairly confident this algorithm is finally correct.
98         * expand.c (allocated_variable_append): Rewrite.  Instead of
99         expanding each appended variable then adding all the expanded
100         strings together, we append all the unexpanded values going up
101         through the variable set contexts, then expand the final result.
102         This behaves just like non-target-specific appended variable
103         values, while the old way didn't in various corner cases.
104         (variable_append): New function: recursively append the unexpanded
105         value of a variable, walking from the outermost variable scope to
106         the innermost.
107         * variable.c (lookup_variable): Remove the code that looked up the
108         variable set list if the found variable was "append".  We don't
109         need this anymore.
110         (lookup_variable_in_set): Make this non-static so we can use it
111         elsewhere.
112         (try_variable_definition): Use lookup_variable_in_set() rather
113         than faking out current_variable_set_list by hand (cleanup).
114         * variable.h: Add a prototype for the now non-static
115         lookup_variable_in_set().
117 2000-11-17  Paul D. Smith  <psmith@gnu.org>
119         * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
120         WINDOWS32 port to assume timestamps can be up to 3 seconds away
121         before throwing a fit.
123 2000-11-17  Paul D. Smith  <psmith@gnu.org>
125         * read.c (readline): CRLF calculations had a hole, if you hit the
126         buffer grow scenario just right.  Reworked the algorithm to avoid
127         the need for len or lastlen at all.  Problem description with
128         sample code chages provided by Chris Faylor <cgf@redhat.com>.
130 2000-10-24  Paul D. Smith  <psmith@gnu.org>
132         * gettext.c (SWAP): Declare this with the prototype, otherwise
133         some systems don't work (non-32-bit?  Reported for Cray T3E).
134         Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
136 2000-10-05  Paul D. Smith  <psmith@gnu.org>
138         * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
139         AM_LC_MESSAGES; it doesn't seem to do anything anyway??
141         * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
143 2000-09-22  Paul D. Smith  <psmith@gnu.org>
145         * gettext.c: Don't #define _GETTEXT_H here; we only include some
146         parts of the real gettext.h here, and we expect to really include
147         the real gettext.h later.  If we keep this #define, it's ignored.
149 2000-09-21  Paul D. Smith  <psmith@gnu.org>
151         * main.c (log_working_directory): Rework the text to use complete
152         sentences, to make life simpler for the translators.
154 2000-08-29  Paul D. Smith  <psmith@gnu.org>
156         * file.c (remove_intermediates): Print a debug message before we
157         remove intermediate files, so the user (if she uses -d) knows
158         what's going on.
160 2000-08-21  Paul D. Smith  <psmith@gnu.org>
162         * variable.c (try_variable_definition): Change how we handle
163         target-specific append variable defns: instead of just setting the
164         value, expand it as an append _but_ only within the current
165         target's context.  Otherwise we lose all but the last value if the
166         variable is appended more than once within the current target
167         context.  Fixes PR/1831.
169 2000-08-16  Paul D. Smith  <psmith@gnu.org>
171         * function.c (func_shell): Nul-terminate the buffer before
172         printing an exec error message (just in case it's not!).
173         Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
175 2000-07-25  Paul D. Smith  <psmith@gnu.org>
177         * job.c (construct_command_argv_internal): Add "~" to the list of
178         sh_chars[] which disallow optimizing out the shell call.
180 2000-07-23  Paul Eggert  <eggert@twinsun.com>
182         * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
183         supersedes --disable-nsec-timestamps.
184         * make.texinfo: Consistently use "time stamp" instead of "timestamp".
185         * README: Remove --disable-nsec-timestamps.
187         * filedef.h (struct file.low_resolution_time): New member.
188         * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
189         * remake.c (update_file_1):
190         Avoid spurious rebuilds due to low resolution time stamps,
191         generalizing the earlier code that applied only to archive members.
192         (f_mtime): Archive members always have low resolution time stamps.
194         * configure.in: Remove --disable-nsec-timestamps, as this has
195         been superseded by .LOW_RESOLUTION_TIME.
197 2000-07-23  Paul Eggert  <eggert@twinsun.com>
199         * configure.in (enable_nsec_timestamps): Renamed from
200         make_cv_nsec_timestamps, since enable/disable options
201         shouldn't be cached.
203 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
204        and  Paul Eggert  <eggert@twinsun.com>
206         * file.c (file_timestamp_now):
207         Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
208         so that clock_gettime is not linked unless needed.
210         * filedef.h (FILE_TIMESTAMP_HI_RES):
211         Remove definition; "configure" now does this.
213         * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
214         to before high resolution file timestamp check,
215         since that check now uses uintmax_t.
216         (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
217         high resolution file timestamps.
218         (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
219         so that we don't link in clock_gettime unnecessarily.
221 2000-07-17  Paul D. Smith  <psmith@gnu.org>
223         * i18n/ja.po: New version of the translation file.
225 2000-07-07  Paul D. Smith  <psmith@gnu.org>
227         * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
228         the offset calculation.
229         (name_mtime): Replace EINTR test with EINTR_SET macro.
231 2000-07-07  Paul Eggert  <eggert@twinsun.com>
233         Fix for PR/1811:
235         * remake.c (update_file_1):
236         Avoid spurious rebuilds of archive members due to their
237         timestamp resolution being only one second.
238         (f_mtime): Avoid spurious warnings of timestamps in the future due to
239         the clock's resolution being lower than file timestamps'.
240         When warning about future timestamps, report only the discrepancy,
241         not the absolute value of the timestamp and the current time.
243         * file.c (file_timestamp_now): New arg RESOLUTION.
244         * filedef.h (file_timestamp_now): Likewise.
245         (FILE_TIMESTAMP_NS): Now returns int.  All uses changed.
247 2000-07-05  Paul D. Smith  <psmith@gnu.org>
249         * variable.c (lookup_variable) [VMS]: Remove vestigial references
250         to listp.  Fixes PR/1793.
252 2000-06-26  Paul Eggert  <eggert@twinsun.com>
254         * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
256         * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
258         * remake.c (f_mtime): Remove unused var memtime.
260 2000-06-25  Martin Buchholz  <martin@xemacs.org>
262         * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
263         Ran spell-check on make.texinfo.
265 2000-06-23  Paul D. Smith  <psmith@gnu.org>
267         * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
268         EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
269         * make.h: Define these macros.
271         * Version 3.79.1 released.
273         * configure.in: Add a new option, --disable-nsec-timestamps, to
274         avoid using sub-second timestamps on systems that support it.  It
275         can lead to problems, e.g. if your makefile relies on "cp -p".
276         * README.template: Document the issue with "cp -p".
278         * config.guess, config.sub: Updated.
280 2000-06-22  Paul D. Smith  <psmith@gnu.org>
282         * job.c (start_job_command): Increment commands_started before the
283         special check for ":" (empty command) to avoid spurious "is up to
284         date" messages.  Also move the test for question_flag after we
285         expand arguments, and only stop if the expansion provided an
286         actual command to run, not just whitespace.  This fixes PR/1780.
288 2000-06-21  Paul D. Smith  <psmith@gnu.org>
290         * read.c (read_makefile): If we find a semicolon in the target
291         definition, remember where it was.  If the line turns out to be a
292         target-specific variable, add back the semicolon and everything
293         after it.  Fixes PR/1709.
295 2000-06-19  Paul D. Smith  <psmith@gnu.org>
297         * config.h-vms.template: #define uintmax_t for this system.
298         * config.ami.template: Ditto.
299         * config.h.W32.template: Ditto.
301         * configure.in: We don't use select(2) anymore, so don't bother
302         checking for it.
303         * acconfig.h: Ditto.
304         * acinclude.m4: Ditto.
306         * file.c (all_secondary): New static global; if 1 it means
307         .SECONDARY with no prerequisites was seen in the makefile.
308         (snap_deps): Set it appropriately.
309         (remove_intermediates): Check it.
310         (num_intermediates): Remove this global, it's not used anywhere.
311         (considered): Move this to remake.c and make it static.
313         * NEWS: Document the change to .SECONDARY.
314         * make.texinfo (Special Targets): Document the change to .SECONDARY.
316         * implicit.c (pattern_search): Remove the increment of
317         num_intermediates; it's not used.
318         * filedef.h: Remove num_intermediates and considered.
320         * function.c (handle_function): If the last argument was empty, we
321         were pretending it didn't exist rather than providing an empty
322         value.  Keep looking until we're past the end, not just at the end.
324         * implicit.c (pattern_search): Multi-target implicit rules weren't
325         expanding the "also made" targets correctly if the pattern didn't
326         contain a slash but the target did; in that case the directory
327         part wasn't being added back to the stem on the "also made"
328         targets.  Reported by Seth M LaForge <sethml@newtonlabs.com>, with
329         a patch.
331 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
333         * Makefile.DOS.template (DESTDIR, bindir, datadir, libdir)
334         (infodir, mandir, includedir): Support installation under a
335         non-default DESTDIR.
337         * remake.c (f_mtime): Fix the spelling of __MSDOS__.
339         * configh.DOS.template (HAVE_FDOPEN, HAVE_MKSTEMP): Define.
341 2000-06-14  Paul D. Smith  <psmith@gnu.org>
343         * acinclude.m4 (pds_WITH_GETTEXT): rewrite fp_WITH_GETTEXT and
344         rename it to avoid confusion.  This version is very specific: it
345         won't accept any gettext that isn't GNU.  If the user doesn't
346         explicitly ask for the included gettext, we look to see if the
347         system gettext is GNU (testing both the actual libintl library,
348         and the libintl.h header file).  Only if the system gettext is
349         really GNU gettext will we allow it to be used.
350         (pds_CHECK_SYSTEM_GETTEXT): A helper function.
352 2000-06-13  Paul D. Smith  <psmith@gnu.org>
354         * gettext.h: If we have libintl.h, use that instead of any of the
355         contents of gettext.h.  We won't check for libintl.h unless we're
356         using the system gettext.
358         * function.c (func_word): Clarify error message.
360 2000-06-10  Paul Eggert  <eggert@twinsun.com>
362         Support nanosecond resolution on hosts with 64-bit time_t and
363         uintmax_t (e.g. 64-bit Sparc Solaris), by splitting
364         FILE_TIMESTAMP into a 30-bit part for nanoseconds, with the
365         rest for seconds, if FILE_TIMESTAMP is at least 64 bits wide.
367         * make.h: Always define FILE_TIMESTAMP to be uintmax_t, for
368         simplicity.
370         * filedef.h (FILE_TIMESTAMP_HI_RES, FILE_TIMESTAMP_LO_BITS)
371         (UNKNOWN_MTIME, NONEXISTENT_MTIME, OLD_MTIME)
372         (ORDINARY_MTIME_MIN, ORDINARY_MTIME_MAX): New macros.
373         (FILE_TIMESTAMP_STAT_MODTIME): Now takes fname arg.  All uses changed.
374         (FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD)
375         (FILE_TIMESTAMP_FROM_S_AND_NS): Remove.
376         (FILE_TIMESTAMP_S, FILE_TIMESTAMP_NS): Use shifts instead of
377         multiplication and division.  Offset the timestamps by
378         ORDINARY_MTIME_MIN.
379         (file_timestamp_cons): New decl.
380         (NEW_MTIME): Now just the maximal timestamp value, as we no longer use
381         -1 to refer to nonexistent files.
383         * file.c (snap_deps, print_file): Use NONEXISTENT_MTIME,
384         UNKNOWN_MTIME, and OLD_MTIME instead of magic constants.
385         * filedef.h (file_mtime_1): Likewise.
386         * main.c (main): Likewise.
387         * remake.c (update_file_1, notice_finished_file, check_dep)
388         (f_mtime, name_mtime, library_search): Likewise.
389         * vpath.c (selective_vpath_search): Likewise.
391         * remake.c (f_mtime): Do not assume that (time_t) -1 equals
392         NONEXISTENT_MTIME.  When futzing with time stamps, adjust by
393         multiples of 2**30, not 10**9.  Do not calculate timestamp
394         adjustments on DOS unless they are needed.
396         * commands.c (delete_target): Do not assume that
397         FILE_TIMESTAMP_S yields -1 for a nonexistent file, as that is
398         no longer true with the new representation.
400         * file.c (file_timestamp_cons): New function, replacing
401         FILE_TIMESTAMP_FROM_S_AND_NS.  All uses changed.
402         (file_timestamp_now): Use FILE_TIMESTAMP_HI_RES instead of 1 <
403         FILE_TIMESTAMPS_PER_S to determine whether we're using hi-res
404         timestamps.
405         (print_file): Print OLD_MTIME values as "very old" instead of
406         as a timestamp.
408 2000-05-31  Paul Eggert  <eggert@twinsun.com>
410         * remake.c (name_mtime): Check for stat failures.  Retry if EINTR.
412 2000-05-24  Paul D. Smith  <psmith@gnu.org>
414         * main.c (decode_switches): The "positive_int" switch uses atoi()
415         which succeeds for any input, and doesn't notice if extra,
416         non-digit text is after the number.  This causes make to mis-parse
417         command lines like "make -j 5foo" as "make -j5" (ignoring "foo"
418         completely) instead of "make -j0 5foo" (where "5foo" is a
419         target).  Fix this by checking the value by hand.  We could use
420         strtol() if we were sure of having it; this is the only
421         questionable use of atoi() I found so we'll just stick with that.
422         Fixes PR/1716.
424         * i18n/ja.po, i18n/nl.po, i18n/pt_BR.po: New translation files.
425         * configure.in (ALL_LINGUAS): Added pt_BR.
427 2000-05-22  Paul Eggert  <eggert@twinsun.com>
429         * remake.c (f_mtime): Fix bug when handling future odd
430         timestamps in the WINDOWS32 case.  Do not bother initializing
431         static var to zero.  Simplify code that works around WINDOWS32
432         and __MSDOS__ time skew brain damage.
434 2000-05-22  Paul Eggert  <eggert@twinsun.com>
436         * job.c: Don't include time.h, as make.h already does this.
438 2000-05-22  Paul Eggert  <eggert@twinsun.com>
440         * configure.in (AC_CHECK_HEADERS): Add sys/time.h.
441         (AC_HEADER_TIME): Add.
442         (clock_gettime): Prefer -lrt to -lposix4, for Solaris 7.
443         (gettimeofday): Add check for standard version of gettimeofday.
444         This merges changes written by Paul D. Smith.
446         * file.c (file_timestamp_now):  Use gettimeofday if available
447         and if clock_gettime does not work.  Don't bother with
448         high-resolution clocks if file timestamps have only one-second
449         resolution.
451         * make.h <sys/time.h>: Include, conditionally on the usual
452         TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H macros.  This is needed
453         for gettimeofday.
455 2000-05-20  Paul D. Smith  <psmith@gnu.org>
457         * read.c (read_makefile): We weren't keeping makefile names around
458         unless there was a rule defined in them; but now we need to keep
459         them for variables as well.  Forget trying to be fancy: just keep
460         every makefile name we successfully open.
462         * remote-cstms.c (start_remote_job_p): Change DB_EXTRA (?) to DB_JOBS.
464 2000-05-17  Paul Eggert  <eggert@twinsun.com>
466         * commands.c (chop_commands): Ensure ctype macro args are nonnegative.
467         * expand.c (variable_expand_string): Likewise.
468         * function.c (subst_expand, lookup_function, msdos_openpipe):
469         Likewise.
470         * job.c (vms_redirect, start_job_command, new_job, child_execute_job,
471         construct_command_argv_internal, construct_command_argv): Likewise.
472         * main.c (decode_env_switches, quote_for_env): Likewise.
473         * misc.c (collapse_continuations, end_of_token, end_of_token_w32,
474         next_token): Likewise.
475         * read.c (read_makefile, do_define, conditional_line,
476         find_char_unquote,get_next_mword): Likewise.
477         * variable.c (try_variable_definition): Likewise.
478         * vpath.c (construct_vpath_list): Likewise.
479         * w32/pathstuff.c (convert_vpath_to_windows32): Likewise.
481 2000-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
483         * main.c (main) [__MSDOS__]: Add SIGFPE to signals we block when
484         running child programs, to prevent Make from dying on Windows 9X
485         when the child triggers an FP exception.
487 2000-05-08  Paul D. Smith  <psmith@gnu.org>
489         * dir.c (find_directory) [WINDOWS32]: If we strip a trailing "\"
490         from the directory name, remember to add it back.  The argument
491         might really be inside a longer string (e.g. %Path%) and if you
492         don't restore the "\" it'll be truncated permanently.  Fixes PR/1722.
493         Reported by <steven@surfcast.com>
495 2000-05-02  Paul D. Smith  <psmith@gnu.org>
497         * job.c (construct_command_argv_internal) [WINDOWS32]: Added "rd"
498         and "rmdir" to the list of command.com commands.
499         Reported by Elod Horvath <Elod_Horvath@lnotes5.bankofny.com>
501 2000-04-24  Paul D. Smith  <psmith@gnu.org>
503         * i18n/ja.po: New translation file from the Japanese language team.
505 2000-04-18  Paul D. Smith  <psmith@gnu.org>
507         * remake.c (f_mtime): If ar_member_date() returns -1 (the member
508         doesn't exist), then return (FILE_TIMESTAMP)-1 rather than
509         returning the timestamp calculated from the value -1.  Fixes PR/1696.
510         Reported by Gilles Bourhis <Gilles.Bourhis@univ-rennes1.fr>.
512 2000-04-17  Paul D. Smith  <psmith@gnu.org>
514         * config.h.W32.template: Add LOCALEDIR macro resolving to "".
515         * w32/subproc/sub_proc.c (process_begin): Remove reference to
516         debug_flag; change it to a DB() call.  Fixes PR/1700.
517         Reported by Jim Smith <jwksmith@attglobal.net>
519 2000-04-17  Bruno Haible  <haible@clisp.cons.org>
521         * arscan.c [BeOS]: Add replacement for nonexistent <ar.h> from GNU
522         binutils.
524 2000-04-11  Paul D. Smith  <psmith@gnu.org>
526         * function.c (expand_builtin_function): If no arguments were
527         provided, just quit early rather than changing each function to
528         test for this.
529         (function_table[]): Change the min # of arguments to 0 for all
530         those functions for which it makes sense (currently everything
531         that used to take a minimum of 1 argument, except $(call ...)).
532         Fixes PR/1689.
534 2000-04-09  Eli Zaretskii  <eliz@is.elta.co.il>
536         * README.DOS: Add instructions to install a binary distro.
537         Mention latest versions of Windows.
539 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
541         * main.c (main): Rename TMP_TEMPLATE into DEFAULT_TMPDIR, and use
542         it for the directory of the temporary file.  If P_tmpdir is
543         defined, use it in preference to "/tmp/".  Try $TMPDIR, $TEMP, and
544         $TMP in the environment before defaulting to DEFAULT_TMPDIR.
545         (print_version): Add year 2000 to the Copyright line.
547 2000-04-04  Paul D. Smith  <psmith@gnu.org>
549         * Version 3.79 released.
551         * make.texinfo: Update documentation with new features for 3.79.
553         * function.c (func_wordlist): Don't re-order arguments to
554         wordlist.
556 2000-04-03  Paul D. Smith  <psmith@gnu.org>
558         * remake.c (f_mtime): Archive member timestamps are stored as
559         time_t, without nanoseconds.  But, f_mtime() wants to return
560         nanosecond info on those systems that support it.  So, convert the
561         return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
562         the nanoseconds.
564 2000-03-28  Paul D. Smith  <psmith@gnu.org>
566         * Version 3.78.92 released.
568         * build.template: Updates for gettext support; some bugs fixed.
570 2000-03-27  Paul D. Smith  <psmith@gnu.org>
572         * config.guess, config.sub: Updated from config CVS archive at
573         :pserver:anoncvs@subversions.gnu.org:/home/cvs as of today.
575         * read.c (record_files): Check if expanding a static pattern
576         rule's prerequisite pattern leaves an empty string as the
577         prerequisite, and issue an error if so.  Fixes PR/1670.
578         (read_makefile): Store the starting linenumber for a rule in
579         TGTS_STARTED.
580         (record_waiting_files): Use the TGTS_STARTED value for the file
581         location passed to record_file() instead of the current
582         linenumber, so error messages list the line where the target was
583         defined instead of the line after the end of the rule definition.
585         * remake.c (start_updating, finish_updating, is_updating): Fix
586         PR/1671; circular dependencies in double-colon rules are not
587         diagnosed.  These macros set the updating flag in the root
588         double-colon file instead of the current one, if it's part of a
589         double-colon list.  This solution provided by Tim Magill
590         <magill@gate.net>; I just changed the macro names :).
591         (update_file_1): Call them.
592         (check_dep): Call them.
594         The change to not automatically evaluate the $(call ...)
595         function's arguments breaks recursive use of call.  Although using
596         $(if ...) and $(foreach ...) in $(call ...) macros is important,
597         the error conditions generated are simply to obscure for me to
598         feel comfortable with.  If a method is devised to get both
599         working, we'll revisit.  For now, remove this change.
601         * function.c (function_table): Turn on the expand bit for func_call.
602         (func_call): Don't expand arguments for builtin functions; that
603         will have already been done.
605 2000-03-26  Paul D. Smith  <psmith@gnu.org>
607         * file.c (remove_intermediates): Never remove targets explicitly
608         requested on the command-line by checking the cmd_target flag.
609         Fixed PR/1669.
611 2000-03-23  Paul Eggert  <eggert@twinsun.com>
613         * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Use st_mtime instead of
614         st_mtim.tv_sec; the latter doesn't work on Unixware.
616 2000-03-18  Paul D. Smith  <psmith@gnu.org>
618         * file.c (file_hash_enter): If we're trying to change a file into
619         itself, just return.  We used to assert this wasn't true, but
620         someone came up with a weird case involving archives.  After
621         playing with it for a while I decided it was OK to ignore it.
623         * default.c: Define COFLAGS to empty to avoid spurious warnings.
625         * filedef.h: Change #if ST_MTIM_NSEC to #ifdef; this is a macro
626         containing the name of the nsec field, not true/false.
627         * make.h: Ditto.
628         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
630 2000-03-08  Tim Magill  <magill@gate.net>
632         * remake.c (update_file): Return the exit status of the pruned
633         file when pruning, not just 0.  Fixes PR/1634.
635 2000-02-24  Paul D. Smith  <psmith@gnu.org>
637         * configure.in: Close a minor potential security hole; if you're
638         reading makefiles from stdin (who does that?) you could run into a
639         race condition with the temp file using mktemp() or tmpnam().  Add
640         a check for mkstemp() and fdopen().
641         * main.c (open_tmpfile): New function to open a temporary file.
642         If we have mkstemp() (and fdopen()), use that.  If not use
643         mktemp() or tmpnam().  If we have fdopen(), use open() to open the
644         file O_CREAT|O_EXCL.  If not, fall back to normal fopen() (insecure).
645         (main): Call it.
646         * job.c (child_execute_job) [VMS]: Call it.
648         * variable.c (lookup_variable): If we find a variable which is
649         being expanded, then note it but keep looking through the rest of
650         the set list to see if we can find one that isn't.  If we do,
651         return that.  If we don't, return the original.  Fix for PR/1610.
653         While implementing this I realized that it also solves PR/1380 in
654         a much more elegant way.  I don't know what I was smoking before.
655         So, remove the hackage surrounding the original fix for that (see
656         below).  Change this function back to lookup_variable and remove
657         the extra setlist argument.
658         * variable.h (recursively_expand_setlist): Remove the macro,
659         rename the prototype, and remove the extra setlist argument.
660         (lookup_variable): Ditto.
661         * expand.c (recursively_expand): Rename and remove the extra
662         setlist argument.
663         (reference_variable): Use lookup_variable() again.
664         (allocated_variable_append): Remove the extra setlist argument.
666 2000-02-21  Paul D. Smith  <psmith@gnu.org>
668         * README.template: A few updates.
670         * i18n/de.po: New version from the German translation team.
672 2000-02-09  Paul D. Smith  <psmith@gnu.org>
674         * Version 3.78.91 released.
676 2000-02-07  Paul D. Smith  <psmith@gnu.org>
678         * read.c (read_makefile): Reset *p2 to ':', not *colonp.  If any
679         filenames contained backslashes the resulting output (without
680         backslashes) will be shorter, so setting *colonp doesn't change
681         the right character.  Fix for PR/1586.
683         For += target-specific variables we need to remember which
684         variable set we found the variable in, so we can start looking
685         from there in the next iteration (otherwise we might see it again
686         in recursively_expand and fail!).  This is turning into a hack; if
687         it gets any worse we'll have to rethink this entire algorithm...
688         implementing expansion of these references separately from the
689         "normal" expansion, say, instead of using the same codepath.
690         Actually, it's already "worse enough" :-/.
691         Fix for PR/1380.
693         * variable.h (recursively_expand_setlist): Rename
694         recursively_expand to add a struct variable_set_list argument, and
695         make a macro for recursively_expand.
696         (lookup_variable_setlist): Rename lookup_variable to add a struct
697         variable_set_list argument, and make a macro for lookup_variable.
699         * expand.c (recursively_expand_setlist): Take an extra struct
700         variable_set_list argument and pass it to allocated_variable_append().
701         (reference_variable): Use lookup_variable_setlist() and pass the
702         returned variable_set_list to recursively_expand_setlist.
703         (allocated_variable_append): Take an extra setlist argument and
704         use this as the starting place when searching for the appended
705         expansion.  If it's null, use current_variable_set_list as before.
707         * variable.c (lookup_variable_setlist): If the LISTP argument is
708         not nil, set it to the list containing the variable we found.
710 2000-02-04  Paul D. Smith  <psmith@gnu.org>
712         * variable.c (print_variable): Write out filename/linenumber
713         information for the variable definition if present.
714         (define_variable_in_set): Store filename information if provided.
715         (define_variable, define_variable_for_file): Removed.
716         (try_variable_definition): Use define_variable_loc() to keep
717         variable definition location information.
718         * read.c (read_makefile): Keep variable definition location info.
719         (do_define): Ditto.
720         (record_target_var): Ditto.
721         * variable.h (define_variable_in_set): New fileinfo argument.
722         (define_variable, define_variable_loc, define_variable_for_file):
723         Declare new macros.
725         Fix PR/1407:
727         * filedef.h (struct file): Rename patvar to pat_variables and make
728         it just a variable_set_list; we need our own copy of the pattern
729         variable's variable set list here to avoid overwriting the global
730         one.
731         * variable.c (initialize_file_variables): Move the instantiation
732         of the pat_variables pointer here.  Only do the search after we're
733         done reading the makefiles so we don't search too early.  If
734         there's a pat_variables value, set up the variables next ptr.
735         * expand.c (variable_expand_for_file): Remove the setup of the
736         pat_variables info; it's done earlier now to ensure the parent's
737         pattern variables are set up correctly as well.
739 2000-02-03  Paul D. Smith  <psmith@gnu.org>
741         * job.c (sh_chars_dos) [WINDOWS32]: Add "&" as a shell
742         metacharacter for the W32 DOS shell.
743         Reported by Warren Jones <wjones@tc.fluke.com>.
745 2000-02-02  Paul D. Smith  <psmith@gnu.org>
747         Fixes for the OpenVMS port from Hartmut Becker <becker@rto.dec.com>
749         * config.h-vms [VMS]: Define LOCALEDIR to something; needed for
750         the expansion of bindtextdomain() even though it's a no-op.
751         * vmsfunctions.c (strcmpi): Remove duplicate definition of strcmpi().
752         (readdir): Use DB() instead of testing debug_flag.
753         * dir.c (file_impossible) [VMS]: Search "p" not "name".
754         * job.c [VMS]: Switch from debug_flag to the new DB macro.  Add
755         some i18n _() macros (even though VMS doesn't yet support it).
757         * function.c (patsubst_expand): Change "len" to not be unsigned to
758         avoid type mismatches.
760         * main.c (main): Declare signame_init() if we're going to call it.
762 2000-01-29  Eli Zaretskii  <eliz@is.elta.co.il>
764         * Makefile.DOS.template: Track changes in Makefile.in
765         (install-recursive, uninstall-recursive): Add missing targets.
766         (DESTDIR): Define.
767         (install-binPROGRAMS, uninstall-binPROGRAMS): Use $(DESTDIR).
769         * default.c (default_variables) [__MSDOS__]: Define CXX to gpp.
771 2000-01-27  Paul D. Smith  <psmith@gnu.org>
773         * gettext.c: Some warning cleanups, and a fix for systems which
774         don't define HAVE_ALLOCA (the workaround code was included
775         twice).
777 2000-01-26  Paul D. Smith  <psmith@gnu.org>
779         * Version 3.78.90 released.
781 2000-01-25  Paul D. Smith  <psmith@gnu.org>
783         Change gettext support to use the simplified version in libit 0.7.
785         * getopt.c, make.h: Use gettext.h instead of libintl.h.
786         * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
787         Modified to remove some static declarations which aren't defined.
788         * acconfig.h: Use new gettext #defines.
789         * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
790         * configure.in: Call fp_WITH_GETTEXT instead.
791         * Makefile.am: New gettext stuff.  Also force inclusion of glob
792         files for systems which have LIBC glob.
794         * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
795         * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
796         * i18n/pl.po, i18n/ru.po: Import translations already done for
797         earlier versions of GNU make.  Thanks for that work!!
799         * po/Makefile.in.in, po/POTFILES.in: Removed.
801 2000-01-23  Paul D. Smith  <psmith@gnu.org>
803         * main.c (decode_debug_flags): If debug_flag is set, enable all
804         debugging levels.
805         (debug_flag): Resurrect this flag variable.
806         (switches): Make -d give the old behavior of turning on all
807         debugging.  Change --debug alone to emit basic debugging and take
808         optional arguments to expand debugging.
809         * NEWS: Document the new debugging options.
811         * remake.c (no_rule_error): Remove this function.  This tries to
812         fix a real problem--see the description with the introduction of
813         this function below.  However, the cure is worse than the disease
814         and this approach won't work.
815         (remake_file): Put the code from no_rule_error back here.
816         (update_file_1): Remove call to no_rule_error.
818         * filedef.h (struct file): Remove mfile_status field.
820 2000-01-22  Paul D. Smith  <psmith@gnu.org>
822         Integrate GNU gettext support.
824         * configure.in: Add AM_GNU_GETTEXT.
825         * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
826         * acinclude.m4: Add gettext autoconf macros.
827         * acconfig.h: Add new gettext #defines.
828         * make.h: Include libintl.h.  Make sure _() and N_() macros are
829         declared.  Make gettext() an empty macro is NLS is disabled.
830         * main.c (struct command_switch switches[]): Can't initialize
831         static data with _() (gettext calls), so use N_() there then use
832         gettext() directly when printing the strings.
833         * remake.c (no_rule_error): The string constants can't be static
834         when initializing _() macros.
835         * file.c (print_file): Reformat a few strings to work better for
836         translation.
837         * po/POTFILES.in, po/Makefile.in.in: New files.  Take
838         Makefile.in.in from the latest GNU tar distribution, as that
839         version works better than the one that comes with gettext.
840         * NEWS: Mention i18n ability.
842 2000-01-21  Paul D. Smith  <psmith@gnu.org>
844         Installed patches for the VMS port.
845         Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
847         * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
848         * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
849         * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
850         * glob/glob.h: Installed patches.  See readme.vms for details.
852 2000-01-14  Andreas Schwab  <schwab@suse.de>
854         * dir.c (read_dirstream): Initialize d_type if it exists.
856 2000-01-11  Paul D. Smith  <psmith@gnu.org>
858         Resolve PR/xxxx: don't automatically evaluate the $(call ...)
859         function's arguments.  While we're here, clean up argument passing
860         protocol to always use simple nul-terminated strings, instead of
861         sometimes using offset pointers to mark the end of arguments.
862         This change also fixes PR/1517.
863         Reported by Damien GIBOU <damien.gibou@st.com>.
865         * function.c (struct function_table_entry): Remove the negative
866         required_args hack; put in explicit min and max # of arguments.
867         (function_table): Add in the max value.  Turn off the expand bit
868         for func_call.
869         (expand_builtin_function): Test against minimum_args instead of
870         the obsolete required_args.
871         (handle_function): Rewrite this.  We don't try to be fancy and
872         pass one style of arguments to expanded functions and another
873         style to non-expanded functions: pass pointers to nul-terminated
874         strings to all functions.
875         (func_call): Rewrite this.  If we are invoking a builtin function
876         and it's supposed to have its arguments expanded, do that (since
877         it's not done by handle_function for $(call ...) anymore).  For
878         non-builtins, just add the variables as before but mark them as
879         recursive so they'll be expanded later, as needed.
880         (func_if): All arguments are vanilla nul-terminated strings:
881         remove trickery with "argv[1]-1".
882         (func_foreach): Ditto.
884         * expand.c (expand_argument): If the second arg is NULL, expand
885         the entire first argument.
887         * job.c (new_job): Zero the child struct.  This change was just
888         made to keep some heap checking software happy, not because there
889         was an actual bug (the important memory was being cleared properly).
891 1999-12-15  Paul D. Smith  <psmith@gnu.org>
893         * variable.c (print_variable): Print the variable with += if the
894         append flag is set.
896         * implicit.c (pattern_search): Remove the extra check of the
897         implicit flag added on 8/24/1998.  This causes problems and the
898         reason for the change was better resolved by the change made to
899         check_deps() on 1998-08-26.  This fixes PR/1423.
901 1999-12-08  Paul D. Smith  <psmith@gnu.org>
903         * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
904         in LFS mode, stat() is actually a macro for stat64().  Assignment
905         doesn't work in that case.  So, stat is a macro, make a local
906         wrapper function to invoke it.
907         (local_stat): Wrapper function, if needed.
908         Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
910 1999-12-02  Paul D. Smith  <psmith@gnu.org>
912         * remake.c (update_file): Move the considered test outside the
913         double-colon loop, _but_ make sure we test the double_colon target
914         not the "current" target.  If we stop early because one
915         double-colon target is running, mark all the rest considered and
916         try to start their prerequisites (so they're marked considered).
917         Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
919 1999-11-22  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
921         * function.c (windows32_openpipe, func_shell): Correct Windows32
922         problem where $(shell nosuchfile) would incorrectly exit make. The
923         fix is to print the error and let make continue.
924         Reported by David Masterson <David.Masterson@kla-tencor.com>.
926         * w32/subproc/misc.c (arr2envblk): Memory leak fix.
928 1999-11-21  Paul D. Smith  <psmith@gnu.org>
930         Rework GNU make debugging to provide different levels of output.
932         * NEWS: mention it.
933         * debug.h: New file.  Define various debugging levels and macros.
934         * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
935         * remote-cstms.c, vmsfunctions.c: Replace all code depending on
936         debug_flag with invocations of debugging macros.
937         * make.h: Remove debug_flag and DEBUGPR, add db_level.
939 1999-11-18  Paul Eggert  <eggert@twinsun.com>
941         * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
942         with the QNX 4.25 shell, which doesn't propagate exit status of
943         failed commands inside shell assignments.
945 1999-11-17  Paul D. Smith  <psmith@gnu.org>
947         * function.c (func_if): Find the end of the arg list by testing
948         the next item for NULL; any other test is not correct.
949         Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
951         Fix += when used in a target-specific variable context.
953         * variable.h: New bitfield APPEND set if we have a +=
954         target-specific variable.
956         * variable.c (try_variable_definition): Add an argument to specify
957         if we're trying a target-specific variable.  If we are and it's an
958         append style, don't append it, record it as normal recursive, but
959         set the APPEND flag so it'll be expanded later.
960         * main.c (handle_non_switch_argument): Use new
961         try_variable_definition() signature.
962         * read.c (read_makefile,record_target_var): Ditto.
964         * expand.c (allocated_variable_append): New function: like
965         allocated_variable_expand(), but we expand the same variable name
966         in the context of the ``next'' variable set, then we append this
967         expanded value.
968         (recursively_expand): Invoke it, if the APPEND bit is set.
970 1999-11-10  Paul D. Smith  <psmith@gnu.org>
972         * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
973         off parallel builds for this make only (still allow submakes to be
974         run in parallel).
975         * main.c: New variable, ``not_parallel''.
976         * make.h: Add an extern for it.
977         * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
978         * NEWS: Add info on .NOTPARALLEL.
979         * make.texinfo (Special Targets): Document it.
981         * configure.in (GLOBDIR): Set to "glob" if we need to build the
982         glob library.
983         * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
984         "glob" so we don't try to build glob if we don't need to (if we
985         have GLIBC glob).  Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
987         * main.c (main): Don't put "***" in the clock skew warning
988         message.  Reported by karl@gnu.org.
990         * make.h: Remove unneeded signal setup.
992         * signame.c: Remove extraneous #includes; some versions of Ultrix
993         don't protect against multiple inclusions and it causes compile
994         errors.  Reported by Simon Burge <simonb@thistledown.com.au>.
996 1999-10-15  Paul D. Smith  <psmith@gnu.org>
998         * main.c (quote_for_env): Rename from quote_as_word().
1000         * make.h, *.c: Prefer strchr() and strrchr() in the code
1001         rather than index() and rindex().  Define strchr/strrchr in terms
1002         of index/rindex if the former aren't supported.
1004         * default.c (CHECKOUT,v): Replace the fancy, complicated
1005         patsubst/filter expression with a simple $(if ...) expression.
1007         * main.c (print_usage): Add the bug reporting mailing address to
1008         the --help output, as per the GNU coding standards.
1009         Reported by Paul Eggert <eggert@twinsun.com>.
1011         * README.customs: Installed information on running Customs-ized
1012         GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
1014         * read.c (read_all_makefiles): PR/1394: Mark the end of the next
1015         token in the MAKEFILES value string _before_ we dup it.
1017 1999-10-13  Paul D. Smith  <psmith@gnu.org>
1019         * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
1020         flag to CPPFLAGS, but that loses if the user specifies his own
1021         CPPFLAGS; this one gets added _after_ his and if he happens to
1022         have an old or broken glob.h--boom.  Instead, put it in GLOBINC
1023         and SUBST it.
1025         * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
1026         these things get on the compile line well before the user's
1027         CPPFLAGS.
1029 1999-10-12  Paul D. Smith  <psmith@gnu.org>
1031         * remake.c (notice_finished_file): If we get here and -n is set,
1032         see if all the command lines are marked recursive.  If so, then we
1033         ran every command there is, so check the mtime on this file just
1034         like we would normally.  If not, we assume the command we didn't
1035         run would updates the target and set mtime of the target to "very new".
1037         * job.c (start_job_command): Update lines_flags in the file's cmds
1038         structure with any per-line tokens we found (`@', `-', `+').
1040 1999-10-08  Paul D. Smith  <psmith@gnu.org>
1042         * variable.c (initialize_file_variables): Always recurse to
1043         initialize the parent's file variables: the parent might not have
1044         any rules to run so it might not have been initialized before
1045         this--we need this to set up the chain properly for
1046         target-specific variables.
1048 1999-09-29  Paul Eggert  <eggert@twinsun.com>
1050         * main.c (quote_as_word): Always quote for decode_env_switches
1051         instead of for the shell, so that arguments with strange
1052         characters are are passed to submakes correctly.  Remove
1053         double_dollars arg; we always double dollars now.  All callers
1054         changed.
1055         (decode_env_switches): Don't run off the end of an environment
1056         variable whose contents ends in a unescaped backslash.
1058 1999-09-23  Paul D. Smith  <psmith@gnu.org>
1060         * commands.c, function.c, job.c, read.c: Cast arguments to
1061         ctype.h functions/macros to _unsigned_ char for portability.
1063         * remake.c, function.c: Compiler warning fixes: the second
1064         argument to find_next_token() should be an _unsigned_ int*.
1065         Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
1067 1999-09-23  Paul D. Smith  <psmith@gnu.org>
1069         * Version 3.78.1 released.
1071         * make.texinfo: Update version/date stamp.
1073         * main.c (main): Argh.  For some reason we were closing _all_ the
1074         jobserver pipes before we re-exec'd due to changed makefiles.
1075         This means that any re-exec got a "jobserver unavailable" error :-/.
1076         I can't believe we didn't notice this before.
1078 1999-09-22  Paul D. Smith  <psmith@gnu.org>
1080         * Version 3.78 released.
1082         * main.c (main): Only fail on multiple --jobserver-fds options if
1083         they aren't all the same.  Some makefiles use things like
1084         $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
1085         --jobserver-fds to show up.
1087 1999-09-16  Paul D. Smith  <psmith@gnu.org>
1089         * main.c (define_makeflags): Zero out FLAGSTRING to avoid
1090         uninitialized memory reads when checking *p != '-' in the loop.
1092 1999-09-15  Paul D. Smith  <psmith@gnu.org>
1094         * Version 3.77.97 released.
1096         * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
1097         makefile.
1098         * Makefile.am (check-local): Print a success banner if the check
1099         succeeds.
1100         (check-regression): A bit of fine-tuning.
1102 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
1104         * README.DOS.template: Document requirements for the test suite.
1105         * Makefile.DOS.template: Updates to allow the test suite to run
1106         from "make check".
1108         * main.c (main): Handle it if argv[0] isn't an absolute path.
1110 1999-09-13  Paul D. Smith  <psmith@gnu.org>
1112         * Version 3.77.96 released.
1114         * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
1115         all the right #defines to compile.
1116         (check-regression): Look for the regression test suite in the make
1117         package itself.  If we're building remotely, use symlinks to make
1118         a local copy.
1119         (dist-hook): Put the test suite into the tar file.
1121         * configure.in: Look for perl for the test suite.
1123 1999-09-10  Paul Eggert  <eggert@twinsun.com>
1125         * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
1126         later, and using GCC, define __STDC_EXT__; this works around a
1127         bug in GCC 2.95.1.
1129 1999-09-08  Paul D. Smith  <psmith@gnu.org>
1131         * main.c (print_version): Ugh.  GLIBC's configure tries to check
1132         make version strings and is too aggressive with their matching
1133         expressions.  I've struck a deal with them to leave the version
1134         output as-is for 3.78, and they'll change their configure checks
1135         so that I can change this back in the future.
1137 1999-09-07  Eli Zaretskii  <eliz@is.elta.co.il>
1139         * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
1140         and "unset" to the list of builtin shell commands.
1142         * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
1143         which is the canonical name of the DJGPP host.
1145 1999-09-05  Paul D. Smith  <psmith@gnu.org>
1147         * Version 3.77.95 released.
1149         * make.texinfo (Make Errors): Document some new jobserver error
1150         messages.
1152 1999-09-04  Eli Zaretskii  <eliz@is.elta.co.il>
1154         * make.texinfo (Make Errors): Document the hint about 8 spaces
1155         instead of a TAB.
1156         (Call Function, Quick Reference): Use @code{$(1)}, not @var.
1158         * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
1159         MS-DOS", since the MSDOS version could run on Windows.
1161 1999-09-03  Paul D. Smith  <psmith@gnu.org>
1163         * remake.c (notice_finished_file): Always set mtime_before_update
1164         if it's not been set, not just if we ran some rules.  Otherwise we
1165         may have a situation where a target's prerequisite was rebuilt but
1166         not changed, so this target's rules weren't run, then
1167         update_goal_chain() sees mtime_before_update != last_mtime and
1168         thinks that the top-level target changed when it really didn't.
1169         This can cause an infinite loop when remaking makefiles.
1170         (update_goal_chain): If we get back to the top and we don't know
1171         what the goal's last_mtime was, find it now.  We need to know so
1172         we can compare it to mtime_before_update later (this is only
1173         crucial when remaking makefiles--should we only do it then?)
1175 1999-09-02  Paul D. Smith  <psmith@gnu.org>
1177         * read.c (read_makefile): If "override" appears as the first
1178         prerequisite, look further to ensure this is really a
1179         target-specific variable definition, and not just some
1180         prerequisite named "override".
1182 1999-09-01  Paul D. Smith  <psmith@gnu.org>
1184         * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
1185         for W32 platforms.
1186         * read.c (record_files) [WINDOWS32]: Allow backslash separators
1187         for W32 platforms.
1188         * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
1189         separators for W32 platforms.
1191         * configure.in (MAKE_HOST): Define it to be the canonical build
1192         host info, now that we need AC_CANONICAL_HOST anyway (for large
1193         file support).
1194         * version.c (make_host): Define a variable to MAKE_HOST so we're
1195         sure to get it from the local config.h.
1196         * main.c (print_version): Use it in the version information.
1197         * config.ami.template: Add MAKE_HOST.
1198         * configh.dos.template: Ditto.
1199         * config.h.W32.template: Ditto.
1200         * config.h-vms.template: Ditto.
1202         * main.c (main): Close the jobserver file descriptors if we need
1203         to re-exec ourselves.
1204         Also print more reasonable error if users force -jN for submakes.
1205         This may be common for a while until people use the jobserver
1206         feature.  If it happens, we ignore the existing jobserver stuff
1207         and use whatever they specified on the commandline.
1208         (define_makeflags): Fixed a long-standing bug: if a long name
1209         only option comes immediately after a single letter option with no
1210         argument, then the option string is constructed incorrectly.  For
1211         example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
1212         instead of "-w --jobserver-fds..."; add in an extra " -".
1214         * make.texinfo (Phony Targets): Add another example of using
1215         .PHONY with subdirectories/recursive make.
1217 1999-08-30  Paul D. Smith  <psmith@gnu.org>
1219         * README.W32.template: Renamed from README.W32 so it's
1220         autogenerated during the dist.  A few minor modifications.
1222         * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
1223         since the latter needs to know whether the former exists to give
1224         an accurate result.
1226 1999-08-26  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1228         * NMakefile [WINDOWS32]: Now more robust. If you change a file
1229         under w32/subproc, the make.exe will be relinked. Also added some
1230         tests to make sure erase commands won't fail when executed in a
1231         pristine build environment.
1233         * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
1234         HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
1235         is now possible to have have native support for this shell without
1236         having to rely on klutzy BATCH_MODE_ONLY_SHELL.
1238         * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
1239         users can define if they want to build make to use this shell.
1241         * README.W32 [WINDOWS32]: Added informaton about
1242         HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
1244 1999-08-26  Paul Eggert  <eggert@twinsun.com>
1246         Support large files in AIX, HP-UX, and IRIX.
1248         * acinclude.m4 (AC_LFS): Remove.  Superseded by AC_SYS_LARGEFILE.
1249         (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
1250         AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
1251         (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
1252         shift or divide unsigned long long.
1253         (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
1254         automake 1.4.
1256         * configure.in (AC_CANONICAL_HOST): Add; required by new
1257         AC_SYS_LARGEFILE.
1258         (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1259         (AM_PROG_CC_STDC): Add.
1261         * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
1263 1999-08-25  Paul Eggert  <eggert@twinsun.com>
1265         * make.h (CHAR_MAX): New macro.
1266         * main.c (struct command_switch): c is now int,
1267         so that it can store values greater than CHAR_MAX.
1268         (switches): Replace small numbers N with CHAR_MAX+N-1,
1269         to avoid problems with non-ASCII character sets.
1270         (short_option): New macro.
1271         (init_switches, print_usage, define_makeflags): Use it instead of
1272         isalnum.
1274 1999-08-25  Paul D. Smith  <psmith@gnu.org>
1276         * Version 3.77.94 released.
1278         * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
1279         not supported and reset it.
1281         * make.h (ISDIGIT): Obtained this from the textutils distribution.
1282         * main.c (decode_switches): Use it.
1283         * function.c (is_numeric): Use it.
1285         * main.c (struct command_switch): Store the switch char in an
1286         unsigned char to shut up GCC about using it with ctype.h macros.
1287         Besides, it _is_ always unsigned.
1289 1999-08-24  Paul D. Smith  <psmith@gnu.org>
1291         * make.texinfo: Change "dependency" to "prerequisite" and
1292         "dependencies" to "prerequisites".  Various other cleanups related
1293         to the terminology change.
1294         * file.c: Change debugging and error messages to use
1295         "prerequisite" instead of "dependency".
1296         * implicit.c: Ditto.
1297         * remake.c: Ditto.
1298         * NEWS: Document it.
1300 1999-08-23  Paul D. Smith  <psmith@gnu.org>
1302         * remake.c (update_file): Move the considered check into the
1303         double-colon rule loop, so we consider double-colon rules
1304         individually (otherwise after the first is pruned, the rest won't
1305         get run).
1307         * README.template: Minor changes.
1309         Remove the debugging features of the jobserver, so it no longer
1310         writes distinct tokens to the pipe.  Thus, we don't need to store
1311         the token we get.  A side effect of this is to remove a potential
1312         "unavailable token" situation: make-1 invokes make-2 with its
1313         special token and make-3 with a normal token; make-2 completes.
1314         Now we're waiting for make-3 but using 2 tokens; our special token
1315         is idle.  In the new version we don't have special tokens per se,
1316         we merely decide if we already have a child or not.  If we don't,
1317         we don't need a token.  If we do, we have to get one to run the
1318         next child.  Similar for putting tokens back: if we're cleaning up
1319         the last child, we don't put a token back.  Otherwise, we do.
1321         * main.c: Add a new, internal flag --jobserver-fds instead of
1322         overloading the meaning of -j.  Remove job_slots_str and add the
1323         stringlist jobserver_fds.
1324         (struct command_switch): We don't need the int_string type.
1325         (switches[]): Add a new option for --jobserver-fds and remove
1326         conditions around -j.  Make the description for the former 0 so it
1327         doesn't print during "make --help".
1328         (main): Rework jobserver parsing.  If we got --jobserver-fds
1329         make sure it's valid.  We only get one and job_slots must be 0.
1330         If we're the toplevel make (-jN without --jobserver-fds) create
1331         the pipe and write generic tokens.
1332         Create the stringlist struct for the submakes.
1333         Clean up the stringlist where necessary.
1334         (init_switches): Remove int_string handling.
1335         (print_usage): Don't print internal flags (description ptr is 0).
1336         (decode_switches): Remove int_string handling.
1337         (define_makeflags): Remove int_string handling.
1339         * job.c: Remove my_job_token flag and all references to the
1340         child->job_token field.
1341         (free_job_token): Remove this and merge it into free_child().
1342         (reap_children): Rework the "reaped a child" logic slightly.
1343         Don't call defunct free_job_token anymore.  Always call
1344         free_child, even if we're dying.
1345         (free_child): If we're not freeing the only child, put a token
1346         back in the pipe.  Then, if we're dying, don't bother to free.
1347         (new_job): If we are using the jobserver, loop checking to see if
1348         a) there are no children or b) we get a token from the pipe.
1350         * job.h (struct child): Remove the job_token field.
1352 1999-08-20  Paul D. Smith  <psmith@gnu.org>
1354         * variable.c (try_variable_definition): Allocate for variable
1355         expansion in f_append with a simple variable: if we're looking at
1356         target-specific variables we don't want to trash the buffer.
1357         Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
1359 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
1361         * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
1362         avoid problems in shell commands that use backslashes as escape
1363         characters.
1365 1999-08-16  Paul D. Smith  <psmith@gnu.org>
1367         * Version 3.77.93 released.
1369 1999-08-13  Paul D. Smith  <psmith@gnu.org
1371         * function.c (func_if): New function $(if ...) based on the
1372         original by Han-Wen but reworked quite a bit.
1373         (function_table): Add it.
1374         * NEWS: Introduce it.
1375         * make.texinfo (If Function): Document it.
1377         * job.c (free_job_token): Check for EINTR when writing tokens to
1378         the jobserver pipe.
1380 1999-08-12  Paul D. Smith  <psmith@gnu.org>
1382         Another jobserver algorithm change.  We conveniently forgot that
1383         the blocking bit is shared by all users of the pipe, it's not a
1384         per-process setting.  Since we have many make processes all
1385         sharing the pipe we can't use the blocking bit as a signal handler
1386         flag.  Instead, we'll dup the pipe's read FD and have the SIGCHLD
1387         handler close the dup'd FD.  This will cause the read() to fail
1388         with EBADF the next time we invoke it, so we know we need to reap
1389         children.  We then re-dup and reap.
1391         * main.c (main): Define the job_rfd variable to hold the dup'd FD.
1392         Actually dup the read side of the pipe.  Don't bother setting the
1393         blocking bit on the file descriptor.
1394         * make.h: Declare the job_rfd variable.
1395         * job.c (child_handler): If the dup'd jobserver pipe is open,
1396         close it and assign -1 to job_rfd to notify the main program that
1397         we got a SIGCHLD.
1398         (start_job_command): Close the dup'd FD before exec'ing children.
1399         Since we open and close this thing so often it doesn't seem
1400         worth it to use the close-on-exec bit.
1401         (new_job): Remove code for testing/setting the blocking bit.
1402         Instead of EAGAIN, test for EBADF.  If the dup'd FD has been
1403         closed, re-dup it before we reap children.
1405         * function.c (func_shell): Be a little more accurate about the
1406         length of the error string to allocate.
1408         * expand.c (variable_expand_for_file): If there's no filenm info
1409         (say, from a builtin command) then reset reading_file to 0.
1411 1999-08-09  Paul D. Smith  <psmith@gnu.org>
1413         * maintMakefile: Use g in sed (s///g) to replace >1 variable per
1414         line.
1416         * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
1417         remove the right files.
1419 1999-08-01  Eli Zaretskii  <eliz@is.elta.co.il>
1421         * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
1422         ptr.
1424 1999-08-01  Paul D. Smith  <psmith@gnu.org>
1426         New jobserver algorithm to avoid a possible hole where we could
1427         miss SIGCHLDs and get into a deadlock.  The original algorithm was
1428         suggested by Roland McGrath with a nice refinement by Paul Eggert.
1429         Many thanks as well to Tim Magill and Howard Chu, who also
1430         provided many viable ideas and critiques.  We all had a fun week
1431         dreaming up interesting ways to use and abuse UNIX syscalls :).
1433         Previously we could miss a SIGCHLD if it happened after we reaped
1434         the children but before we re-entered the blocking read.  If this
1435         happened to all makes and/or all children, make would never wake
1436         up.
1438         We avoid this by having the SIGCHLD handler reset the blocking bit
1439         on the jobserver pipe read FD (normally read does block in this
1440         algorithm).  Now if the handler is called between the time we reap
1441         and the time we read(), and there are no tokens available, the
1442         read will merely return with EAGAIN instead of blocking.
1444         * main.c (main): Set the blocking bit explicitly here.
1445         * job.c (child_handler): If we have a jobserver pipe, set the
1446         non-blocking bit for it.
1447         (start_waiting_job): Move the token stuff back to new_job; if we
1448         do it here then we're not controlling the number of remote jobs
1449         started!
1450         (new_job): Move the check for job slots to _after_ we've created a
1451         child structure.  If the read returns without getting a token, set
1452         the blocking bit then try to reap_children.
1454         * make.h (EINTR_SET): Define to test errno if EINTR is available,
1455         or 0 otherwise.  Just some code cleanup.
1456         * arscan.c (ar_member_touch): Use it.
1457         * function.c (func_shell): Use it.
1458         * job.c (reap_children): Use it.
1459         * remake.c (touch_file): Use it.
1461 1999-07-28  Paul D. Smith  <psmith@gnu.org>
1463         * make.h: Define _() and N_() macros as passthrough to initiate
1464         NLS support.
1465         * <all>: Add _()/N_() around translatable strings.
1467 1999-07-27  Paul D. Smith  <psmith@gnu.org>
1469         * read.c: Make sure make.h comes before other headers.
1471 1999-07-26  Paul D. Smith  <psmith@gnu.org>
1473         * make.texinfo (Quick Reference): Update with the new features.
1475 1999-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
1477         * remake.c [__MSDOS__]: Don't include variables.h, it's already
1478         included.
1480         * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
1481         (func_shell) [__MSDOS__]: Fix the argument list.
1483         * Makefile.DOS.template: Update from Makefile.in.
1485         * README.DOS.template: Configure command fixed.
1487         * configh.dos.template: Update to provide definitions for
1488         uintmax_t, fd_set_size_t, and HAVE_SELECT.
1490 1999-07-24  Paul D. Smith  <psmith@gnu.org>
1492         * Version 3.77.91 released.
1494         * configure.in: Changes to the boostrapping code: if build.sh.in
1495         doesn't exist configure spits an error and generates an empty
1496         build.sh file which causes make to be confused.
1497         * maintMakefile: Don't build README early.
1499 1999-07-23  Paul D. Smith  <psmith@gnu.org>
1501         * job.c (my_job_token): This variable controls whether we've
1502         handed our personal token to a subprocess or not.  Note we could
1503         probably infer this from the value of job_slots_used, but it's
1504         clearer to just keep it separately.  Job_slots_used isn't really
1505         relevant when running the job server.
1506         (free_job_token): New function: free a job token.  If we don't
1507         have one, no-op.  If we have the personal token, reclaim it.  If
1508         we have another token, write it back to the pipe.
1509         (reap_children): Call free_job_token.
1510         (free_child): Call free_job_token.
1511         (start_job_command): Remove duplicate test for '+' in the command.
1512         If we don't appear to be running a recursive make, close the
1513         jobserver filedescriptors.
1514         (start_waiting_job): If our personal token is available, use that
1515         instead of going to the server pipe.
1516         (*): Add the token value to many debugging statements, and print
1517         the child target name in addition to the ptr hex value.
1518         Change the default "no token" value from '\0' to '-' so it looks
1519         better in the output.
1521         * main.c (main): Install the child_handler with sigaction()
1522         instead of signal() if we have it.  On SysV systems, signal() uses
1523         SysV semantics which are a pain.  But sigaction() always does what
1524         we want.
1525         (main): If we got job server FDs from the environment, test them
1526         to see if they're open.  If not, the parent make closed them
1527         because it didn't think we were a submake.  Print a warning and
1528         suggestion to use "+" on the submake invocation, and hard-set to
1529         -j1 for this instance of make.
1530         (main): Change the algorithm for assigning slots to be more
1531         robust.  Previously make checked to see if it thought a subprocess
1532         was a submake and if so, didn't give it a token.  Since make's
1533         don't consume tokens we could spawn many of makes fighting for a
1534         small number of tokens.  Plus this is unreliable because submakes
1535         might not be recognized by the parent (see above) then all the
1536         tokens could be used up by unrecognized makes, and no one could
1537         run.  Now every make consumes a token from its parent.  However,
1538         the make can also use this token to spawn a child.  If the make
1539         wants more than one, it goes to the jobserver pipe.  Thus there
1540         will never be more than N makes running for -jN, and N*2 processes
1541         (N makes and their N children).  Every make can always run at
1542         least one job, and we'll never deadlock.  (Note the closing of the
1543         pipe for non-submakes also solves this, but this is still a better
1544         algorithm.)  So!  Only put N-1 tokens into the pipe, since the
1545         topmost make keeps one for itself.
1547         * configure.in: Find sigaction.  Disable job server support unless
1548         the system provides it, in addition to either waitpid() or
1549         wait3().
1551 1999-07-22  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1553         * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
1554         string on Windows, not a timestamp.
1556 1999-07-21  Paul D. Smith  <psmith@gnu.org>
1558         * Version 3.77.90 released.
1560         * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
1562         * function.c: Rearrange so we don't need to predeclare the
1563         function_table array; K&R C compilers don't like that.
1565         * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
1566         compiler!  Change to work with K&R compilers as well.
1568         * configure.in (AC_OUTPUT): Put build.sh back.  I don't know how I
1569         thought it would work this way :-/.  We'll have to think of
1570         something else.
1571         * Makefile.am: Remove rule to create build.sh.
1573         * default.c (default_suffix_rules): Rearrange the default command
1574         lines to conform to POSIX rules (put the filename argument $<
1575         _after_ the OUTPUT_OPTION, not before it).
1577         * various: Changed !strncmp() calls to strneq() macros.
1579         * misc.c (sindex): Make slightly more efficient.
1581         * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
1582         * implicit.c (pattern_search): Ditto.
1583         * main.c (enter_command_line_file): Ditto.
1584         (main): Ditto.
1585         * misc.c (copy_dep_chain): Ditto.
1586         * read.c (read_makefile): Ditto.
1587         (parse_file_seq): Ditto.
1588         (tilde_expand): Ditto.
1589         (multi_glob): Ditto.
1590         * rule.c (install_pattern_rule): Ditto.
1591         * variable.c (define_variable_in_set): Ditto.
1592         (define_automatic_variables): Ditto.
1593         * vpath.c (construct_vpath_list): Ditto.
1595         * misc.c (xrealloc): Some reallocs are non-standard: work around
1596         them in xrealloc by calling malloc if PTR is NULL.
1597         * main.c (main): Call xrealloc() directly instead of testing for
1598         NULL.
1600         * function.c (func_sort): Don't try to free NULL; some older,
1601         non-standard versions of free() don't like it.
1603         * configure.in (--enable-dmalloc): Install some support for using
1604         dmalloc (http://www.dmalloc.com/) with make.  Use --enable-dmalloc
1605         with configure to enable it.
1607         * function.c (function_table_entry): Whoops!  The function.c
1608         rewrite breaks backward compatibility: all text to a function is
1609         broken into arguments, and extras are ignored.  So $(sort a,b,c)
1610         returns "a"!  Etc.  Ouch.  Fix it by making a positive value in
1611         the REQUIRED_ARGS field mean exactly that many arguments to the
1612         function; any "extras" are considered part of the last argument as
1613         before.  A negative value means at least that many, but may be
1614         more: in this case all text is broken on commas.
1615         (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
1616         (expand_builtin_function): Compare number of args to the absolute
1617         value of REQUIRED_ARGS.
1619 1999-07-20  Paul D. Smith  <psmith@gnu.org>
1621         * job.c (start_job_command): Ensure that the state of the target
1622         is cs_running.  It might not be if we skipped all the lines due to
1623         -n (for example).
1625         * commands.c (execute_file_commands): If we discover that the
1626         command script is empty and succeed early, set cs_running so the
1627         modtime of the target is still rechecked.
1629         * rule.c (freerule): Free the dependency list for the rule.
1631         * implicit.c (pattern_search): When turning an intermediate file
1632         into a real target, keep the also_make list.
1633         Free the dep->name if we didn't use it during enter_file().
1635 1999-07-16  Paul D. Smith  <psmith@gnu.org>
1637         * read.c (read_makefile): Don't allocate the commands buffer until
1638         we're sure we found a makefile and won't return early (mem leak).
1640         * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
1641         not FD_SETFD.  Close-on-exec isn't getting set on the bad_stdin
1642         file descriptor and it's leaking :-/.
1643         * getloadavg.c (getloadavg): Ditto.
1645 1999-07-15  Paul D. Smith  <psmith@gnu.org>
1647         * read.c (read_makefile): Fix some potential memory stomps parsing
1648         `define' directives where no variable name is given.
1650         * function.c (func_call): Rename from func_apply.  Various code
1651         cleanup and tightening.
1652         (function_table): Add "call" as a valid builtin function.
1654         * make.texinfo (Call Function): Document it.
1656         * NEWS: Announce it.
1658 1999-07-09  Eli Zaretskii  <eliz@is.elta.co.il>
1660         * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
1661         Treat "override SHELL=" the same as just "SHELL=".
1663 1999-07-09  Paul D. Smith  <psmith@gnu.org>
1665         * job.c (start_waiting_job): Don't get a second job token if we
1666         already have one; if we're waiting on the load to go down
1667         start_waiting_job() might get called twice on the same file.
1669         * filedef.h (struct file): Add new field, mtime_before_update.
1670         When notice_finished_file runs it assigns the cached last_mtime to
1671         this field.
1672         * remake.c (update_goal_chain): Notice that a file wasn't updated
1673         by asking if it changed (g->changed) and comparing the current
1674         cached time (last_mtime) with the previous one, stored in
1675         mtime_before_update.  The previous check ("did last_mtime changed
1676         during the run of update_file?") fails for parallel builds because
1677         last_mtime is set during reap_children, before update_file is run.
1678         This causes update_goal_chain to always return -1 (nothing
1679         rebuilt) when running parallel (-jN).  This is OK during "normal"
1680         builds since our caller (main) treats these cases identically in
1681         that case, but if when rebuilding makefiles the difference is very
1682         important, as it controls whether we re-exec or not.
1683         * file.c (file_hash_enter): Copy the mtime_before_update field.
1684         (snap_deps): Initialize mtime_before_update to -1.
1685         * main.c (main): Initialize mtime_before_update on old (-o) and
1686         new (-W) files.
1688 1999-07-08  Paul D. Smith  <psmith@gnu.org>
1690         * main.c (switches): Define a new switch -R (or
1691         --no-builtin-variables).  This option disables the defining of all
1692         the GNU make builtin variables.
1693         (main): If -R was given, force -r as well.
1694         * default.c (define_default_variables): Test the new flag.
1695         * make.h: Declare global flag.
1696         * make.texinfo (Options Summary): Document the new option.
1697         (Implicit Variables): Ditto.
1699 1999-07-06  Paul D. Smith  <psmith@gnu.org>
1701         * make.texinfo (Options Summary): Correct examples in
1702         --print-data-base option summary (problem reported by David Morse
1703         <morse@nichimen.com>).
1705         * arscan.c: Add support for archives in Windows (VC++).  Frank
1706         Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
1707         this.
1708         * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
1709         compile line.
1710         * build_w32.bat: Ditto.
1712         * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
1713         give errors if you try to -include the same file twice.
1714         (updating_makefiles): New variable: we need to know this info in
1715         no_rule_error() so we know whether to print an error or not.
1716         (update_file_1): Unconditionally call no_rule_error(), don't try
1717         to play games with the dontcare flag.
1719 1999-06-14  Paul D. Smith  <psmith@gnu.org>
1721         * make.texinfo (Remaking Makefiles): Add a description of how to
1722         prevent implicit rule searches for makefiles.
1724         * make.1: Remove statement that make continues processing when -v
1725         is given.
1727 1999-06-14  Paul D. Smith  <psmith@gnu.org>
1729         * read.c (read_makefile): Cast -1 arguments to
1730         variable_expand_string() to long.  Alexandre Sauve
1731         <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
1732         on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
1733         anyway).  Of course, (a) I'd really love to start using function
1734         prototypes, and (b) there's a whole slew of issues related to int
1735         vs. long and signed vs. unsigned in the length handling of
1736         variable buffers, etc.  Gross.  Needs a complete mucking-out.
1737         * expand.c (variable_expand): Ditto.
1739         * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
1740         Lars Hecking <lhecking@nmrc.ucc.ie>.
1742         * read.c (get_next_mword): Allow colons to be escaped in target
1743         names: fix for regression failure.
1745 1999-04-26  Paul D. Smith  <psmith@gnu.org>
1747         * main.c (main): Reset read_makefiles to empty after processing so
1748         we get the right error message.
1750 1999-04-25  Paul D. Smith  <psmith@gnu.org>
1752         * make.texinfo: Updates to @dircategory and @direntry suggested by
1753         Karl Berry <karl@cs.umb.edu>.
1755 1999-04-23  Eli Zaretskii  <eliz@is.elta.co.il>
1757         * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
1758         turning off dos_command_running, so child's signals produce the
1759         right effect.
1761         * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
1762         instead of 1.
1764 1999-04-18  Eli Zaretskii  <eliz@is.elta.co.il>
1766         * configh.dos.template: Update to recognize that version 2.02 of
1767         DJGPP contains sys_siglist stuff.
1769 1999-04-14  Paul D. Smith  <psmith@gnu.org>
1771         * make.texinfo (Options/Recursion): Document the job server.
1772         (Parallel): Tweaks.
1774 1999-04-13  Paul D. Smith  <psmith@gnu.org>
1776         Implement a new "job server" feature; the implementation was
1777         suggested by Howard Chu <hyc@highlandsun.com>.
1779         * configure.in (job-server): New disable option for job server
1780         support--it's enabled by default.  If it works well this will go
1781         away.
1783         * NEWS: Summarize the new feature.
1785         * acconfig.h: New definition MAKE_JOBSERVER if job server support
1786         is enabled.
1787         * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1788         * config.h.W32.template: Ditto.
1789         * config.ami.template: Ditto.
1791         * main.c (struct command_switch): Add a new type: int_string.
1792         (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1793         (init_switches): Initialize the new int_string switch type.
1794         (print_usage): New function, extracted from decode_switches().
1795         (decode_switches): Call it.  Decode the new int_string switch type.
1796         (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1797         (job_fds[]) Array to contain the pipe file descriptors.
1798         (main): Parse the job_slots_str option results.  If necessary,
1799         create the pipe and seed it with tokens.  Set the non-blocking bit
1800         for the read fd.  Enable the signal handler for SIGCHLD even if we
1801         have a non-hanging wait; it's needed to interrupt the select() in
1802         job.c:start_waiting_job().
1804         * make.h: Declare job_fds[].
1806         * job.h (struct child): Add job_token field to store the token for
1807         this job (if any).
1809         * job.c (reap_children): When a child is fully reaped, release the
1810         token back into the pipe.
1811         (free_child): If the child to be freed still has a token, put it
1812         back.
1813         (new_job): Initialize the job_token member.
1814         (start_waiting_job): For local jobs, if we're using the pipe, get
1815         a token before we check the load, etc.  We do this by performing a
1816         non-blocking read in a loop.  If the read fails, no token is
1817         available.  Do a select on the fd to wait for a token.  We need to
1818         re-enable the signal handler for SIGCHLD even if we have a
1819         non-hanging waitpid() or wait3(), so that the signal will
1820         interrupt the select() and we can wake up to reap children.
1821         (child_handler): Re-enable the signal handler.  The count is still
1822         kept although it's not needed or used unless you don't have
1823         waitpid() or wait3().
1825 1999-04-10  Paul D. Smith  <psmith@gnu.org>
1827         * main.c (main): Reset the considered bit on all the makefiles if
1828         something failed to update; we need to examine them again if they
1829         appear as normal targets in order to get the proper error message.
1831 1999-04-09  Paul D. Smith  <psmith@gnu.org>
1833         Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1835         * remake.c (update_file): If you have large numbers of
1836         dependencies and you run in parallel, make can spend considerable
1837         time each pass through the graph looking at branches it has
1838         already seen.  Since we only reap_children() when starting a pass,
1839         not in the middle, if a branch has been seen already in that pass
1840         nothing interesting can happen until the next pass.  So, we toggle
1841         a bit saying whether we've seen this target in this pass or not.
1842         (update_goal_chain): Initially set the global considered toggle to
1843         1, since all targets initialize their boolean to 0.  At the end of
1844         each pass, toggle the global considered variable.
1845         * filedef.h (struct file): Per-file considered toggle bit.
1846         * file.c: New global toggle variable considered.
1848 1999-04-05  Paul D. Smith  <psmith@gnu.org>
1850         * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1851         archives?) for Digital UNIX C++.  Information provided by
1852         Patrick E. Krogel <pekrogel@mtu.edu>.
1853         (ar_member_touch): Ditto.
1855 1999-04-03  Paul D. Smith  <psmith@gnu.org>
1857         * remake.c (f_mtime): If: a) we found a file and b) we didn't
1858         create it and c) it's not marked as an implicit target and d) it
1859         is marked as an intermediate target, then it was so marked due to
1860         an .INTERMEDIATE special target, but it already existed in the
1861         directory.  In this case, unset the intermediate flag so we won't
1862         delete it when make is done.  It feels like it would be cleaner to
1863         put this check in update_file_1() but I worry it'll get missed...
1865 1999-04-01  Paul D. Smith  <psmith@gnu.org>
1867         * job.c (construct_command_argv_internal): Use bcopy() to copy
1868         overlapping strings, rather than strcpy().  ISO C says the latter
1869         is undefined.  Found this in a bug report from 1996!  Ouch!
1871 1999-03-31  Paul D. Smith  <psmith@gnu.org>
1873         * read.c (readline): Ignore carriage returns at the end of the
1874         line, to allow Windows-y CRLF line terminators.
1876 1999-03-30  Paul D. Smith  <psmith@gnu.org>
1878         * configure.in: Don't put build.sh here, since build.sh.in doesn't
1879         exist initially.  This cause autoreconf and automake to fail when
1880         run on a clean CVS checkout.  Instead, we create build.sh in the
1881         Makefile (see below).
1883         * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1884         Put those files directly into EXTRA_DIST so they're distributed.
1885         Create a local build rule to create build.sh.
1886         Create a local maintainer-clean rule to delete all the funky
1887         maintainers files.
1889         * maintMakefile: Makefile.in depends on README, since automake
1890         fails if it doesn't exist.  Also don't remove glob/Makefile.in
1891         here, as it causes problems.
1893 1999-03-26  Paul D. Smith  <psmith@gnu.org>
1895         * configure.in: Substitute GLOBLIB if we need the link the
1896         glob/libglob.a library.
1897         * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1898         don't link the local libglob.a at all if we don't need it.
1899         * build.template: Don't compile glob/*.o unless we want globlib.
1900         * maintMakefile (build.sh.in): Substitute the glob/*.o files
1901         separately.
1903 1999-03-25  Paul D. Smith  <psmith@gnu.org>
1905         * make.texinfo: Various typos and additions, pointed out by James
1906         G. Sack <jsack@dornfeld.com>.
1908 1999-03-22  Paul D. Smith  <psmith@gnu.org>
1910         * make.texinfo (Functions): Add a new section documenting the new
1911         $(error ...) and $(warning ...) functions.  Also updated copyright
1912         dates.
1913         * NEWS: Updated for the new functions.
1914         * function.c (func_error): Implement the new $(error ...) and
1915         $(warning ...) functions.
1916         (function_table): Insert new functions into the table.
1917         (func_firstword): Don't call find_next_token() with argv[0]
1918         itself, since that function modifies the pointer.
1919         * function.c: Cleanups and slight changes to the new method of
1920         calling functions.
1922 1999-03-20  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
1924         * function.c: Rewrite to use one C function per make function,
1925         instead of a huge switch statement.  Also allows some cleanup of
1926         multi-architecture issues, and a cleaner API which makes things
1927         like func_apply() simple.
1929         * function.c (func_apply): Initial implementation.  Expand either
1930         a builtin function or a make variable in the context of some
1931         arguments, provided as $1, $2, ... $N.
1933 1999-03-19  Eli Zaretskii  <eliz@is.elta.co.il>
1934 1999-03-19  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1936         * job.c (construct_command_argv_internal): Don't treat _all_
1937         backslashes as escapes, only those which really escape a special
1938         character.  This allows most normal "\" directory separators to be
1939         treated normally.
1941 1999-03-05  Paul D. Smith  <psmith@gnu.org>
1943         * configure.in: Check for a system strdup().
1944         * misc.c (xstrdup): Created.  Suggestion by Han-Wen Nienhuys
1945         <hanwen@cs.uu.nl>.
1946         * make.h: Prototype xstrdup().
1947         * remake.c (library_search): Use it.
1948         * main.c (main): Use it.
1949         (find_and_set_default_shell): Use it.
1950         * job.c (construct_command_argv_internal): Use it.
1951         * dir.c (find_directory): Use it.
1953         * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
1954         maintMakefile instead of "include", to avoid automake 1.4
1955         incompatibility.
1957 1999-03-04  Paul D. Smith  <psmith@gnu.org>
1959         * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
1960         * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
1961         * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
1962         * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
1963         * vpath.c, Makefile.ami, NMakefile.template, build.template,
1964         * makefile.vms: Updated FSF address in the copyright notice.
1966         * variable.c (try_variable_definition): If we see a conditional
1967         variable and we decide to set it, re-type it as recursive so it
1968         will be expanded properly later.
1970 1999-02-22  Paul D. Smith  <psmith@gnu.org>
1972         * NEWS: Mention new .LIBPATTERNS feature.
1974         * make.texinfo (Libraries/Search): Describe the use and
1975         ramifications of the new .LIBPATTERNS variable.
1977         * remake.c (library_search): Instead of searching only for the
1978         hardcoded expansion "libX.a" for a library reference "-lX", we
1979         obtain a list of patterns from the .LIBPATTERNS variable and
1980         search those in order.
1982         * default.c: Added a new default variable .LIBPATTERNS.  The
1983         default for UNIX is "lib%.so lib%.a".  Amiga and DOS values are
1984         also provided.
1986         * read.c: Remove bogus HAVE_GLOB_H references; always include
1987         vanilla glob.h.
1989 1999-02-21  Paul D. Smith  <psmith@gnu.org>
1991         * function.c (expand_function): Set value to 0 to avoid freeing it.
1992         * variable.c (pop_variable_scope): Free the value of the variable.
1993         (try_variable_definition): For simple variables, use
1994         allocated_variable_expand() to avoid stomping on the variable
1995         buffer when we still need it for other things.
1997         * arscan.c: Modified to support AIX 4.3 big archives.  The changes
1998         are based on information provided by Phil Adams
1999         <padams@austin.ibm.com>.
2001 1999-02-19  Paul D. Smith  <psmith@gnu.org>
2003         * configure.in: Check to see if the GNU glob library is already
2004         installed on the system.  If so, _don't_ add -I./glob to the
2005         compile line.  Using the system glob code with the local headers
2006         is very bad mojo!
2007         Rewrite SCCS macros to use more autoconf facilities.
2009         * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
2010         CPPFLAGS by configure now.
2011         Automake 1.4 introduced its own "include" feature which conflicts
2012         with the maintMakefile stuff.  A hack that seems to work is add a
2013         space before the include :-/.
2015         * build.template: Move -Iglob out of the compile line; it'll get
2016         added to CPPFLAGS by configure now.
2018 1999-02-16  Glenn D. Wolf  <Glenn_Wolf@email.sps.mot.com>
2020         * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
2021         calling lbr$get_index since if the archive is empty,
2022         VMS_get_member_info won't get called at all, and any leftover date
2023         will be used.  This bug shows up if any member of any archive is
2024         made, followed by a dependency check on a different, empty
2025         archive.
2027 1998-12-13  Martin Zinser  <zinser@decus.decus.de>
2029         * config.h-vms [VMS]: Set _POSIX_C_SOURCE.  Redefine the getopt
2030         functions so we don't use the broken VMS versions.
2031         * makefile.com [VMS]: Allow debugging.
2032         * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
2034 1998-11-30  Paul D. Smith  <psmith@gnu.org>
2036         * signame.c (init_sig): Check the sizes of signals being set up to
2037         avoid array overwrites (if the system headers have problems).
2039 1998-11-17  Paul D. Smith  <psmith@gnu.org>
2041         * read.c (record_files): Clean up some indentation.
2043 1998-11-08  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
2045         * rule.c (print_rule_data_base): Fix arguments to fatal() call.
2047 1998-10-13  Paul D. Smith  <psmith@gnu.org>
2049         * job.c (start_job_command): If the command list resolves to no
2050         chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
2051         quit early.
2053 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2055         * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
2056         zero.
2058 1998-10-09  Paul D. Smith  <psmith@gnu.org>
2060         * read.c (read_makefile): Allow non-empty lines to expand to the
2061         empty string after variable, etc., expansion, and be ignored.
2063 1998-09-21  Paul D. Smith  <psmith@gnu.org>
2065         * job.c (construct_command_argv_internal): Only add COMMAND.COM
2066         "@echo off" line for non-UNIXy shells.
2068 1998-09-09  Paul D. Smith  <psmith@gnu.org>
2070         * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
2072 1998-09-04  Paul D. Smith  <psmith@gnu.org>
2074         * read.c (read_makefile): If we hit the "missing separator" error,
2075         check for the common case of 8 spaces instead of a TAB and give an
2076         extra comment to help people out.
2078 1998-08-29  Paul Eggert  <eggert@twinsun.com>
2080         * configure.in (AC_STRUCT_ST_MTIM_NSEC):
2081         Renamed from AC_STRUCT_ST_MTIM.
2083         * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC):  Likewise.
2084         Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
2086         * acconfig.h (ST_MTIM_NSEC):
2087         Renamed from HAVE_ST_MTIM, with a new meaning.
2089         * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
2090         Use new ST_MTIM_NSEC macro.
2092 1998-08-26  Paul D. Smith  <psmith@gnu.org>
2094         * remake.c (check_dep): For any intermediate file, not just
2095         secondary ones, try implicit and default rules if no explicit
2096         rules are given.  I'm not sure why this was restricted to
2097         secondary rules in the first place.
2099 1998-08-24  Paul D. Smith  <psmith@gnu.org>
2101         * make.texinfo (Special Targets): Update documentation for
2102         .INTERMEDIATE: if used with no dependencies, then it does nothing;
2103         old docs said it marked all targets as intermediate, which it
2104         didn't... and which would be silly :).
2106         * implicit.c (pattern_search): If we find a dependency in our
2107         internal tables, make sure it's not marked intermediate before
2108         accepting it as a found_file[].
2110 1998-08-20  Paul D. Smith  <psmith@gnu.org>
2112         * ar.c (ar_glob): Use existing alpha_compare() with qsort.
2113         (ar_glob_alphacompare): Remove it.
2115         Modify Paul Eggert's patch so we don't abandon older systems:
2117         * configure.in: Warn the user if neither waitpid() nor wait3() is
2118         available.
2120         * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
2121         (child_handler, dead_children): Define these if WAIT_NOHANG is not
2122         available.
2123         (reap_children): Only track the dead_children count if no
2124         WAIT_NOHANG.  Otherwise, it's a boolean.
2126         * main.c (main): Add back signal handler if no WAIT_NOHANG is
2127         available; only use default signal handler if it is.
2129 1998-08-20  Paul Eggert  <eggert@twinsun.com>
2131         Install a more robust signal handling mechanism for systems which
2132         support it.
2134         * job.c (WAIT_NOHANG): Define to a syntax error if our host
2135         is truly ancient; this should never happen.
2136         (child_handler, dead_children): Remove.
2137         (reap_children): Don't try to keep separate track of how many
2138         dead children we have, as this is too bug-prone.
2139         Just ask the OS instead.
2140         (vmsHandleChildTerm): Fix typo in error message; don't mention
2141         child_handler.
2143         * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
2144         do this early, before we could possibly create a subprocess.
2145         Just use the default behavior; don't have our own handler.
2147 1998-08-18  Eli Zaretskii  <eliz@is.elta.co.il>
2149         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
2150         recognize library archive members when dealing with drive spec
2151         mess.  Discovery and initial fix by George Racz <gracz@mincom.com>.
2153 1998-08-18  Paul D. Smith  <psmith@gnu.org>
2155         * configure.in: Check for stdlib.h explicitly (some hosts have it
2156         but don't have STDC_HEADERS).
2157         * make.h: Use HAVE_STDLIB_H.  Clean up some #defines.
2158         * config.ami: Re-compute based on new config.h.in contents.
2159         * config.h-vms: Ditto.
2160         * config.h.W32: Ditto.
2161         * configh.dos: Ditto.
2163         * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
2164         directory names end with `\' so strip it.
2166 1998-08-17  Paul D. Smith  <psmith@gnu.org>
2168         * make.texinfo: Added copyright year to the printed copy.  Removed
2169         the price from the manual.  Change the top-level reference to
2170         running make to be "Invoking make" instead of "make Invocation",
2171         to comply with GNU doc standards.
2173         * make.h (__format__, __printf__): Added support for these in
2174         __attribute__ macro.
2175         (message, error, fatal): Use ... prototype form under __STDC__.
2176         Add __format__ attributes for printf-style functions.
2178         * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
2180         * misc.c (message, error, fatal): Add preprocessor stuff to enable
2181         creation of variable-argument functions with appropriate
2182         prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
2183         v*printf(), _doprnt(), or none of the above.  Culled from GNU
2184         fileutils and slightly modified.
2185         (makefile_error, makefile_error): Removed (merged into error() and
2186         fatal(), respectively).
2187         * amiga.c: Use them.
2188         * ar.c: Use them.
2189         * arscan.c: Use them.
2190         * commands.c: Use them.
2191         * expand.c: Use them.
2192         * file.c: Use them.
2193         * function.c: Use them.
2194         * job.c: Use them.
2195         * main.c: Use them.
2196         * misc.c: Use them.
2197         * read.c: Use them.
2198         * remake.c: Use them.
2199         * remote-cstms.c: Use them.
2200         * rule.c: Use them.
2201         * variable.c: Use them.
2203         * make.h (struct floc): New structure to store file location
2204         information.
2205         * commands.h (struct commands): Use it.
2206         * variable.c (try_variable_definition): Use it.
2207         * commands.c: Use it.
2208         * default.c: Use it.
2209         * file.c: Use it.
2210         * function.c: Use it.
2211         * misc.c: Use it.
2212         * read.c: Use it.
2213         * rule.c: Use it.
2215 1998-08-16  Paul Eggert  <eggert@twinsun.com>
2217         * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
2219 1998-08-16  Paul Eggert  <eggert@twinsun.com>
2221         * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
2222         (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
2223         make it easier to understand.
2225 1998-08-14  Paul D. Smith  <psmith@gnu.org>
2227         * read.c (read_makefile): We've already unquoted any colon chars
2228         by the time we're done reading the targets, so arrange for
2229         parse_file_seq() on the target list to not do so again.
2231 1998-08-05  Paul D. Smith  <psmith@gnu.org>
2233         * configure.in: Added glob/configure.in data.  We'll have the glob
2234         code include the regular make config.h, rather than creating its
2235         own.
2237         * getloadavg.c (main): Change return type to int.
2239 1998-08-01  Paul Eggert  <eggert@twinsun.com>
2241         * job.c (reap_children): Ignore unknown children.
2243 1998-07-31  Paul D. Smith  <psmith@gnu.org>
2245         * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
2246         Add prototypes for functions.  Some prototypes needed to be moved
2247         in order to get #include order reasonable.
2249 1998-07-30  Paul D. Smith  <psmith@gnu.org>
2251         * make.h: Added MIN/MAX.
2252         * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
2254 1998-07-30  Paul Eggert  <eggert@twinsun.com>
2256         Add support for sub-second timestamp resolution on hosts that
2257         support it (just Solaris 2.6, so far).
2259         * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
2260         * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
2261         jm_AC_TYPE_UINTMAX_T): New defuns.
2262         * commands.c (delete_target): Convert file timestamp to
2263         seconds before comparing to archive timestamp.  Extract mod
2264         time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
2265         * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
2266         (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
2267         * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
2268         (file_timestamp_now, file_timestamp_sprintf): New functions.
2269         (print_file): Print file timestamps as FILE_TIMESTAMP, not
2270         time_t.
2271         * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
2272         (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
2273         FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
2274         FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
2275         FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
2276         (file_timestamp_now, file_timestamp_sprintf): New decls.
2277         (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
2278         time_t -> FILE_TIMESTAMP.
2279         * implicit.c (pattern_search): Likewise.
2280         * vpath.c (vpath_search, selective_vpath_search): Likewise.
2281         * main.c (main): Likewise.
2282         * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
2283         (f_mtime): Use file_timestamp_now instead of `time'.
2284         Print file timestamp with file_timestamp_sprintf.
2285         * vpath.c (selective_vpath_search): Extract file time stamp from
2286         struct stat with FILE_TIMESTAMP_STAT_MODTIME.
2288 1998-07-28  Paul D. Smith  <psmith@gnu.org>
2290         * Version 3.77 released.
2292         * dosbuild.bat: Change to DOS CRLF line terminators.
2294         * make-stds.texi: Update from latest version.
2296         * make.texinfo (Options Summary): Clarify that the -r option
2297         affects only rules, not builtin variables.
2299 1998-07-27  Paul D. Smith  <psmith@gnu.org>
2301         * make.h: Make __attribute__ resolve to empty for non-GCC _and_
2302         for GCC pre-2.5.x.
2304         * misc.c (log_access): Print UID/GID's as unsigned long int for
2305         maximum portability.
2307         * job.c (reap_children): Print PIDs as long int for maximum
2308         portability.
2310 1998-07-24  Eli Zaretskii  <eliz@is.elta.co.il>
2312         * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
2314 1998-07-25  Paul D. Smith  <psmith@gnu.org>
2316         * Version 3.76.94 released.
2318 1998-07-23  Paul D. Smith  <psmith@gnu.org>
2320         * config.h.W32.template: Make sure all the #defines of macros here
2321         have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
2322         just ``#define HAVE_STRING_H''.  Keeps the preprocessor happy in
2323         some contexts.
2325         * make.h: Remove __attribute__((format...)) stuff; using it with
2326         un-prototyped functions causes older GCC's to fail.
2328         * Version 3.76.93 released.
2330 1998-07-22  Paul D. Smith  <psmith@gnu.org>
2332         * file.c (print_file_data_base): Fix average calculation.
2334 1998-07-20  Paul D. Smith  <psmith@gnu.org>
2336         * main.c (die): Postpone the chdir() until after
2337         remove_intermediates() so that intermediate targets with relative
2338         pathnames are removed properly.
2340 1998-07-17  Paul D. Smith  <psmith@gnu.org>
2342         * filedef.h (struct file): New flag: did we print an error or not?
2344         * remake.c (no_rule_error): New function to print error messages,
2345         extraced from remake_file().
2347         * remake.c (remake_file): Invoke the new error print function.
2348         (update_file_1): Invoke the error print function if we see that we
2349         already tried this target and it failed, but that an error wasn't
2350         printed for it.  This can happen if a file is included with
2351         -include or sinclude and couldn't be built, then later is also
2352         the dependency of another target.  Without this change, make just
2353         silently stops :-/.
2355 1998-07-16  Paul D. Smith  <psmith@gnu.org>
2357         * make.texinfo: Removed "beta" version designator.
2358         Updated ISBN for the next printing.
2360 1998-07-13  Paul Eggert  <eggert@twinsun.com>
2362         * acinclude.m4: New AC_LFS macro to determine if special compiler
2363         flags are needed to allow access to large files (e.g., Solaris 2.6).
2364         * configure.in: Invoke it.
2366 1998-07-08  Eli Zaretskii  <eliz@is.elta.co.il>
2368         * Makefile.DOS: track changes in Makefile.in.
2370 1998-07-07  Paul D. Smith  <psmith@gnu.org>
2372         * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
2373         top so host is initialized early enough.
2375         * acinclude.m4: New file.  Need some special autoconf macros to
2376         check for network libraries (-lsocket, -lnsl, etc.) when
2377         configuring Customs.
2379         * configure.in (make_try_customs): Invoke new network libs macro.
2381 1998-07-06  Paul D. Smith  <psmith@gnu.org>
2383         * Version 3.76.92 released.
2385         * README.customs: Added to the distribution.
2387         * configure.in (make_try_customs): Rewrite to require an installed
2388         Customs library, rather than looking at the build directory.
2390         * Makefile.am (man_MANS): Install make.1.
2391         * make.1: Renamed from make.man.
2393         * make.texinfo (Bugs): New mailing list address for GNU make bug
2394         reports.
2396 1998-07-02  Paul D. Smith  <psmith@gnu.org>
2398         * Version 3.76.91 released.
2400         * default.c: Added default rule for new-style RCS master file
2401         storage; ``% :: RCS/%''.
2402         Added default rules for DOS-style C++ files with suffix ".cpp".
2403         They use the new LINK.cpp and COMPILE.cpp macros, which are set by
2404         default to be equal to LINK.cc and COMPILE.cc.
2406 1998-06-19  Eli Zaretskii  <eliz@is.elta.co.il>
2408         * job.c (start_job_command): Reset execute_by_shell after an empty
2409         command was skipped.
2411 1998-06-09  Paul D. Smith  <psmith@gnu.org>
2413         * main.c (main): Keep track of the temporary filename created when
2414         reading a makefile from stdin (-f-) and attempt to remove it
2415         as soon as we know we're not going to re-exec.  If we are, add it
2416         to the exec'd make's cmd line with "-o" so the exec'd make doesn't
2417         try to rebuild it.  We still have a hole: if make re-execs then
2418         the temporary file will never be removed.  To fix this we'd need
2419         a brand new option that meant "really delete this".
2420         * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
2421         Updated mailing addresses.
2423 1998-06-08  Paul D. Smith  <psmith@gnu.org>
2425         * main.c (main): Andreas Luik <luik@isa.de> points out that the
2426         check for makefile :: rules with commands but no dependencies
2427         causing a loop terminates incorrectly.
2429         * maintMakefile: Make a template for README.DOS to update version
2430         numbers.
2432 1998-05-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2434         * remake.c (update_file_1): Don't free the memory for the
2435         dependency structure when dropping a circular dependency.
2437 1998-05-30  Eli Zaretskii  <eliz@is.elta.co.il>
2439         * dir.c (file_exists_p, file_impossible_p, file_impossible)
2440         [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
2441         dirname of "d:foo" be "d:".
2443 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2445         * read.c (read_makefile): Avoid running past EOS when scanning
2446         file name after `include'.
2448 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2450         * make.texinfo (Flavors): Correct description of conditional
2451         assignment, which is not equivalent to ifndef.
2452         (Setting): Likewise.
2454 1998-05-24  Paul D. Smith  <psmith@gnu.org>
2456         * arscan.c (ar_name_equal): strncmp() might be implemented as a
2457         macro, so don't put preprocessor conditions inside the arguments
2458         list.
2460 1998-05-23  Eli Zaretskii  <eliz@is.elta.co.il>
2462         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
2463         drive specs when parsing targets, target-specific variables and
2464         static pattern rules.  A colon can only be part of drive spec if
2465         it is after the first letter in a token.
2467 1998-05-22  Eli Zaretskii  <eliz@is.elta.co.il>
2469         * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
2470         yelling bloody murder.
2472         * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
2474         * read.c (parse_file_seq): Combine the special file-handling code
2475         for WINDOWS32 and __MSDOS__ into a single snippet.
2476         (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
2477         colon as part of a drive spec.
2479         * job.c (batch_mode_shell) [__MSDOS__]: Declare.
2481 1998-05-20  Paul D. Smith  <psmith@gnu.org>
2483         * Version 3.76.90 released.
2485 1998-05-19  Paul D. Smith  <psmith@gnu.org>
2487         * make.texinfo (Make Errors): Added a new appendix describing
2488         common errors make might generate and how to resolve them (or at
2489         least more information on what they mean).
2491         * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
2492         to create a dependency file to construct Makefile.DOS, SMakefile,
2493         and NMakefile.
2494         (.dep_segment): Generate the dependency fragment file.
2496 1998-05-14  Paul D. Smith  <psmith@gnu.org>
2498         * make.man: Minor changes.
2500 1998-05-13  Paul D. Smith  <psmith@gnu.org>
2502         * function.c (pattern_matches,expand_function): Change variables
2503         and types named "word" to something else, to avoid compilation
2504         problems on Cray C90 Unicos.
2505         * variable.h: Modify the function prototype.
2507 1998-05-11  Rob Tulloh  <rob_tulloh@tivoli.com>
2509         * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
2510         echo when using a batch file, and make sure the command ends in a
2511         newline.
2513 1998-05-03  Paul D. Smith  <psmith@gnu.org>
2515         * configure.in (make_try_customs): Add some customs flags if the
2516         user configures custom support.
2518         * job.c, remote-cstms.c: Merge in changes for custom library.
2520         * remote-stub.c: Add option to stub start_remote_job_p().
2522 1998-05-01  Paul D. Smith  <psmith@gnu.org>
2524         * remake.c (f_mtime): Install VPATH+ handling for archives; use
2525         the hname field instead of the name field, and rehash when
2526         appropriate.
2528 1998-04-30  Paul D. Smith  <psmith@gnu.org>
2530         * rule.c (print_rule_data_base): Print out any pattern-specific
2531         variable values into the rules database.
2533         * variable.c (print_variable_set): Make this variable extern, to
2534         be called by print_rule_data_base() for pattern-specific variables.
2536         * make.texinfo (Pattern-specific): Document pattern-specific
2537         variables.
2539 1998-04-29  Paul D. Smith  <psmith@gnu.org>
2541         * expand.c (variable_expand_for_file): Make static; its only
2542         called internally.  Look up this target in the list of
2543         pattern-specific variables and insert the variable set into the
2544         queue to be searched.
2546         * filedef.h (struct file): Add a new field to hold the
2547         previously-found pattern-specific variable reference.  Add a new
2548         flag to remember whether we already searched for this file.
2550         * rule.h (struct pattern_var): New structure for storing
2551         pattern-specific variable values.  Define new function prototypes.
2553         * rule.c: New variables pattern_vars and last_pattern_var for
2554         storage and handling of pattern-specific variable values.
2555         (create_pattern_var): Create a new pattern-specific variable value
2556         structure.
2557         (lookup_pattern_var): Try to match a target to one of the
2558         pattern-specific variable values.
2560 1998-04-22  Paul D. Smith  <psmith@gnu.org>
2562         * make.texinfo (Target-specific): Document target-specific
2563         variables.
2565 1998-04-21  Paul D. Smith  <psmith@gnu.org>
2567         * variable.c (define_variable_in_set): Made globally visible.
2568         (lookup_variable_in_set): New function: like lookup_variable but
2569         look only in a specific variable set.
2570         (target_environment): Use lookup_variable_in_set() to get the
2571         correct export rules for a target-specific variable.
2572         (create_new_variable_set): Create a new variable set, and just
2573         return it without installing it anywhere.
2574         (push_new_variable_scope): Reimplement in terms of
2575         create_new_variable_set.
2577         * read.c (record_target_var): Like record_files, but instead of
2578         files create a target-specific variable value for each of the
2579         listed targets.  Invoked from read_makefile() when the target line
2580         turns out to be a target-specific variable assignment.
2582 1998-04-19  Paul D. Smith <psmith@gnu.org>
2584         * read.c (read_makefile): Rewrite the entire target parsing
2585         section to implement target-specific variables.  In particular, we
2586         cannot expand the entire line as soon as it's read in, since we
2587         may want to evaluate parts of it with different variable contexts
2588         active.  Instead, start expanding from the beginning until we find
2589         the `:' (or `::'), then determine what kind of line this is and
2590         continue appropriately.
2592         * read.c (get_next_mword): New function to parse a makefile line
2593         by "words", considering an entire variable or function as one
2594         word.  Return the type read in, along with its starting position
2595         and length.
2596         (enum make_word_type): The types of words that are recognized by
2597         get_next_mword().
2599         * variable.h (struct variable): Add a flag to specify a per-target
2600         variable.
2602         * expand.c: Make variable_buffer global.  We need this during the
2603         new parsing of the makefile.
2604         (variable_expand_string): New function.  Like variable_expand(),
2605         but start at a specific point in the buffer, not the beginning.
2606         (variable_expand): Rewrite to simply call variable_expand_string().
2608 1998-04-13  Paul D. Smith  <psmith@gnu.org>
2610         * remake.c (update_goal_chain): Allow the rebuilding makefiles
2611         step to use parallel jobs.  Not sure why this was disabled:
2612         hopefully we won't find out :-/.
2614 1998-04-11  Paul D. Smith  <psmith@gnu.org>
2616         * main.c (main): Set the CURDIR makefile variable.
2617         * make.texinfo (Recursion): Document it.
2619 1998-03-17  Paul D. Smith  <psmith@gnu.org>
2621         * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
2622         * variable.c (try_variable_definition): Use new feature.
2624 1998-03-10  Paul D. Smith  <psmith@gnu.org>
2626         * main.c (main): Don't pass included, rebuilt makefiles to
2627         re-exec'd makes with -o.  Reopens a possible loop, but it caused
2628         too many problems.
2630 1998-03-02  Paul D. Smith  <psmith@gnu.org>
2632         * variable.c (try_variable_definition): Implement ?=.
2633         * make.texinfo (Setting): Document it.
2635 1998-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
2637         * job.c (start_job_command): Reset execute_by_shell after an empty
2638         command, like ":", has been seen.
2640 Tue Oct 07 15:00:00 1997  Phil Brooks <phillip_brooks@hp.com>
2642         * make.h [WINDOWS32]: make case sensitivity configurable
2643         * dir.c [WINDOWS32]: make case sensitivity configurable
2644         * README.W32: Document case sensitivity
2645         * config.ami: Share case warping code with Windows
2647 Mon Oct  6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2649         * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
2650         (turn on HAVE_MKS_SHELL).
2651         * read.c [WINDOWS32]: Fixed a problem with multiple target rules
2652         reported by Gilbert Catipon (gcatipon@tibco.com).  If multiple
2653         path tokens in a rule did not have drive letters, make would
2654         incorrectly concatenate the 2 tokens together.
2655         * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
2656         follow what MSDOS did. In addition to watching for SHELL variable
2657         updates, make's main will attempt to default the value of SHELL
2658         before and after makefiles are parsed.
2659         * job.c/job.h [WINDOWS32]: The latest changes made to enable use
2660         of the GNUWIN32 shell from make could cause make to fail due to a
2661         concurrency condition between parent and child processes.  Make
2662         now creates a batch file per job instead of trying to reuse the
2663         same singleton batch file.
2664         * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
2665         from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
2666         logic to reduce complexity. WINDOWS32 now uses the unixy_shell
2667         variable to detect Bourne-shell compatible environments. There is
2668         also a batch_mode_shell variable that determines whether not
2669         command lines should be executed via script files. A WINDOWS32
2670         system with no sh.exe installed would have unixy_shell set to
2671         FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
2672         that does not behave well when invoking things via 'sh -c xxx',
2673         you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
2674         improve.
2675         * NMakefile: Added /D DEBUG to debug build flags so that unhandled
2676         exceptions could be debugged.
2678 Mon Oct  6 00:04:25 1997  Rob Tulloh <rob_tulloh@dev.tivoli.com>
2680         * main.c [WINDOWS32]: The function define_variable() does not
2681         handle NULL. Test before calling it to set Path.
2682         * main.c [WINDOWS32]: Search Path again after makefiles have been
2683         parsed to detect sh.exe.
2684         * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
2685         To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
2686         * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
2688 Sun Oct  5 22:43:59 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
2690         * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
2691         case-sensitive.
2692         * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
2693         command contains a newline (e.g. from a define/enddef block).
2694         * vmsify.c (vmsify): Return relative pathnames wherever possible.
2695         * vmsify.c (vmsify): An input string like "../.." returns "[--]".
2697 Wed Oct  1 15:45:09 1997  Rob Tulloh <rob_tulloh@tivoli.com>
2699         * NMakefile: Changed nmake to $(MAKE).
2700         * subproc.bat: Take the make command name from the command
2701         line. If no command name was given, default to nmake.
2702         * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
2703         are now always created in heap memory.
2704         * w32/subproc/sub_proc.c: New implementation of make_command_line()
2705         which is more compatible with different Bourne shell implementations.
2706         Deleted the now obsolete fix_command_line() function.
2707         * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
2708         detected. Make will ensure that the special spelling `Path' is
2709         inserted into the environment when the path variable is propagated
2710         within itself and to make's children.
2711         * main.c [WINDOWS32]: Detection of sh.exe was occurring too
2712         soon. The 2nd check for the existence of sh.exe must come after
2713         the call to read_all_makefiles().
2715 Fri Sep 26 01:14:18 1997  <zinser@axp602.gsi.de>
2717         * makefile.com [VMS]: Fixed definition of sys.
2718         * readme.vms: Comments on what's changed lately.
2720 Fri Sep 26 01:14:18 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
2722         * read.c (read_all_makefiles): Allow make to find files named
2723         "MAKEFILE" with no extension on VMS.
2724         * file.c (lookup_file): Lowercase filenames on VMS.
2726 1997-09-29  Paul D. Smith  <psmith@baynetworks.com>
2728         * read.c (read_makefile): Reworked target detection again; the old
2729         version had an obscure quirk.
2731 Fri Sep 19 09:20:49 1997  Paul D. Smith  <psmith@baynetworks.com>
2733         * Version 3.76.1 released.
2735         * Makefile.am: Add loadavg files to clean rules.
2737         * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
2738         * Makefile.ami (distclean): Ditto.
2739         * SMakefile (distclean): Ditto.
2741         * main.c (main): Arg count should be int, not char!  Major braino.
2743 Tue Sep 16 10:18:22 1997  Paul D. Smith  <psmith@baynetworks.com>
2745         * Version 3.76 released.
2747 Tue Sep  2 10:07:39 1997  Paul D. Smith  <psmith@baynetworks.com>
2749         * function.c (expand_function): When processing $(shell...)
2750         translate a CRLF (\r\n) sequence as well as a newline (\n) to a
2751         space.  Also remove an ending \r\n sequence.
2752         * make.texinfo (Shell Function): Document it.
2754 Fri Aug 29 12:59:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2756         * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
2757         paths which contain single character entries like `.' are not
2758         handled correctly.
2760         * README.W32: Document path handling issues on Windows systems.
2762 Fri Aug 29 02:01:27 1997  Paul D. Smith  <psmith@baynetworks.com>
2764         * Version 3.75.93.
2766 Thu Aug 28 19:39:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2768         * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
2769         from main() to re-exec make, the call to execvp() would
2770         incorrectly return control to parent shell before the exec'ed
2771         command could run to completion. I believe this is a feature of
2772         the way that execvp() is implemented on top of WINDOWS32 APIs. To
2773         alleviate the problem, use the supplied process launch function in
2774         the sub_proc library and suspend the parent process until the
2775         child process has run.  When the child exits, exit the parent make
2776         with the exit code of the child make.
2778 Thu Aug 28 17:04:47 1997  Paul D. Smith  <psmith@baynetworks.com>
2780         * Makefile.DOS.template (distdir): Fix a line that got wrapped in
2781         email.
2783         * Makefile.am (loadavg): Give the necessary cmdline options when
2784         linking loadavg.
2786         * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2788         * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2789         command optimization on these systems; it doesn't make sense.
2791 Wed Aug 27 17:09:32 1997  Paul D. Smith  <psmith@baynetworks.com>
2793         * Version 3.75.92
2795 Tue Aug 26 11:59:15 1997  Paul D. Smith  <psmith@baynetworks.com>
2797         * main.c (print_version): Add '97 to copyright years.
2799         * read.c (do_define): Check the length of the array before looking
2800         at a particular offset.
2802         * job.c (construct_command_argv_internal): Examine the last byte
2803         of the previous arg, not the byte after that.
2805 Sat Aug 23 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2807         * Makefile.DOS.template: New file (converted to Makefile.DOS in
2808         the distribution).
2810         * configure.bat: Rewrite to use Makefile.DOS instead of editing
2811         Makefile.in.  Add support for building from outside of the source
2812         directory.  Fail if the environment block is too small.
2814         * configh.dos: Use <sys/config.h>.
2816         * README.DOS: Update instructions.
2818 Fri Aug 22 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2820         * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2821         literally, use value of unixy_shell instead.
2823         * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2824         time_t is unsigned.
2826 Sat Aug 16 00:56:15 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2828         * vmsify.c (vmsify, case 11): After translating `..' elements, set
2829         nstate to N_OPEN if there are still more elements to process.
2830         (vmsify, case 2): After translating `foo/bar' up to the slash,
2831         set nstate to N_OPEN, not N_DOT.
2833 Fri Aug  8 15:18:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2835         * dir.c (vmsstat_dir): Leave name unmodified on exit.
2836         * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2837         * vpath.c: Fix comments to refer to path separator, not colon.
2838         (selective_vpath_search): Avoid Unixy slash handling for VMS.
2840 Thu Aug  7 22:24:03 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2842         * ar.c [VMS]: Don't declare ar_member_touch.
2843         Delete VMS version of ar_member_date.
2844         Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2845         VMS too.
2846         * arscan.c (VMS_get_member_info): New function.
2847         (ar_scan): Provide version for VMS systems.
2848         (ar_name_equal): Simply compare name and mem on VMS systems.
2849         Don't define ar_member_pos or ar_member_touch on VMS systems.
2851         * config.h-vms (pid_t, uid_t): Don't define.
2853         * remake.c: Delete declaration of vms_stat.
2854         (name_mtime): Don't call vms_stat.
2855         (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2857         * file.c (print_file): [VMS] Use ctime, not cvt_time.
2859         * make.h [VMS]: Don't define POSIX.
2861         * makefile.com (filelist): Include ar and arscan.
2862         Also include them in the link commands.
2863         Don't define NO_ARCHIVES in cc command.
2865         * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2866         (defines): Delete NO_ARCHIVES from list.
2868         * remake.c (f_mtime): Only check to see if intermediate file is
2869         out of date if it also exists (i.e., mtime != (time_t) -1).
2871         * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2873 Fri Jun 20 23:02:07 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2875         * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2876         (#!/bin/sh) in script files correctly.
2877         Fixed a couple of memory leaks.
2878         Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2879         files with extensions are preferred over files without extensions.
2880         Added search for files with .cmd extension too.
2881         * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2883 Mon Aug 18 09:41:08 1997  Paul D. Smith  <psmith@baynetworks.com>
2885         * Version 3.75.91
2887 Fri Aug 15 13:50:54 1997  Paul D. Smith  <psmith@baynetworks.com>
2889         * read.c (do_define): Remember to count the newline after the endef.
2891 Thu Aug 14 23:14:37 1997  Paul D. Smith  <psmith@baynetworks.com>
2893         * many: Rewrote builds to use Automake 1.2.
2895         * AUTHORS: New file.
2896         * maintMakefile: Contains maintainer-only make snippets.
2897         * GNUmakefile: This now only runs the initial auto* tools.
2898         * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2899         automatically by automake).
2900         * compatMakefile: Removed (not needed anymore).
2901         * README,build.sh.in: Removed (built from templates).
2902         * config.h.in,Makefile.in: Removed (built by tools).
2904 Wed Aug 13 02:22:08 1997  Paul D. Smith  <psmith@baynetworks.com>
2906         * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2907         * README,README.DOS: Ditto.
2909         * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2910         * vpath.c (gpath_search): Ditto.
2912         * file.c (rename_file): New function: rehash, but also rename to
2913         the hashname.
2914         * filedef.h: Declare it.
2916         * variable.c (merge_variable_set_lists): Remove free() of variable
2917         set; since various files can share variable sets we don't want to
2918         free them here.
2920 Tue Aug 12 10:51:54 1997  Paul D. Smith  <psmith@baynetworks.com>
2922         * configure.in: Require autoconf 2.12
2924         * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
2925         more stylistically correct "cd subdir && $(MAKE)".
2927         * main.c: Global variable `clock_skew_detected' defined.
2928         (main): Print final warning if it's set.
2929         * make.h: Declare it.
2930         * remake.c (f_mtime): Test and set it.
2932         * job.c (start_job_command): Add special optimizations for
2933         "do-nothing" rules, containing just the shell no-op ":".  This is
2934         useful for timestamp files and can make a real difference if you
2935         have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
2937         * configure.in,Makefile.in: Rewrote to use the new autoconf
2938         program_transform_name macro.
2940         * function.c (function_strip): Strip newlines as well as spaces
2941         and TABs.
2943 Fri Jun  6 23:41:04 1997  Rob Tulloh <rob_tulloh@tivoli.com>
2945         * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
2946         even seconds when stored, so if the date check fails on WINDOWS32
2947          systems, see if this "off-by-one" error is the problem.
2949         * General: If your TZ environment variable is not set correctly
2950         then all your timestamps will be off by hours.  So, set it!
2952 Mon Apr  7 02:06:22 1997  Paul D. Smith  <psmith@baynetworks.com>
2954         * Version 3.75.1
2956         * compatMakefile (objs): Define & use the $(GLOB) variable so
2957         that it's removed correctly from build.sh.in when it's built.
2959         * configure.in: On Solaris we can use the kstat_*() functions to
2960         get load averages without needing special permissions.  Add a
2961         check for -lkstat to see if we have it.
2963         * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
2964         the test to enable kstat_open(), etc. processing.
2966 Fri Apr  4 20:21:18 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2968         * <lots>: Fixes to work in the DJGPP DOS environment.
2970 Mon Mar 31 02:42:52 1997  Paul D. Smith  <psmith@baynetworks.com>
2972         * function.c (expand_function): Added new function $(wordlist).
2974         * make.texinfo (Filename Functions): Document $(wordlist) function.
2976         * vpath.c (build_vpath_lists): Construct the GPATH variable
2977         information in the same manner we used to construct VPATH.
2978         (gpath_search): New function to search GPATH.
2980         * make.h: Declare the new function.
2982         * remake.c (update_file_1): Call it, and keep VPATH if it's found.
2984         * make.texinfo (Search Algorithm): Document GPATH variable.
2986 Sun Mar 30 20:57:16 1997  Paul D. Smith  <psmith@baynetworks.com>
2988         * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
2989         variable to contain the user options passed in on the cmd line.
2991         * make.texinfo (Goals): Document MAKECMDGOALS variable.
2993         * remake.c (f_mtime): Print a warning if we detect a clock skew
2994         error, rather than failing.
2996         * main.c (main): If we rebuild any makefiles and need to re-exec,
2997         add "-o<mkfile>" options for each makefile rebuilt to avoid
2998         infinite looping.
3000 Fri Mar 28 15:26:05 1997  Paul D. Smith  <psmith@baynetworks.com>
3002         * job.c (construct_command_argv_internal): Track whether the last
3003         arg in the cmd string was empty or not (Roland).
3004         (construct_command_argv_internal): If the shell line is empty,
3005         don't do anything (Roland).
3007         * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
3008         the latest changes from the GLIBC version of glob (Ulrich Drepper).
3010         * getloadavg.c,make-stds.texi: New version (Roland).
3012         * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
3014 Mon Mar 24 15:33:34 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
3016         * README.W32: Describe preliminary FAT support.
3018         * build_w32.bat: Use a variable for the final exe name.
3020         * dir.c (find_directory): W32: Find the filesystem type.
3021         (dir_contents_file_exists_p): W32: for FAT filesystems, always
3022         rehash since FAT doesn't change directory mtime on change.
3024         * main.c (handle_runtime_exceptions): W32: Add an
3025         UnhandledExceptionFilter so that when make bombs due to ^C or a
3026         bug, it won't cause a GUI requestor to pop up unless debug is
3027         turned on.
3028         (main): Call it.
3030 Mon Mar 24 00:57:34 1997  Paul D. Smith  <psmith@baynetworks.com>
3032         * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
3033         Check for memmove() function.
3035         * make.h (bcopy): If memmove() available, define bcopy() to use it.
3036         Otherwise just use bcopy().  Don't use memcpy(); it's not guaranteed
3037         to handle overlapping moves.
3039         * read.c (read_makefile): Fix some uninitialized memory reads
3040         (reported by Purify).
3042         * job.c (construct_command_argv_internal): Use bcopy() not
3043         strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
3045         * Makefile.in: Change install-info option ``--infodir'' to
3046         ``--info-dir'' for use with new texinfo.
3048         * function.c (expand_function): $(basename) and $(suffix) should
3049         only search for suffixes as far back as the last directory (e.g.,
3050         only the final filename in the path).
3052 Sun Mar 23 00:13:05 1997  Paul D. Smith  <psmith@baynetworks.com>
3054         * make.texinfo: Add @dircategory/@direntry information.
3055         (Top): Remove previous reference to (dir) (from RMS).
3056         (Static Usage): Add "all:" rule to example.
3057         (Automatic Dependencies): fix .d file creation example.
3059         * Install VPATH+ patch:
3061         * filedef.h (struct file): Add in hname field to store the hashed
3062         filename, and a flag to remember if we're using the vpath filename
3063         or not.  Renamed a few functions for more clarity.
3065         * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
3066         in the hash table based on their "hash name".  We can change this
3067         while keeping the original target in "name".
3068         (rehash_file): Renamed from "rename_file" to be more accurate.
3069         Changes the hash name, but not the target name.
3071         * remake.c (update_file_1): Modify -d output for more detailed
3072         VPATH info.  If we don't need to rebuild, use the VPATH name.
3073         (f_mtime): Don't search for vpath if we're ignoring it.  Call
3074         renamed function rehash_file.  Call name_mtime instead of
3075         file_mtime, to avoid infinite recursion since the file wasn't
3076         actually renamed.
3078         * implicit.c (pattern_search): if we find an implicit file in
3079         VPATH, save the original name not the VPATH name.
3081         * make.texinfo (Directory Search): Add a section on the new VPATH
3082         functionality.
3084 Sun Dec  1 18:36:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3086         * dir.c (file_exists_p, file_impossible, file_impossible_p): If
3087         dirname is empty replace it by the name of the root directory.
3088         Note that this doesn't work (yet) for W32, Amiga, or VMS.
3090 Tue Oct 08 13:57:03 1996  Rob Tulloh  <tulloh@tivoli.com>
3092         * main.c (main): W32 bug fix for PATH vars.
3094 Tue Sep 17 1996  Paul Eggert  <eggert@twinsun.com>
3096         * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
3097         32-bit quantity.
3099         * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
3100         INTEGER_TYPE_MINIMUM): New macros.
3102 Tue Aug 27 01:06:34 1996  Roland McGrath  <roland@baalperazim.frob.com>
3104         * Version 3.75 released.
3106         * main.c (print_version): Print out bug-reporting address.
3108 Mon Aug 26 19:55:47 1996  Roland McGrath  <roland@baalperazim.frob.com>
3110         * main.c (print_data_base): Don't declare ctime; headers do it for us
3111         already.
3113 Sun Jul 28 15:37:09 1996  Rob Tulloh (tulloh@tivoli.com)
3115         * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
3116         real function. This was done so that VPATH could contain
3117         white space separated pathnames. Please note that directory
3118         paths (in VPATH/vpath context) containing white space are not
3119         supported (just as they are not under Unix). See README.W32
3120         for suggestions.
3122         * w32/include/pathstuff.h: Added prototype for the new
3123         function convert_vpath_to_w32. Deleted macro for same.
3125         * README.W32: Added some notes about why I chose not to try
3126         and support pathnames which contain white space and some
3127         workaround suggestions.
3129 Thu Jul 25 19:53:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3131         * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
3133         * Version 3.74.7.
3135         * main.c (define_makeflags): Back up P to point at null terminator
3136         when killing final space and dash before setting MFLAGS.
3138         From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
3139         * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
3140         `__opendir_flags' initialized to 0.
3141         (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
3142         (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
3143         __opendir_flags to __OPENDIR_PRESERVE_CASE.
3145         * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
3147         * GNUmakefile (w32files): Add NMakefile.
3149         * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
3151 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
3153         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
3154         modtime check.
3155         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
3157 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3159         * configure.in: Require autoconf 2.10 or later.
3161 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3163         * Version 3.74.6.
3165         * GNUmakefile (w32files): New variable.
3166         (distfiles): Add it.
3167         * w32: Updated by Rob Tulloh.
3169         * makefile.vms (LOADLIBES): Fix typo.
3171 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3173         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
3175         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
3177         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
3179         * Version 3.74.5.
3181         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
3183 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3185         * configure.in: Don't check for _sys_siglist.
3186         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
3187         no strsignal or sys_siglist.
3189         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
3190         same as `ifeq (a, b)'.
3192         * job.c (reap_children): Don't call die if handling_fatal_signal.
3194         * file.c (file_hash_enter): Allow renaming :: to : when latter is
3195         non-target, or : to :: when former is non-target.
3197         * job.c (start_job_command): Call block_sigs.
3198         (block_sigs): New function, broken out of start_job_command.
3199         (reap_children): Block fatal signals around removing dead child from
3200         chain and adjusting job_slots_used.
3201         * job.h: Declare block_sigs.
3203         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
3204         * main.c (main): Call remote_setup.
3205         (die): Call remote_cleanup.
3207         * job.c (reap_children): Quiescent value of shell_function_pid is
3208         zero, not -1.
3210         * main.c (print_version): Add 96 to copyright years.
3212 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3214         * read.c (find_char_unquote): Avoid calling strlen on every call
3215         just to throw away the value most of the time.
3217 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3219         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
3220         no '=', regardless of ARGC.
3221         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
3222         word is short option, regardless of WORDS.
3224 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3226         * makefile.vms: Set LOADLIBES.
3227         * makefile.com (link_using_library): Fix typo.
3229 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3231         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
3232         long.
3234 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
3236         * dir.c: W32 does not support inode. For now, fully qualified
3237         pathname along with st_mtime will be keys for files.
3238         Fixed problem where vpath can be confused when files
3239         are added to a directory after the directory has already been
3240         read in. The code now attempts to reread the directory if it
3241         discovers that the datestamp on the directory has changed since
3242         it was cached by make. This problem only seems to occur on W32
3243         right now so it is lumped under port #ifdef WINDOWS32.
3245         * function.c: W32: call subproc library (CreateProcess()) instead of
3246         fork/exec.
3248         * job.c: W32: Added the code to do fork/exec/waitpid style processing
3249         on W32 systems via calls to subproc library.
3251         * main.c: W32: Several things added here. First, there is code
3252         for dealing with PATH and SHELL defaults. Make tries to figure
3253         out if the user has %PATH% set in the environment and sets it to
3254         %Path% if it is not set already. Make also looks to see if sh.exe
3255         is anywhere to be found. Code path through job.c will change
3256         based on existence of a working Bourne shell. The checking for
3257         default shell is done twice: once before makefiles are read in
3258         and again after. Fall back to MSDOS style execution mode if no sh.exe
3259         is found. Also added some debug support that allows user to pause make
3260         with -D switch and attach a debugger. This is especially useful for
3261         debugging recursive calls to make where problems appear only in the
3262         sub-make.
3264         * make.h: W32: A few macros and header files for W32 support.
3266         * misc.c: W32: Added a function end_of_token_w32() to assist
3267         in parsing code in read.c.
3269         * read.c: W32: Fixes similar to MSDOS which allow colon to
3270         appear in filenames. Use of colon in filenames would otherwise
3271         confuse make.
3273         * remake.c: W32: Added include of io.h to eliminate compiler
3274         warnings. Added some code to default LIBDIR if it is not set
3275         on W32.
3277         * variable.c: W32: Added support for detecting Path/PATH
3278         and converting them to semicolon separated lists for make's
3279         internal use. New function sync_Path_environment()
3280         which is called in job.c and function.c before creating a new
3281         process. Caller must set Path in environment since we don't
3282         have fork() to do this for us.
3284         * vpath.c: W32: Added detection for filenames containing
3285         forward or backward slashes.
3287         * NMakefile: W32: Visual C compatible makefile for use with nmake.
3288         Use this to build GNU make the first time on Windows NT or Windows 95.
3290         * README.W32: W32: Contains some helpful notes.
3292         * build_w32.bat: W32: If you don't like nmake, use this the first
3293         time you build GNU make on Windows NT or Windows 95.
3295         * config.h.W32: W32 version of config.h
3297         * subproc.bat: W32: A bat file used to build the
3298         subproc library from the top-level NMakefile. Needed because
3299         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
3301         * w32/include/dirent.h
3302         * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
3304         * w32/include/pathstuff.h: W32: used by files needed functions
3305         defined in pathstuff.c (prototypes).
3307         * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
3309         * w32/include/w32err.h: W32: prototypes for w32err.c.
3311         * w32/pathstuff.c: W32: File and Path/Path conversion functions.
3313         * w32/subproc/build.bat: W32: build script for subproc library
3314         if you don't wish to use nmake.
3316         * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
3317         with nmake. Used to build subproc library.
3319         * w32/subproc/misc.c: W32: subproc library support code
3320         * w32/subproc/proc.h: W32: subproc library support code
3321         * w32/subproc/sub_proc.c: W32: subproc library source code
3322         * w32/subproc/w32err.c: W32: subproc library support code
3324 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3326         * Version 3.74.4.
3328         * GNUmakefile (vmsfiles): Fix typo.
3330         * GNUmakefile (amigafiles): Add amiga.h.
3332 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
3334         * dir.c: New function: amigafy() to fold filenames
3335         Changes HASH() to HASHI() to fold filenames on Amiga.
3336         Stringcompares use strieq() instead of streq()
3337         The current directory on Amiga is "" instead of "."
3338         * file.c: Likewise.
3340         * amiga.c: New function wildcard_expansion(). Allows to use
3341         Amiga wildcards with $(wildcard )
3343         * amiga.h: New file. Prototypes for amiga.c
3345         * function.c: Use special function wildcard_expansion() for
3346         $(wildcard ) to allow Amiga wildcards
3347         The current directory on Amiga is "" instead of "."
3349         * job.c: No Pipes on Amiga, too
3350         (load_too_high) Neither on Amiga
3351         ENV variable on Amiga are in a special directory and are not
3352         passed as third argument to main().
3354         * job.h: No envp on Amiga
3356         * make.h: Added HASHI(). This is the same as HASH() but converts
3357         it's second parameter to lowercase on Amiga to fold filenames.
3359         * main.c: (main), variable.c Changed handling of ENV-vars. Make
3360         stores now the names of the variables only and reads their contents
3361         when they are accessed to reflect that these variables are really
3362         global (ie. they CAN change WHILE make runs !) This handling is
3363         made in lookup_variable()
3365         * Makefile.ami: renamed file.h to filedep.h
3366         Updated dependencies
3368         * read.c: "find_semicolon" is declared as static but never defined.
3369         No difference between Makefile and makefile on Amiga; added
3370         SMakefile to *default_makefiles[].
3371         (read_makefile) SAS/C want's two_colon and pattern_percent be set
3372         before use.
3373         The current directory on Amiga is "" instead of "."
3374         Strange #endif moved.
3376         * README.Amiga: updated feature list
3378         * SMakefile: Updated dependencies
3380         * variable.c: Handling of ENV variable happens inside lookup_variable()
3382 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3384         * variable.c (try_variable_definition): Count parens in lhs variable
3385         refs to avoid seeing =/:=/+= inside a ref.
3387 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3389         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
3390         conditional.
3392         * main.c (main): Use unsigned for fread return.
3394         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
3395         conflict issues.
3396         * dep.h: Fix prototype.
3398         * function.c (expand_function) [_AMIGA]: Fix some typos.
3399         (patsubst_expand): Make len vars unsigned.
3401         * GNUmakefile (globfiles): Add AmigaDOS support files.
3402         (distfiles): Add $(amigafiles).
3403         (amigafiles): New variable.
3405 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
3407         * Added Amiga support in commands.c, dir.c, function.c,
3408         job.c, main.c, make.h, read.c, remake.c
3409         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
3410         * dir.c: Amiga has filenames with Upper- and Lowercase,
3411         but "FileName" is the same as "filename". Added strieq()
3412         which is use to compare filenames. This is like streq()
3413         on all other systems. Also there is no such thing as
3414         "." under AmigaDOS.
3415         * function.c: On Amiga, the environment is not passed as envp,
3416         there are no pipes and Amiga can't fork. Use my own function
3417         to create a new child.
3418         * job.c: default_shell is "" (The system automatically chooses
3419         a shell for me). Have to use the same workaround as MSDOS for
3420         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
3421         known on Amiga. Cloned code to run children from MSDOS. Own
3422         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
3423         * main.c: Force stack to 20000 bytes. Read environment from ENV:
3424         device. On Amiga, exec_command() does return, so I exit()
3425         afterwards.
3426         * make.h: Added strieq() to compare filenames.
3427         * read.c: Amiga needs special extension to have passwd. Only
3428         one include-dir. "Makefile" and "makefile" are the same.
3429         Added "SMakefile".  Added special code to handle device names (xxx:)
3430         and "./" in rules.
3431         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
3432         instead of "lib%s.a".
3433         * main.c, rule.c, variable.c: Avoid floats at all costs.
3434         * vpath.c: Get rid of as many alloca()s as possible.
3436 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3438         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
3440 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3442         * GNUmakefile (vmsfiles): New variable.
3443         (distfiles): Include $(vmsfiles).
3445 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3447         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
3448         * make.h (PARAMS): New macro.
3449         * config.h-vms: New file.
3450         * makefile.com: New file.
3451         * makefile.vms: New file.
3452         * readme.vms: New file.
3453         * vmsdir.h: New file.
3454         * vmsfunctions.c: New file.
3455         * vmsify.c: New file.
3456         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
3457         * ar.c: Added prototypes and changes for VMS.
3458         * commands.c: Likewise.
3459         * commands.h: Likewise.
3460         * default.c: Likewise.
3461         * dep.h: Likewise.
3462         * dir.c: Likewise.
3463         * expand.c: Likewise.
3464         * file.c: Likewise.
3465         * function.c: Likewise.
3466         * implicit.c: Likewise.
3467         * job.c: Likewise.
3468         * job.h: Likewise.
3469         * main.c: Likewise.
3470         * make.h: Likewise.
3471         * misc.c: Likewise.
3472         * read.c: Likewise.
3473         * remake.c: Likewise.
3474         * remote-stub.c: Likewise.
3475         * rule.c: Likewise.
3476         * rule.h: Likewise.
3477         * variable.c: Likewise.
3478         * variable.h: Likewise.
3479         * vpath.c: Likewise.
3480         * compatMakefile (srcs): Rename file.h to filedef.h.
3482 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3484         * remake.c (check_dep): For a secondary file, try implicit and
3485         default rules if appropriate.
3487 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3489         * remake.c (check_dep): If an intermediate file exists,
3490         do consider its actual date.
3492 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3494         * file.h (struct file): New field `secondary'.
3495         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
3496         (remove_intermediates): Don't delete .SECONDARY files.
3498 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3500         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
3502 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3504         * Version 3.74.3.
3506         * remake.c (f_mtime): Move future modtime check before FILE is
3507         clobbered by :: loop.
3509         * dir.c: Use canonical code from autoconf manual for dirent include.
3510         [_D_NAMLEN]: Redefine NAMLEN using this.
3511         (dir_contents_file_exists_p): Use NAMLEN macro.
3512         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
3514         * compatMakefile (objs): Add missing backslash.
3516 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3518         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
3519         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
3521         * remake.c (f_mtime): Check for future timestamps; give error and mark
3522         file as "failed to update".
3524 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3526         * job.c: Don't declare unblock_sigs; job.h already does.
3528 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3530         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
3532         * job.c (NGROUPS_MAX): Don't try to define this macro.
3534 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3536         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
3537         (objs, srcs): Include their values here instead of references.
3539 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3541         * Version 3.74.2.
3543         * job.c (reap_children): Call unblock_sigs after start_job_command.
3545 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
3547         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
3548         Avoid & before function names to silence bogus sunos4 compiler.
3550         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
3552 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3554         * Version 3.74.1.
3556         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
3557         reallocating it!
3559 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3561         * misc.c (collapse_continuations): Fix skipping of trailing \s so
3562         it can never dereference before the beginning of the array.
3564         * read.c (find_semicolon): Function removed.
3565         (read_makefile): Don't use find_semicolon or remove_comments for
3566         rule lines.  Use find_char_unquote directly and handle quoted comments
3567         properly.
3569         * default.c: Remove all [M_XENIX] code.
3571         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
3572         (D_NAMLEN): Macro removed.
3573         (FAKE_DIR_ENTRY): New macro.
3574         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
3575         D_NAMLEN.
3576         (read_dirstream): Return a struct dirent * for new glob interface.
3577         (init_dir): Function removed.
3578         (dir_setup_glob): New function.
3579         * main.c (main): Don't call init_dir.
3580         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
3581         GLOB_ALTDIRFUNC flag.
3583         * misc.c (safe_stat): Function removed.
3584         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
3585         safe_stat.
3587 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3589         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
3591         * main.c (log_working_directory): Made global.
3592         Print entering msg only once.
3593         * make.h (log_working_directory): Declare it.
3594         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
3595         nonzero.  Call log_working_directory.
3596         * remake.c: Pass new arg in `message' calls.
3597         * job.c (start_job_command): Pass new arg to `message'; fix
3598         inverted test in that call.
3600 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3602         * job.c (start_job_command): Use `message' to print the command,
3603         and call it with null if the command is silent.
3604         * remake.c (touch_file): Use message instead of printf.
3606 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3608         * main.c (enter_command_line_file): Barf if NAME is "".
3610 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
3612         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
3614 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3616         * configure.in: Don't check for getdtablesize.
3617         * job.c (getdtablesize): Remove decls and macros.
3619 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3621         * main.c (define_makeflags): Omit command line variable
3622         definitions from MFLAGS value.
3624         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
3625         indicating a valid, but empty, archive.
3627 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3629         * dir.c (file_impossible_p): Correctly reset FILENAME to name
3630         within directory before hash search.
3632         * job.c (child_error): Do nothing if IGNORED under -s.
3634         * job.c (exec_command): Correctly use ARGV[0] for script name when
3635         running shell directly.
3637 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3639         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
3640         dup'ing from them.  Don't try to close all excess descriptors;
3641         getdtablesize might return a huge value.  Any open descriptors in
3642         the parent should have FD_CLOEXEC set.
3643         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
3645 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3647         * read.c (read_all_makefiles): Properly append default makefiles
3648         to the end of the `read_makefiles' chain.
3650 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3652         * Version 3.74 released.
3654 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3656         * Version 3.73.3.
3658 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3660         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
3661         install-info cmd.
3663 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3665         * file.c (print_file): Grok update_status of 1 for -q.
3667 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3669         * Version 3.73.2.
3671 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3673         * file.c (remove_intermediates): Fix inverted test to bail under
3674         -n for signal case.  Bail under -q or -t.
3675         Skip files with update_status==-1.
3677         * job.c (job_next_command): Skip empty lines.
3678         (new_job): Don't test the return of job_next_command.
3679         Just let start_waiting_job handle the case of empty commands.
3681 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3683         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
3685         * Version 3.73.1.
3687 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3689         * remake.c (notice_finished_file): Set FILE->update_status to zero
3690         if it's -1.
3692 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3694         * Version 3.73 released.
3696 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3698         * main.c (main): Fixed braino in assert.
3700         * Version 3.72.13.
3702 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3704         * main.c: Avoid string in assert expression.  Some systems are broken.
3706 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3708         * main.c (main): Handle 1 and 2 returns from update_goal_chain
3709         makefile run properly.
3711         * Version 3.72.12.
3713         * main.c (handle_non_switch_argument): New function, broken out of
3714         decode_switches.
3715         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
3716         When getopt_long returns EOF, break the loop and handle remaining args
3717         with a simple second loop.
3719         * remake.c (remake_file): Set update_status to 2 instead of 1 for
3720         no rule to make.  Mention parent (dependent) in error message.
3721         (update_file_1): Handle FILE->update_status == 2 in -d printout.
3722         * job.c (start_job_command, reap_children): Set update_status to 2
3723         instead of 1 for failed commands.
3725 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3727         * job.c (search_path): Function removed (was already #if 0'd out).
3728         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
3730 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3732         * configure.bat: Write @CPPFLAGS@ translation.
3734 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3736         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
3737         to not skip the elt immediately preceding `l(...'.
3739 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3741         * Version 3.72.11.
3743         * read.c (find_char_unquote): Make second arg a string of stop
3744         chars instead of a single stop char.  Stop when any char in the
3745         string is hit.  All callers changed.
3746         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
3747         instead of using two calls.  If the match is not a ; but a #,
3748         return zero.
3749         * misc.c: Changed find_char_unquote callers here too.
3751         * Version 3.72.10.
3753         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
3754         __MSDOS__.
3756         * GNUmakefile (globfiles): Add glob/configure.bat.
3757         (distfiles): Add configh.dos, configure.bat.
3759 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3761         Fixes for MS-DOS from DJ Delorie.
3762         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
3763         as separator in "C:\...".
3764         * configh.dos (STDC_HEADERS): Define only if undefined.
3765         (HAVE_SYS_PARAM_H): Don't define this.
3766         (HAVE_STRERROR): Define this.
3767         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
3769         * Version 3.72.9.
3771         * main.c (decode_switches): Reset optind to 1 instead of 0.
3773 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3775         * main.c (decode_switches): If non-option arg is "-", ignore it.
3777 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3779         * Version 3.72.8.
3781 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3783         * Version 3.72.7.
3785 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3787         * main.c (main): Pass missing arg to tmpnam.
3789         * configure.in: Check for strsignal.
3790         * job.c (child_error): Use strsignal.
3791         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3793         * misc.c (strerror): Fix swapped args in sprintf.
3795 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3797         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3799 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3801         * main.c (print_version): Add 95 to copyright years.
3803         * Version 3.72.6.
3805         * job.c (start_job_command): Remember to call notice_finished_file
3806         under -n when not recursing.  To do this, consolidate that code
3807         under the empty command case and goto there for the -n case.
3809 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3811         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
3812         declare it int.
3814 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3816         * read.c (read_makefile): For bogus line starting with tab, ignore
3817         it if blank after removing comments.
3819         * main.c: Cast results of `alloca' to `char *'.
3820         * expand.c: Likewise.
3822 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3824         * Version 3.72.5.
3826         * configure.in: Check for mktemp.
3827         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3829         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3830         (_SC_OPEN_MAX)'.
3831         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3832         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3833         using sysconf.
3835 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3837         * remake.c (update_file_1): When !MUST_MAKE, don't set
3838         FILE->update_status to zero before calling notice_finished_file.
3839         (notice_finished_file): Touch only when FILE->update_status is zero.
3840         (remake_file): Set FILE->update_status to zero after not calling
3841         execute_file_command and deciding to touch instead.
3843 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3845         * main.c (debug_signal_handler): New function; toggles debug_flag.
3846         (main): Handle SIGUSR1 with that.
3848 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3850         * compatMakefile (realclean): Remove Info files.
3852 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3854         * Version 3.72.4.
3856         * job.c (start_job_command): Save and restore environ around vfork
3857         call.
3858         (search_path): Function #if 0'd out.
3859         (exec_command): Use execvp instead of search_path.
3861         * expand.c (variable_expand): Rewrote computed variable name and
3862         substitution reference handling to be simpler.  First expand the
3863         entire text between the parens if it contains any $s, then examine
3864         the result of that for subtitution references and do no further
3865         expansion while parsing them.
3867         * job.c (construct_command_argv_internal): Handle " quoting too,
3868         when no backslash, $ or ` characters appear inside the quotes.
3870         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3871         defined, just use int.
3873 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3875         * default.c (default_variables) [__hpux]: Remove special
3876         definition of ARFLAGS.  Existence of the `f' flag is not
3877         consistent across HPUX versions; and one might be using GNU ar
3878         anyway.
3880         * compatMakefile (clean): Don't remove Info files.
3882         * compatMakefile (check): Remove gratuitous target declaration.
3884 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3886         * compatMakefile (ETAGS, CTAGS): Don't use -t.
3888         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3890         * main.c (decode_switches): For --help, print usage to stdout.
3892 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3894         * Version 3.72.3.
3896         * remake.c (update_file_1): Do set_command_state (FILE,
3897         cs_not_started) only if old state was deps_running.
3899 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3901         * job.c (start_waiting_job): Use set_command_state.
3903         * build.template (CPPFLAGS): New variable.
3904         (prefix, exec_prefix): Set from @...@.
3905         (compilation loop): Pass $CPPFLAGS to compiler.
3907         * GNUmakefile (build.sh.in): Make it executable.
3909         * GNUmakefile (globfiles): Add configure.in, configure.
3911         * Version 3.72.2.
3913         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3915         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3917         * configure.in: Don't check for ranlib.
3919 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3921         * remake.c (notice_finished_file): Only mark also_make's as
3922         updated if really ran cmds.
3924 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3926         * configure.in: Put dnls before random whitespace.
3928 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3930         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
3931         (RANLIB): Variable removed.
3932         (prefix, exec_prefix): Set these from @...@.
3933         (.c.o): Use $(CPPFLAGS).
3934         (glob/libglob.a): Don't pass down variables to sub-make.
3935         glob/Makefile should be configured properly by configure.
3936         (distclean): Remove config.log and config.cache (autoconf stuff).
3938 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3940         * acconfig.h: Add #undef HAVE_UNION_WAIT.
3941         * configure.in: Converted to Autoconf v2.
3942         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
3943         of DIRENT, SYSDIR, NDIR.
3944         * build.sh.in (prefix, exec_prefix): Set these from @...@.
3945         (CPPFLAGS): New variable, set from @CPPFLAGS@.
3946         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
3947         * install.sh: File renamed to install-sh.
3949         * main.c (define_makeflags): When no flags, set WORDS to zero.
3951 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3953         * Version 3.72.1.
3955         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
3956         empty.
3958 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3960         * Version 3.72.
3962 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3964         * Version 3.71.5.
3966         * job.c (start_job_command): When ARGV is nil, only set
3967         update_state and call notice_finished_file if job_next_command
3968         returns zero.
3970         * job.c (start_job_command): Call notice_finished_file for empty
3971         command line.
3973 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3975         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
3976         COMMANDS_NOERROR.
3978 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3980         * Version 3.71.4.
3982 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3984         * file.c (snap_deps): Set command_flags bits in all :: entries.
3986 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3988         * make.h (posix_pedantic): Declare it.
3989         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
3990         snap_deps.
3991         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
3992         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
3993         command_flags and don't set -i.  Likewise .SILENT.
3994         * job.c (start_job_command): In FLAGS initialization, OR in
3995         CHILD->file->command_flags.
3996         * file.h (struct file): New member `command_flags'.
3998 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4000         * main.c (switches): Bump flag values for --no-print-directory and
4001         --warn-undefined-variables, so neither is 1 (which indicates a
4002         nonoption argument).
4004 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4006         * main.c (main): Add missing code in .IGNORE test.
4008 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4010         * variable.c (define_automatic_variables): Define +D and +F.
4012 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4014         * main.c (main): Define hidden automatic variable with command
4015         vars, and MAKEOVERRIDES to a reference to that.
4016         (define_makeflags): If posix_pedantic, write a reference to that
4017         instead.
4019 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4021         * main.c (posix_pedantic): New variable.
4022         (main): Set posix_pedantic if .POSIX is a target.
4023         Fix .IGNORE and .SILENT checks to require is_target.
4025         * commands.c (set_file_variables): Define new automatic variable
4026         $+, like $^ but before calling uniquize_deps.
4028         * job.c (reap_children): Call delete_child_targets for non-signal
4029         error if .DELETE_ON_ERROR is a target.
4031 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4033         * Version 3.71.3.
4035 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4037         * job.c (reap_children): Don't change C->file->command_state when
4038         dying.  Test it only after calling start_job_command for a new
4039         command line.  When no more cmds, just set C->file->update_status.
4040         (start_job_command): When the last line is empty or under -n, set
4041         C->file->update_status.
4042         (start_waiting_job): Grok cs_not_started after start_job_command
4043         as success.
4044         (new_job): Set C->file->update_status when there are no cmds.
4045         (job_next_command): When out of lines, don't set
4046         CHILD->file->update_status or CHILD->file->command_state.
4048         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
4049         if nonzero, also double $s.
4050         (main): Define MAKEOVERRIDES from command_variables here.
4051         (define_makeflags): Don't use command_variables here; instead write a
4052         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
4054         * dir.c [__MSDOS__]: Fixed typo.
4056         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
4058 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4060         * remake.c: Include <assert.h> and use assert instead of printfs
4061         and abort.
4063         * main.c (decode_switches): Loop until optind hits ARGC, not just
4064         until getopt_long returns EOF.  Initialize C to zero before loop;
4065         in loop if C is EOF, set optarg from ARGV[optind++], else call
4066         getopt_long.
4067         (decode_env_switches): Use variable_expand instead of
4068         allocated_variable_expand.  Allocate a fresh buffer to copy split
4069         words into; scan characters by hand to break words and
4070         debackslashify.
4071         (shell_quote): New function.
4072         (define_makeflags): Allocate doubled space for switch args, and command
4073         variable names and values; use shell_quote to quote those things.
4075 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4077         * Version 3.71.2.
4079         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
4081         * main.c (decode_switches): The non-option return from getopt is
4082         1, not 0.
4083         (command_variables): New type and variable.
4084         (decode_switches, decode_env_switches): After making a variable
4085         definition, record the struct variable pointer in the
4086         command_variables chain.
4087         (define_makeflags): If ALL, write variable definitions for
4088         command_variables.
4090         * main.c (other_args): Variable removed.
4091         (goals, lastgoal): New static variables (moved from auto in main).
4092         (main): Don't process OTHER_ARGS at all.
4093         Don't set variable MAKEOVERRIDES at all; define MAKE to just
4094         $(MAKE_COMMAND).
4095         (init_switches): Prepend a - {return in order} instead of a +
4096         {require order}.
4097         (decode_switches): Don't set OTHER_ARGS at all.
4098         Grok '\0' return from getopt_long as non-option argument; try
4099         variable definition and (if !ENV) enter goal targets here.
4100         (decode_env_switches): Use allocated_variable_expand to store value.
4101         Use find_next_token to simplify word-splitting loop.  Don't
4102         prepend a dash to uninterpreted value.  Instead, if split into
4103         only one word, try variable definition and failing that prepend a
4104         dash to the word and pass it to decode_switches as a single arg.
4106 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4108         * remake.c (notice_finished_file): Only recheck modtimes if
4109         FILE->command_state was cs_running on entry (meaning the commands
4110         actually just ran).
4111         (update_file_1): Whenever we set FILE->update_status, call
4112         notice_finished_file instead of just set_command_state.
4113         * job.c (start_job_command): Whenever we set
4114         CHILD->file->update_status, call notice_finished_file instead of
4115         just set_command_state.
4117 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
4119         * default.c: Add missing ".
4121         * job.c: Changed all assignments of command_state members to calls
4122         to set_command_state.
4123         * remake.c: Likewise.
4124         * file.c (set_command_state): New function.
4125         * file.h: Declare set_command_state.
4127         * main.c (init_switches): Put a + first in options.
4129 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4131         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
4132         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
4133         * main.c (directory_before_chdir): New variable, moved out of main
4134         (was local).
4135         (main) [__MSDOS__]: Look for \ or : to delimit last component of
4136         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
4137         (die): Change back to `directory_before_chdir' before dying.
4138         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
4139         [__MSDOS__] and not.
4140         * job.c [__MSDOS__]: Include <process.h>.
4141         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
4142         dos_batch_file): New variables.
4143         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
4144         (unblock_sigs) [__MSDOS__]: Do nothing.
4145         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
4146         (load_too_high) [__MSDOS__]: Always return true.
4147         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
4148         Use PATH_SEPARATOR_CHAR instead of ':'.
4149         (construct_command_argv_internal) [__MSDOS__]: Wholly different
4150         values for sh_chars and sh_cmds.  Wholly new code to handle shell
4151         scripts.
4152         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
4153         implementation.
4154         * dir.c [__MSDOS__] (dosify): New function.
4155         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
4156         process the result instead of FILENAME itself.
4157         (file_impossible_p) [__MSDOS__]: Likewise.
4158         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
4159         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
4160         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
4161         `bison -y', and LEX to `flex'.
4162         * configure.bat, configh.dos: New files.
4163         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
4164         intermediates and exit.
4166         * commands.c (set_file_variables): Add parens in length
4167         computation in .SUFFIXES dep loop to quiet compiler warning.  From
4168         Jim Meyering.
4170         * read.c (read_makefile): Free FILENAME if we allocated it.  From
4171         Jim Meyering.
4173 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4175         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
4176         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
4177         * read.c (construct_include_path): Use safe_stat in place of stat.
4178         * job.c (search_path): Use safe_stat in place of stat.
4179         * dir.c (find_directory): Use safe_stat in place of stat.
4180         * commands.c (delete_target): Use safe_stat in place of stat.
4181         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
4182         * remake.c (name_mtime): Use safe_stat in place of stat.
4183         (touch_file) [EINTR]: Do EINTR looping around fstat.
4185 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4187         * read.c (read_makefile): Check for a shell command first, and
4188         then strip leading tabs before further checking if it's not a
4189         shell command line.
4191         * make.h [__arm]: Undefine POSIX.
4192         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
4193         functions that return int.
4195         * job.c (construct_command_argv_internal): After swallowing a
4196         backslash-newline combination, if INSTRING is set goto string_char
4197         (new label) for normal INSTRING handling code.
4199 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4201         * configure.in: Don't check for sys_siglist and _sys_siglist with
4202         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
4204 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4206         * Version 3.71.1 released.
4208         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
4209         _POSIX_VERSION for these declarations.
4211         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
4212         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
4214 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4216         * Version 3.71 released.
4218         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
4219         and [HAVE_SETGID].  Every system has those, and configure doesn't
4220         check for them.
4222         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
4224         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
4225         getloadavg.c.
4226         (loadavg.c): Link or copy it from getloadavg.c.
4227         (distclean): Remove loadavg.c.
4229 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4231         * Version 3.70.4.
4233         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
4234         and HAVE_SETEGID.
4236         * default.c (default_terminal_rules): In SCCS rules, put
4237         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
4238         only before the file name.
4239         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
4241 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4243         * job.c (construct_command_argv_internal): Swallow
4244         backslash-newline combinations inside '' strings too.
4246 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4248         * read.c (do_define): Call collapse_continuations on each line
4249         before all else.
4251 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4253         * job.c (construct_command_argv_internal): Notice newline inside
4254         '' string when RESTP is non-null.
4256 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4258         * Version 3.70.3.
4260         * remake.c (update_goal_chain): Reset FILE to G->file after the
4261         double-colon loop so it is never null for following code.
4263         * read.c (read_makefile): Fix `override define' parsing to skip
4264         whitespace after `define' properly.
4266         * compatMakefile (srcdir): Define as @srcdir@; don't reference
4267         $(VPATH).
4268         (glob/Makefile): New target.
4270 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4272         * Version 3.70.2.
4274         * misc.c (remove_comments): Use find_char_unquote.
4275         * make.h (find_char_unquote): Declare it.
4276         * read.c (find_char_unquote): New function, generalized from
4277         find_percent.
4278         (find_percent, find_semicolon, parse_file_seq): Use that.
4280 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4282         * implicit.c (pattern_search): Always allocate new storage for
4283         FILE->stem.  It is not safe to store STEM's address because it
4284         might be auto storage.
4286         * configure.in: Check for seteuid and setegid.
4287         * misc.c [HAVE_SETEUID]: Declare seteuid.
4288         [HAVE_SETEGID]: Declare setegid.
4289         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
4290         [HAVE_SETEGID]: Use setegid.
4292         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
4293         to preserve whether it's 2 for error or 1 for -q trigger.  When
4294         STATUS gets nonzero and -q is set, always stop immediately.
4295         * main.c (main, decode_switches): Die with 2 for errors.
4296         (main): Accept 2 return from update_goal_chain and die with that.
4297         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
4298         answer.
4299         * job.c (reap_children): Die with 2 for error.
4300         (start_job_command): Set update_status to 2 for error.  Set it to
4301         1 when we would run a command and question_flag is set.
4303         * read.c (read_makefile): Don't mark makefiles as precious.  Just
4304         like other targets, they can be left inconsistent and in need of
4305         remaking by aborted commands.
4307         * read.c (read_makefile): Write no error msg for -include file.
4309 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4311         * commands.c (fatal_error_signal): Don't unblock signals.
4313         * file.h (struct file): Change member `double_colon' from flag to
4314         `struct file *'.
4315         * read.c (record_files): Set double_colon pointer instead of flag.
4316         * main.c (main): When disqualifying makefiles for updating, use
4317         double_colon pointer to find all entries for a file.
4318         * file.c (enter_file): If there is already a double-colon entry
4319         for the file, set NEW->double_colon to that pointer.
4320         (file_hash_enter): Use FILE->double_colon to find all entries to
4321         set name.
4322         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
4323         (update_file): Use FILE->double_colon pointer to find all entries.
4324         (f_mtime): Likewise.
4325         (notice_finished_file): Propagate mtime change to all entries.
4327         * variable.c (try_variable_definition): Return after abort.
4329 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4331         * read.c (read_makefile): Remove unused variable.
4332         (parse_file_seq): When removing an elt that is just `)', properly
4333         fix up the previous elt's next pointer.
4335 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4337         * configure.in: Do AC_SET_MAKE.
4338         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
4340 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4342         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
4343         the search string is the empty string, find a match at the end of
4344         each word (using end_of_token in place of sindex).
4346         * misc.c (end_of_token): Don't treat backslashes specially; you
4347         can no longer escape blanks with backslashes in export, unexport,
4348         and vpath.  This was never documented anyway.
4350 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4352         * read.c (read_makefile): Variable name for `define' is not just
4353         first token; use whole rest of line and strip trailing blanks.
4355 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4357         * Version 3.70.1.
4359         * read.c (read_makefile): Add -d msg stating args.
4361         * read.c (read_makefile): Use isspace to skip over leading
4362         whitespace, and explicitly avoid skipping over tabs.  Don't want
4363         to skip just spaces though; formfeeds et al should be skipped.
4365         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
4367         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
4368         sizeof ar_name for max length to compare.
4370         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
4371         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
4373         * main.c (main): Call user_access after setting `program', in case
4374         it needs to use it in an error message.
4376         * read.c (read_makefile): Ignore an empty line starting with a tab.
4378 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4380         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
4381         AC_COMPILE_CHECK that is now its contents.
4383 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4385         * make.h: #undef strerror after #include <string.h>.
4386         [! ANSI_STRING]: Declare strerror.
4388 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4390         * misc.c (strerror): #undef any macro before function definition.
4392 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4394         * variable.c (try_variable_definition): Calculate BEG before loop
4395         to strip blanks by decrementing END.  Don't decr END to before BEG.
4397         * read.c (read_makefile): Skip over leading space characters, but
4398         not tabs, after removing continuations and comments (it used to
4399         use isspace).
4401 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4403         * variable.c (define_automatic_variables): In $(@D) et al, use
4404         patsubst to remove trailing slash.
4406         * commands.c (delete_target): New function, broken out of
4407         delete_child_targets.  Check for archive members and give special msg.
4408         (delete_child_targets): Use delete_target.
4410 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4412         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
4413         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
4415 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4417         * GNUmakefile (tarfiles): Omit make-doc.
4418         (make-$(version).tar): Include make.info*.
4420 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4422         * compatMakefile (configure, config.h.in): Comment out rules.
4424 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4426         * compatMakefile (binprefix, manprefix): New variables.
4427         (instname): Variable removed.
4428         (install): Use $({bin,man}prefix)make in place of $(instname).
4429         File targets likewised renamed.
4431 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4433         * Version 3.70 released.
4435 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4437         * Version 3.69.3.
4439         * read.c (parse_file_seq): Inside multi-word archive ref
4440         translation loop, check NEW1==0 at end and break out of the loop.
4442         * GNUmakefile (make-$(version).tar): Distribute install.sh.
4443         * install.sh: New file.
4445         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
4446         cmds outside subshell parens, to avoid "command not found" msgs
4447         from the shell.
4449 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4451         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
4452         Redirect output & error from get to /dev/null.
4453         Fix reversed sense of test.
4455 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4457         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
4458         braces inside if condition command; some shells lose.
4460 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4462         * Version 3.69.2.
4464         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
4465         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
4467         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
4469 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4471         * main.c (main): Cast result of pointer arith to unsigned int
4472         before passing to define_variable for envars.  Matters when
4473         sizeof(unsigned)!=sizeof(ptrdiff_t).
4475 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4477         * configure.in: Add new check for SCCS_GET_MINUS_G.
4478         * config.h.in: Add #undef SCCS_GET_MINUS_G.
4479         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
4480         place of `-G $@' in SCCS commands.
4481         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
4482         to "-G$@".
4484         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
4485         (so it goes in config.status), rather than afterward.
4487         * ar.c (ar_member_date): Don't call enter_file on the archive file
4488         if it doesn't exist (by file_exists_p).
4490         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
4491         with `$$dir/make.info' in install-info invocation (oops).
4493         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
4494         we do not unlink and free PATH.
4496         * file.c (print_file_data_base): Fix inverted calculation for
4497         average files per hash bucket.
4499         * read.c (readline): When we see a NUL, give only a warning and
4500         synthesize a newline to terminate the building line (used to
4501         fatal).  Move fgets call into the loop condition, and after the
4502         loop test ferror (used to test !feof in the loop).
4504 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4506         * configure.in: Check for strerror in AC_HAVE_FUNCS.
4508 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4510         Differentiate different flavors of missing makefile error msgs,
4511         removing gratuitous `fopen: ' and giving caller for included makefiles.
4512         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
4513         (perror_with_name, pfatal_with_name): Use strerror instead of
4514         replicating its functionality.
4515         * read.c (read_makefile): Return int instead of void.
4516         (read_all_makefiles, read_makefile): Change callers to notice zero
4517         return and give error msg.
4519 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4521         * Version 3.69.1.
4523         * default.c: Put `-G $@' before $< in SCCS cmds.
4525 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4527         * read.c (read_makefile): After trying a variable defn, notice if
4528         the line begins with a tab, and diagnose an error.
4530 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4532         * Version 3.69.
4534 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4536         * Version 3.68.10.
4538         * implicit.c (try_implicit_rule): Look for a normal rule before an
4539         archive rule.
4541 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4543         * function.c (expand_function: `sort'): Double NWORDS when it
4544         overflows, instead of adding five.
4546         * compatMakefile (clean): Remove loadavg.
4548 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4550         * Version 3.68.9.
4552         * file.h (NEW_MTIME): Define new macro.
4553         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
4554         current time returned from system.  Removed variable NOW.
4555         * remake.c (notice_finished_file): Use NEW_MTIME in place of
4556         current time here too.
4558 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4560         * Version 3.68.8.
4562         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
4563         cmds and !DEPS_CHANGED unless also !NOEXIST.
4565 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4567         * read.c (parse_file_seq): When converting multi-word archive
4568         refs, ignore a word beginning with a '('.
4570 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4572         * configure.in: Check for sys/timeb.h.
4573         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
4575 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4577         * Version 3.68.7.
4579         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
4580         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
4581         TARGNAME to initialize PERCENTS[0].
4583 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4585         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4586         Remove AC_USG; it is no longer used.
4588         * file.c (print_file): New function, broken out of
4589         print_file_data_base.
4590         (print_file_data_base): Call it.
4591         * rule.c (print_rule): New function, broken out of
4592         print_rule_data_base.
4593         (print_rule_data_base): Call it.
4595 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4597         * default.c (install_default_suffix_rules): New function, broken
4598         out of install_default_implicit_rules.
4599         (install_default_implicit_rules): Move suffix rule code there.
4600         * make.h: Declare install_default_suffix_rules.
4601         * main.c (main): Call install_default_suffix_rules before reading
4602         makefiles.  Move convert_to_pattern call before
4603         install_default_implicit_rules.
4605         * job.h (struct child): Make `pid' member type `pid_t' instead of
4606         `int'.
4608         * compatMakefile (RANLIB): New variable, set by configure.
4609         (glob/libglob.a): Pass RANLIB value down to submake.
4611         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
4612         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
4613         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
4614         defined but NOFILES_MAX is, define it to be that.
4616 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4618         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
4619         is distributed.
4621 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4623         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
4625 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4627         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
4628         is another symbol for | in some shells.
4629         * main.c (main): Add it to CMD_DEFS quoting list as well.
4631 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4633         * job.c (construct_command_argv_internal): Remove '=' from
4634         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
4635         first word without an unquoted '='.
4637         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
4639 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4641         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
4643         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
4645         * commands.c (delete_child_targets): Don't delete phony files.
4647         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
4648         see a `+' at the beginning of the command line.
4650 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4652         * Version 3.68.6.
4654 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4656         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
4658 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4660         * expand.c (variable_expand): Fatal on an unterminated reference.
4662 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4664         * Version 3.68.5.
4666         * variable.c (define_automatic_variables): Define new o_default
4667         variable `MAKE_VERSION' from version_string and remote_description.
4669         * make.h (version_string, remote_description): Declare these here.
4670         * main.c: Don't declare version_string.
4671         (print_version): Don't declare remote_description.
4673 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4675         * read.c (read_makefile): Free space pointed to by CONDITIONALS
4676         before restoring the old pointer.
4678 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4680         * compatMakefile ($(objs)): Depend on config.h.
4682         * GNUmakefile (build.sh.in): Depend on compatMakefile.
4684         * configure.in: Touch stamp-config after AC_OUTPUT.
4686 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4688         * Version 3.68.4.
4690 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4692         * make.h: Include <config.h> instead of "config.h".
4694 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4696         * main.c (main): Make all variables interned from ENVP be v_export.
4697         * variable.c (try_variable_definition): In v_default case, don't
4698         check for an o_file variable that `getenv' finds.
4700         * job.c (reap_children): New local variable ANY_LOCAL; set it
4701         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
4703         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
4705         * function.c (expand_function): #if 0 out freeing of ENVP since it
4706         is environ.
4708 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4710         * Version 3.68.3.
4712         * remote-stub.c (remote_status): Set errno to ECHILD before return.
4713         * job.c (reap_children): Scan the chain for remote children and
4714         never call remote_status if there are none.
4716         * function.c (expand_function: `shell'): #if 0 out calling
4717         target_environment; just set ENVP to environ instead.
4719         * job.c (reap_children): Check for negative return from
4720         remote_status and fatal for it.
4721         When blocking local child wait returns 0, then try a blocking call
4722         to remote_status.
4724 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4726         * compatMakefile (clean): Delete make.info* and make.dvi here.
4727         (distclean): Not here.
4729         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
4730         compilers that don't like enum values used as ints.
4732 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4734         * compatMakefile (loadavg): Add $(LOADLIBES).
4736 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4738         * Version 3.68.2.
4740         * compatMakefile (loadavg, check-loadavg): New targets.
4741         (check): Depend on check-loadavg.
4743         * compatMakefile (glob/libglob.a): Depend on config.h.
4745         * misc.c (log_access): Write to stderr instead of stdout.
4747 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4749         * Version 3.68.1.
4751 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4753         * configure.in (SYS_SIGLIST_DECLARED): In test program include
4754         <unistd.h> #ifdef HAVE_UNISTD_H.
4756         * compatMakefile (.PHONY): Put after `all' et al.
4758         * configure.in: Add AC_IRIX_SUN.
4760 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4762         * Version 3.68.
4764 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4766         * Version 3.67.8.
4768 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4770         * Version 3.67.7.
4772         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
4773         Run install-info script if present.
4775 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4777         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
4779         * configure.in: Add AC_STAT_MACROS_BROKEN.
4781 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4783         * Version 3.67.6.
4785         * read.c (read_makefile): Recognize directive `-include', like
4786         `include' but sets RM_DONTCARE flag.
4788         * variable.c (target_environment): If FILE is nil, use
4789         current_variable_set_list in place of FILE->variables.
4790         * function.c (expand_function: `shell'): Get an environment for
4791         the child from target_environment instead of using environ.
4793         * dep.h: Declare read_all_makefiles here.
4794         (RM_*): Define new enum constants.
4795         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4796         Treat it as a bit mask containing RM_*.
4797         (read_all_makefiles): For default makefiles, set D->changed to
4798         RM_DONTCARE instead of 1.
4799         * main.c: Don't declare read_all_makefiles here.
4800         (main): Check `changed' member of read_makefiles elts for RM_*
4801         flags instead of specific integer values.
4803 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4805         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
4807 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4809         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4810         as well as VPATH.
4811         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4812         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
4814         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4815         PERCENTS, whose storage is not consumed by create_pattern_rule.
4817         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4819 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4821         * Version 3.67.5.
4823         * rule.c (max_pattern_targets): New variable.
4824         (count_implicit_rule_limits): Compute its value.
4825         * rule.h: Declare it.
4826         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4827         times bigger.  Move adding new TRYRULES elt inside the inner
4828         targets loop, so each matching target gets its own elt in MATCHES
4829         and CHECKED_LASTSLASH.
4831         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4832         instead of just `file' in error msg.
4834 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4836         * job.c (construct_command_argv): Turn off
4837         --warn-undefined-variables around expansion of SHELL and IFS.
4838         * read.c (tilde_expand): Likewise for HOME.
4839         (read_all_makefiles): Likewise for MAKEFILES.
4840         * vpath.c (build_vpath_lists): Likewise for VPATH.
4842         * main.c (warn_undefined_variables_flag): New flag variable.
4843         (switches): Add --warn-undefined-variables.
4844         * make.h (warn_undefined_variables_flag): Declare it.
4845         * expand.c (warn_undefined): New function.
4846         (reference_variable): Call it if the variable is undefined.
4847         (variable_expand): In substitution ref, call warn_undefined if the
4848         variable is undefined.
4850         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4851         `%.tex: %.w %.ch' rules.
4852         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4853         (default_suffixes): Add `.ch'.
4855 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4857         * default.c (default_suffixes): Replace `.cweb' with `.w'.
4858         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4859         and `.w.tex'.
4861 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4863         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4865 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4867         * Version 3.67.4.
4869         * read.c (multi_glob): Don't free OLD and OLD->name in the
4870         FOUND!=0 fork.  Use new block-local variable F instead of
4871         clobbering OLD.
4873         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4874         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4875         contains no metacharacters.
4877 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4879         * ar.c (ar_glob{_match,_alphacompare}): New function.
4881         * dep.h [! NO_ARCHIVES]: Declare it.
4882         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4884         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4885         multi_glob (which doesn't take a 3rd arg).
4886         * rule.c (install_pattern_rule): Likewise.
4887         * default.c (set_default_suffixes): Here too.
4888         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4890         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4891         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4893 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4895         * compatMakefile (installdirs): Actually pass directory names.
4896         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4897         if it fails, echo a warning msg, but don't make the rule fail.
4899         * read.c (tilde_expand): New function, broken out of tilde_expand.
4900         (multi_glob): Call it.
4901         (construct_include_path): Expand ~ in directory names.
4902         * dep.h: Declare tilde_expand.
4903         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4904         (main): Expand ~ in -C args.
4905         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4907 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4909         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4911         * main.c (main): Put result of alloca in temporary variable with
4912         simple assignment, to make SGI compiler happy.
4914 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4916         * Version 3.67.3.
4918         * main.c (main): Before re-execing, remove intermediate files, and
4919         print the data base under -p.  Sexier debugging message.
4921         * implicit.c (pattern_search): Allocate an extra copy of the name
4922         of a winning intermediate file when putting it in FOUND_FILES.
4924 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4926         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4927         multi_glob (which doesn't take a 3rd arg).
4929         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
4930         chars within D_NAMLEN that are NULs.
4932         * main.c (decode_switches): Don't savestring ARGV[0] to put it
4933         into `other_args'.
4934         For string switch, don't savestring `optarg'.
4935         (main): Don't free elts of makefiles->list that are "-".
4936         Use alloca'd rather than savestring'd storage for elts of
4937         makefiles->list that are temporary file names.
4938         * read.c (read_all_makefiles): Don't free *MAKEFILES.
4939         * file.c (enter_file): Don't strip `./'s.
4940         * main.c (enter_command_line_file): New function.
4941         (main): Use it in place of enter_file for command-line goals from
4942         other_files, and for old_files and new_files.
4944 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4946         * Version 3.67.2.
4948         * compatMakefile (.SUFFIXES): Add .info.
4949         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
4950         else in $srcdir.  Use basename to remove dir name from installed name.
4952 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4954         * implicit.c (pattern_search): When interning FOUND_FILES, try
4955         lookup_file first; if found, free the storage for our copy of the name.
4957 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4959         * Version 3.67.1.
4961         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
4962         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
4964 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4966         * rule.c (convert_suffix_rule): New function.
4967         (convert_to_pattern): Use it instead of doing all the work here
4968         several times.
4969         For target suffix `.a', generate both the archive magic rule and
4970         the normal rule.
4972         * compatMakefile (distclean): Remove stamp-config.
4974 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4976         * Version 3.67.
4978         * file.c (remove_intermediates): Don't write extra space after `rm'.
4980         * main.c (struct command_switch.type): Remove `usage_and_exit'.
4981         (print_usage_flag): New variable.
4982         (switches: --help): Make type `flag', to set print_usage_flag.
4983         (init_switches): Remove `usage_and_exit' case.
4984         (decode_switches): Likewise.
4985         (decode_switches): Print usage if print_usage_flag is set.
4986         When printing usage, die with status of BAD.
4987         (main): Die with 0 if print_version_flag.
4989 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4991         * Version 3.66.
4993 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4995         * compatMakefile (installdirs): New target.
4996         (install): Depend on it.
4998 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5000         * Version 3.65.2.
5002 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5004         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
5005         set LASTPATH to PATH, not NEXT.
5007         * dir.c (read_dirstream): Break out of loop after incrementing
5008         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
5009         dereference DS->contents->files[DIRFILE_BUCKETS].
5011         * read.c (read_makefile): Clear no_targets after reading a
5012         targetful rule line.
5014         * main.c (main): If print_version_flag is set, exit after printing
5015         the version.
5016         (switches): Change --version docstring to say it exits.
5018         * make.h [butterfly]: #undef POSIX.
5020 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5022         * Version 3.65.1.
5024         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
5025         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
5027         * function.c (handle_function): Use fatal instead of
5028         makefile_fatal when reading_filename is nil.
5030         * configure.in: Add AC_GETGROUPS_T.
5031         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
5033 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5035         * Version 3.65.
5037 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5039         * function.c (handle_function): Fatal for unmatched paren.
5041 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5043         * Version 3.64.3.
5045         * commands.c (handling_fatal_signal): New variable.
5046         (fatal_error_signal): Set it.
5047         * job.c (reap_children): Avoid nonreentrant operations if that is set.
5048         * make.h: Declare handling_fatal_signal.
5050         * expand.c (reference_variable): New function, snippet of code
5051         broken out of simple-reference case of variable_expand.
5052         (variable_expand): Use it for simple refs.
5053         (variable_expand): When checking for a computed variable name,
5054         notice a colon that comes before the final CLOSEPAREN.  Expand
5055         only up to the colon, and then replace the pending text with a
5056         copy containing the expanded name and fall through to subst ref
5057         handling.
5058         (variable_expand): Don't bother expanding the name if a colon
5059         appears before the first $.
5060         (expand_argument): Use alloca instead of savestring.
5061         (variable_expand): For subst ref, expand both sides of = before
5062         passing to [pat]subst_expand.  Use find_percent instead of lindex
5063         to check the lhs for a %.
5065 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5067         * Version 3.64.2.
5069 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5071         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
5073         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
5074         not to multi_glob.
5076 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5078         * Version 3.64.1.
5080         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
5081         we read the member name in any of the fashions that allow it to be
5082         arbitrarily long.  Pass its negation to FUNCTION.
5083         (describe_member): Take TRUNCATED from ar_scan and print it.
5084         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
5085         the first sizeof (struct ar_hdr.ar_name) chars.
5086         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
5087         * ar.c (ar_member_date_1): Likewise.
5089 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5091         * job.c (reap_children): Before calling start_job_command to start
5092         the next command line, reset C->remote by calling start_remote_job_p.
5094 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5096         * arscan.c (ar_scan): New local var NAMEMAP.
5097         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
5098         flag IS_NAMEMAP.  When extracting the member name, always put a
5099         null at its end first.  If the name is "//" or "/ARFILENAMES", set
5100         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
5101         like " /N", get full name from NAMEMAP+N.
5102         Else if NAME looks like "#1/N", read N chars from the
5103         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
5104         the elt's data into alloca'd NAMEMAP.
5105         (ar_name_equal): #if 0 truncating code.
5107         * make.h: Don't declare vfork at all.  It returns int anyway,
5108         unless <unistd.h> declared it; and we conflicted with some systems.
5110         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
5111         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
5112         define it to something like "-no-print-directory".
5113         Use %g format instead of %f for floating-valued things.
5115 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5117         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
5118         to change remote-%.dep to remote-stub.dep.
5120 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5122         * Version 3.64.
5124 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5126         * compatMakefile (install): Remove - prefix from chgrp+chmod.
5128         * Version 3.63.8.
5130 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5132         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
5133         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
5134         else to "get".
5135         * default.c (default_variables): Set GET to macro SCCS_GET.
5137         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
5138         if nonzero.  I hope this is the last time this argument is added
5139         or removed.
5140         (read_makefile): Pass it 1 when parsing include file names.
5141         Pass it 1 when parsing target file names.
5142         Pass it 1 when parsing static pattern target pattern names.
5143         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
5144         * default.c (set_default_suffixes): Pass it 1 when parsing
5145         default_suffixes.
5146         * function.c (string_glob): Pass it 0 here.
5148 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5150         * misc.c (log_access): New function.
5151         ({init,user,make,child}_access): Call it.
5152         (child_access): Abort if !access_inited.
5154         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
5155         single-letter option.
5156         (init_switches, decode_switches, define_makeflags): An option with
5157         no single-letter version is no longer indicated by a value of -1;
5158         instead a value that is !isalnum.
5159         (init_switches): Don't put such switches into the string, only
5160         into the long_option table.
5162         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
5164         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
5165         bsdcc defined WIF* to use union wait.
5167         * main.c (struct command_switch): Change member `c' to type int.
5168         (switches): Make const.
5169         (decode_switches): Use `const struct command_switch *'.
5170         (define_makeflags): Likewise.
5172         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
5174 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5176         * Version 3.63.7.
5178         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
5179         Removed AC_MEMORY_H.
5180         * make.h [USG, NeXT]: Don't test these.
5181         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
5182         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
5183         [! ANSI_STRING]: Put decls of bcopy et al here.
5184         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
5185         [HAVE_SIGSETMASK]: Test this rather than USG.
5186         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
5187         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
5188         It doesn't hurt to do both if they are both defined, and testing
5189         USG is useless.
5190         * dir.c: Rationalize directory header conditionals.
5191         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
5193         * default.c (default_suffixes): Add `.txinfo'.
5194         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
5196         * variable.c (try_variable_definition): Replace RECURSIVE flag
5197         with enum FLAVOR, which can be simple, recursive, or append.
5198         Recognize += as append flavor.  Set new variable VALUE in a switch
5199         on FLAVOR.  For append flavor, prepend the variable's old value.
5200         If the variable was previously defined recursive, set FLAVOR to
5201         recursive; if it was defined simple, expand the new value before
5202         appending it to the old value.  Pass RECURSIVE flag to
5203         define_variable iff FLAVOR == recursive.
5205         * variable.c (try_variable_definition): Use alloca and bcopy for
5206         NAME, instead of savestring.  Might as well use stack storage
5207         since we free it immediately anyway.
5209 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5211         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
5213         * main.c (define_makeflags): Rename `struct flag' member `switch'
5214         to `cs', which is not a reserved word.
5216 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5218         * job.c (new_job): Call start_waiting_jobs first thing.
5219         (start_waiting_job): Changed return type from void to int.
5220         Return 0 when putting the child on the waiting_jobs chain.
5221         (start_waiting_jobs): Don't check load and job_slots here.
5222         Always take a job off the chain and call start_waiting_job on it;
5223         give up and return when start_waiting_job returns zero.
5225         * main.c (define_makeflags: struct flag): Change member `char c' to
5226         `struct command_switch *switch'.
5227         (ADD_FLAG): Set that to CS instead of CS->c.
5228         If CS->c is -1, increment FLAGSLEN for the long name.
5229         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
5230         the long name instead.
5232         * compatMakefile (stamp-config): New target of old config.h rule.
5233         Touch stamp-config after running config.status.
5234         (config.h): Just depend on stamp-config, and have empty commands.
5236 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5238         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
5240         * configure.in (AC_HAVE_FUNCS): Check for psignal.
5242 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5244         * main.c (long_option_aliases): Remove "new"; it is already an
5245         unambiguous prefix of "new-file".
5247 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5249         * Version 3.63.6.
5251 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5253         * vpath.c (selective_vpath_search): When adding the
5254         name-within-directory at the end of NAME, and we don't add a
5255         slash, don't copy FILENAME in one char too far into NAME.
5257         * variable.c (define_automatic_variables): Find default_shell's
5258         length with strlen, not numerology.
5260 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5262         * main.c (define_makeflags): Add the elts of a string option in
5263         reverse order, so they come out right when reversed again.
5265 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5267         * compatMakefile (make.info): Use `-o make.info'.
5269 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5271         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
5272         reflect new use.
5273         (objs): Replace remote.o with remote-$(REMOTE).o.
5274         (srcs): Replace remote.c with remote-$(REMOTE).c.
5275         (remote.o): Rule removed.
5277         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
5278         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
5279         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
5280         * build.template (REMOTE): New var; set to @REMOTE@.
5281         (objs): Add remote-${REMOTE}.o.
5283 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5285         * Version 3.63.5.
5287         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
5288         "Rejecting impossible" -d msg.
5290         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
5291         mod'd values there; never mod {OLD,NEW}HASH.
5293 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5295         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
5297         * compatMakefile (VPATH): Set this to @srcdir@.
5298         (srcdir): Set this to $(VPATH).
5300         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
5301         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
5302         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
5304         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
5306         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
5308 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5310         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
5311         as the sed delimiter char.
5313 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5315         * Version 3.63.4.
5317         * rule.h (struct rule): Removed `subdir' member.
5318         * rule.c (new_pattern_rule): No need to clear it.
5319         (count_implicit_rule_limits): Set the `changed' flag in each dep
5320         that refers to a nonexistent directory.  No longer set rule-global
5321         `subdir' flag with that information.
5322         (print_rule_data_base): Don't record info on `subdir' flags.
5324         * implicit.c (pattern_search): Check the DEP->changed flag rather
5325         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
5326         if it is set, the file might exist even though the DEP->changed
5327         flag is set.
5329         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
5330         name arg to dir_file_exists_p to check for existence of directory.
5332         * implicit.c (pattern_search): Inside dep-finding loop, set
5333         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
5334         rather than computing it anew.
5336         * commands.c (set_file_variables): Must alloca space for PERCENT
5337         and copy it, to avoid leaving the trailing `)' in the value.
5339         * misc.c (remove_comments): Fixed backslash-checking loop
5340         condition to allow it to look at the first char on the line.
5341         P2 >= LINE, not P2 > LINE.
5343         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
5344         $@, rm $@.old and mv $@ to $@.old.
5346         * variable.c (try_variable_definition): Take new args FILENAME and
5347         LINENO.  Fatal if the variable name is empty.
5348         * read.c (read_makefile): Change callers.
5349         * main.c (main): Likewise.
5351         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
5352         that configure will replace with the group owning /dev/kmem.
5354 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5356         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
5357         selective_vpath_search.
5358         (selective_vpath_search): Take second arg MTIME_PTR.
5359         If the dir cache thinks a file exists, stat it to make sure, and
5360         put the modtime in *MTIME_PTR.
5361         * remake.c (library_search): Take second arg MTIME_PTR.
5362         When we find a match, record its mtime there.
5363         Pass MTIME_PTR through to vpath_search to do same.
5364         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
5365         store it in FILE->last_mtime if set nonzero.
5366         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
5368         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
5369         so globbing looks somewhere it will find things.
5371         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
5372         not `$(srcdir)/make.info*'; no need to use basename.
5374 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5376         * Version 3.63.3.
5378         * compatMakefile (install): Add missing ;\s.
5380         Make -, @, and + prefixes on a pre-expanded command line affect
5381         all lines in the expansion, not just the first.
5382         * commands.h (struct commands): Replace `lines_recurse' member
5383         with `lines_flags'.
5384         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
5385         that flag byte.
5386         * commands.c (chop_commands): Set `lines_flags' instead of
5387         `lines_recurse'.  Record not only + but also @ and - prefixes.
5388         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
5389         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
5390         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
5391         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
5392         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
5393         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
5395         * remake.c (update_goal_chain): Set G->file to its prev after
5396         checking for G being finished, since that check needs to examine
5397         G->file.
5399         * configure.in (union wait check) [HAVE_WAITPID]: Try using
5400         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
5401         don't work together, we should not use union wait.
5403         * Version 3.63.2.
5405         * remake.c (update_goal_chain): When G->file->updated, move
5406         G->file to its prev.  We aren't finished until G->file is nil.
5408 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5410         * main.c (starting_directory): New global variable.
5411         (main): Set it to cwd after doing -Cs.
5412         (log_working_directory): Use it, rather than computing each time.
5413         * make.h: Declare it.
5415         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
5417         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
5418         ARGV, rather than LEN words plus one byte.
5420 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5422         * compatMakefile ($(bindir)/$(instname)): Put - before
5423         install_setgid command line, so its failure won't be an error.
5424         (infodir): New variable.
5425         (install): Depend on $(infodir)/$(instname).info.
5426         ($(infodir)/$(instname).info): New target.
5428         * read.c (read_makefile): If FILENAMES is nil when we see a line
5429         starting with a tab, don't treat it as a command.  Just fall
5430         through, rather than giving an error.
5432         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
5433         command line, don't clear it before continuing.  We want
5434         subsequent command lines to be ignored as well.
5436         * job.c (new_job): Before expanding each command line, collapse
5437         backslash-newline combinations that are inside var or fn references.
5439 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5441         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
5443         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
5445         * job.c [POSIX] (unblock_sigs): Made global.
5446         [!POSIX] (unblock_sigs): Move defns to job.h.
5447         * job.h [POSIX] (unblock_sigs): Declare.
5449 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5451         * read.c (read_makefile): In vpath parsing, after finding the
5452         pattern token, take entire rest of line as the search path, not
5453         just the next token.
5455         * compatMakefile (remote.o): Depend on remote-*.c.
5457 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5459         * commands.c (set_file_variables): Don't define any F or D versions.
5460         * variable.c (define_automatic_variables): Define them here as
5461         recursively-expanded variables that use the dir and notdir funcs.
5463         * variable.c (target_environment): In v_default case, don't export
5464         o_default or o_automatic variables.
5466         * configure.in (union wait check): Remove ` and ' inside C code;
5467         they confuse the shell script.
5469 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5471         * Version 3.63.1.
5473         * vpath.c (construct_vpath_list): When skipping further processing
5474         of an elt that is ".", don't also skip the code that pushes P past
5475         the next separator.
5477         * compatMakefile (distclean): Don't remove make-*.
5479         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
5480         defined.  If one cannot use WEXITSTATUS with a `union wait'
5481         argument, we don't want to believe the system has `union wait' at all.
5483         * remake.c (update_file): Do nothing to print "up to date" msgs.
5484         (update_goal_chain): Do it here instead.
5485         Use the `changed' flag of each goal's `struct dep' to keep track
5486         of whether files_remade (now commands_started) changed around a
5487         call to update_file for that goal.
5488         When a goal is finished, and its file's update_status is zero (i.e.,
5489         success or nothing done), test the `changed' flag and give an "up
5490         to date" msg iff it is clear.
5491         * make.h (files_remade): Renamed to commands_started.
5492         * remake.c: Changed defn.
5493         (update_goal_chain): Changed uses.
5494         * job.c (start_job_command): Increment commands_started here.
5495         (reap_children): Not here.
5497         * remake.c (update_goal_chain): Don't do anything with files'
5498         `prev' members.  update_file now completely handles this.
5500         * variable.c (target_environment): Don't expand recursive
5501         variables if they came from the environment.
5503         * main.c (define_makeflags): For flags with omitted optional args,
5504         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
5505         so stored cannot have more flags appended to the same word.
5507 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5509         * variable.c (print_variable_set): In vars/bucket calculation,
5510         don't spuriously multiply by 100.
5512         * Version 3.63.
5514         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
5515         Don't define if already defined.
5517         * remake.c (update_file): Don't keep track of the command_state before
5518         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
5519         and don't test it to decide to print the "is up to date" msg.
5520         Testing for files_remade having changed should always be sufficient.
5521         The old method lost when we are called in the goal chain run on a
5522         makefile, because the makefile's command_state is already
5523         `cs_finished' from the makefile chain run.
5525         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
5527         * configure.in: Rewrote wait checking.
5528         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
5529         Use AC_HAVE_FUNCS to check for waitpid and wait3.
5530         Use a compile check to test just for `union wait'.
5531         * job.c: Rewrote conditionals accordingly.
5532         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
5533         [HAVE_WAIT3]: Likewise.
5534         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
5536         * configure.in: Set CFLAGS and LDFLAGS before all checks.
5538         * dir.c: Add static forward decls of {open,read}_dirstream.
5540 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5542         * Version 3.62.31.
5544         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
5546         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
5547         * build.template (CFLAGS, LDFLAGS): Same here.
5548         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
5549         Set them to -g if not defined in the environment.
5551         * remake.c (library_search): Use LIBNAME consistently, setting it
5552         only once, to be the passed name sans `-l'.
5553         Pass new var FILE to be modified by vpath_search.
5555 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5557         * Version 3.62.30.
5559         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
5560         job_slots.
5562         * configure.in: Add AC_CONST for the sake of getopt.
5564         * read.c (read_makefile): Continue after parsing `override'
5565         directive, rather than falling through to lossage.
5566         Check for EOL or blank after "override define".
5568         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
5570 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5572         * Version 3.62.29.
5574         * main.c (define_makeflags): After writing everything into
5575         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
5576         just wrote " -".  Always terminate the string at *P.
5578         * remake.c (library_search): When constructing names in std dirs,
5579         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
5580         buffer we are writing into!).
5582 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5584         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
5585         define" when IGNORING is true.
5587         * compatMakefile (distclean): Remove config.status and build.sh.
5589 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5591         * Version 3.62.28.
5593         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
5594         (char *).
5596         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
5598         * variable.c (define_automatic_variables): Override SHELL value for
5599         origin o_env_override as well as o_env.
5601         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
5602         add the names of the glob objects (w/subdir) to %objs%.
5603         * build.template (globobjs): Removed.
5604         Take basename of $objs before linking.
5606 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5608         * Version 3.62.27.
5610         * configure.in (AC_OUTPUT): Also edit build.sh.
5611         * build.template: New file.
5612         * GNUmakefile (build.sh.in): New rule to create it from build.template.
5613         (make-$(version).tar.Z): Depend on build.sh.in.
5615         * main.c (die): Call print_data_base if -p.
5616         (main): Don't call it here.
5618         * compatMakefile (defines): Add @DEFS@.  configure should turn this
5619         into -DHAVE_CONFIG_H.
5621 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5623         * Version 3.62.26.
5625         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
5626         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
5627         * compatMakefile (install_setgid): New var, set by configure.
5628         (install): Install setgid $(group) only if $(install_setgid) is true.
5630 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5632         * job.c (load_too_high): If getloadavg fails with errno==0, give a
5633         message saying that load limits are not supported.
5635         * vpath.c (construct_vpath_list): Rewrote path deletion code to
5636         not try to use PATH's next link after freeing PATH.
5638         * main.c (define_makeflags): Rewritten; now handles string-valued
5639         option, and has no arbitrary limits.
5640         (switches): Set `toenv' flag for -I and -v.
5642         * main.c (decode_env_switches): Cast return value of alloca to char *.
5644         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
5645         setre[gu]id in place of set[gu]id.
5647 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5649         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
5650         origin o_default.
5652         * make.h [POSIX]: Don't test this to use ANSI_STRING.
5653         Testing STDC_HEADERS should be sufficient.
5655         * job.h: Declare start_waiting_jobs.
5657         * read.c (read_makefile): Add missing parens in if stmt that find
5658         conditional directives.
5660         * main.c (main): Declare init_dir.
5661         * implicit.c (pattern_search): Always use two % specs in a
5662         DEBUGP2, and always pass two non-nil args.
5663         Cast field width args to int.
5664         Add missing parens in !RULE->subdir if stmt.
5665         * function.c (expand_function, patsubst_expand): Add parens around
5666         assignments inside `while' stmts.
5667         * commands.c (print_commands): Cast field width args to int.
5669         * read.c (do_define): Cast return value of alloca to (char *).
5671         * main.c (init_switches): New function, broken out of decode_switches.
5672         (decode_switches): Take new arg ENV.  If set, ignore non-option
5673         args; print no error msgs; ignore options with clear `env' flags.
5674         (decode_env_switches): Rewritten to chop envar value into words
5675         and pass them to decode_switches.
5676         (switches): Set `env' flag for -I and -v.
5678         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
5680 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5682         * Version 3.62.25.
5684         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
5685         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
5686         we don't need these anyway.
5688         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
5689         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
5690         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
5691         but its set[gu]id functions aren't; its setre[gu]id functions work.
5693         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
5695         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
5697         * configure.in: Call AC_PROG_CC.
5698         * compatMakefile (CC): Define to @CC@ (autoconf magic).
5700         * compatMakefile: Add .NOEXPORT magic target.
5702 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5704         * main.c (print_version): Updated copyright to include 93.
5706 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5708         * make.h [_AIX]: Don't declare alloca.
5710 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5712         * Version 3.62.24.
5714         * compatMakefile (objs): Add signame.o.
5715         (srcs): Add signame.[ch].
5717         * compatMakefile (srcs): Add config.h.in.
5718         (remote.o): Add -I. before -I$(srcdir).
5720 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5722         * Version 3.62.23.
5724         * read.c (readline): Fatal when LEN==0, indicating a line starting
5725         with a NUL.
5726         (readline): Take new arg LINENO, for use in error msg.
5727         (read_makefile, do_define): Pass it.
5729         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
5730         (.c.o): Add -I. before -I$(srcdir).
5732 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5734         * read.c (read_makefile): Accept and ignore a rule with no targets.
5736         * compatMakefile (ALLOCA_SRC): New variable.
5737         (srcs): Include its value.
5739         * read.c (struct conditional): Renamed member `max_ignoring' to
5740         `allocated'; added new member `seen_else'.
5741         (conditional_line): Initialize seen_else flag when starting an `if...';
5742         set it when we see an `else'; fatal if set when we see `else'.
5743         (read_makefile): Fatal "missing `endif'" if there are any pending
5744         conditionals, not just if we are still ignoring.
5746 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5748         * compatMakefile (manext): Set to 1, not l.
5749         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
5751         * file.c (file_hash_enter): Don't call uniquize_deps here.
5752         * read.c (record_files): Likewise.
5753         * implicit.c (pattern_search): Likewise.
5754         * commands.c (set_file_variables): Call it only here.
5756         * default.c (default_variables) [__convex__]: FC=fc.
5758         * variable.c (target_environment): Expand the values of recursively
5759         expanded variables when putting them into the environment.
5760         * expand.c (recursively_expand): Made global.
5761         * make.h (recursively_expand): Declare it.
5763         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
5764         when a dep's command_state is cs_running or cs_deps_running.
5766         * read.c (read_makefile): Changed error msg for spurious cmds to
5767         not say "first target".
5769 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5771         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
5772         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
5773         * compatMakefile (config.h, configure, config.h.in): New rules.
5774         (defines): Removed @DEFS@.
5776 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5778         * compatMakefile (realclean): Just depend on distclean; no cmds.
5779         (distclean): Do what realclean did before; also remove Makefile and
5780         config.h; don't remove configure.
5781         (info, dvi): New targets; depend on make.{info,dvi}.
5782         (doc): Removed target.
5783         (MAKEINFO, TEXI2DVI): New vars.
5784         (make.info, make.dvi): Use them instead of explicit cmds.
5786 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5788         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
5790 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5792         * main.c (long_option_aliases): Add --new-file alias for -W.
5794         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5795         to CXXFLAGS.
5797         * read.c (do_define): Expand the variable name before using it.
5799         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5800         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5802         * remake.c (library_search): Search for libNAME.a in cwd; look in
5803         vpath before looking in standard dirs, not after.
5804         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5806 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5808         * default.c (default_pattern_rules, default_terminal_rules): Added
5809         brackets around initializers.
5811         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5812         (try_variable_definition): Expand the name before defining the var.
5814         * job.c (init_siglist): Removed function.
5815         Removed decl of `sys_siglist'.
5816         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5817         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5818         only under these conditions.
5819         * main.c (main): Don't declare init_siglist.
5820         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5822 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5824         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5825         nil; instead just set it to MOREDEPS.
5827 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5829         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5830         loop that sets MAXELEM.
5832 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5834         * Version 3.62.22.
5836 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5838         * job.c (start_job_command): Under -n, increment files_remade after
5839         processing (i.e., printing) all command lines.
5841 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5843         * read.c (record_files): Append new deps if this rule has no
5844         commands; prepend them to existing deps if this rule has no commands.
5846         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5848         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
5849         (read_makefile): Changed callers.
5850         * function.c (string_glob): Likewise.
5851         * rule.c (install_pattern_rule): Likewise.
5853 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5855         * remake.c (files_remade): Made global.
5856         (notice_finished_file): Don't increment files_remade here; this
5857         function gets called in many situations where no remaking was in
5858         fact done.
5859         * job.c (reap_children): Do it here instead, when we know that
5860         actual commands have been run for the file.
5861         * make.h (files_remade): Declare it.
5863 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5865         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5866         separate elts in the search path.
5868         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5869         The search path can contain spaces now.
5871 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5873         * compatMakefile (check): New target; no-op.
5875         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5876         testing for OLDHASH==0 but before using the value.
5877         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5878         to file_hash_enter.
5880         * file.c (rename_file): Notice when OLDFILE->cmds came from
5881         default.c, and don't try to print ->filename in that case.
5883 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5885         * remake.c (update_file): Don't process F->also_make here.
5886         (notice_finished_file): Don't process FILE->also_make if no attempt
5887         to update FILE was actually made.
5888         Fixed to call f_mtime directly to refresh their modtimes.
5890 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5892         * read.c (find_percent): Don't increment P again after skipping
5893         an escaped %.
5895         * expand.c (variable_expand): In call to patsubst_expand, don't
5896         find `%'s ourselves; let that function do it.
5898         * read.c (read_makefile: record_waiting_files): Don't call
5899         record_files if FILENAMES is nil.
5900         (read_makefile): All alternatives in the parsing, except for rule
5901         lines, fall through to the end of the loop.  At the end of the
5902         loop, do record_waiting_files so we notice later spurious cmds.
5904 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5906         * variable.c (define_automatic_variables): Free old value of SHELL
5907         before replacing it.
5909 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5911         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5913         * dir.c (open_dirstream): Cast return value to __ptr_t.
5915         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5917         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5918         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5919         Define as (get_path_max ()).
5920         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5921         [! PATH_MAX] (get_path_max): Declare fn.
5922         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5924 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5926         * Version 3.62.21.
5928         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
5929         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5930         SYS_SIGLIST_DECLARED.
5932         * dir.c (file_impossible): When initializing DIR->contents, set
5933         DIR->contents->dirstream to nil.
5935         * compatMakefile (GLOB): Define new variable.
5936         (objs): Use it, rather than glob/libglob.a explicitly.
5938         * read.c (parse_file_seq): When stripping "./", handle cases like
5939         ".///foo" and "./////".
5940         * file.c (lookup_file, enter_file): Likewise.
5942 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5944         * dir.c (struct dirstream, {open,read}_dirstream): New
5945         data type and functions to read a directory sequentially.
5946         (init_dir): New function to hook it into glob.
5947         * main.c (main): Call init_dir.
5949         * compatMakefile (objs): Added glob/libglob.a.
5950         * configure.in: Remove code to test for glob.
5952 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5954         * read.c (record_files): Generalized test for NAME pointing
5955         somewhere into F->name.
5957         * variable.c (define_variable_in_set): Free old value when replacing.
5959         * read.c (do_define): Free the linebuffer before returning.
5960         (record_files): When clearing .SUFFIXES deps, free their data.
5961         (multi_glob): Free OLD and its data when replacing it with results
5962         of glob run.
5964         * commands.c (set_file_variables): Use alloca in place of xmalloc
5965         for temp space for $^, $?, et al.
5967         * dir.c (struct directory): New member `contents' replaces `files'
5968         and `dirstream'.
5969         (struct directory_contents): New type.
5970         (directories_contents): New hash table.
5971         (dir_struct_file_exists_p): Take a struct directory_contents.
5972         (dir_file_exists_p): Pass it the `contents' member of the dir found.
5973         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
5974         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
5975         (dir_file_exists_p, find_directory): Change all callers.
5976         (file_impossible): Use DIR->contents, initializing it if nil.
5977         (print_dir_data_base): Use DIR->contents, and print out device and
5978         inode numbers with each directory.
5980         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
5981         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
5982         (DIRFILE_BUCKETS): Decrease to 107.
5983         (find_directory): Allocate and zero a multiple of
5984         sizeof (struct dirfile *), not of sizeof (struct dirfile).
5985         (dir_struct_file_exists_p): New function, nearly all code from
5986         dir_file_exists_p.
5987         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
5988         * vpath.c (selective_vpath_search): Remove redundant
5989         dir_file_exists_p call.
5991         * configure.in: Comment out glob check; always use our code.
5993 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5995         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5996         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
5997         do have it.
5999 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6001         * main.c (main): Don't do -w automatically if -s.
6003 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6005         * main.c (printed_version): Move variable inside print_version.
6006         (print_version): Return immediately if printed_version is set.
6007         (die): Don't test printed_version here.
6008         (decode_switches): Under -v, do print_version before giving usage.
6009         (DESCRIPTION_COLUMN): New macro.
6010         (decode_switches): Use it when printing the usage message.
6011         Leave at least two spaces between options and their descriptions.
6013 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6015         * Version 3.62.20.
6017 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6019         * read.c (read_makefile): Save errno value from trying to open
6020         FILENAME, and restore it before erring; otherwise we get the errno
6021         value from the last elt of the search path.
6023 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6025         * main.c (long_option_aliases): Add --stop for -S.
6027         * read.c (word1eq): Do strncmp before dereferencing someplace that
6028         may be out in space.
6030 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6032         * remake.c (notice_finished_file): If all the command lines were
6033         recursive, don't do the touching.
6035         * job.c (start_job_command): Don't check for + here.
6036         * commands.c (chop_commands): Do it here instead.
6038         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
6040 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6042         * compatMakefile (objs): Include $(ALLOCA).
6044         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
6046 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6048         * read.c (default_include_directories): Add INCLUDEDIR first.
6049         * compatMakefile (includedir): Define.
6050         (defines): Add -D for INCLUDEDIR="$(includedir)".
6052         * read.c (read_makefile): Grok multiple files in `include';
6053         globbing too.
6055         * remake.c (library_search): New function.
6056         (library_file_mtime): Remove function.
6057         (f_mtime): Use library_search instead of library_file_mtime.
6058         * compatMakefile (libdir): Define.
6059         (defines): Add -D for LIBDIR="$(libdir)".
6060         * make.texinfo (Libraries/Search): Document change.
6062         * file.c (rename_file): Fix file_hash_enter call with missing arg.
6064 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6066         * Version 3.62.19.
6068         * main.c (main): Set command_state to cs_finished for temp files
6069         made for stdin makefiles.
6071         * main.c (decode_switches): Don't tell getopt to return non-option
6072         args in order.
6073         Ignore an argument of `-'.
6075 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6077         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
6078         the command line and go to the next.
6079         (notice_finished_file): Under -t, touch FILE.
6080         * remake.c (remake_file): Don't touch it here.
6082 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6084         * function.c (pattern_matches): Use temporary for strlen (WORD)
6085         instead of two function calls.
6087         * compatMakefile (LOAD_AVG): Remove variable and comments.
6089 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6091         * make.texinfo (Running): Node renamed to `make Invocation'.
6093 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6095         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
6096         NAMELEN != MEMLEN.
6098 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6100         * Version 3.62.18.
6102         * main.c: Don't #include <time.h>; make.h already does.
6104 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6106         * implicit.c (pattern_search): Fixed copying of suffix when building
6107         also_make elts.
6109         * function.c (expand_function: `shell'): Make sure BUFFER is
6110         null-terminated before replacing newlines.
6112         * compatMakefile (mandir): Use man$(manext), not always manl.
6114 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6116         * rule.c (new_pattern_rule): Not static.
6117         * rule.h: Declare it.
6119         * file.c (file_hash_enter): New function, most code from rename_file.
6120         (rename_file): Call it.
6121         * file.h (file_hash_enter): Declare it.
6123         * dep.h: Doc fix.
6125 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6127         * main.c (decode_switches): Handle usage_and_exit when building
6128         long options vector.
6130         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
6131         (default_variables): Define CHECKOUT,v (hairy).
6133         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
6134         sys_siglist to _sys_siglist.
6136 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6138         * NEWS: Add header and tail copyright info like Emacs NEWS.
6140         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
6141         bcopy if already #define'd.
6142         [STDC_HEADERS] (qsort, abort, exit): Declare here.
6143         [! __GNU_LIBRARY__ && !POSIX]: Not here.
6145         * make.h [_AIX]: #pragma alloca first thing.
6147         * job.c (start_waiting_job): Set the command_state to cs_running
6148         when we queue a job on waiting_jobs.
6150 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6152         * variable.c (define_automatic_variables): Use "" instead of nil
6153         for empty value.
6155 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6157         * Version 3.62.17.
6159         * main.c (struct command_switch.type): Add alternative usage_and_exit.
6160         (command_switches): Add -h/--help.
6162 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6164         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
6165         * README.template: Mention NEWS.
6166         * CHANGES: Renamed to NEWS.
6168         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
6170 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6172         * main.c (main): Set -o files' command_states to cs_finished.
6174         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
6175         when tossing a rule.
6177         * main.c (main): Use alloca only in simple local var assignment,
6178         for braindead SGI compiler.
6180         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
6181         inconsistent with the number computed when listing them.
6183 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6185         * commands.c (set_file_variables): For $? and $^ elts that are archive
6186         member refs, use member name only.
6188 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6190         * variable.h (struct variable.export): Add new alternative v_ifset.
6191         * variable.c (target_environment): Check for it.
6192         (define_automatic_variables): Set it for MAKEFILES.
6194 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6196         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
6197         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
6198         (distclean, mostlyclean): New targets.
6200 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6202         * Version 3.62.16.
6204         * compatMakefile (config.status): Remove rule.
6206         * job.c (start_waiting_job): Free C after using C->file, not before.
6208 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6210         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
6211         HAVE_* instead of #ifndef *_MISSING.
6212         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
6214 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6216         * main.c (main): makelevel>0 or -C implies -w.
6218 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6220         * file.c, job.c, function.c: Don't #include <errno.h>.
6221         make.h: Do it here instead.
6222         * arscan.c (ar_member_touch): Don't declare errno.
6224 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6226         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
6228         * remake.c (update_file): If commands or deps are running after
6229         update_file_1 returns, break out of the :: rule (->prev) loop and
6230         just return.
6232         * job.c (job_next_command): New function; code from start_job.
6233         (start_job_command): Renamed from start_job.  Call job_next_command
6234         and recurse for empty command lines and -n.
6235         (start_waiting_job): Call start_job_command, not start_job.
6236         (new_job): Call job_next_command to prime the child structure, and
6237         then call start_waiting_job.
6238         (reap_children): Use job_next_command and start_job_command.
6239         (start_waiting_job): Call start_remote_job_p here, and store its
6240         result in C->remote.  If zero, check the load average and
6241         maybe put C on waiting_jobs.
6242         (start_job_command): Test CHILD->remote rather than calling
6243         start_remote_job_p.  Don't do load avg checking at all here.
6245         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
6246         SIGSEGV, SIGFPE or SIGTRAP.
6248         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
6249         configure will set it in glob/Makefile.
6251 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6253         * dir.c [DIRENT] (direct): Don't define to dirent.
6254         [! DIRENT] (direct): Define to dirent.
6255         (dir_file_exists_p): Use struct dirent instead of struct direct.
6257         * make.h (getcwd): No space between macro and ( for args!
6259         * job.c (start_job): Don't put the job on waiting_jobs if
6260         job_slots_used==0.
6262         * make.texinfo (Missing): Shortened title.
6264 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6266         * file.c (remove_intermediates): Print "rm" commands under -n.
6268 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6270         * Version 3.62.15.
6272 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6274         * arscan.c [M_UNIX]: #undef M_XENIX.
6276 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6278         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
6280 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6282         * compatMakefile (getloadavg.o): Removed special rule.
6283         (CFLAGS): Don't include $(defines).
6284         (.c.o): Define suffix rule.
6285         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
6286         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
6288         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
6290         * make.h (max): Removed.
6291         * expand.c (variable_buffer_output): Don't use it.
6293         * compatMakefile (INSTALL): Define.
6294         (Makefile): New rule to make from Makefile.in.
6295         (srcdir): Define.
6296         (VPATH): Define.
6297         (getloadavg.o, remote.o): Use autoconf $foo< hack.
6299         * commands.c (fatal_error_signal): Removed return.
6301 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6303         * Version 3.62.14.
6305         * make.texinfo (Summary): New node.
6306         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
6308         * variable.c (max): Moved to make.h.
6310         * compatMakefile (objs, srcs): Added ar & arscan.
6312         * job.c (start_waiting_job): New function, 2nd half of new_job.
6313         (new_job): Call it.
6314         (start_waiting_jobs): New function.
6315         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
6316         of the main loop.
6317         * compatMakefile (objs, srcs): Removed load, added getloadavg.
6319 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6321         * job.c (load_too_high): New function.  Uses getloadavg.
6322         (waiting_jobs): New variable.
6323         (start_job): Don't call wait_to_start_job.  Instead, if
6324         load_too_high returns nonzero, add the child to the
6325         `waiting_jobs' chain and return without starting the job.
6327 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6329         * expand.c (variable_buffer_output): Made global again.
6330         * variable.h: And declare it.
6332         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
6333         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
6334         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
6335         for a slash in the archive at run time.
6336         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
6337         cope with trailing-slash and non-trailing-slash archives.
6339         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
6340         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
6342         * load.c (load_average) [sgi]: Use sysmp call.
6344         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
6345         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
6347         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
6348         (vfork, VFORK_NAME): Don't define.
6349         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
6351         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
6352         the each file.  Rearranged PATH_MAX hacking.
6353         * job.c: Rearranged NGROUPS_MAX hacking.
6355         * remake.c (fstat, time): Don't declare.
6357         * compatMakefile (defines): Value is @DEFS@.
6358         (LOADLIBES): Value is @LIBS@.
6359         (extras): Value is @LIBOBJS@.
6360         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
6361         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
6363         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
6365         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
6366         (getcwd): Just declare if present.  If not, declare as a macro
6367         using getwd, and declare getwd.
6368         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
6369         * main.c (main, log_working_directory): Use getcwd instead of getwd.
6371         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
6373         * make.h (SIGHANDLER, SIGNAL): Removed.
6374         (RETSIGTYPE): Define if not #define'd.
6375         * main.c (main): Use signal in place of SIGNAL.
6377         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
6379         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
6380         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
6382         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
6383         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
6385         * job.c (child_handler), commands.c (fatal_error_signal): Return
6386         RETSIGTYPE instead of int.
6387         * main.c (main): Declare fatal_error_signal and child_handler here
6388         to return RETSIGTYPE; removed top-level decl of former.
6390         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
6391         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
6393 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6395         * job.c [HAVE_WAITPID]: Test this instead of USG.
6396         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
6397         (GID_T): Don't #define.
6398         (search_path): Use gid_t instead of GID_T.
6399         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
6400         these individually instead of USG for all.
6401         * make.h (ctime): Don't declare.  #include time.h instead.
6402         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
6403         _POSIX_VERSION.
6404         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
6405         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
6407         * arscan.c: Removed #ifdef mess about string.h et al.
6408         Just #include make.h instead.
6409         * make.h (fstat, atol): Declare.
6411         * commands.c (fatal_error_signal): Don't use sigmask to check for
6412         propagated signals; use ||s instead.
6413         (PROPAGATED_SIGNAL_MASK): Removed.
6414         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
6416         * variable.c (variable_buffer, variable_buffer_length,
6417         initialize_variable_output, variable_output): Moved to expand.c;
6418         made all static.
6419         (struct output_state, save_variable_output,
6420         restore_variable_output): Removed.
6421         * expand.c (initialize_variable_output): Put a NUL at the beginning
6422         of the new buffer after allocating it.
6423         (allocated_variable_expand_for_file): Don't use
6424         {save,restore}_variable_output.  Do it by hand instead, keeping
6425         state on the stack instead of malloc'ing it.
6426         (allocated_variable_expand): Removed.
6427         * variable.h (allocated_variable_expand): Define here as macro.
6428         (variable_buffer_output, initialize_variable_output,
6429         save_variable_output, restore_variable_output): Removed decls.
6431         * read.c (conditional_line): For an if cmd, if any elt of the
6432         conditionals stack is ignoring, just push a new level that ignores
6433         and return 1; don't evaluate the condition.
6435 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6437         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
6439         * job.c (getdtablesize): Don't declare or #define if already #define'd.
6441 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6443         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
6444         export_all_variables.
6445         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
6447 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6449         * Version 3.62.13.
6451         * commands.c (set_file_variables): Calculate length for ^D and ?D
6452         individually, making sure to give them at least enough space for "./".
6454         * make.h [CRAY]: #define signal to bsdsignal.
6456         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
6457         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
6459         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
6460         wasn't defined by <ar.h>.
6462 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6464         * Version 3.62.12.
6466 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6468         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
6469         pattern_rules.
6471 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6473         * main.c (decode_switches): Initialize all the long_option elt members.
6475 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6477         * make.texinfo (Text Functions): Correct filter-out description.
6479 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6481         * compatMakefile (realclean): Don't remove backup files.
6483         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
6485 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6487         * Version 3.62.11.
6489 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6491         * job.c (reap_children): Don't die if wait returns EINTR.
6493 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6495         * job.c (reap_children): Always run the next command for a
6496         successful target.  If we are going to die, we don't want to leave
6497         the target partially made.
6499 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6501         * job.c (construct_command_argv_internal): After loop, if we only
6502         have one word, check it for being a shell command.
6504         * main.c (decode_switches): Allocate ARGC slots in other_args to
6505         begin with, so we never need to worry about growing it.
6506         If we get a non-option arg and POSIXLY_CORRECT is in the
6507         environment, break out of the loop.  After the loop, add all remaining
6508         args to other_args list.
6510         * main.c (decode_switches): For positive_int and floating switches
6511         when optarg is nil, use next arg if it looks right (start with a
6512         digit, or maybe decimal point for floating).
6514         * variable.c (define_automatic_variables): Always set SHELL to
6515         default if it comes from the environment.  Set its export bit.
6516         * make.texinfo (Environment): Document change.
6518 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6520         * Version 3.62.10.
6522         * compatMakefile (tags, TAGS): Use vars for cmds.
6523         (ETAGS, CTAGS): Define.
6525         * main.c (decode_switches): If a switches elt has a nil long_name,
6526         make the long option name elt be "".
6527         Fixed loop to not ignore all the options.
6529         * make.texinfo (Option Summary): Added long options.
6531         * main.c (switches): Changed -m's description to "-b".
6532         (decode_switches): When printing the usage message, don't print
6533         switches whose descriptions start with -.
6534         When constructing the list of names for switch -C, search the
6535         switches vector for switches whose descriptions are "-C".
6537         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
6538         Call -I --include-dir, not --include-path.
6539         (long_option_aliases): Added --new == -W, --assume-new == -W,
6540         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
6541         --makefile == -f.
6543         * main.c (switches): Removed bogus "silent" elt.
6544         (long_option_aliases): Define new var.
6545         (decode_switches): Add long_option_aliases onto the end of the long
6546         options vector created for getopt_long.
6547         Look through long_option_aliases for extra names to list
6548         in usage message.
6550 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6552         * main.c (log_working_directory): Fixed to properly not print the
6553         leaving message when we haven't printed the entering message.
6555 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6557         * main.c (struct command_switch): Added elts `long_name',
6558         `description', and `argdesc'.
6559         (switches): Added initializers for new members.
6560         (decode_switches): Rewritten to use getopt_long.
6561         * compatMakefile (GETOPT, GETOPT_SRC): Define.
6562         (objs, srcs): Include them.
6564         * job.c (child_died): Renamed to dead_children; made static.
6565         (child_handler): Increment dead_children instead of setting child_died.
6566         (reap_children): Decrement dead_children instead of clearing
6567         child_died.  The point of all this is to avoid printing "waiting
6568         for unfinished jobs" when we don't actually need to block.
6569         This happened when multiple SIGCHLDs before reap_children was called.
6571         * job.c (reap_children): If ERR is set, so we don't call start_job
6572         on the child being reaped, instead set its command_state to
6573         cs_finished.
6574         (reap_children, child_handler, new_job): I added several
6575         debugging printf's while fixing this.  I left them in if (debug_flag)
6576         because they may be useful for debugging this stuff again.
6578 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6580         * read.c (read_makefile): v_export is not 1.
6582 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6584         * Version 3.62.9.
6586         * variable.c (export_all_variables): New variable.
6587         (target_environment): Export variables whose `export' member is
6588         v_default if export_all_variables is set and their names are benign.
6589         * variable.h: Declare export_all_variables.
6590         * read.c (read_makefile): If export or unexport is given with no
6591         args, set or clear export_all_variables, respectively.
6593         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
6594         so it isn't duplicated when we add it at the end.
6596 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6598         * Version 3.62.8.
6600         * variable.h (struct variable): Added new member `export'.
6601         * variable.c (define_variable_in_set): Initialize it to v_default.
6602         (target_environment): Don't check for .NOEXPORT.
6603         Export variables whose `export' member is v_default and that would
6604         have been exported under .NOEXPORT, and variables whose `export'
6605         member is v_export.
6606         (try_variable_definition): Return the variable defined.
6607         * variable.h (try_variable_definition): Changed decl.
6608         * read.c (read_makefile): Recognize `export' and `unexport' directives.
6610 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6612         * main.c (main) [POSIX]: Reversed args to sigaddset.
6614 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6616         * job.c [POSIX || !USG] (unblock_sigs): New fn.
6617         (start_job): Block signals before forking.
6618         (new_job): Unblock signals after putting the new child on the chain.
6619         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
6620         int fatal_signal_mask.
6622         * load.c [sgi] (LDAV_CVT): Define.
6624 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6626         * Version 3.62.7.
6628         * load.c (load_average) [sgi]: Clear the high bit of the address
6629         from the symbol table before looking it up in kmem.
6631         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
6632         (remake_file): No longer needed in message here.
6634         * main.c (die): Call reap_children with BLOCK==1.
6636 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6638         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
6640 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6642         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
6643         not to head of chain.  Extract next ptr before we might do
6644         freerule, and use that for next iteration.
6645         (freerule): Still do next ptr frobbing if LASTRULE is nil.
6647 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6649         * job.c (child_error): Removed extra %s from error msg format.
6651         * Version 3.62.6.
6653         * job.c (reap_children): Don't start later commands in a sequence
6654         if ERR is nonzero.
6656         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
6658         * job.c (reap_children): New function; work that used to be done in
6659         child_handler.
6660         (child_died): New global var.
6661         (child_handler): Now just sets child_died.
6662         (wait_for_children): Removed.
6663         (unknown_children_possible, block_signals, unblock_signals,
6664         push_signals_blocked_p, pop_signals_blocked_p): Removed.
6665         (child_execute_job): Removed call to unblock_signals.
6666         (new_job): Removed calls to push_signals_blocked_p and
6667         pop_signals_blocked_p.
6668         * job.h: Declare reap_children, not wait_for_children.
6669         * commands.c (fatal_error_signal), job.c (new_job),
6670         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
6671         remake.c (update_goal_chain), function.c (expand_function: `shell'):
6672         Changed wait_for_children calls to reap_children.
6673         Some needed to be loops to wait for all children to die.
6674         * commands.c (fatal_error_signal), main.c (main,
6675         log_working_directory), function.c (expand_function): Removed calls
6676         to push_signals_blocked_p and pop_signals_blocked_p.
6677         * job.h: Removed decls.
6679         * job.h: Added copyright notice.
6681 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6683         * job.c (child_error): No *** for ignored error.
6685 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6687         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
6688         avoid compiler warnings.
6690         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
6691         blank.
6693 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6695         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
6696         avoid compiler warnings.
6698         * remake.c (notice_finished_file): Run file_mtime on the also_make
6699         files, so vpath_search can happen.
6701         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
6702         (alpha-files): Include test suite tar file.
6704 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6706         * Version 3.62.5.
6708 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6710         * remake.c (update_file, update_file_1): Do check_renamed on elts
6711         of dep chains when traversing them.  Something unrelated might have
6712         renamed one of the files the dep chain points to.
6714         * file.c (rename_file): If FILE has been renamed, follow its
6715         `renamed' ptr, so we get to the final real FILE.  Using the renamed
6716         ones loses because they are not in the hash table, so the removal
6717         code loops infinitely.
6719         * read.c (read_all_makefiles): Clobber null terminator into
6720         MAKEFILES expansion, so string passed to read_makefile is properly
6721         terminated.
6723 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6725         * commands.c (set_file_variables): $* for archive member with
6726         explicit cmds is stem of member, not of whole `lib(member)'.
6728 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6730         * Version 3.62.4.
6732 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6734         * rule.c (new_pattern_rule): Rules are identical only if all their
6735         targets match (regardless of order).
6737 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6739         * remake.c (remake_file): Changed error "no way to make" to "no
6740         rule to make".  Fiat Hugh.
6742         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
6743         behavior.
6745         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
6746         target.
6748 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6750         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
6751         environment to pass to child.
6752         * job.c (start_job): Pass it.
6754 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6756         * file.c (enter_file): Also strip ./s here, to get command-line
6757         target names.
6759         * remote-cstms.c: Add comment telling people to leave me alone.
6761         * compatMakefile (manpage install): Remove target before copying.
6763 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6765         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
6766         Added paragraph describing $? incompatibility with Unix and POSIX.2.
6768 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
6770         * function.c (expand_function: `shell'): Don't declare fork or pipe.
6771         Use vfork instead of fork.
6773 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6775         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
6776         intermediate files.
6778         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
6780 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6782         * Version 3.62.3.
6784 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6786         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6788 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6790         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6792         * read.c (record_files): Pass arg for %s in error msg.
6794         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6795         call.
6797 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6799         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6801 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6803         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6805 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6807         * Version 3.62.2.
6809 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6811         * job.c (construct_command_argv_internal): Correctly ignore
6812         whitespace after backslash-NL.
6814 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6816         * compatMakefile: Ignore errors from chgrp and chmod when installing.
6818 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6820         * main.c (main): When setting MAKELEVEL in the env to re-exec,
6821         allocate space so as not to clobber past the end of the old string.
6823         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6824         * compatMakefile (defines): Document HAVE_ALLOCA_H.
6826 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6828         * make.h [VFORK_MISSING]: Use fork instead.
6829         * compatMakefile (defines): Document same.
6831         * job.c (construct_command_argv_internal): Don't create an empty
6832         arg if backslash-NL is at beginning of word.
6834 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6836         * main.c [DGUX]: Call setvbuf as for USGr3.
6838         * job.c (construct_command_argv_internal): Notice correctly that
6839         backslash-NL is the end of the arg (because it is replaced with a
6840         space).
6842 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6844         * job.c (construct_command_argv_internal): If SHELL is nil, set it
6845         to default_shell before proceeding.
6847         * make.h [sgi]: No alloca.h, after all.
6849 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6851         * read.c (multi_glob): Cons up the chain of the results of glob
6852         from back to front, so it comes out in forward order.
6854         * job.c (construct_command_argv_internal): Don't eat char following
6855         backslash-NL.
6857 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6859         * Version 3.62.1.
6861         * default.c (default_variables) [ultrix]: GET=get, like USG.
6863         * job.c (construct_command_argv_internal): Remove tabs following
6864         backslash-NL combos in the input line, so they don't show up when
6865         that line is printed.
6867         * read.c (read_makefile): Don't collapse_continuations the line on
6868         input; do it on the copy we do remove_comments on.
6869         For rule lines, collapse_continuations the line after chopping
6870         ";cmds" off the end, so we don't eat conts in the cmds.
6871         Give error for ";cmds" with no rule.
6872         * job.c (construct_command_argv_internal): Eat backslash-NL combos
6873         when constructing the line to recurse on for slow, too.
6875 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6877         * file.c (enter_file): Don't strip leading `./'s.
6878         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6879         * default.c (set_default_suffixes), function.c (string_glob),
6880         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6882         * default.c (default_variables) [_IBMR2]: FC=xlf
6884         * job.c (construct_command_argv_internal): Turn backslash-NL and
6885         following whitespace into a single space, rather than just eating
6886         the backslash.
6888         * make.texinfo (Copying): @include gpl.texinfo, rather than
6889         duplicating its contents.
6891 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6893         * job.c (construct_command_argv_internal): Make sure not to bother
6894         processing an empty line.
6896         * Version 3.62.0.
6898         * job.c (construct_command_argv_internal): Always recurse for slow;
6899         simple case didn't handle finding newlines.
6901 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6903         * job.c (construct_command_argv_internal): Set RESTP properly when
6904         slow; don't \ify past a newline.
6906 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6908         * make.h [sgi]: #include <alloca.h>.
6912 See ChangeLog.1 for earlier changes.