* Minor code cleanups
[make.git] / ChangeLog
blobf057bd21961256a0c9bee7b92e184392ca7af137
1 2000-07-07  Paul D. Smith  <psmith@gnu.org>
3         * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
4         the offset calculation.
5         (name_mtime): Replace EINTR test with EINTR_SET macro.
7 2000-07-07  Paul Eggert  <eggert@twinsun.com>
9         Fix for PR/1811:
11         * remake.c (update_file_1):
12         Avoid spurious rebuilds of archive members due to their
13         timestamp resolution being only one second.
14         (f_mtime): Avoid spurious warnings of timestamps in the future due to
15         the clock's resolution being lower than file timestamps'.
16         When warning about future timestamps, report only the discrepancy,
17         not the absolute value of the timestamp and the current time.
19         * file.c (file_timestamp_now): New arg RESOLUTION.
20         * filedef.h (file_timestamp_now): Likewise.
21         (FILE_TIMESTAMP_NS): Now returns int.  All uses changed.
23 2000-07-05  Paul D. Smith  <psmith@gnu.org>
25         * variable.c (lookup_variable) [VMS]: Remove vestigial references
26         to listp.  Fixes PR/1793.
28 2000-06-26  Paul Eggert  <eggert@twinsun.com>
30         * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
32         * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
34         * remake.c (f_mtime): Remove unused var memtime.
36 2000-06-25  Martin Buchholz  <martin@xemacs.org>
38         * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
39         Ran spell-check on make.texinfo.
41 2000-06-23  Paul D. Smith  <psmith@gnu.org>
43         * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
44         EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
45         * make.h: Define these macros.
47         * Version 3.79.1 released.
49         * configure.in: Add a new option, --disable-nsec-timestamps, to
50         avoid using sub-second timestamps on systems that support it.  It
51         can lead to problems, e.g. if your makefile relies on "cp -p".
52         * README.template: Document the issue with "cp -p".
54         * config.guess, config.sub: Updated.
56 2000-06-22  Paul D. Smith  <psmith@gnu.org>
58         * job.c (start_job_command): Increment commands_started before the
59         special check for ":" (empty command) to avoid spurious "is up to
60         date" messages.  Also move the test for question_flag after we
61         expand arguments, and only stop if the expansion provided an
62         actual command to run, not just whitespace.  This fixes PR/1780.
64 2000-06-21  Paul D. Smith  <psmith@gnu.org>
66         * read.c (read_makefile): If we find a semicolon in the target
67         definition, remember where it was.  If the line turns out to be a
68         target-specific variable, add back the semicolon and everything
69         after it.  Fixes PR/1709.
71 2000-06-19  Paul D. Smith  <psmith@gnu.org>
73         * config.h-vms.template: #define uintmax_t for this system.
74         * config.ami.template: Ditto.
75         * config.h.W32.template: Ditto.
77         * configure.in: We don't use select(2) anymore, so don't bother
78         checking for it.
79         * acconfig.h: Ditto.
80         * acinclude.m4: Ditto.
82         * file.c (all_secondary): New static global; if 1 it means
83         .SECONDARY with no prerequisites was seen in the makefile.
84         (snap_deps): Set it appropriately.
85         (remove_intermediates): Check it.
86         (num_intermediates): Remove this global, it's not used anywhere.
87         (considered): Move this to remake.c and make it static.
89         * NEWS: Document the change to .SECONDARY.
90         * make.texinfo (Special Targets): Document the change to .SECONDARY.
92         * implicit.c (pattern_search): Remove the increment of
93         num_intermediates; it's not used.
94         * filedef.h: Remove num_intermediates and considered.
96         * function.c (handle_function): If the last argument was empty, we
97         were pretending it didn't exist rather than providing an empty
98         value.  Keep looking until we're past the end, not just at the end.
100         * implicit.c (pattern_search): Multi-target implicit rules weren't
101         expanding the "also made" targets correctly if the pattern didn't
102         contain a slash but the target did; in that case the directory
103         part wasn't being added back to the stem on the "also made"
104         targets.  Reported by Seth M LaForge <sethml@newtonlabs.com>, with
105         a patch.
107 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
109         * Makefile.DOS.template (DESTDIR, bindir, datadir, libdir)
110         (infodir, mandir, includedir): Support installation under a
111         non-default DESTDIR.
113         * remake.c (f_mtime): Fix the spelling of __MSDOS__.
115         * configh.DOS.template (HAVE_FDOPEN, HAVE_MKSTEMP): Define.
117 2000-06-14  Paul D. Smith  <psmith@gnu.org>
119         * acinclude.m4 (pds_WITH_GETTEXT): rewrite fp_WITH_GETTEXT and
120         rename it to avoid confusion.  This version is very specific: it
121         won't accept any gettext that isn't GNU.  If the user doesn't
122         explicitly ask for the included gettext, we look to see if the
123         system gettext is GNU (testing both the actual libintl library,
124         and the libintl.h header file).  Only if the system gettext is
125         really GNU gettext will we allow it to be used.
126         (pds_CHECK_SYSTEM_GETTEXT): A helper function.
128 2000-06-13  Paul D. Smith  <psmith@gnu.org>
130         * gettext.h: If we have libintl.h, use that instead of any of the
131         contents of gettext.h.  We won't check for libintl.h unless we're
132         using the system gettext.
134         * function.c (func_word): Clarify error message.
136 2000-06-10  Paul Eggert  <eggert@twinsun.com>
138         Support nanosecond resolution on hosts with 64-bit time_t and
139         uintmax_t (e.g. 64-bit Sparc Solaris), by splitting
140         FILE_TIMESTAMP into a 30-bit part for nanoseconds, with the
141         rest for seconds, if FILE_TIMESTAMP is at least 64 bits wide.
143         * make.h: Always define FILE_TIMESTAMP to be uintmax_t, for
144         simplicity.
146         * filedef.h (FILE_TIMESTAMP_HI_RES, FILE_TIMESTAMP_LO_BITS)
147         (UNKNOWN_MTIME, NONEXISTENT_MTIME, OLD_MTIME)
148         (ORDINARY_MTIME_MIN, ORDINARY_MTIME_MAX): New macros.
149         (FILE_TIMESTAMP_STAT_MODTIME): Now takes fname arg.  All uses changed.
150         (FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD)
151         (FILE_TIMESTAMP_FROM_S_AND_NS): Remove.
152         (FILE_TIMESTAMP_S, FILE_TIMESTAMP_NS): Use shifts instead of
153         multiplication and division.  Offset the timestamps by
154         ORDINARY_MTIME_MIN.
155         (file_timestamp_cons): New decl.
156         (NEW_MTIME): Now just the maximal timestamp value, as we no longer use
157         -1 to refer to nonexistent files.
159         * file.c (snap_deps, print_file): Use NONEXISTENT_MTIME,
160         UNKNOWN_MTIME, and OLD_MTIME instead of magic constants.
161         * filedef.h (file_mtime_1): Likewise.
162         * main.c (main): Likewise.
163         * remake.c (update_file_1, notice_finished_file, check_dep)
164         (f_mtime, name_mtime, library_search): Likewise.
165         * vpath.c (selective_vpath_search): Likewise.
167         * remake.c (f_mtime): Do not assume that (time_t) -1 equals
168         NONEXISTENT_MTIME.  When futzing with time stamps, adjust by
169         multiples of 2**30, not 10**9.  Do not calculate timestamp
170         adjustments on DOS unless they are needed.
172         * commands.c (delete_target): Do not assume that
173         FILE_TIMESTAMP_S yields -1 for a nonexistent file, as that is
174         no longer true with the new representation.
176         * file.c (file_timestamp_cons): New function, replacing
177         FILE_TIMESTAMP_FROM_S_AND_NS.  All uses changed.
178         (file_timestamp_now): Use FILE_TIMESTAMP_HI_RES instead of 1 <
179         FILE_TIMESTAMPS_PER_S to determine whether we're using hi-res
180         timestamps.
181         (print_file): Print OLD_MTIME values as "very old" instead of
182         as a timestamp.
184 2000-05-31  Paul Eggert  <eggert@twinsun.com>
186         * remake.c (name_mtime): Check for stat failures.  Retry if EINTR.
188 2000-05-24  Paul D. Smith  <psmith@gnu.org>
190         * main.c (decode_switches): The "positive_int" switch uses atoi()
191         which succeeds for any input, and doesn't notice if extra,
192         non-digit text is after the number.  This causes make to mis-parse
193         command lines like "make -j 5foo" as "make -j5" (ignoring "foo"
194         completely) instead of "make -j0 5foo" (where "5foo" is a
195         target).  Fix this by checking the value by hand.  We could use
196         strtol() if we were sure of having it; this is the only
197         questionable use of atoi() I found so we'll just stick with that.
198         Fixes PR/1716.
200         * i18n/ja.po, i18n/nl.po, i18n/pt_BR.po: New translation files.
201         * configure.in (ALL_LINGUAS): Added pt_BR.
203 2000-05-22  Paul Eggert  <eggert@twinsun.com>
205         * remake.c (f_mtime): Fix bug when handling future odd
206         timestamps in the WINDOWS32 case.  Do not bother initializing
207         static var to zero.  Simplify code that works around WINDOWS32
208         and __MSDOS__ time skew brain damage.
210 2000-05-22  Paul Eggert  <eggert@twinsun.com>
212         * job.c: Don't include time.h, as make.h already does this.
214 2000-05-22  Paul Eggert  <eggert@twinsun.com>
216         * configure.in (AC_CHECK_HEADERS): Add sys/time.h.
217         (AC_HEADER_TIME): Add.
218         (clock_gettime): Prefer -lrt to -lposix4, for Solaris 7.
219         (gettimeofday): Add check for standard version of gettimeofday.
220         This merges changes written by Paul D. Smith.
222         * file.c (file_timestamp_now):  Use gettimeofday if available
223         and if clock_gettime does not work.  Don't bother with
224         high-resolution clocks if file timestamps have only one-second
225         resolution.
227         * make.h <sys/time.h>: Include, conditionally on the usual
228         TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H macros.  This is needed
229         for gettimeofday.
231 2000-05-20  Paul D. Smith  <psmith@gnu.org>
233         * read.c (read_makefile): We weren't keeping makefile names around
234         unless there was a rule defined in them; but now we need to keep
235         them for variables as well.  Forget trying to be fancy: just keep
236         every makefile name we successfully open.
238         * remote-cstms.c (start_remote_job_p): Change DB_EXTRA (?) to DB_JOBS.
240 2000-05-17  Paul Eggert  <eggert@twinsun.com>
242         * commands.c (chop_commands): Ensure ctype macro args are nonnegative.
243         * expand.c (variable_expand_string): Likewise.
244         * function.c (subst_expand, lookup_function, msdos_openpipe):
245         Likewise.
246         * job.c (vms_redirect, start_job_command, new_job, child_execute_job,
247         construct_command_argv_internal, construct_command_argv): Likewise.
248         * main.c (decode_env_switches, quote_for_env): Likewise.
249         * misc.c (collapse_continuations, end_of_token, end_of_token_w32,
250         next_token): Likewise.
251         * read.c (read_makefile, do_define, conditional_line,
252         find_char_unquote,get_next_mword): Likewise.
253         * variable.c (try_variable_definition): Likewise.
254         * vpath.c (construct_vpath_list): Likewise.
255         * w32/pathstuff.c (convert_vpath_to_windows32): Likewise.
257 2000-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
259         * main.c (main) [__MSDOS__]: Add SIGFPE to signals we block when
260         running child programs, to prevent Make from dying on Windows 9X
261         when the child triggers an FP exception.
263 2000-05-08  Paul D. Smith  <psmith@gnu.org>
265         * dir.c (find_directory) [WINDOWS32]: If we strip a trailing "\"
266         from the directory name, remember to add it back.  The argument
267         might really be inside a longer string (e.g. %Path%) and if you
268         don't restore the "\" it'll be truncated permanently.  Fixes PR/1722.
269         Reported by <steven@surfcast.com>
271 2000-05-02  Paul D. Smith  <psmith@gnu.org>
273         * job.c (construct_command_argv_internal) [WINDOWS32]: Added "rd"
274         and "rmdir" to the list of command.com commands.
275         Reported by Elod Horvath <Elod_Horvath@lnotes5.bankofny.com>
277 2000-04-24  Paul D. Smith  <psmith@gnu.org>
279         * i18n/ja.po: New translation file from the Japanese language team.
281 2000-04-18  Paul D. Smith  <psmith@gnu.org>
283         * remake.c (f_mtime): If ar_member_date() returns -1 (the member
284         doesn't exist), then return (FILE_TIMESTAMP)-1 rather than
285         returning the timestamp calculated from the value -1.  Fixes PR/1696.
286         Reported by Gilles Bourhis <Gilles.Bourhis@univ-rennes1.fr>.
288 2000-04-17  Paul D. Smith  <psmith@gnu.org>
290         * config.h.W32.template: Add LOCALEDIR macro resolving to "".
291         * w32/subproc/sub_proc.c (process_begin): Remove reference to
292         debug_flag; change it to a DB() call.  Fixes PR/1700.
293         Reported by Jim Smith <jwksmith@attglobal.net>
295 2000-04-17  Bruno Haible  <haible@clisp.cons.org>
297         * arscan.c [BeOS]: Add replacement for nonexistent <ar.h> from GNU
298         binutils.
300 2000-04-11  Paul D. Smith  <psmith@gnu.org>
302         * function.c (expand_builtin_function): If no arguments were
303         provided, just quit early rather than changing each function to
304         test for this.
305         (function_table[]): Change the min # of arguments to 0 for all
306         those functions for which it makes sense (currently everything
307         that used to take a minimum of 1 argument, except $(call ...)).
308         Fixes PR/1689.
310 2000-04-09  Eli Zaretskii  <eliz@is.elta.co.il>
312         * README.DOS: Add instructions to install a binary distro.
313         Mention latest versions of Windows.
315 2000-04-07  Eli Zaretskii  <eliz@is.elta.co.il>
317         * main.c (main): Rename TMP_TEMPLATE into DEFAULT_TMPDIR, and use
318         it for the directory of the temporary file.  If P_tmpdir is
319         defined, use it in preference to "/tmp/".  Try $TMPDIR, $TEMP, and
320         $TMP in the environment before defaulting to DEFAULT_TMPDIR.
321         (print_version): Add year 2000 to the Copyright line.
323 2000-04-04  Paul D. Smith  <psmith@gnu.org>
325         * Version 3.79 released.
327         * make.texinfo: Update documentation with new features for 3.79.
329         * function.c (func_wordlist): Don't re-order arguments to
330         wordlist.
332 2000-04-03  Paul D. Smith  <psmith@gnu.org>
334         * remake.c (f_mtime): Archive member timestamps are stored as
335         time_t, without nanoseconds.  But, f_mtime() wants to return
336         nanosecond info on those systems that support it.  So, convert the
337         return value of ar_member_date() into a FILE_TIMESTAMP, using 0 as
338         the nanoseconds.
340 2000-03-28  Paul D. Smith  <psmith@gnu.org>
342         * Version 3.78.92 released.
344         * build.template: Updates for gettext support; some bugs fixed.
346 2000-03-27  Paul D. Smith  <psmith@gnu.org>
348         * config.guess, config.sub: Updated from config CVS archive at
349         :pserver:anoncvs@subversions.gnu.org:/home/cvs as of today.
351         * read.c (record_files): Check if expanding a static pattern
352         rule's prerequisite pattern leaves an empty string as the
353         prerequisite, and issue an error if so.  Fixes PR/1670.
354         (read_makefile): Store the starting linenumber for a rule in
355         TGTS_STARTED.
356         (record_waiting_files): Use the TGTS_STARTED value for the file
357         location passed to record_file() instead of the current
358         linenumber, so error messages list the line where the target was
359         defined instead of the line after the end of the rule definition.
361         * remake.c (start_updating, finish_updating, is_updating): Fix
362         PR/1671; circular dependencies in double-colon rules are not
363         diagnosed.  These macros set the updating flag in the root
364         double-colon file instead of the current one, if it's part of a
365         double-colon list.  This solution provided by Tim Magill
366         <magill@gate.net>; I just changed the macro names :).
367         (update_file_1): Call them.
368         (check_dep): Call them.
370         The change to not automatically evaluate the $(call ...)
371         function's arguments breaks recursive use of call.  Although using
372         $(if ...) and $(foreach ...) in $(call ...) macros is important,
373         the error conditions generated are simply to obscure for me to
374         feel comfortable with.  If a method is devised to get both
375         working, we'll revisit.  For now, remove this change.
377         * function.c (function_table): Turn on the expand bit for func_call.
378         (func_call): Don't expand arguments for builtin functions; that
379         will have already been done.
381 2000-03-26  Paul D. Smith  <psmith@gnu.org>
383         * file.c (remove_intermediates): Never remove targets explicitly
384         requested on the command-line by checking the cmd_target flag.
385         Fixed PR/1669.
387 2000-03-23  Paul Eggert  <eggert@twinsun.com>
389         * filedef.h (FILE_TIMESTAMP_STAT_MODTIME): Use st_mtime instead of
390         st_mtim.tv_sec; the latter doesn't work on Unixware.
392 2000-03-18  Paul D. Smith  <psmith@gnu.org>
394         * file.c (file_hash_enter): If we're trying to change a file into
395         itself, just return.  We used to assert this wasn't true, but
396         someone came up with a weird case involving archives.  After
397         playing with it for a while I decided it was OK to ignore it.
399         * default.c: Define COFLAGS to empty to avoid spurious warnings.
401         * filedef.h: Change #if ST_MTIM_NSEC to #ifdef; this is a macro
402         containing the name of the nsec field, not true/false.
403         * make.h: Ditto.
404         Reported by Marco Franzen <Marco.Franzen@Thyron.com>.
406 2000-03-08  Tim Magill  <magill@gate.net>
408         * remake.c (update_file): Return the exit status of the pruned
409         file when pruning, not just 0.  Fixes PR/1634.
411 2000-02-24  Paul D. Smith  <psmith@gnu.org>
413         * configure.in: Close a minor potential security hole; if you're
414         reading makefiles from stdin (who does that?) you could run into a
415         race condition with the temp file using mktemp() or tmpnam().  Add
416         a check for mkstemp() and fdopen().
417         * main.c (open_tmpfile): New function to open a temporary file.
418         If we have mkstemp() (and fdopen()), use that.  If not use
419         mktemp() or tmpnam().  If we have fdopen(), use open() to open the
420         file O_CREAT|O_EXCL.  If not, fall back to normal fopen() (insecure).
421         (main): Call it.
422         * job.c (child_execute_job) [VMS]: Call it.
424         * variable.c (lookup_variable): If we find a variable which is
425         being expanded, then note it but keep looking through the rest of
426         the set list to see if we can find one that isn't.  If we do,
427         return that.  If we don't, return the original.  Fix for PR/1610.
429         While implementing this I realized that it also solves PR/1380 in
430         a much more elegant way.  I don't know what I was smoking before.
431         So, remove the hackage surrounding the original fix for that (see
432         below).  Change this function back to lookup_variable and remove
433         the extra setlist argument.
434         * variable.h (recursively_expand_setlist): Remove the macro,
435         rename the prototype, and remove the extra setlist argument.
436         (lookup_variable): Ditto.
437         * expand.c (recursively_expand): Rename and remove the extra
438         setlist argument.
439         (reference_variable): Use lookup_variable() again.
440         (allocated_variable_append): Remove the extra setlist argument.
442 2000-02-21  Paul D. Smith  <psmith@gnu.org>
444         * README.template: A few updates.
446         * i18n/de.po: New version from the German translation team.
448 2000-02-09  Paul D. Smith  <psmith@gnu.org>
450         * Version 3.78.91 released.
452 2000-02-07  Paul D. Smith  <psmith@gnu.org>
454         * read.c (read_makefile): Reset *p2 to ':', not *colonp.  If any
455         filenames contained backslashes the resulting output (without
456         backslashes) will be shorter, so setting *colonp doesn't change
457         the right character.  Fix for PR/1586.
459         For += target-specific variables we need to remember which
460         variable set we found the variable in, so we can start looking
461         from there in the next iteration (otherwise we might see it again
462         in recursively_expand and fail!).  This is turning into a hack; if
463         it gets any worse we'll have to rethink this entire algorithm...
464         implementing expansion of these references separately from the
465         "normal" expansion, say, instead of using the same codepath.
466         Actually, it's already "worse enough" :-/.
467         Fix for PR/1380.
469         * variable.h (recursively_expand_setlist): Rename
470         recursively_expand to add a struct variable_set_list argument, and
471         make a macro for recursively_expand.
472         (lookup_variable_setlist): Rename lookup_variable to add a struct
473         variable_set_list argument, and make a macro for lookup_variable.
475         * expand.c (recursively_expand_setlist): Take an extra struct
476         variable_set_list argument and pass it to allocated_variable_append().
477         (reference_variable): Use lookup_variable_setlist() and pass the
478         returned variable_set_list to recursively_expand_setlist.
479         (allocated_variable_append): Take an extra setlist argument and
480         use this as the starting place when searching for the appended
481         expansion.  If it's null, use current_variable_set_list as before.
483         * variable.c (lookup_variable_setlist): If the LISTP argument is
484         not nil, set it to the list containing the variable we found.
486 2000-02-04  Paul D. Smith  <psmith@gnu.org>
488         * variable.c (print_variable): Write out filename/linenumber
489         information for the variable definition if present.
490         (define_variable_in_set): Store filename information if provided.
491         (define_variable, define_variable_for_file): Removed.
492         (try_variable_definition): Use define_variable_loc() to keep
493         variable definition location information.
494         * read.c (read_makefile): Keep variable definition location info.
495         (do_define): Ditto.
496         (record_target_var): Ditto.
497         * variable.h (define_variable_in_set): New fileinfo argument.
498         (define_variable, define_variable_loc, define_variable_for_file):
499         Declare new macros.
501         Fix PR/1407:
503         * filedef.h (struct file): Rename patvar to pat_variables and make
504         it just a variable_set_list; we need our own copy of the pattern
505         variable's variable set list here to avoid overwriting the global
506         one.
507         * variable.c (initialize_file_variables): Move the instantiation
508         of the pat_variables pointer here.  Only do the search after we're
509         done reading the makefiles so we don't search too early.  If
510         there's a pat_variables value, set up the variables next ptr.
511         * expand.c (variable_expand_for_file): Remove the setup of the
512         pat_variables info; it's done earlier now to ensure the parent's
513         pattern variables are set up correctly as well.
515 2000-02-03  Paul D. Smith  <psmith@gnu.org>
517         * job.c (sh_chars_dos) [WINDOWS32]: Add "&" as a shell
518         metacharacter for the W32 DOS shell.
519         Reported by Warren Jones <wjones@tc.fluke.com>.
521 2000-02-02  Paul D. Smith  <psmith@gnu.org>
523         Fixes for the OpenVMS port from Hartmut Becker <becker@rto.dec.com>
525         * config.h-vms [VMS]: Define LOCALEDIR to something; needed for
526         the expansion of bindtextdomain() even though it's a no-op.
527         * vmsfunctions.c (strcmpi): Remove duplicate definition of strcmpi().
528         (readdir): Use DB() instead of testing debug_flag.
529         * dir.c (file_impossible) [VMS]: Search "p" not "name".
530         * job.c [VMS]: Switch from debug_flag to the new DB macro.  Add
531         some i18n _() macros (even though VMS doesn't yet support it).
533         * function.c (patsubst_expand): Change "len" to not be unsigned to
534         avoid type mismatches.
536         * main.c (main): Declare signame_init() if we're going to call it.
538 2000-01-29  Eli Zaretskii  <eliz@is.elta.co.il>
540         * Makefile.DOS.template: Track changes in Makefile.in
541         (install-recursive, uninstall-recursive): Add missing targets.
542         (DESTDIR): Define.
543         (install-binPROGRAMS, uninstall-binPROGRAMS): Use $(DESTDIR).
545         * default.c (default_variables) [__MSDOS__]: Define CXX to gpp.
547 2000-01-27  Paul D. Smith  <psmith@gnu.org>
549         * gettext.c: Some warning cleanups, and a fix for systems which
550         don't define HAVE_ALLOCA (the workaround code was included
551         twice).
553 2000-01-26  Paul D. Smith  <psmith@gnu.org>
555         * Version 3.78.90 released.
557 2000-01-25  Paul D. Smith  <psmith@gnu.org>
559         Change gettext support to use the simplified version in libit 0.7.
561         * getopt.c, make.h: Use gettext.h instead of libintl.h.
562         * ABOUT-NLS, gettext.h, gettext.c: New files from libit 0.7.
563         Modified to remove some static declarations which aren't defined.
564         * acconfig.h: Use new gettext #defines.
565         * acinclude.m4: Add fp_WITH_GETTEXT; remove AM_GNU_GETTEXT.
566         * configure.in: Call fp_WITH_GETTEXT instead.
567         * Makefile.am: New gettext stuff.  Also force inclusion of glob
568         files for systems which have LIBC glob.
570         * i18n/Makefile.am, i18n/.cvsignore: New dir for translation files.
571         * i18n/de.po, i18n/es.po, i18n/fr.po, i18n/ko.po, i18n/nl.po:
572         * i18n/pl.po, i18n/ru.po: Import translations already done for
573         earlier versions of GNU make.  Thanks for that work!!
575         * po/Makefile.in.in, po/POTFILES.in: Removed.
577 2000-01-23  Paul D. Smith  <psmith@gnu.org>
579         * main.c (decode_debug_flags): If debug_flag is set, enable all
580         debugging levels.
581         (debug_flag): Resurrect this flag variable.
582         (switches): Make -d give the old behavior of turning on all
583         debugging.  Change --debug alone to emit basic debugging and take
584         optional arguments to expand debugging.
585         * NEWS: Document the new debugging options.
587         * remake.c (no_rule_error): Remove this function.  This tries to
588         fix a real problem--see the description with the introduction of
589         this function below.  However, the cure is worse than the disease
590         and this approach won't work.
591         (remake_file): Put the code from no_rule_error back here.
592         (update_file_1): Remove call to no_rule_error.
594         * filedef.h (struct file): Remove mfile_status field.
596 2000-01-22  Paul D. Smith  <psmith@gnu.org>
598         Integrate GNU gettext support.
600         * configure.in: Add AM_GNU_GETTEXT.
601         * Makefile.am: Add options for setting LOCALEDIR, -Iintl, etc.
602         * acinclude.m4: Add gettext autoconf macros.
603         * acconfig.h: Add new gettext #defines.
604         * make.h: Include libintl.h.  Make sure _() and N_() macros are
605         declared.  Make gettext() an empty macro is NLS is disabled.
606         * main.c (struct command_switch switches[]): Can't initialize
607         static data with _() (gettext calls), so use N_() there then use
608         gettext() directly when printing the strings.
609         * remake.c (no_rule_error): The string constants can't be static
610         when initializing _() macros.
611         * file.c (print_file): Reformat a few strings to work better for
612         translation.
613         * po/POTFILES.in, po/Makefile.in.in: New files.  Take
614         Makefile.in.in from the latest GNU tar distribution, as that
615         version works better than the one that comes with gettext.
616         * NEWS: Mention i18n ability.
618 2000-01-21  Paul D. Smith  <psmith@gnu.org>
620         Installed patches for the VMS port.
621         Patches provided by: Hartmut Becker <Hartmut.Becker@compaq.com>
623         * readme.vms, arscan.c, config.h-vms, default.c, dir.c, file.c:
624         * implicit.c, job.c, make.h, makefile.com, makefile.vms, rule.c:
625         * variable.c, vmsdir.h, vmsfunctions.c, vmsify.c, glob/glob.c:
626         * glob/glob.h: Installed patches.  See readme.vms for details.
628 2000-01-14  Andreas Schwab  <schwab@suse.de>
630         * dir.c (read_dirstream): Initialize d_type if it exists.
632 2000-01-11  Paul D. Smith  <psmith@gnu.org>
634         Resolve PR/xxxx: don't automatically evaluate the $(call ...)
635         function's arguments.  While we're here, clean up argument passing
636         protocol to always use simple nul-terminated strings, instead of
637         sometimes using offset pointers to mark the end of arguments.
638         This change also fixes PR/1517.
639         Reported by Damien GIBOU <damien.gibou@st.com>.
641         * function.c (struct function_table_entry): Remove the negative
642         required_args hack; put in explicit min and max # of arguments.
643         (function_table): Add in the max value.  Turn off the expand bit
644         for func_call.
645         (expand_builtin_function): Test against minimum_args instead of
646         the obsolete required_args.
647         (handle_function): Rewrite this.  We don't try to be fancy and
648         pass one style of arguments to expanded functions and another
649         style to non-expanded functions: pass pointers to nul-terminated
650         strings to all functions.
651         (func_call): Rewrite this.  If we are invoking a builtin function
652         and it's supposed to have its arguments expanded, do that (since
653         it's not done by handle_function for $(call ...) anymore).  For
654         non-builtins, just add the variables as before but mark them as
655         recursive so they'll be expanded later, as needed.
656         (func_if): All arguments are vanilla nul-terminated strings:
657         remove trickery with "argv[1]-1".
658         (func_foreach): Ditto.
660         * expand.c (expand_argument): If the second arg is NULL, expand
661         the entire first argument.
663         * job.c (new_job): Zero the child struct.  This change was just
664         made to keep some heap checking software happy, not because there
665         was an actual bug (the important memory was being cleared properly).
667 1999-12-15  Paul D. Smith  <psmith@gnu.org>
669         * variable.c (print_variable): Print the variable with += if the
670         append flag is set.
672         * implicit.c (pattern_search): Remove the extra check of the
673         implicit flag added on 8/24/1998.  This causes problems and the
674         reason for the change was better resolved by the change made to
675         check_deps() on 1998-08-26.  This fixes PR/1423.
677 1999-12-08  Paul D. Smith  <psmith@gnu.org>
679         * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
680         in LFS mode, stat() is actually a macro for stat64().  Assignment
681         doesn't work in that case.  So, stat is a macro, make a local
682         wrapper function to invoke it.
683         (local_stat): Wrapper function, if needed.
684         Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
686 1999-12-02  Paul D. Smith  <psmith@gnu.org>
688         * remake.c (update_file): Move the considered test outside the
689         double-colon loop, _but_ make sure we test the double_colon target
690         not the "current" target.  If we stop early because one
691         double-colon target is running, mark all the rest considered and
692         try to start their prerequisites (so they're marked considered).
693         Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
695 1999-11-22  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
697         * function.c (windows32_openpipe, func_shell): Correct Windows32
698         problem where $(shell nosuchfile) would incorrectly exit make. The
699         fix is to print the error and let make continue.
700         Reported by David Masterson <David.Masterson@kla-tencor.com>.
702         * w32/subproc/misc.c (arr2envblk): Memory leak fix.
704 1999-11-21  Paul D. Smith  <psmith@gnu.org>
706         Rework GNU make debugging to provide different levels of output.
708         * NEWS: mention it.
709         * debug.h: New file.  Define various debugging levels and macros.
710         * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
711         * remote-cstms.c, vmsfunctions.c: Replace all code depending on
712         debug_flag with invocations of debugging macros.
713         * make.h: Remove debug_flag and DEBUGPR, add db_level.
715 1999-11-18  Paul Eggert  <eggert@twinsun.com>
717         * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
718         with the QNX 4.25 shell, which doesn't propagate exit status of
719         failed commands inside shell assignments.
721 1999-11-17  Paul D. Smith  <psmith@gnu.org>
723         * function.c (func_if): Find the end of the arg list by testing
724         the next item for NULL; any other test is not correct.
725         Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
727         Fix += when used in a target-specific variable context.
729         * variable.h: New bitfield APPEND set if we have a +=
730         target-specific variable.
732         * variable.c (try_variable_definition): Add an argument to specify
733         if we're trying a target-specific variable.  If we are and it's an
734         append style, don't append it, record it as normal recursive, but
735         set the APPEND flag so it'll be expanded later.
736         * main.c (handle_non_switch_argument): Use new
737         try_variable_definition() signature.
738         * read.c (read_makefile,record_target_var): Ditto.
740         * expand.c (allocated_variable_append): New function: like
741         allocated_variable_expand(), but we expand the same variable name
742         in the context of the ``next'' variable set, then we append this
743         expanded value.
744         (recursively_expand): Invoke it, if the APPEND bit is set.
746 1999-11-10  Paul D. Smith  <psmith@gnu.org>
748         * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
749         off parallel builds for this make only (still allow submakes to be
750         run in parallel).
751         * main.c: New variable, ``not_parallel''.
752         * make.h: Add an extern for it.
753         * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
754         * NEWS: Add info on .NOTPARALLEL.
755         * make.texinfo (Special Targets): Document it.
757         * configure.in (GLOBDIR): Set to "glob" if we need to build the
758         glob library.
759         * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
760         "glob" so we don't try to build glob if we don't need to (if we
761         have GLIBC glob).  Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
763         * main.c (main): Don't put "***" in the clock skew warning
764         message.  Reported by karl@gnu.org.
766         * make.h: Remove unneeded signal setup.
768         * signame.c: Remove extraneous #includes; some versions of Ultrix
769         don't protect against multiple inclusions and it causes compile
770         errors.  Reported by Simon Burge <simonb@thistledown.com.au>.
772 1999-10-15  Paul D. Smith  <psmith@gnu.org>
774         * main.c (quote_for_env): Rename from quote_as_word().
776         * make.h, *.c: Prefer strchr() and strrchr() in the code
777         rather than index() and rindex().  Define strchr/strrchr in terms
778         of index/rindex if the former aren't supported.
780         * default.c (CHECKOUT,v): Replace the fancy, complicated
781         patsubst/filter expression with a simple $(if ...) expression.
783         * main.c (print_usage): Add the bug reporting mailing address to
784         the --help output, as per the GNU coding standards.
785         Reported by Paul Eggert <eggert@twinsun.com>.
787         * README.customs: Installed information on running Customs-ized
788         GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
790         * read.c (read_all_makefiles): PR/1394: Mark the end of the next
791         token in the MAKEFILES value string _before_ we dup it.
793 1999-10-13  Paul D. Smith  <psmith@gnu.org>
795         * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
796         flag to CPPFLAGS, but that loses if the user specifies his own
797         CPPFLAGS; this one gets added _after_ his and if he happens to
798         have an old or broken glob.h--boom.  Instead, put it in GLOBINC
799         and SUBST it.
801         * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
802         these things get on the compile line well before the user's
803         CPPFLAGS.
805 1999-10-12  Paul D. Smith  <psmith@gnu.org>
807         * remake.c (notice_finished_file): If we get here and -n is set,
808         see if all the command lines are marked recursive.  If so, then we
809         ran every command there is, so check the mtime on this file just
810         like we would normally.  If not, we assume the command we didn't
811         run would updates the target and set mtime of the target to "very new".
813         * job.c (start_job_command): Update lines_flags in the file's cmds
814         structure with any per-line tokens we found (`@', `-', `+').
816 1999-10-08  Paul D. Smith  <psmith@gnu.org>
818         * variable.c (initialize_file_variables): Always recurse to
819         initialize the parent's file variables: the parent might not have
820         any rules to run so it might not have been initialized before
821         this--we need this to set up the chain properly for
822         target-specific variables.
824 1999-09-29  Paul Eggert  <eggert@twinsun.com>
826         * main.c (quote_as_word): Always quote for decode_env_switches
827         instead of for the shell, so that arguments with strange
828         characters are are passed to submakes correctly.  Remove
829         double_dollars arg; we always double dollars now.  All callers
830         changed.
831         (decode_env_switches): Don't run off the end of an environment
832         variable whose contents ends in a unescaped backslash.
834 1999-09-23  Paul D. Smith  <psmith@gnu.org>
836         * commands.c, function.c, job.c, read.c: Cast arguments to
837         ctype.h functions/macros to _unsigned_ char for portability.
839         * remake.c, function.c: Compiler warning fixes: the second
840         argument to find_next_token() should be an _unsigned_ int*.
841         Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
843 1999-09-23  Paul D. Smith  <psmith@gnu.org>
845         * Version 3.78.1 released.
847         * make.texinfo: Update version/date stamp.
849         * main.c (main): Argh.  For some reason we were closing _all_ the
850         jobserver pipes before we re-exec'd due to changed makefiles.
851         This means that any re-exec got a "jobserver unavailable" error :-/.
852         I can't believe we didn't notice this before.
854 1999-09-22  Paul D. Smith  <psmith@gnu.org>
856         * Version 3.78 released.
858         * main.c (main): Only fail on multiple --jobserver-fds options if
859         they aren't all the same.  Some makefiles use things like
860         $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
861         --jobserver-fds to show up.
863 1999-09-16  Paul D. Smith  <psmith@gnu.org>
865         * main.c (define_makeflags): Zero out FLAGSTRING to avoid
866         uninitialized memory reads when checking *p != '-' in the loop.
868 1999-09-15  Paul D. Smith  <psmith@gnu.org>
870         * Version 3.77.97 released.
872         * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
873         makefile.
874         * Makefile.am (check-local): Print a success banner if the check
875         succeeds.
876         (check-regression): A bit of fine-tuning.
878 1999-09-15  Eli Zaretskii  <eliz@is.elta.co.il>
880         * README.DOS.template: Document requirements for the test suite.
881         * Makefile.DOS.template: Updates to allow the test suite to run
882         from "make check".
884         * main.c (main): Handle it if argv[0] isn't an absolute path.
886 1999-09-13  Paul D. Smith  <psmith@gnu.org>
888         * Version 3.77.96 released.
890         * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
891         all the right #defines to compile.
892         (check-regression): Look for the regression test suite in the make
893         package itself.  If we're building remotely, use symlinks to make
894         a local copy.
895         (dist-hook): Put the test suite into the tar file.
897         * configure.in: Look for perl for the test suite.
899 1999-09-10  Paul Eggert  <eggert@twinsun.com>
901         * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
902         later, and using GCC, define __STDC_EXT__; this works around a
903         bug in GCC 2.95.1.
905 1999-09-08  Paul D. Smith  <psmith@gnu.org>
907         * main.c (print_version): Ugh.  GLIBC's configure tries to check
908         make version strings and is too aggressive with their matching
909         expressions.  I've struck a deal with them to leave the version
910         output as-is for 3.78, and they'll change their configure checks
911         so that I can change this back in the future.
913 1999-09-07  Eli Zaretskii  <eliz@is.elta.co.il>
915         * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
916         and "unset" to the list of builtin shell commands.
918         * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
919         which is the canonical name of the DJGPP host.
921 1999-09-05  Paul D. Smith  <psmith@gnu.org>
923         * Version 3.77.95 released.
925         * make.texinfo (Make Errors): Document some new jobserver error
926         messages.
928 1999-09-04  Eli Zaretskii  <eliz@is.elta.co.il>
930         * make.texinfo (Make Errors): Document the hint about 8 spaces
931         instead of a TAB.
932         (Call Function, Quick Reference): Use @code{$(1)}, not @var.
934         * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
935         MS-DOS", since the MSDOS version could run on Windows.
937 1999-09-03  Paul D. Smith  <psmith@gnu.org>
939         * remake.c (notice_finished_file): Always set mtime_before_update
940         if it's not been set, not just if we ran some rules.  Otherwise we
941         may have a situation where a target's prerequisite was rebuilt but
942         not changed, so this target's rules weren't run, then
943         update_goal_chain() sees mtime_before_update != last_mtime and
944         thinks that the top-level target changed when it really didn't.
945         This can cause an infinite loop when remaking makefiles.
946         (update_goal_chain): If we get back to the top and we don't know
947         what the goal's last_mtime was, find it now.  We need to know so
948         we can compare it to mtime_before_update later (this is only
949         crucial when remaking makefiles--should we only do it then?)
951 1999-09-02  Paul D. Smith  <psmith@gnu.org>
953         * read.c (read_makefile): If "override" appears as the first
954         prerequisite, look further to ensure this is really a
955         target-specific variable definition, and not just some
956         prerequisite named "override".
958 1999-09-01  Paul D. Smith  <psmith@gnu.org>
960         * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
961         for W32 platforms.
962         * read.c (record_files) [WINDOWS32]: Allow backslash separators
963         for W32 platforms.
964         * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
965         separators for W32 platforms.
967         * configure.in (MAKE_HOST): Define it to be the canonical build
968         host info, now that we need AC_CANONICAL_HOST anyway (for large
969         file support).
970         * version.c (make_host): Define a variable to MAKE_HOST so we're
971         sure to get it from the local config.h.
972         * main.c (print_version): Use it in the version information.
973         * config.ami.template: Add MAKE_HOST.
974         * configh.dos.template: Ditto.
975         * config.h.W32.template: Ditto.
976         * config.h-vms.template: Ditto.
978         * main.c (main): Close the jobserver file descriptors if we need
979         to re-exec ourselves.
980         Also print more reasonable error if users force -jN for submakes.
981         This may be common for a while until people use the jobserver
982         feature.  If it happens, we ignore the existing jobserver stuff
983         and use whatever they specified on the commandline.
984         (define_makeflags): Fixed a long-standing bug: if a long name
985         only option comes immediately after a single letter option with no
986         argument, then the option string is constructed incorrectly.  For
987         example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
988         instead of "-w --jobserver-fds..."; add in an extra " -".
990         * make.texinfo (Phony Targets): Add another example of using
991         .PHONY with subdirectories/recursive make.
993 1999-08-30  Paul D. Smith  <psmith@gnu.org>
995         * README.W32.template: Renamed from README.W32 so it's
996         autogenerated during the dist.  A few minor modifications.
998         * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
999         since the latter needs to know whether the former exists to give
1000         an accurate result.
1002 1999-08-26  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1004         * NMakefile [WINDOWS32]: Now more robust. If you change a file
1005         under w32/subproc, the make.exe will be relinked. Also added some
1006         tests to make sure erase commands won't fail when executed in a
1007         pristine build environment.
1009         * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
1010         HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
1011         is now possible to have have native support for this shell without
1012         having to rely on klutzy BATCH_MODE_ONLY_SHELL.
1014         * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
1015         users can define if they want to build make to use this shell.
1017         * README.W32 [WINDOWS32]: Added informaton about
1018         HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
1020 1999-08-26  Paul Eggert  <eggert@twinsun.com>
1022         Support large files in AIX, HP-UX, and IRIX.
1024         * acinclude.m4 (AC_LFS): Remove.  Superseded by AC_SYS_LARGEFILE.
1025         (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
1026         AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
1027         (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
1028         shift or divide unsigned long long.
1029         (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
1030         automake 1.4.
1032         * configure.in (AC_CANONICAL_HOST): Add; required by new
1033         AC_SYS_LARGEFILE.
1034         (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1035         (AM_PROG_CC_STDC): Add.
1037         * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
1039 1999-08-25  Paul Eggert  <eggert@twinsun.com>
1041         * make.h (CHAR_MAX): New macro.
1042         * main.c (struct command_switch): c is now int,
1043         so that it can store values greater than CHAR_MAX.
1044         (switches): Replace small numbers N with CHAR_MAX+N-1,
1045         to avoid problems with non-ASCII character sets.
1046         (short_option): New macro.
1047         (init_switches, print_usage, define_makeflags): Use it instead of
1048         isalnum.
1050 1999-08-25  Paul D. Smith  <psmith@gnu.org>
1052         * Version 3.77.94 released.
1054         * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
1055         not supported and reset it.
1057         * make.h (ISDIGIT): Obtained this from the textutils distribution.
1058         * main.c (decode_switches): Use it.
1059         * function.c (is_numeric): Use it.
1061         * main.c (struct command_switch): Store the switch char in an
1062         unsigned char to shut up GCC about using it with ctype.h macros.
1063         Besides, it _is_ always unsigned.
1065 1999-08-24  Paul D. Smith  <psmith@gnu.org>
1067         * make.texinfo: Change "dependency" to "prerequisite" and
1068         "dependencies" to "prerequisites".  Various other cleanups related
1069         to the terminology change.
1070         * file.c: Change debugging and error messages to use
1071         "prerequisite" instead of "dependency".
1072         * implicit.c: Ditto.
1073         * remake.c: Ditto.
1074         * NEWS: Document it.
1076 1999-08-23  Paul D. Smith  <psmith@gnu.org>
1078         * remake.c (update_file): Move the considered check into the
1079         double-colon rule loop, so we consider double-colon rules
1080         individually (otherwise after the first is pruned, the rest won't
1081         get run).
1083         * README.template: Minor changes.
1085         Remove the debugging features of the jobserver, so it no longer
1086         writes distinct tokens to the pipe.  Thus, we don't need to store
1087         the token we get.  A side effect of this is to remove a potential
1088         "unavailable token" situation: make-1 invokes make-2 with its
1089         special token and make-3 with a normal token; make-2 completes.
1090         Now we're waiting for make-3 but using 2 tokens; our special token
1091         is idle.  In the new version we don't have special tokens per se,
1092         we merely decide if we already have a child or not.  If we don't,
1093         we don't need a token.  If we do, we have to get one to run the
1094         next child.  Similar for putting tokens back: if we're cleaning up
1095         the last child, we don't put a token back.  Otherwise, we do.
1097         * main.c: Add a new, internal flag --jobserver-fds instead of
1098         overloading the meaning of -j.  Remove job_slots_str and add the
1099         stringlist jobserver_fds.
1100         (struct command_switch): We don't need the int_string type.
1101         (switches[]): Add a new option for --jobserver-fds and remove
1102         conditions around -j.  Make the description for the former 0 so it
1103         doesn't print during "make --help".
1104         (main): Rework jobserver parsing.  If we got --jobserver-fds
1105         make sure it's valid.  We only get one and job_slots must be 0.
1106         If we're the toplevel make (-jN without --jobserver-fds) create
1107         the pipe and write generic tokens.
1108         Create the stringlist struct for the submakes.
1109         Clean up the stringlist where necessary.
1110         (init_switches): Remove int_string handling.
1111         (print_usage): Don't print internal flags (description ptr is 0).
1112         (decode_switches): Remove int_string handling.
1113         (define_makeflags): Remove int_string handling.
1115         * job.c: Remove my_job_token flag and all references to the
1116         child->job_token field.
1117         (free_job_token): Remove this and merge it into free_child().
1118         (reap_children): Rework the "reaped a child" logic slightly.
1119         Don't call defunct free_job_token anymore.  Always call
1120         free_child, even if we're dying.
1121         (free_child): If we're not freeing the only child, put a token
1122         back in the pipe.  Then, if we're dying, don't bother to free.
1123         (new_job): If we are using the jobserver, loop checking to see if
1124         a) there are no children or b) we get a token from the pipe.
1126         * job.h (struct child): Remove the job_token field.
1128 1999-08-20  Paul D. Smith  <psmith@gnu.org>
1130         * variable.c (try_variable_definition): Allocate for variable
1131         expansion in f_append with a simple variable: if we're looking at
1132         target-specific variables we don't want to trash the buffer.
1133         Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
1135 1999-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
1137         * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
1138         avoid problems in shell commands that use backslashes as escape
1139         characters.
1141 1999-08-16  Paul D. Smith  <psmith@gnu.org>
1143         * Version 3.77.93 released.
1145 1999-08-13  Paul D. Smith  <psmith@gnu.org
1147         * function.c (func_if): New function $(if ...) based on the
1148         original by Han-Wen but reworked quite a bit.
1149         (function_table): Add it.
1150         * NEWS: Introduce it.
1151         * make.texinfo (If Function): Document it.
1153         * job.c (free_job_token): Check for EINTR when writing tokens to
1154         the jobserver pipe.
1156 1999-08-12  Paul D. Smith  <psmith@gnu.org>
1158         Another jobserver algorithm change.  We conveniently forgot that
1159         the blocking bit is shared by all users of the pipe, it's not a
1160         per-process setting.  Since we have many make processes all
1161         sharing the pipe we can't use the blocking bit as a signal handler
1162         flag.  Instead, we'll dup the pipe's read FD and have the SIGCHLD
1163         handler close the dup'd FD.  This will cause the read() to fail
1164         with EBADF the next time we invoke it, so we know we need to reap
1165         children.  We then re-dup and reap.
1167         * main.c (main): Define the job_rfd variable to hold the dup'd FD.
1168         Actually dup the read side of the pipe.  Don't bother setting the
1169         blocking bit on the file descriptor.
1170         * make.h: Declare the job_rfd variable.
1171         * job.c (child_handler): If the dup'd jobserver pipe is open,
1172         close it and assign -1 to job_rfd to notify the main program that
1173         we got a SIGCHLD.
1174         (start_job_command): Close the dup'd FD before exec'ing children.
1175         Since we open and close this thing so often it doesn't seem
1176         worth it to use the close-on-exec bit.
1177         (new_job): Remove code for testing/setting the blocking bit.
1178         Instead of EAGAIN, test for EBADF.  If the dup'd FD has been
1179         closed, re-dup it before we reap children.
1181         * function.c (func_shell): Be a little more accurate about the
1182         length of the error string to allocate.
1184         * expand.c (variable_expand_for_file): If there's no filenm info
1185         (say, from a builtin command) then reset reading_file to 0.
1187 1999-08-09  Paul D. Smith  <psmith@gnu.org>
1189         * maintMakefile: Use g in sed (s///g) to replace >1 variable per
1190         line.
1192         * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
1193         remove the right files.
1195 1999-08-01  Eli Zaretskii  <eliz@is.elta.co.il>
1197         * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
1198         ptr.
1200 1999-08-01  Paul D. Smith  <psmith@gnu.org>
1202         New jobserver algorithm to avoid a possible hole where we could
1203         miss SIGCHLDs and get into a deadlock.  The original algorithm was
1204         suggested by Roland McGrath with a nice refinement by Paul Eggert.
1205         Many thanks as well to Tim Magill and Howard Chu, who also
1206         provided many viable ideas and critiques.  We all had a fun week
1207         dreaming up interesting ways to use and abuse UNIX syscalls :).
1209         Previously we could miss a SIGCHLD if it happened after we reaped
1210         the children but before we re-entered the blocking read.  If this
1211         happened to all makes and/or all children, make would never wake
1212         up.
1214         We avoid this by having the SIGCHLD handler reset the blocking bit
1215         on the jobserver pipe read FD (normally read does block in this
1216         algorithm).  Now if the handler is called between the time we reap
1217         and the time we read(), and there are no tokens available, the
1218         read will merely return with EAGAIN instead of blocking.
1220         * main.c (main): Set the blocking bit explicitly here.
1221         * job.c (child_handler): If we have a jobserver pipe, set the
1222         non-blocking bit for it.
1223         (start_waiting_job): Move the token stuff back to new_job; if we
1224         do it here then we're not controlling the number of remote jobs
1225         started!
1226         (new_job): Move the check for job slots to _after_ we've created a
1227         child structure.  If the read returns without getting a token, set
1228         the blocking bit then try to reap_children.
1230         * make.h (EINTR_SET): Define to test errno if EINTR is available,
1231         or 0 otherwise.  Just some code cleanup.
1232         * arscan.c (ar_member_touch): Use it.
1233         * function.c (func_shell): Use it.
1234         * job.c (reap_children): Use it.
1235         * remake.c (touch_file): Use it.
1237 1999-07-28  Paul D. Smith  <psmith@gnu.org>
1239         * make.h: Define _() and N_() macros as passthrough to initiate
1240         NLS support.
1241         * <all>: Add _()/N_() around translatable strings.
1243 1999-07-27  Paul D. Smith  <psmith@gnu.org>
1245         * read.c: Make sure make.h comes before other headers.
1247 1999-07-26  Paul D. Smith  <psmith@gnu.org>
1249         * make.texinfo (Quick Reference): Update with the new features.
1251 1999-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
1253         * remake.c [__MSDOS__]: Don't include variables.h, it's already
1254         included.
1256         * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
1257         (func_shell) [__MSDOS__]: Fix the argument list.
1259         * Makefile.DOS.template: Update from Makefile.in.
1261         * README.DOS.template: Configure command fixed.
1263         * configh.dos.template: Update to provide definitions for
1264         uintmax_t, fd_set_size_t, and HAVE_SELECT.
1266 1999-07-24  Paul D. Smith  <psmith@gnu.org>
1268         * Version 3.77.91 released.
1270         * configure.in: Changes to the boostrapping code: if build.sh.in
1271         doesn't exist configure spits an error and generates an empty
1272         build.sh file which causes make to be confused.
1273         * maintMakefile: Don't build README early.
1275 1999-07-23  Paul D. Smith  <psmith@gnu.org>
1277         * job.c (my_job_token): This variable controls whether we've
1278         handed our personal token to a subprocess or not.  Note we could
1279         probably infer this from the value of job_slots_used, but it's
1280         clearer to just keep it separately.  Job_slots_used isn't really
1281         relevant when running the job server.
1282         (free_job_token): New function: free a job token.  If we don't
1283         have one, no-op.  If we have the personal token, reclaim it.  If
1284         we have another token, write it back to the pipe.
1285         (reap_children): Call free_job_token.
1286         (free_child): Call free_job_token.
1287         (start_job_command): Remove duplicate test for '+' in the command.
1288         If we don't appear to be running a recursive make, close the
1289         jobserver filedescriptors.
1290         (start_waiting_job): If our personal token is available, use that
1291         instead of going to the server pipe.
1292         (*): Add the token value to many debugging statements, and print
1293         the child target name in addition to the ptr hex value.
1294         Change the default "no token" value from '\0' to '-' so it looks
1295         better in the output.
1297         * main.c (main): Install the child_handler with sigaction()
1298         instead of signal() if we have it.  On SysV systems, signal() uses
1299         SysV semantics which are a pain.  But sigaction() always does what
1300         we want.
1301         (main): If we got job server FDs from the environment, test them
1302         to see if they're open.  If not, the parent make closed them
1303         because it didn't think we were a submake.  Print a warning and
1304         suggestion to use "+" on the submake invocation, and hard-set to
1305         -j1 for this instance of make.
1306         (main): Change the algorithm for assigning slots to be more
1307         robust.  Previously make checked to see if it thought a subprocess
1308         was a submake and if so, didn't give it a token.  Since make's
1309         don't consume tokens we could spawn many of makes fighting for a
1310         small number of tokens.  Plus this is unreliable because submakes
1311         might not be recognized by the parent (see above) then all the
1312         tokens could be used up by unrecognized makes, and no one could
1313         run.  Now every make consumes a token from its parent.  However,
1314         the make can also use this token to spawn a child.  If the make
1315         wants more than one, it goes to the jobserver pipe.  Thus there
1316         will never be more than N makes running for -jN, and N*2 processes
1317         (N makes and their N children).  Every make can always run at
1318         least one job, and we'll never deadlock.  (Note the closing of the
1319         pipe for non-submakes also solves this, but this is still a better
1320         algorithm.)  So!  Only put N-1 tokens into the pipe, since the
1321         topmost make keeps one for itself.
1323         * configure.in: Find sigaction.  Disable job server support unless
1324         the system provides it, in addition to either waitpid() or
1325         wait3().
1327 1999-07-22  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1329         * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
1330         string on Windows, not a timestamp.
1332 1999-07-21  Paul D. Smith  <psmith@gnu.org>
1334         * Version 3.77.90 released.
1336         * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
1338         * function.c: Rearrange so we don't need to predeclare the
1339         function_table array; K&R C compilers don't like that.
1341         * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
1342         compiler!  Change to work with K&R compilers as well.
1344         * configure.in (AC_OUTPUT): Put build.sh back.  I don't know how I
1345         thought it would work this way :-/.  We'll have to think of
1346         something else.
1347         * Makefile.am: Remove rule to create build.sh.
1349         * default.c (default_suffix_rules): Rearrange the default command
1350         lines to conform to POSIX rules (put the filename argument $<
1351         _after_ the OUTPUT_OPTION, not before it).
1353         * various: Changed !strncmp() calls to strneq() macros.
1355         * misc.c (sindex): Make slightly more efficient.
1357         * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
1358         * implicit.c (pattern_search): Ditto.
1359         * main.c (enter_command_line_file): Ditto.
1360         (main): Ditto.
1361         * misc.c (copy_dep_chain): Ditto.
1362         * read.c (read_makefile): Ditto.
1363         (parse_file_seq): Ditto.
1364         (tilde_expand): Ditto.
1365         (multi_glob): Ditto.
1366         * rule.c (install_pattern_rule): Ditto.
1367         * variable.c (define_variable_in_set): Ditto.
1368         (define_automatic_variables): Ditto.
1369         * vpath.c (construct_vpath_list): Ditto.
1371         * misc.c (xrealloc): Some reallocs are non-standard: work around
1372         them in xrealloc by calling malloc if PTR is NULL.
1373         * main.c (main): Call xrealloc() directly instead of testing for
1374         NULL.
1376         * function.c (func_sort): Don't try to free NULL; some older,
1377         non-standard versions of free() don't like it.
1379         * configure.in (--enable-dmalloc): Install some support for using
1380         dmalloc (http://www.dmalloc.com/) with make.  Use --enable-dmalloc
1381         with configure to enable it.
1383         * function.c (function_table_entry): Whoops!  The function.c
1384         rewrite breaks backward compatibility: all text to a function is
1385         broken into arguments, and extras are ignored.  So $(sort a,b,c)
1386         returns "a"!  Etc.  Ouch.  Fix it by making a positive value in
1387         the REQUIRED_ARGS field mean exactly that many arguments to the
1388         function; any "extras" are considered part of the last argument as
1389         before.  A negative value means at least that many, but may be
1390         more: in this case all text is broken on commas.
1391         (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
1392         (expand_builtin_function): Compare number of args to the absolute
1393         value of REQUIRED_ARGS.
1395 1999-07-20  Paul D. Smith  <psmith@gnu.org>
1397         * job.c (start_job_command): Ensure that the state of the target
1398         is cs_running.  It might not be if we skipped all the lines due to
1399         -n (for example).
1401         * commands.c (execute_file_commands): If we discover that the
1402         command script is empty and succeed early, set cs_running so the
1403         modtime of the target is still rechecked.
1405         * rule.c (freerule): Free the dependency list for the rule.
1407         * implicit.c (pattern_search): When turning an intermediate file
1408         into a real target, keep the also_make list.
1409         Free the dep->name if we didn't use it during enter_file().
1411 1999-07-16  Paul D. Smith  <psmith@gnu.org>
1413         * read.c (read_makefile): Don't allocate the commands buffer until
1414         we're sure we found a makefile and won't return early (mem leak).
1416         * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
1417         not FD_SETFD.  Close-on-exec isn't getting set on the bad_stdin
1418         file descriptor and it's leaking :-/.
1419         * getloadavg.c (getloadavg): Ditto.
1421 1999-07-15  Paul D. Smith  <psmith@gnu.org>
1423         * read.c (read_makefile): Fix some potential memory stomps parsing
1424         `define' directives where no variable name is given.
1426         * function.c (func_call): Rename from func_apply.  Various code
1427         cleanup and tightening.
1428         (function_table): Add "call" as a valid builtin function.
1430         * make.texinfo (Call Function): Document it.
1432         * NEWS: Announce it.
1434 1999-07-09  Eli Zaretskii  <eliz@is.elta.co.il>
1436         * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
1437         Treat "override SHELL=" the same as just "SHELL=".
1439 1999-07-09  Paul D. Smith  <psmith@gnu.org>
1441         * job.c (start_waiting_job): Don't get a second job token if we
1442         already have one; if we're waiting on the load to go down
1443         start_waiting_job() might get called twice on the same file.
1445         * filedef.h (struct file): Add new field, mtime_before_update.
1446         When notice_finished_file runs it assigns the cached last_mtime to
1447         this field.
1448         * remake.c (update_goal_chain): Notice that a file wasn't updated
1449         by asking if it changed (g->changed) and comparing the current
1450         cached time (last_mtime) with the previous one, stored in
1451         mtime_before_update.  The previous check ("did last_mtime changed
1452         during the run of update_file?") fails for parallel builds because
1453         last_mtime is set during reap_children, before update_file is run.
1454         This causes update_goal_chain to always return -1 (nothing
1455         rebuilt) when running parallel (-jN).  This is OK during "normal"
1456         builds since our caller (main) treats these cases identically in
1457         that case, but if when rebuilding makefiles the difference is very
1458         important, as it controls whether we re-exec or not.
1459         * file.c (file_hash_enter): Copy the mtime_before_update field.
1460         (snap_deps): Initialize mtime_before_update to -1.
1461         * main.c (main): Initialize mtime_before_update on old (-o) and
1462         new (-W) files.
1464 1999-07-08  Paul D. Smith  <psmith@gnu.org>
1466         * main.c (switches): Define a new switch -R (or
1467         --no-builtin-variables).  This option disables the defining of all
1468         the GNU make builtin variables.
1469         (main): If -R was given, force -r as well.
1470         * default.c (define_default_variables): Test the new flag.
1471         * make.h: Declare global flag.
1472         * make.texinfo (Options Summary): Document the new option.
1473         (Implicit Variables): Ditto.
1475 1999-07-06  Paul D. Smith  <psmith@gnu.org>
1477         * make.texinfo (Options Summary): Correct examples in
1478         --print-data-base option summary (problem reported by David Morse
1479         <morse@nichimen.com>).
1481         * arscan.c: Add support for archives in Windows (VC++).  Frank
1482         Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
1483         this.
1484         * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
1485         compile line.
1486         * build_w32.bat: Ditto.
1488         * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
1489         give errors if you try to -include the same file twice.
1490         (updating_makefiles): New variable: we need to know this info in
1491         no_rule_error() so we know whether to print an error or not.
1492         (update_file_1): Unconditionally call no_rule_error(), don't try
1493         to play games with the dontcare flag.
1495 1999-06-14  Paul D. Smith  <psmith@gnu.org>
1497         * make.texinfo (Remaking Makefiles): Add a description of how to
1498         prevent implicit rule searches for makefiles.
1500         * make.1: Remove statement that make continues processing when -v
1501         is given.
1503 1999-06-14  Paul D. Smith  <psmith@gnu.org>
1505         * read.c (read_makefile): Cast -1 arguments to
1506         variable_expand_string() to long.  Alexandre Sauve
1507         <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
1508         on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
1509         anyway).  Of course, (a) I'd really love to start using function
1510         prototypes, and (b) there's a whole slew of issues related to int
1511         vs. long and signed vs. unsigned in the length handling of
1512         variable buffers, etc.  Gross.  Needs a complete mucking-out.
1513         * expand.c (variable_expand): Ditto.
1515         * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
1516         Lars Hecking <lhecking@nmrc.ucc.ie>.
1518         * read.c (get_next_mword): Allow colons to be escaped in target
1519         names: fix for regression failure.
1521 1999-04-26  Paul D. Smith  <psmith@gnu.org>
1523         * main.c (main): Reset read_makefiles to empty after processing so
1524         we get the right error message.
1526 1999-04-25  Paul D. Smith  <psmith@gnu.org>
1528         * make.texinfo: Updates to @dircategory and @direntry suggested by
1529         Karl Berry <karl@cs.umb.edu>.
1531 1999-04-23  Eli Zaretskii  <eliz@is.elta.co.il>
1533         * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
1534         turning off dos_command_running, so child's signals produce the
1535         right effect.
1537         * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
1538         instead of 1.
1540 1999-04-18  Eli Zaretskii  <eliz@is.elta.co.il>
1542         * configh.dos.template: Update to recognize that version 2.02 of
1543         DJGPP contains sys_siglist stuff.
1545 1999-04-14  Paul D. Smith  <psmith@gnu.org>
1547         * make.texinfo (Options/Recursion): Document the job server.
1548         (Parallel): Tweaks.
1550 1999-04-13  Paul D. Smith  <psmith@gnu.org>
1552         Implement a new "job server" feature; the implementation was
1553         suggested by Howard Chu <hyc@highlandsun.com>.
1555         * configure.in (job-server): New disable option for job server
1556         support--it's enabled by default.  If it works well this will go
1557         away.
1559         * NEWS: Summarize the new feature.
1561         * acconfig.h: New definition MAKE_JOBSERVER if job server support
1562         is enabled.
1563         * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
1564         * config.h.W32.template: Ditto.
1565         * config.ami.template: Ditto.
1567         * main.c (struct command_switch): Add a new type: int_string.
1568         (switches[]) Use int_string for -j if MAKE_JOBSERVER.
1569         (init_switches): Initialize the new int_string switch type.
1570         (print_usage): New function, extracted from decode_switches().
1571         (decode_switches): Call it.  Decode the new int_string switch type.
1572         (define_makeflags): Add new int_string switch data to MAKEFLAGS.
1573         (job_fds[]) Array to contain the pipe file descriptors.
1574         (main): Parse the job_slots_str option results.  If necessary,
1575         create the pipe and seed it with tokens.  Set the non-blocking bit
1576         for the read fd.  Enable the signal handler for SIGCHLD even if we
1577         have a non-hanging wait; it's needed to interrupt the select() in
1578         job.c:start_waiting_job().
1580         * make.h: Declare job_fds[].
1582         * job.h (struct child): Add job_token field to store the token for
1583         this job (if any).
1585         * job.c (reap_children): When a child is fully reaped, release the
1586         token back into the pipe.
1587         (free_child): If the child to be freed still has a token, put it
1588         back.
1589         (new_job): Initialize the job_token member.
1590         (start_waiting_job): For local jobs, if we're using the pipe, get
1591         a token before we check the load, etc.  We do this by performing a
1592         non-blocking read in a loop.  If the read fails, no token is
1593         available.  Do a select on the fd to wait for a token.  We need to
1594         re-enable the signal handler for SIGCHLD even if we have a
1595         non-hanging waitpid() or wait3(), so that the signal will
1596         interrupt the select() and we can wake up to reap children.
1597         (child_handler): Re-enable the signal handler.  The count is still
1598         kept although it's not needed or used unless you don't have
1599         waitpid() or wait3().
1601 1999-04-10  Paul D. Smith  <psmith@gnu.org>
1603         * main.c (main): Reset the considered bit on all the makefiles if
1604         something failed to update; we need to examine them again if they
1605         appear as normal targets in order to get the proper error message.
1607 1999-04-09  Paul D. Smith  <psmith@gnu.org>
1609         Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
1611         * remake.c (update_file): If you have large numbers of
1612         dependencies and you run in parallel, make can spend considerable
1613         time each pass through the graph looking at branches it has
1614         already seen.  Since we only reap_children() when starting a pass,
1615         not in the middle, if a branch has been seen already in that pass
1616         nothing interesting can happen until the next pass.  So, we toggle
1617         a bit saying whether we've seen this target in this pass or not.
1618         (update_goal_chain): Initially set the global considered toggle to
1619         1, since all targets initialize their boolean to 0.  At the end of
1620         each pass, toggle the global considered variable.
1621         * filedef.h (struct file): Per-file considered toggle bit.
1622         * file.c: New global toggle variable considered.
1624 1999-04-05  Paul D. Smith  <psmith@gnu.org>
1626         * arscan.c (ar_scan): Added support for ARFZMAG (compressed
1627         archives?) for Digital UNIX C++.  Information provided by
1628         Patrick E. Krogel <pekrogel@mtu.edu>.
1629         (ar_member_touch): Ditto.
1631 1999-04-03  Paul D. Smith  <psmith@gnu.org>
1633         * remake.c (f_mtime): If: a) we found a file and b) we didn't
1634         create it and c) it's not marked as an implicit target and d) it
1635         is marked as an intermediate target, then it was so marked due to
1636         an .INTERMEDIATE special target, but it already existed in the
1637         directory.  In this case, unset the intermediate flag so we won't
1638         delete it when make is done.  It feels like it would be cleaner to
1639         put this check in update_file_1() but I worry it'll get missed...
1641 1999-04-01  Paul D. Smith  <psmith@gnu.org>
1643         * job.c (construct_command_argv_internal): Use bcopy() to copy
1644         overlapping strings, rather than strcpy().  ISO C says the latter
1645         is undefined.  Found this in a bug report from 1996!  Ouch!
1647 1999-03-31  Paul D. Smith  <psmith@gnu.org>
1649         * read.c (readline): Ignore carriage returns at the end of the
1650         line, to allow Windows-y CRLF line terminators.
1652 1999-03-30  Paul D. Smith  <psmith@gnu.org>
1654         * configure.in: Don't put build.sh here, since build.sh.in doesn't
1655         exist initially.  This cause autoreconf and automake to fail when
1656         run on a clean CVS checkout.  Instead, we create build.sh in the
1657         Makefile (see below).
1659         * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1660         Put those files directly into EXTRA_DIST so they're distributed.
1661         Create a local build rule to create build.sh.
1662         Create a local maintainer-clean rule to delete all the funky
1663         maintainers files.
1665         * maintMakefile: Makefile.in depends on README, since automake
1666         fails if it doesn't exist.  Also don't remove glob/Makefile.in
1667         here, as it causes problems.
1669 1999-03-26  Paul D. Smith  <psmith@gnu.org>
1671         * configure.in: Substitute GLOBLIB if we need the link the
1672         glob/libglob.a library.
1673         * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1674         don't link the local libglob.a at all if we don't need it.
1675         * build.template: Don't compile glob/*.o unless we want globlib.
1676         * maintMakefile (build.sh.in): Substitute the glob/*.o files
1677         separately.
1679 1999-03-25  Paul D. Smith  <psmith@gnu.org>
1681         * make.texinfo: Various typos and additions, pointed out by James
1682         G. Sack <jsack@dornfeld.com>.
1684 1999-03-22  Paul D. Smith  <psmith@gnu.org>
1686         * make.texinfo (Functions): Add a new section documenting the new
1687         $(error ...) and $(warning ...) functions.  Also updated copyright
1688         dates.
1689         * NEWS: Updated for the new functions.
1690         * function.c (func_error): Implement the new $(error ...) and
1691         $(warning ...) functions.
1692         (function_table): Insert new functions into the table.
1693         (func_firstword): Don't call find_next_token() with argv[0]
1694         itself, since that function modifies the pointer.
1695         * function.c: Cleanups and slight changes to the new method of
1696         calling functions.
1698 1999-03-20  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
1700         * function.c: Rewrite to use one C function per make function,
1701         instead of a huge switch statement.  Also allows some cleanup of
1702         multi-architecture issues, and a cleaner API which makes things
1703         like func_apply() simple.
1705         * function.c (func_apply): Initial implementation.  Expand either
1706         a builtin function or a make variable in the context of some
1707         arguments, provided as $1, $2, ... $N.
1709 1999-03-19  Eli Zaretskii  <eliz@is.elta.co.il>
1710 1999-03-19  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
1712         * job.c (construct_command_argv_internal): Don't treat _all_
1713         backslashes as escapes, only those which really escape a special
1714         character.  This allows most normal "\" directory separators to be
1715         treated normally.
1717 1999-03-05  Paul D. Smith  <psmith@gnu.org>
1719         * configure.in: Check for a system strdup().
1720         * misc.c (xstrdup): Created.  Suggestion by Han-Wen Nienhuys
1721         <hanwen@cs.uu.nl>.
1722         * make.h: Prototype xstrdup().
1723         * remake.c (library_search): Use it.
1724         * main.c (main): Use it.
1725         (find_and_set_default_shell): Use it.
1726         * job.c (construct_command_argv_internal): Use it.
1727         * dir.c (find_directory): Use it.
1729         * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
1730         maintMakefile instead of "include", to avoid automake 1.4
1731         incompatibility.
1733 1999-03-04  Paul D. Smith  <psmith@gnu.org>
1735         * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
1736         * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
1737         * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
1738         * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
1739         * vpath.c, Makefile.ami, NMakefile.template, build.template,
1740         * makefile.vms: Updated FSF address in the copyright notice.
1742         * variable.c (try_variable_definition): If we see a conditional
1743         variable and we decide to set it, re-type it as recursive so it
1744         will be expanded properly later.
1746 1999-02-22  Paul D. Smith  <psmith@gnu.org>
1748         * NEWS: Mention new .LIBPATTERNS feature.
1750         * make.texinfo (Libraries/Search): Describe the use and
1751         ramifications of the new .LIBPATTERNS variable.
1753         * remake.c (library_search): Instead of searching only for the
1754         hardcoded expansion "libX.a" for a library reference "-lX", we
1755         obtain a list of patterns from the .LIBPATTERNS variable and
1756         search those in order.
1758         * default.c: Added a new default variable .LIBPATTERNS.  The
1759         default for UNIX is "lib%.so lib%.a".  Amiga and DOS values are
1760         also provided.
1762         * read.c: Remove bogus HAVE_GLOB_H references; always include
1763         vanilla glob.h.
1765 1999-02-21  Paul D. Smith  <psmith@gnu.org>
1767         * function.c (expand_function): Set value to 0 to avoid freeing it.
1768         * variable.c (pop_variable_scope): Free the value of the variable.
1769         (try_variable_definition): For simple variables, use
1770         allocated_variable_expand() to avoid stomping on the variable
1771         buffer when we still need it for other things.
1773         * arscan.c: Modified to support AIX 4.3 big archives.  The changes
1774         are based on information provided by Phil Adams
1775         <padams@austin.ibm.com>.
1777 1999-02-19  Paul D. Smith  <psmith@gnu.org>
1779         * configure.in: Check to see if the GNU glob library is already
1780         installed on the system.  If so, _don't_ add -I./glob to the
1781         compile line.  Using the system glob code with the local headers
1782         is very bad mojo!
1783         Rewrite SCCS macros to use more autoconf facilities.
1785         * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
1786         CPPFLAGS by configure now.
1787         Automake 1.4 introduced its own "include" feature which conflicts
1788         with the maintMakefile stuff.  A hack that seems to work is add a
1789         space before the include :-/.
1791         * build.template: Move -Iglob out of the compile line; it'll get
1792         added to CPPFLAGS by configure now.
1794 1999-02-16  Glenn D. Wolf  <Glenn_Wolf@email.sps.mot.com>
1796         * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
1797         calling lbr$get_index since if the archive is empty,
1798         VMS_get_member_info won't get called at all, and any leftover date
1799         will be used.  This bug shows up if any member of any archive is
1800         made, followed by a dependency check on a different, empty
1801         archive.
1803 1998-12-13  Martin Zinser  <zinser@decus.decus.de>
1805         * config.h-vms [VMS]: Set _POSIX_C_SOURCE.  Redefine the getopt
1806         functions so we don't use the broken VMS versions.
1807         * makefile.com [VMS]: Allow debugging.
1808         * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
1810 1998-11-30  Paul D. Smith  <psmith@gnu.org>
1812         * signame.c (init_sig): Check the sizes of signals being set up to
1813         avoid array overwrites (if the system headers have problems).
1815 1998-11-17  Paul D. Smith  <psmith@gnu.org>
1817         * read.c (record_files): Clean up some indentation.
1819 1998-11-08  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
1821         * rule.c (print_rule_data_base): Fix arguments to fatal() call.
1823 1998-10-13  Paul D. Smith  <psmith@gnu.org>
1825         * job.c (start_job_command): If the command list resolves to no
1826         chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
1827         quit early.
1829 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1831         * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
1832         zero.
1834 1998-10-09  Paul D. Smith  <psmith@gnu.org>
1836         * read.c (read_makefile): Allow non-empty lines to expand to the
1837         empty string after variable, etc., expansion, and be ignored.
1839 1998-09-21  Paul D. Smith  <psmith@gnu.org>
1841         * job.c (construct_command_argv_internal): Only add COMMAND.COM
1842         "@echo off" line for non-UNIXy shells.
1844 1998-09-09  Paul D. Smith  <psmith@gnu.org>
1846         * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
1848 1998-09-04  Paul D. Smith  <psmith@gnu.org>
1850         * read.c (read_makefile): If we hit the "missing separator" error,
1851         check for the common case of 8 spaces instead of a TAB and give an
1852         extra comment to help people out.
1854 1998-08-29  Paul Eggert  <eggert@twinsun.com>
1856         * configure.in (AC_STRUCT_ST_MTIM_NSEC):
1857         Renamed from AC_STRUCT_ST_MTIM.
1859         * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC):  Likewise.
1860         Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
1862         * acconfig.h (ST_MTIM_NSEC):
1863         Renamed from HAVE_ST_MTIM, with a new meaning.
1865         * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
1866         Use new ST_MTIM_NSEC macro.
1868 1998-08-26  Paul D. Smith  <psmith@gnu.org>
1870         * remake.c (check_dep): For any intermediate file, not just
1871         secondary ones, try implicit and default rules if no explicit
1872         rules are given.  I'm not sure why this was restricted to
1873         secondary rules in the first place.
1875 1998-08-24  Paul D. Smith  <psmith@gnu.org>
1877         * make.texinfo (Special Targets): Update documentation for
1878         .INTERMEDIATE: if used with no dependencies, then it does nothing;
1879         old docs said it marked all targets as intermediate, which it
1880         didn't... and which would be silly :).
1882         * implicit.c (pattern_search): If we find a dependency in our
1883         internal tables, make sure it's not marked intermediate before
1884         accepting it as a found_file[].
1886 1998-08-20  Paul D. Smith  <psmith@gnu.org>
1888         * ar.c (ar_glob): Use existing alpha_compare() with qsort.
1889         (ar_glob_alphacompare): Remove it.
1891         Modify Paul Eggert's patch so we don't abandon older systems:
1893         * configure.in: Warn the user if neither waitpid() nor wait3() is
1894         available.
1896         * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
1897         (child_handler, dead_children): Define these if WAIT_NOHANG is not
1898         available.
1899         (reap_children): Only track the dead_children count if no
1900         WAIT_NOHANG.  Otherwise, it's a boolean.
1902         * main.c (main): Add back signal handler if no WAIT_NOHANG is
1903         available; only use default signal handler if it is.
1905 1998-08-20  Paul Eggert  <eggert@twinsun.com>
1907         Install a more robust signal handling mechanism for systems which
1908         support it.
1910         * job.c (WAIT_NOHANG): Define to a syntax error if our host
1911         is truly ancient; this should never happen.
1912         (child_handler, dead_children): Remove.
1913         (reap_children): Don't try to keep separate track of how many
1914         dead children we have, as this is too bug-prone.
1915         Just ask the OS instead.
1916         (vmsHandleChildTerm): Fix typo in error message; don't mention
1917         child_handler.
1919         * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
1920         do this early, before we could possibly create a subprocess.
1921         Just use the default behavior; don't have our own handler.
1923 1998-08-18  Eli Zaretskii  <eliz@is.elta.co.il>
1925         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
1926         recognize library archive members when dealing with drive spec
1927         mess.  Discovery and initial fix by George Racz <gracz@mincom.com>.
1929 1998-08-18  Paul D. Smith  <psmith@gnu.org>
1931         * configure.in: Check for stdlib.h explicitly (some hosts have it
1932         but don't have STDC_HEADERS).
1933         * make.h: Use HAVE_STDLIB_H.  Clean up some #defines.
1934         * config.ami: Re-compute based on new config.h.in contents.
1935         * config.h-vms: Ditto.
1936         * config.h.W32: Ditto.
1937         * configh.dos: Ditto.
1939         * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
1940         directory names end with `\' so strip it.
1942 1998-08-17  Paul D. Smith  <psmith@gnu.org>
1944         * make.texinfo: Added copyright year to the printed copy.  Removed
1945         the price from the manual.  Change the top-level reference to
1946         running make to be "Invoking make" instead of "make Invocation",
1947         to comply with GNU doc standards.
1949         * make.h (__format__, __printf__): Added support for these in
1950         __attribute__ macro.
1951         (message, error, fatal): Use ... prototype form under __STDC__.
1952         Add __format__ attributes for printf-style functions.
1954         * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
1956         * misc.c (message, error, fatal): Add preprocessor stuff to enable
1957         creation of variable-argument functions with appropriate
1958         prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
1959         v*printf(), _doprnt(), or none of the above.  Culled from GNU
1960         fileutils and slightly modified.
1961         (makefile_error, makefile_error): Removed (merged into error() and
1962         fatal(), respectively).
1963         * amiga.c: Use them.
1964         * ar.c: Use them.
1965         * arscan.c: Use them.
1966         * commands.c: Use them.
1967         * expand.c: Use them.
1968         * file.c: Use them.
1969         * function.c: Use them.
1970         * job.c: Use them.
1971         * main.c: Use them.
1972         * misc.c: Use them.
1973         * read.c: Use them.
1974         * remake.c: Use them.
1975         * remote-cstms.c: Use them.
1976         * rule.c: Use them.
1977         * variable.c: Use them.
1979         * make.h (struct floc): New structure to store file location
1980         information.
1981         * commands.h (struct commands): Use it.
1982         * variable.c (try_variable_definition): Use it.
1983         * commands.c: Use it.
1984         * default.c: Use it.
1985         * file.c: Use it.
1986         * function.c: Use it.
1987         * misc.c: Use it.
1988         * read.c: Use it.
1989         * rule.c: Use it.
1991 1998-08-16  Paul Eggert  <eggert@twinsun.com>
1993         * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
1995 1998-08-16  Paul Eggert  <eggert@twinsun.com>
1997         * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
1998         (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
1999         make it easier to understand.
2001 1998-08-14  Paul D. Smith  <psmith@gnu.org>
2003         * read.c (read_makefile): We've already unquoted any colon chars
2004         by the time we're done reading the targets, so arrange for
2005         parse_file_seq() on the target list to not do so again.
2007 1998-08-05  Paul D. Smith  <psmith@gnu.org>
2009         * configure.in: Added glob/configure.in data.  We'll have the glob
2010         code include the regular make config.h, rather than creating its
2011         own.
2013         * getloadavg.c (main): Change return type to int.
2015 1998-08-01  Paul Eggert  <eggert@twinsun.com>
2017         * job.c (reap_children): Ignore unknown children.
2019 1998-07-31  Paul D. Smith  <psmith@gnu.org>
2021         * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
2022         Add prototypes for functions.  Some prototypes needed to be moved
2023         in order to get #include order reasonable.
2025 1998-07-30  Paul D. Smith  <psmith@gnu.org>
2027         * make.h: Added MIN/MAX.
2028         * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
2030 1998-07-30  Paul Eggert  <eggert@twinsun.com>
2032         Add support for sub-second timestamp resolution on hosts that
2033         support it (just Solaris 2.6, so far).
2035         * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
2036         * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
2037         jm_AC_TYPE_UINTMAX_T): New defuns.
2038         * commands.c (delete_target): Convert file timestamp to
2039         seconds before comparing to archive timestamp.  Extract mod
2040         time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
2041         * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
2042         (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
2043         * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
2044         (file_timestamp_now, file_timestamp_sprintf): New functions.
2045         (print_file): Print file timestamps as FILE_TIMESTAMP, not
2046         time_t.
2047         * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
2048         (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
2049         FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
2050         FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
2051         FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
2052         (file_timestamp_now, file_timestamp_sprintf): New decls.
2053         (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
2054         time_t -> FILE_TIMESTAMP.
2055         * implicit.c (pattern_search): Likewise.
2056         * vpath.c (vpath_search, selective_vpath_search): Likewise.
2057         * main.c (main): Likewise.
2058         * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
2059         (f_mtime): Use file_timestamp_now instead of `time'.
2060         Print file timestamp with file_timestamp_sprintf.
2061         * vpath.c (selective_vpath_search): Extract file time stamp from
2062         struct stat with FILE_TIMESTAMP_STAT_MODTIME.
2064 1998-07-28  Paul D. Smith  <psmith@gnu.org>
2066         * Version 3.77 released.
2068         * dosbuild.bat: Change to DOS CRLF line terminators.
2070         * make-stds.texi: Update from latest version.
2072         * make.texinfo (Options Summary): Clarify that the -r option
2073         affects only rules, not builtin variables.
2075 1998-07-27  Paul D. Smith  <psmith@gnu.org>
2077         * make.h: Make __attribute__ resolve to empty for non-GCC _and_
2078         for GCC pre-2.5.x.
2080         * misc.c (log_access): Print UID/GID's as unsigned long int for
2081         maximum portability.
2083         * job.c (reap_children): Print PIDs as long int for maximum
2084         portability.
2086 1998-07-24  Eli Zaretskii  <eliz@is.elta.co.il>
2088         * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
2090 1998-07-25  Paul D. Smith  <psmith@gnu.org>
2092         * Version 3.76.94 released.
2094 1998-07-23  Paul D. Smith  <psmith@gnu.org>
2096         * config.h.W32.template: Make sure all the #defines of macros here
2097         have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
2098         just ``#define HAVE_STRING_H''.  Keeps the preprocessor happy in
2099         some contexts.
2101         * make.h: Remove __attribute__((format...)) stuff; using it with
2102         un-prototyped functions causes older GCC's to fail.
2104         * Version 3.76.93 released.
2106 1998-07-22  Paul D. Smith  <psmith@gnu.org>
2108         * file.c (print_file_data_base): Fix average calculation.
2110 1998-07-20  Paul D. Smith  <psmith@gnu.org>
2112         * main.c (die): Postpone the chdir() until after
2113         remove_intermediates() so that intermediate targets with relative
2114         pathnames are removed properly.
2116 1998-07-17  Paul D. Smith  <psmith@gnu.org>
2118         * filedef.h (struct file): New flag: did we print an error or not?
2120         * remake.c (no_rule_error): New function to print error messages,
2121         extraced from remake_file().
2123         * remake.c (remake_file): Invoke the new error print function.
2124         (update_file_1): Invoke the error print function if we see that we
2125         already tried this target and it failed, but that an error wasn't
2126         printed for it.  This can happen if a file is included with
2127         -include or sinclude and couldn't be built, then later is also
2128         the dependency of another target.  Without this change, make just
2129         silently stops :-/.
2131 1998-07-16  Paul D. Smith  <psmith@gnu.org>
2133         * make.texinfo: Removed "beta" version designator.
2134         Updated ISBN for the next printing.
2136 1998-07-13  Paul Eggert  <eggert@twinsun.com>
2138         * acinclude.m4: New AC_LFS macro to determine if special compiler
2139         flags are needed to allow access to large files (e.g., Solaris 2.6).
2140         * configure.in: Invoke it.
2142 1998-07-08  Eli Zaretskii  <eliz@is.elta.co.il>
2144         * Makefile.DOS: track changes in Makefile.in.
2146 1998-07-07  Paul D. Smith  <psmith@gnu.org>
2148         * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
2149         top so host is initialized early enough.
2151         * acinclude.m4: New file.  Need some special autoconf macros to
2152         check for network libraries (-lsocket, -lnsl, etc.) when
2153         configuring Customs.
2155         * configure.in (make_try_customs): Invoke new network libs macro.
2157 1998-07-06  Paul D. Smith  <psmith@gnu.org>
2159         * Version 3.76.92 released.
2161         * README.customs: Added to the distribution.
2163         * configure.in (make_try_customs): Rewrite to require an installed
2164         Customs library, rather than looking at the build directory.
2166         * Makefile.am (man_MANS): Install make.1.
2167         * make.1: Renamed from make.man.
2169         * make.texinfo (Bugs): New mailing list address for GNU make bug
2170         reports.
2172 1998-07-02  Paul D. Smith  <psmith@gnu.org>
2174         * Version 3.76.91 released.
2176         * default.c: Added default rule for new-style RCS master file
2177         storage; ``% :: RCS/%''.
2178         Added default rules for DOS-style C++ files with suffix ".cpp".
2179         They use the new LINK.cpp and COMPILE.cpp macros, which are set by
2180         default to be equal to LINK.cc and COMPILE.cc.
2182 1998-06-19  Eli Zaretskii  <eliz@is.elta.co.il>
2184         * job.c (start_job_command): Reset execute_by_shell after an empty
2185         command was skipped.
2187 1998-06-09  Paul D. Smith  <psmith@gnu.org>
2189         * main.c (main): Keep track of the temporary filename created when
2190         reading a makefile from stdin (-f-) and attempt to remove it
2191         as soon as we know we're not going to re-exec.  If we are, add it
2192         to the exec'd make's cmd line with "-o" so the exec'd make doesn't
2193         try to rebuild it.  We still have a hole: if make re-execs then
2194         the temporary file will never be removed.  To fix this we'd need
2195         a brand new option that meant "really delete this".
2196         * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
2197         Updated mailing addresses.
2199 1998-06-08  Paul D. Smith  <psmith@gnu.org>
2201         * main.c (main): Andreas Luik <luik@isa.de> points out that the
2202         check for makefile :: rules with commands but no dependencies
2203         causing a loop terminates incorrectly.
2205         * maintMakefile: Make a template for README.DOS to update version
2206         numbers.
2208 1998-05-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2210         * remake.c (update_file_1): Don't free the memory for the
2211         dependency structure when dropping a circular dependency.
2213 1998-05-30  Eli Zaretskii  <eliz@is.elta.co.il>
2215         * dir.c (file_exists_p, file_impossible_p, file_impossible)
2216         [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
2217         dirname of "d:foo" be "d:".
2219 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2221         * read.c (read_makefile): Avoid running past EOS when scanning
2222         file name after `include'.
2224 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2226         * make.texinfo (Flavors): Correct description of conditional
2227         assignment, which is not equivalent to ifndef.
2228         (Setting): Likewise.
2230 1998-05-24  Paul D. Smith  <psmith@gnu.org>
2232         * arscan.c (ar_name_equal): strncmp() might be implemented as a
2233         macro, so don't put preprocessor conditions inside the arguments
2234         list.
2236 1998-05-23  Eli Zaretskii  <eliz@is.elta.co.il>
2238         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
2239         drive specs when parsing targets, target-specific variables and
2240         static pattern rules.  A colon can only be part of drive spec if
2241         it is after the first letter in a token.
2243 1998-05-22  Eli Zaretskii  <eliz@is.elta.co.il>
2245         * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
2246         yelling bloody murder.
2248         * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
2250         * read.c (parse_file_seq): Combine the special file-handling code
2251         for WINDOWS32 and __MSDOS__ into a single snippet.
2252         (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
2253         colon as part of a drive spec.
2255         * job.c (batch_mode_shell) [__MSDOS__]: Declare.
2257 1998-05-20  Paul D. Smith  <psmith@gnu.org>
2259         * Version 3.76.90 released.
2261 1998-05-19  Paul D. Smith  <psmith@gnu.org>
2263         * make.texinfo (Make Errors): Added a new appendix describing
2264         common errors make might generate and how to resolve them (or at
2265         least more information on what they mean).
2267         * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
2268         to create a dependency file to construct Makefile.DOS, SMakefile,
2269         and NMakefile.
2270         (.dep_segment): Generate the dependency fragment file.
2272 1998-05-14  Paul D. Smith  <psmith@gnu.org>
2274         * make.man: Minor changes.
2276 1998-05-13  Paul D. Smith  <psmith@gnu.org>
2278         * function.c (pattern_matches,expand_function): Change variables
2279         and types named "word" to something else, to avoid compilation
2280         problems on Cray C90 Unicos.
2281         * variable.h: Modify the function prototype.
2283 1998-05-11  Rob Tulloh  <rob_tulloh@tivoli.com>
2285         * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
2286         echo when using a batch file, and make sure the command ends in a
2287         newline.
2289 1998-05-03  Paul D. Smith  <psmith@gnu.org>
2291         * configure.in (make_try_customs): Add some customs flags if the
2292         user configures custom support.
2294         * job.c, remote-cstms.c: Merge in changes for custom library.
2296         * remote-stub.c: Add option to stub start_remote_job_p().
2298 1998-05-01  Paul D. Smith  <psmith@gnu.org>
2300         * remake.c (f_mtime): Install VPATH+ handling for archives; use
2301         the hname field instead of the name field, and rehash when
2302         appropriate.
2304 1998-04-30  Paul D. Smith  <psmith@gnu.org>
2306         * rule.c (print_rule_data_base): Print out any pattern-specific
2307         variable values into the rules database.
2309         * variable.c (print_variable_set): Make this variable extern, to
2310         be called by print_rule_data_base() for pattern-specific variables.
2312         * make.texinfo (Pattern-specific): Document pattern-specific
2313         variables.
2315 1998-04-29  Paul D. Smith  <psmith@gnu.org>
2317         * expand.c (variable_expand_for_file): Make static; its only
2318         called internally.  Look up this target in the list of
2319         pattern-specific variables and insert the variable set into the
2320         queue to be searched.
2322         * filedef.h (struct file): Add a new field to hold the
2323         previously-found pattern-specific variable reference.  Add a new
2324         flag to remember whether we already searched for this file.
2326         * rule.h (struct pattern_var): New structure for storing
2327         pattern-specific variable values.  Define new function prototypes.
2329         * rule.c: New variables pattern_vars and last_pattern_var for
2330         storage and handling of pattern-specific variable values.
2331         (create_pattern_var): Create a new pattern-specific variable value
2332         structure.
2333         (lookup_pattern_var): Try to match a target to one of the
2334         pattern-specific variable values.
2336 1998-04-22  Paul D. Smith  <psmith@gnu.org>
2338         * make.texinfo (Target-specific): Document target-specific
2339         variables.
2341 1998-04-21  Paul D. Smith  <psmith@gnu.org>
2343         * variable.c (define_variable_in_set): Made globally visible.
2344         (lookup_variable_in_set): New function: like lookup_variable but
2345         look only in a specific variable set.
2346         (target_environment): Use lookup_variable_in_set() to get the
2347         correct export rules for a target-specific variable.
2348         (create_new_variable_set): Create a new variable set, and just
2349         return it without installing it anywhere.
2350         (push_new_variable_scope): Reimplement in terms of
2351         create_new_variable_set.
2353         * read.c (record_target_var): Like record_files, but instead of
2354         files create a target-specific variable value for each of the
2355         listed targets.  Invoked from read_makefile() when the target line
2356         turns out to be a target-specific variable assignment.
2358 1998-04-19  Paul D. Smith <psmith@gnu.org>
2360         * read.c (read_makefile): Rewrite the entire target parsing
2361         section to implement target-specific variables.  In particular, we
2362         cannot expand the entire line as soon as it's read in, since we
2363         may want to evaluate parts of it with different variable contexts
2364         active.  Instead, start expanding from the beginning until we find
2365         the `:' (or `::'), then determine what kind of line this is and
2366         continue appropriately.
2368         * read.c (get_next_mword): New function to parse a makefile line
2369         by "words", considering an entire variable or function as one
2370         word.  Return the type read in, along with its starting position
2371         and length.
2372         (enum make_word_type): The types of words that are recognized by
2373         get_next_mword().
2375         * variable.h (struct variable): Add a flag to specify a per-target
2376         variable.
2378         * expand.c: Make variable_buffer global.  We need this during the
2379         new parsing of the makefile.
2380         (variable_expand_string): New function.  Like variable_expand(),
2381         but start at a specific point in the buffer, not the beginning.
2382         (variable_expand): Rewrite to simply call variable_expand_string().
2384 1998-04-13  Paul D. Smith  <psmith@gnu.org>
2386         * remake.c (update_goal_chain): Allow the rebuilding makefiles
2387         step to use parallel jobs.  Not sure why this was disabled:
2388         hopefully we won't find out :-/.
2390 1998-04-11  Paul D. Smith  <psmith@gnu.org>
2392         * main.c (main): Set the CURDIR makefile variable.
2393         * make.texinfo (Recursion): Document it.
2395 1998-03-17  Paul D. Smith  <psmith@gnu.org>
2397         * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
2398         * variable.c (try_variable_definition): Use new feature.
2400 1998-03-10  Paul D. Smith  <psmith@gnu.org>
2402         * main.c (main): Don't pass included, rebuilt makefiles to
2403         re-exec'd makes with -o.  Reopens a possible loop, but it caused
2404         too many problems.
2406 1998-03-02  Paul D. Smith  <psmith@gnu.org>
2408         * variable.c (try_variable_definition): Implement ?=.
2409         * make.texinfo (Setting): Document it.
2411 1998-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
2413         * job.c (start_job_command): Reset execute_by_shell after an empty
2414         command, like ":", has been seen.
2416 Tue Oct 07 15:00:00 1997  Phil Brooks <phillip_brooks@hp.com>
2418         * make.h [WINDOWS32]: make case sensitivity configurable
2419         * dir.c [WINDOWS32]: make case sensitivity configurable
2420         * README.W32: Document case sensitivity
2421         * config.ami: Share case warping code with Windows
2423 Mon Oct  6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
2425         * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
2426         (turn on HAVE_MKS_SHELL).
2427         * read.c [WINDOWS32]: Fixed a problem with multiple target rules
2428         reported by Gilbert Catipon (gcatipon@tibco.com).  If multiple
2429         path tokens in a rule did not have drive letters, make would
2430         incorrectly concatenate the 2 tokens together.
2431         * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
2432         follow what MSDOS did. In addition to watching for SHELL variable
2433         updates, make's main will attempt to default the value of SHELL
2434         before and after makefiles are parsed.
2435         * job.c/job.h [WINDOWS32]: The latest changes made to enable use
2436         of the GNUWIN32 shell from make could cause make to fail due to a
2437         concurrency condition between parent and child processes.  Make
2438         now creates a batch file per job instead of trying to reuse the
2439         same singleton batch file.
2440         * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
2441         from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
2442         logic to reduce complexity. WINDOWS32 now uses the unixy_shell
2443         variable to detect Bourne-shell compatible environments. There is
2444         also a batch_mode_shell variable that determines whether not
2445         command lines should be executed via script files. A WINDOWS32
2446         system with no sh.exe installed would have unixy_shell set to
2447         FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
2448         that does not behave well when invoking things via 'sh -c xxx',
2449         you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
2450         improve.
2451         * NMakefile: Added /D DEBUG to debug build flags so that unhandled
2452         exceptions could be debugged.
2454 Mon Oct  6 00:04:25 1997  Rob Tulloh <rob_tulloh@dev.tivoli.com>
2456         * main.c [WINDOWS32]: The function define_variable() does not
2457         handle NULL. Test before calling it to set Path.
2458         * main.c [WINDOWS32]: Search Path again after makefiles have been
2459         parsed to detect sh.exe.
2460         * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
2461         To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
2462         * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
2464 Sun Oct  5 22:43:59 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
2466         * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
2467         case-sensitive.
2468         * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
2469         command contains a newline (e.g. from a define/enddef block).
2470         * vmsify.c (vmsify): Return relative pathnames wherever possible.
2471         * vmsify.c (vmsify): An input string like "../.." returns "[--]".
2473 Wed Oct  1 15:45:09 1997  Rob Tulloh <rob_tulloh@tivoli.com>
2475         * NMakefile: Changed nmake to $(MAKE).
2476         * subproc.bat: Take the make command name from the command
2477         line. If no command name was given, default to nmake.
2478         * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
2479         are now always created in heap memory.
2480         * w32/subproc/sub_proc.c: New implementation of make_command_line()
2481         which is more compatible with different Bourne shell implementations.
2482         Deleted the now obsolete fix_command_line() function.
2483         * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
2484         detected. Make will ensure that the special spelling `Path' is
2485         inserted into the environment when the path variable is propagated
2486         within itself and to make's children.
2487         * main.c [WINDOWS32]: Detection of sh.exe was occurring too
2488         soon. The 2nd check for the existence of sh.exe must come after
2489         the call to read_all_makefiles().
2491 Fri Sep 26 01:14:18 1997  <zinser@axp602.gsi.de>
2493         * makefile.com [VMS]: Fixed definition of sys.
2494         * readme.vms: Comments on what's changed lately.
2496 Fri Sep 26 01:14:18 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
2498         * read.c (read_all_makefiles): Allow make to find files named
2499         "MAKEFILE" with no extension on VMS.
2500         * file.c (lookup_file): Lowercase filenames on VMS.
2502 1997-09-29  Paul D. Smith  <psmith@baynetworks.com>
2504         * read.c (read_makefile): Reworked target detection again; the old
2505         version had an obscure quirk.
2507 Fri Sep 19 09:20:49 1997  Paul D. Smith  <psmith@baynetworks.com>
2509         * Version 3.76.1 released.
2511         * Makefile.am: Add loadavg files to clean rules.
2513         * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
2514         * Makefile.ami (distclean): Ditto.
2515         * SMakefile (distclean): Ditto.
2517         * main.c (main): Arg count should be int, not char!  Major braino.
2519 Tue Sep 16 10:18:22 1997  Paul D. Smith  <psmith@baynetworks.com>
2521         * Version 3.76 released.
2523 Tue Sep  2 10:07:39 1997  Paul D. Smith  <psmith@baynetworks.com>
2525         * function.c (expand_function): When processing $(shell...)
2526         translate a CRLF (\r\n) sequence as well as a newline (\n) to a
2527         space.  Also remove an ending \r\n sequence.
2528         * make.texinfo (Shell Function): Document it.
2530 Fri Aug 29 12:59:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2532         * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
2533         paths which contain single character entries like `.' are not
2534         handled correctly.
2536         * README.W32: Document path handling issues on Windows systems.
2538 Fri Aug 29 02:01:27 1997  Paul D. Smith  <psmith@baynetworks.com>
2540         * Version 3.75.93.
2542 Thu Aug 28 19:39:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2544         * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
2545         from main() to re-exec make, the call to execvp() would
2546         incorrectly return control to parent shell before the exec'ed
2547         command could run to completion. I believe this is a feature of
2548         the way that execvp() is implemented on top of WINDOWS32 APIs. To
2549         alleviate the problem, use the supplied process launch function in
2550         the sub_proc library and suspend the parent process until the
2551         child process has run.  When the child exits, exit the parent make
2552         with the exit code of the child make.
2554 Thu Aug 28 17:04:47 1997  Paul D. Smith  <psmith@baynetworks.com>
2556         * Makefile.DOS.template (distdir): Fix a line that got wrapped in
2557         email.
2559         * Makefile.am (loadavg): Give the necessary cmdline options when
2560         linking loadavg.
2562         * configure.in: Check for pstat_getdynamic for getloadvg on HP.
2564         * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
2565         command optimization on these systems; it doesn't make sense.
2567 Wed Aug 27 17:09:32 1997  Paul D. Smith  <psmith@baynetworks.com>
2569         * Version 3.75.92
2571 Tue Aug 26 11:59:15 1997  Paul D. Smith  <psmith@baynetworks.com>
2573         * main.c (print_version): Add '97 to copyright years.
2575         * read.c (do_define): Check the length of the array before looking
2576         at a particular offset.
2578         * job.c (construct_command_argv_internal): Examine the last byte
2579         of the previous arg, not the byte after that.
2581 Sat Aug 23 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2583         * Makefile.DOS.template: New file (converted to Makefile.DOS in
2584         the distribution).
2586         * configure.bat: Rewrite to use Makefile.DOS instead of editing
2587         Makefile.in.  Add support for building from outside of the source
2588         directory.  Fail if the environment block is too small.
2590         * configh.dos: Use <sys/config.h>.
2592         * README.DOS: Update instructions.
2594 Fri Aug 22 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2596         * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
2597         literally, use value of unixy_shell instead.
2599         * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
2600         time_t is unsigned.
2602 Sat Aug 16 00:56:15 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2604         * vmsify.c (vmsify, case 11): After translating `..' elements, set
2605         nstate to N_OPEN if there are still more elements to process.
2606         (vmsify, case 2): After translating `foo/bar' up to the slash,
2607         set nstate to N_OPEN, not N_DOT.
2609 Fri Aug  8 15:18:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2611         * dir.c (vmsstat_dir): Leave name unmodified on exit.
2612         * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
2613         * vpath.c: Fix comments to refer to path separator, not colon.
2614         (selective_vpath_search): Avoid Unixy slash handling for VMS.
2616 Thu Aug  7 22:24:03 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
2618         * ar.c [VMS]: Don't declare ar_member_touch.
2619         Delete VMS version of ar_member_date.
2620         Enable non-VMS versions of ar_member_date and ar_member_date_1 for
2621         VMS too.
2622         * arscan.c (VMS_get_member_info): New function.
2623         (ar_scan): Provide version for VMS systems.
2624         (ar_name_equal): Simply compare name and mem on VMS systems.
2625         Don't define ar_member_pos or ar_member_touch on VMS systems.
2627         * config.h-vms (pid_t, uid_t): Don't define.
2629         * remake.c: Delete declaration of vms_stat.
2630         (name_mtime): Don't call vms_stat.
2631         (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2633         * file.c (print_file): [VMS] Use ctime, not cvt_time.
2635         * make.h [VMS]: Don't define POSIX.
2637         * makefile.com (filelist): Include ar and arscan.
2638         Also include them in the link commands.
2639         Don't define NO_ARCHIVES in cc command.
2641         * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2642         (defines): Delete NO_ARCHIVES from list.
2644         * remake.c (f_mtime): Only check to see if intermediate file is
2645         out of date if it also exists (i.e., mtime != (time_t) -1).
2647         * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2649 Fri Jun 20 23:02:07 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2651         * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2652         (#!/bin/sh) in script files correctly.
2653         Fixed a couple of memory leaks.
2654         Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2655         files with extensions are preferred over files without extensions.
2656         Added search for files with .cmd extension too.
2657         * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2659 Mon Aug 18 09:41:08 1997  Paul D. Smith  <psmith@baynetworks.com>
2661         * Version 3.75.91
2663 Fri Aug 15 13:50:54 1997  Paul D. Smith  <psmith@baynetworks.com>
2665         * read.c (do_define): Remember to count the newline after the endef.
2667 Thu Aug 14 23:14:37 1997  Paul D. Smith  <psmith@baynetworks.com>
2669         * many: Rewrote builds to use Automake 1.2.
2671         * AUTHORS: New file.
2672         * maintMakefile: Contains maintainer-only make snippets.
2673         * GNUmakefile: This now only runs the initial auto* tools.
2674         * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2675         automatically by automake).
2676         * compatMakefile: Removed (not needed anymore).
2677         * README,build.sh.in: Removed (built from templates).
2678         * config.h.in,Makefile.in: Removed (built by tools).
2680 Wed Aug 13 02:22:08 1997  Paul D. Smith  <psmith@baynetworks.com>
2682         * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2683         * README,README.DOS: Ditto.
2685         * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2686         * vpath.c (gpath_search): Ditto.
2688         * file.c (rename_file): New function: rehash, but also rename to
2689         the hashname.
2690         * filedef.h: Declare it.
2692         * variable.c (merge_variable_set_lists): Remove free() of variable
2693         set; since various files can share variable sets we don't want to
2694         free them here.
2696 Tue Aug 12 10:51:54 1997  Paul D. Smith  <psmith@baynetworks.com>
2698         * configure.in: Require autoconf 2.12
2700         * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
2701         more stylistically correct "cd subdir && $(MAKE)".
2703         * main.c: Global variable `clock_skew_detected' defined.
2704         (main): Print final warning if it's set.
2705         * make.h: Declare it.
2706         * remake.c (f_mtime): Test and set it.
2708         * job.c (start_job_command): Add special optimizations for
2709         "do-nothing" rules, containing just the shell no-op ":".  This is
2710         useful for timestamp files and can make a real difference if you
2711         have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
2713         * configure.in,Makefile.in: Rewrote to use the new autoconf
2714         program_transform_name macro.
2716         * function.c (function_strip): Strip newlines as well as spaces
2717         and TABs.
2719 Fri Jun  6 23:41:04 1997  Rob Tulloh <rob_tulloh@tivoli.com>
2721         * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
2722         even seconds when stored, so if the date check fails on WINDOWS32
2723          systems, see if this "off-by-one" error is the problem.
2725         * General: If your TZ environment variable is not set correctly
2726         then all your timestamps will be off by hours.  So, set it!
2728 Mon Apr  7 02:06:22 1997  Paul D. Smith  <psmith@baynetworks.com>
2730         * Version 3.75.1
2732         * compatMakefile (objs): Define & use the $(GLOB) variable so
2733         that it's removed correctly from build.sh.in when it's built.
2735         * configure.in: On Solaris we can use the kstat_*() functions to
2736         get load averages without needing special permissions.  Add a
2737         check for -lkstat to see if we have it.
2739         * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
2740         the test to enable kstat_open(), etc. processing.
2742 Fri Apr  4 20:21:18 1997  Eli Zaretskii  <eliz@is.elta.co.il>
2744         * <lots>: Fixes to work in the DJGPP DOS environment.
2746 Mon Mar 31 02:42:52 1997  Paul D. Smith  <psmith@baynetworks.com>
2748         * function.c (expand_function): Added new function $(wordlist).
2750         * make.texinfo (Filename Functions): Document $(wordlist) function.
2752         * vpath.c (build_vpath_lists): Construct the GPATH variable
2753         information in the same manner we used to construct VPATH.
2754         (gpath_search): New function to search GPATH.
2756         * make.h: Declare the new function.
2758         * remake.c (update_file_1): Call it, and keep VPATH if it's found.
2760         * make.texinfo (Search Algorithm): Document GPATH variable.
2762 Sun Mar 30 20:57:16 1997  Paul D. Smith  <psmith@baynetworks.com>
2764         * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
2765         variable to contain the user options passed in on the cmd line.
2767         * make.texinfo (Goals): Document MAKECMDGOALS variable.
2769         * remake.c (f_mtime): Print a warning if we detect a clock skew
2770         error, rather than failing.
2772         * main.c (main): If we rebuild any makefiles and need to re-exec,
2773         add "-o<mkfile>" options for each makefile rebuilt to avoid
2774         infinite looping.
2776 Fri Mar 28 15:26:05 1997  Paul D. Smith  <psmith@baynetworks.com>
2778         * job.c (construct_command_argv_internal): Track whether the last
2779         arg in the cmd string was empty or not (Roland).
2780         (construct_command_argv_internal): If the shell line is empty,
2781         don't do anything (Roland).
2783         * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
2784         the latest changes from the GLIBC version of glob (Ulrich Drepper).
2786         * getloadavg.c,make-stds.texi: New version (Roland).
2788         * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
2790 Mon Mar 24 15:33:34 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
2792         * README.W32: Describe preliminary FAT support.
2794         * build_w32.bat: Use a variable for the final exe name.
2796         * dir.c (find_directory): W32: Find the filesystem type.
2797         (dir_contents_file_exists_p): W32: for FAT filesystems, always
2798         rehash since FAT doesn't change directory mtime on change.
2800         * main.c (handle_runtime_exceptions): W32: Add an
2801         UnhandledExceptionFilter so that when make bombs due to ^C or a
2802         bug, it won't cause a GUI requestor to pop up unless debug is
2803         turned on.
2804         (main): Call it.
2806 Mon Mar 24 00:57:34 1997  Paul D. Smith  <psmith@baynetworks.com>
2808         * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
2809         Check for memmove() function.
2811         * make.h (bcopy): If memmove() available, define bcopy() to use it.
2812         Otherwise just use bcopy().  Don't use memcpy(); it's not guaranteed
2813         to handle overlapping moves.
2815         * read.c (read_makefile): Fix some uninitialized memory reads
2816         (reported by Purify).
2818         * job.c (construct_command_argv_internal): Use bcopy() not
2819         strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
2821         * Makefile.in: Change install-info option ``--infodir'' to
2822         ``--info-dir'' for use with new texinfo.
2824         * function.c (expand_function): $(basename) and $(suffix) should
2825         only search for suffixes as far back as the last directory (e.g.,
2826         only the final filename in the path).
2828 Sun Mar 23 00:13:05 1997  Paul D. Smith  <psmith@baynetworks.com>
2830         * make.texinfo: Add @dircategory/@direntry information.
2831         (Top): Remove previous reference to (dir) (from RMS).
2832         (Static Usage): Add "all:" rule to example.
2833         (Automatic Dependencies): fix .d file creation example.
2835         * Install VPATH+ patch:
2837         * filedef.h (struct file): Add in hname field to store the hashed
2838         filename, and a flag to remember if we're using the vpath filename
2839         or not.  Renamed a few functions for more clarity.
2841         * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
2842         in the hash table based on their "hash name".  We can change this
2843         while keeping the original target in "name".
2844         (rehash_file): Renamed from "rename_file" to be more accurate.
2845         Changes the hash name, but not the target name.
2847         * remake.c (update_file_1): Modify -d output for more detailed
2848         VPATH info.  If we don't need to rebuild, use the VPATH name.
2849         (f_mtime): Don't search for vpath if we're ignoring it.  Call
2850         renamed function rehash_file.  Call name_mtime instead of
2851         file_mtime, to avoid infinite recursion since the file wasn't
2852         actually renamed.
2854         * implicit.c (pattern_search): if we find an implicit file in
2855         VPATH, save the original name not the VPATH name.
2857         * make.texinfo (Directory Search): Add a section on the new VPATH
2858         functionality.
2860 Sun Dec  1 18:36:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2862         * dir.c (file_exists_p, file_impossible, file_impossible_p): If
2863         dirname is empty replace it by the name of the root directory.
2864         Note that this doesn't work (yet) for W32, Amiga, or VMS.
2866 Tue Oct 08 13:57:03 1996  Rob Tulloh  <tulloh@tivoli.com>
2868         * main.c (main): W32 bug fix for PATH vars.
2870 Tue Sep 17 1996  Paul Eggert  <eggert@twinsun.com>
2872         * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
2873         32-bit quantity.
2875         * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
2876         INTEGER_TYPE_MINIMUM): New macros.
2878 Tue Aug 27 01:06:34 1996  Roland McGrath  <roland@baalperazim.frob.com>
2880         * Version 3.75 released.
2882         * main.c (print_version): Print out bug-reporting address.
2884 Mon Aug 26 19:55:47 1996  Roland McGrath  <roland@baalperazim.frob.com>
2886         * main.c (print_data_base): Don't declare ctime; headers do it for us
2887         already.
2889 Sun Jul 28 15:37:09 1996  Rob Tulloh (tulloh@tivoli.com)
2891         * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
2892         real function. This was done so that VPATH could contain
2893         white space separated pathnames. Please note that directory
2894         paths (in VPATH/vpath context) containing white space are not
2895         supported (just as they are not under Unix). See README.W32
2896         for suggestions.
2898         * w32/include/pathstuff.h: Added prototype for the new
2899         function convert_vpath_to_w32. Deleted macro for same.
2901         * README.W32: Added some notes about why I chose not to try
2902         and support pathnames which contain white space and some
2903         workaround suggestions.
2905 Thu Jul 25 19:53:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2907         * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
2909         * Version 3.74.7.
2911         * main.c (define_makeflags): Back up P to point at null terminator
2912         when killing final space and dash before setting MFLAGS.
2914         From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
2915         * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
2916         `__opendir_flags' initialized to 0.
2917         (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
2918         (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
2919         __opendir_flags to __OPENDIR_PRESERVE_CASE.
2921         * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
2923         * GNUmakefile (w32files): Add NMakefile.
2925         * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
2927 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
2929         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
2930         modtime check.
2931         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
2933 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2935         * configure.in: Require autoconf 2.10 or later.
2937 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2939         * Version 3.74.6.
2941         * GNUmakefile (w32files): New variable.
2942         (distfiles): Add it.
2943         * w32: Updated by Rob Tulloh.
2945         * makefile.vms (LOADLIBES): Fix typo.
2947 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2949         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
2951         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
2953         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
2955         * Version 3.74.5.
2957         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
2959 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2961         * configure.in: Don't check for _sys_siglist.
2962         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
2963         no strsignal or sys_siglist.
2965         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
2966         same as `ifeq (a, b)'.
2968         * job.c (reap_children): Don't call die if handling_fatal_signal.
2970         * file.c (file_hash_enter): Allow renaming :: to : when latter is
2971         non-target, or : to :: when former is non-target.
2973         * job.c (start_job_command): Call block_sigs.
2974         (block_sigs): New function, broken out of start_job_command.
2975         (reap_children): Block fatal signals around removing dead child from
2976         chain and adjusting job_slots_used.
2977         * job.h: Declare block_sigs.
2979         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
2980         * main.c (main): Call remote_setup.
2981         (die): Call remote_cleanup.
2983         * job.c (reap_children): Quiescent value of shell_function_pid is
2984         zero, not -1.
2986         * main.c (print_version): Add 96 to copyright years.
2988 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2990         * read.c (find_char_unquote): Avoid calling strlen on every call
2991         just to throw away the value most of the time.
2993 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2995         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
2996         no '=', regardless of ARGC.
2997         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
2998         word is short option, regardless of WORDS.
3000 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3002         * makefile.vms: Set LOADLIBES.
3003         * makefile.com (link_using_library): Fix typo.
3005 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3007         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
3008         long.
3010 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
3012         * dir.c: W32 does not support inode. For now, fully qualified
3013         pathname along with st_mtime will be keys for files.
3014         Fixed problem where vpath can be confused when files
3015         are added to a directory after the directory has already been
3016         read in. The code now attempts to reread the directory if it
3017         discovers that the datestamp on the directory has changed since
3018         it was cached by make. This problem only seems to occur on W32
3019         right now so it is lumped under port #ifdef WINDOWS32.
3021         * function.c: W32: call subproc library (CreateProcess()) instead of
3022         fork/exec.
3024         * job.c: W32: Added the code to do fork/exec/waitpid style processing
3025         on W32 systems via calls to subproc library.
3027         * main.c: W32: Several things added here. First, there is code
3028         for dealing with PATH and SHELL defaults. Make tries to figure
3029         out if the user has %PATH% set in the environment and sets it to
3030         %Path% if it is not set already. Make also looks to see if sh.exe
3031         is anywhere to be found. Code path through job.c will change
3032         based on existence of a working Bourne shell. The checking for
3033         default shell is done twice: once before makefiles are read in
3034         and again after. Fall back to MSDOS style execution mode if no sh.exe
3035         is found. Also added some debug support that allows user to pause make
3036         with -D switch and attach a debugger. This is especially useful for
3037         debugging recursive calls to make where problems appear only in the
3038         sub-make.
3040         * make.h: W32: A few macros and header files for W32 support.
3042         * misc.c: W32: Added a function end_of_token_w32() to assist
3043         in parsing code in read.c.
3045         * read.c: W32: Fixes similar to MSDOS which allow colon to
3046         appear in filenames. Use of colon in filenames would otherwise
3047         confuse make.
3049         * remake.c: W32: Added include of io.h to eliminate compiler
3050         warnings. Added some code to default LIBDIR if it is not set
3051         on W32.
3053         * variable.c: W32: Added support for detecting Path/PATH
3054         and converting them to semicolon separated lists for make's
3055         internal use. New function sync_Path_environment()
3056         which is called in job.c and function.c before creating a new
3057         process. Caller must set Path in environment since we don't
3058         have fork() to do this for us.
3060         * vpath.c: W32: Added detection for filenames containing
3061         forward or backward slashes.
3063         * NMakefile: W32: Visual C compatible makefile for use with nmake.
3064         Use this to build GNU make the first time on Windows NT or Windows 95.
3066         * README.W32: W32: Contains some helpful notes.
3068         * build_w32.bat: W32: If you don't like nmake, use this the first
3069         time you build GNU make on Windows NT or Windows 95.
3071         * config.h.W32: W32 version of config.h
3073         * subproc.bat: W32: A bat file used to build the
3074         subproc library from the top-level NMakefile. Needed because
3075         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
3077         * w32/include/dirent.h
3078         * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
3080         * w32/include/pathstuff.h: W32: used by files needed functions
3081         defined in pathstuff.c (prototypes).
3083         * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
3085         * w32/include/w32err.h: W32: prototypes for w32err.c.
3087         * w32/pathstuff.c: W32: File and Path/Path conversion functions.
3089         * w32/subproc/build.bat: W32: build script for subproc library
3090         if you don't wish to use nmake.
3092         * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
3093         with nmake. Used to build subproc library.
3095         * w32/subproc/misc.c: W32: subproc library support code
3096         * w32/subproc/proc.h: W32: subproc library support code
3097         * w32/subproc/sub_proc.c: W32: subproc library source code
3098         * w32/subproc/w32err.c: W32: subproc library support code
3100 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3102         * Version 3.74.4.
3104         * GNUmakefile (vmsfiles): Fix typo.
3106         * GNUmakefile (amigafiles): Add amiga.h.
3108 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
3110         * dir.c: New function: amigafy() to fold filenames
3111         Changes HASH() to HASHI() to fold filenames on Amiga.
3112         Stringcompares use strieq() instead of streq()
3113         The current directory on Amiga is "" instead of "."
3114         * file.c: Likewise.
3116         * amiga.c: New function wildcard_expansion(). Allows to use
3117         Amiga wildcards with $(wildcard )
3119         * amiga.h: New file. Prototypes for amiga.c
3121         * function.c: Use special function wildcard_expansion() for
3122         $(wildcard ) to allow Amiga wildcards
3123         The current directory on Amiga is "" instead of "."
3125         * job.c: No Pipes on Amiga, too
3126         (load_too_high) Neither on Amiga
3127         ENV variable on Amiga are in a special directory and are not
3128         passed as third argument to main().
3130         * job.h: No envp on Amiga
3132         * make.h: Added HASHI(). This is the same as HASH() but converts
3133         it's second parameter to lowercase on Amiga to fold filenames.
3135         * main.c: (main), variable.c Changed handling of ENV-vars. Make
3136         stores now the names of the variables only and reads their contents
3137         when they are accessed to reflect that these variables are really
3138         global (ie. they CAN change WHILE make runs !) This handling is
3139         made in lookup_variable()
3141         * Makefile.ami: renamed file.h to filedep.h
3142         Updated dependencies
3144         * read.c: "find_semicolon" is declared as static but never defined.
3145         No difference between Makefile and makefile on Amiga; added
3146         SMakefile to *default_makefiles[].
3147         (read_makefile) SAS/C want's two_colon and pattern_percent be set
3148         before use.
3149         The current directory on Amiga is "" instead of "."
3150         Strange #endif moved.
3152         * README.Amiga: updated feature list
3154         * SMakefile: Updated dependencies
3156         * variable.c: Handling of ENV variable happens inside lookup_variable()
3158 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3160         * variable.c (try_variable_definition): Count parens in lhs variable
3161         refs to avoid seeing =/:=/+= inside a ref.
3163 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3165         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
3166         conditional.
3168         * main.c (main): Use unsigned for fread return.
3170         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
3171         conflict issues.
3172         * dep.h: Fix prototype.
3174         * function.c (expand_function) [_AMIGA]: Fix some typos.
3175         (patsubst_expand): Make len vars unsigned.
3177         * GNUmakefile (globfiles): Add AmigaDOS support files.
3178         (distfiles): Add $(amigafiles).
3179         (amigafiles): New variable.
3181 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
3183         * Added Amiga support in commands.c, dir.c, function.c,
3184         job.c, main.c, make.h, read.c, remake.c
3185         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
3186         * dir.c: Amiga has filenames with Upper- and Lowercase,
3187         but "FileName" is the same as "filename". Added strieq()
3188         which is use to compare filenames. This is like streq()
3189         on all other systems. Also there is no such thing as
3190         "." under AmigaDOS.
3191         * function.c: On Amiga, the environment is not passed as envp,
3192         there are no pipes and Amiga can't fork. Use my own function
3193         to create a new child.
3194         * job.c: default_shell is "" (The system automatically chooses
3195         a shell for me). Have to use the same workaround as MSDOS for
3196         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
3197         known on Amiga. Cloned code to run children from MSDOS. Own
3198         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
3199         * main.c: Force stack to 20000 bytes. Read environment from ENV:
3200         device. On Amiga, exec_command() does return, so I exit()
3201         afterwards.
3202         * make.h: Added strieq() to compare filenames.
3203         * read.c: Amiga needs special extension to have passwd. Only
3204         one include-dir. "Makefile" and "makefile" are the same.
3205         Added "SMakefile".  Added special code to handle device names (xxx:)
3206         and "./" in rules.
3207         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
3208         instead of "lib%s.a".
3209         * main.c, rule.c, variable.c: Avoid floats at all costs.
3210         * vpath.c: Get rid of as many alloca()s as possible.
3212 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3214         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
3216 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3218         * GNUmakefile (vmsfiles): New variable.
3219         (distfiles): Include $(vmsfiles).
3221 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3223         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
3224         * make.h (PARAMS): New macro.
3225         * config.h-vms: New file.
3226         * makefile.com: New file.
3227         * makefile.vms: New file.
3228         * readme.vms: New file.
3229         * vmsdir.h: New file.
3230         * vmsfunctions.c: New file.
3231         * vmsify.c: New file.
3232         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
3233         * ar.c: Added prototypes and changes for VMS.
3234         * commands.c: Likewise.
3235         * commands.h: Likewise.
3236         * default.c: Likewise.
3237         * dep.h: Likewise.
3238         * dir.c: Likewise.
3239         * expand.c: Likewise.
3240         * file.c: Likewise.
3241         * function.c: Likewise.
3242         * implicit.c: Likewise.
3243         * job.c: Likewise.
3244         * job.h: Likewise.
3245         * main.c: Likewise.
3246         * make.h: Likewise.
3247         * misc.c: Likewise.
3248         * read.c: Likewise.
3249         * remake.c: Likewise.
3250         * remote-stub.c: Likewise.
3251         * rule.c: Likewise.
3252         * rule.h: Likewise.
3253         * variable.c: Likewise.
3254         * variable.h: Likewise.
3255         * vpath.c: Likewise.
3256         * compatMakefile (srcs): Rename file.h to filedef.h.
3258 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3260         * remake.c (check_dep): For a secondary file, try implicit and
3261         default rules if appropriate.
3263 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3265         * remake.c (check_dep): If an intermediate file exists,
3266         do consider its actual date.
3268 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
3270         * file.h (struct file): New field `secondary'.
3271         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
3272         (remove_intermediates): Don't delete .SECONDARY files.
3274 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3276         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
3278 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3280         * Version 3.74.3.
3282         * remake.c (f_mtime): Move future modtime check before FILE is
3283         clobbered by :: loop.
3285         * dir.c: Use canonical code from autoconf manual for dirent include.
3286         [_D_NAMLEN]: Redefine NAMLEN using this.
3287         (dir_contents_file_exists_p): Use NAMLEN macro.
3288         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
3290         * compatMakefile (objs): Add missing backslash.
3292 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3294         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
3295         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
3297         * remake.c (f_mtime): Check for future timestamps; give error and mark
3298         file as "failed to update".
3300 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3302         * job.c: Don't declare unblock_sigs; job.h already does.
3304 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3306         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
3308         * job.c (NGROUPS_MAX): Don't try to define this macro.
3310 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3312         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
3313         (objs, srcs): Include their values here instead of references.
3315 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3317         * Version 3.74.2.
3319         * job.c (reap_children): Call unblock_sigs after start_job_command.
3321 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
3323         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
3324         Avoid & before function names to silence bogus sunos4 compiler.
3326         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
3328 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3330         * Version 3.74.1.
3332         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
3333         reallocating it!
3335 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3337         * misc.c (collapse_continuations): Fix skipping of trailing \s so
3338         it can never dereference before the beginning of the array.
3340         * read.c (find_semicolon): Function removed.
3341         (read_makefile): Don't use find_semicolon or remove_comments for
3342         rule lines.  Use find_char_unquote directly and handle quoted comments
3343         properly.
3345         * default.c: Remove all [M_XENIX] code.
3347         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
3348         (D_NAMLEN): Macro removed.
3349         (FAKE_DIR_ENTRY): New macro.
3350         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
3351         D_NAMLEN.
3352         (read_dirstream): Return a struct dirent * for new glob interface.
3353         (init_dir): Function removed.
3354         (dir_setup_glob): New function.
3355         * main.c (main): Don't call init_dir.
3356         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
3357         GLOB_ALTDIRFUNC flag.
3359         * misc.c (safe_stat): Function removed.
3360         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
3361         safe_stat.
3363 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3365         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
3367         * main.c (log_working_directory): Made global.
3368         Print entering msg only once.
3369         * make.h (log_working_directory): Declare it.
3370         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
3371         nonzero.  Call log_working_directory.
3372         * remake.c: Pass new arg in `message' calls.
3373         * job.c (start_job_command): Pass new arg to `message'; fix
3374         inverted test in that call.
3376 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3378         * job.c (start_job_command): Use `message' to print the command,
3379         and call it with null if the command is silent.
3380         * remake.c (touch_file): Use message instead of printf.
3382 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3384         * main.c (enter_command_line_file): Barf if NAME is "".
3386 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
3388         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
3390 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3392         * configure.in: Don't check for getdtablesize.
3393         * job.c (getdtablesize): Remove decls and macros.
3395 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3397         * main.c (define_makeflags): Omit command line variable
3398         definitions from MFLAGS value.
3400         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
3401         indicating a valid, but empty, archive.
3403 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3405         * dir.c (file_impossible_p): Correctly reset FILENAME to name
3406         within directory before hash search.
3408         * job.c (child_error): Do nothing if IGNORED under -s.
3410         * job.c (exec_command): Correctly use ARGV[0] for script name when
3411         running shell directly.
3413 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3415         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
3416         dup'ing from them.  Don't try to close all excess descriptors;
3417         getdtablesize might return a huge value.  Any open descriptors in
3418         the parent should have FD_CLOEXEC set.
3419         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
3421 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3423         * read.c (read_all_makefiles): Properly append default makefiles
3424         to the end of the `read_makefiles' chain.
3426 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3428         * Version 3.74 released.
3430 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3432         * Version 3.73.3.
3434 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3436         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
3437         install-info cmd.
3439 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3441         * file.c (print_file): Grok update_status of 1 for -q.
3443 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3445         * Version 3.73.2.
3447 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3449         * file.c (remove_intermediates): Fix inverted test to bail under
3450         -n for signal case.  Bail under -q or -t.
3451         Skip files with update_status==-1.
3453         * job.c (job_next_command): Skip empty lines.
3454         (new_job): Don't test the return of job_next_command.
3455         Just let start_waiting_job handle the case of empty commands.
3457 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3459         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
3461         * Version 3.73.1.
3463 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3465         * remake.c (notice_finished_file): Set FILE->update_status to zero
3466         if it's -1.
3468 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3470         * Version 3.73 released.
3472 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3474         * main.c (main): Fixed braino in assert.
3476         * Version 3.72.13.
3478 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3480         * main.c: Avoid string in assert expression.  Some systems are broken.
3482 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3484         * main.c (main): Handle 1 and 2 returns from update_goal_chain
3485         makefile run properly.
3487         * Version 3.72.12.
3489         * main.c (handle_non_switch_argument): New function, broken out of
3490         decode_switches.
3491         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
3492         When getopt_long returns EOF, break the loop and handle remaining args
3493         with a simple second loop.
3495         * remake.c (remake_file): Set update_status to 2 instead of 1 for
3496         no rule to make.  Mention parent (dependent) in error message.
3497         (update_file_1): Handle FILE->update_status == 2 in -d printout.
3498         * job.c (start_job_command, reap_children): Set update_status to 2
3499         instead of 1 for failed commands.
3501 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3503         * job.c (search_path): Function removed (was already #if 0'd out).
3504         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
3506 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3508         * configure.bat: Write @CPPFLAGS@ translation.
3510 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3512         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
3513         to not skip the elt immediately preceding `l(...'.
3515 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3517         * Version 3.72.11.
3519         * read.c (find_char_unquote): Make second arg a string of stop
3520         chars instead of a single stop char.  Stop when any char in the
3521         string is hit.  All callers changed.
3522         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
3523         instead of using two calls.  If the match is not a ; but a #,
3524         return zero.
3525         * misc.c: Changed find_char_unquote callers here too.
3527         * Version 3.72.10.
3529         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
3530         __MSDOS__.
3532         * GNUmakefile (globfiles): Add glob/configure.bat.
3533         (distfiles): Add configh.dos, configure.bat.
3535 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3537         Fixes for MS-DOS from DJ Delorie.
3538         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
3539         as separator in "C:\...".
3540         * configh.dos (STDC_HEADERS): Define only if undefined.
3541         (HAVE_SYS_PARAM_H): Don't define this.
3542         (HAVE_STRERROR): Define this.
3543         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
3545         * Version 3.72.9.
3547         * main.c (decode_switches): Reset optind to 1 instead of 0.
3549 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3551         * main.c (decode_switches): If non-option arg is "-", ignore it.
3553 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3555         * Version 3.72.8.
3557 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3559         * Version 3.72.7.
3561 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3563         * main.c (main): Pass missing arg to tmpnam.
3565         * configure.in: Check for strsignal.
3566         * job.c (child_error): Use strsignal.
3567         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
3569         * misc.c (strerror): Fix swapped args in sprintf.
3571 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3573         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
3575 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3577         * main.c (print_version): Add 95 to copyright years.
3579         * Version 3.72.6.
3581         * job.c (start_job_command): Remember to call notice_finished_file
3582         under -n when not recursing.  To do this, consolidate that code
3583         under the empty command case and goto there for the -n case.
3585 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3587         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
3588         declare it int.
3590 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3592         * read.c (read_makefile): For bogus line starting with tab, ignore
3593         it if blank after removing comments.
3595         * main.c: Cast results of `alloca' to `char *'.
3596         * expand.c: Likewise.
3598 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3600         * Version 3.72.5.
3602         * configure.in: Check for mktemp.
3603         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
3605         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
3606         (_SC_OPEN_MAX)'.
3607         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
3608         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
3609         using sysconf.
3611 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3613         * remake.c (update_file_1): When !MUST_MAKE, don't set
3614         FILE->update_status to zero before calling notice_finished_file.
3615         (notice_finished_file): Touch only when FILE->update_status is zero.
3616         (remake_file): Set FILE->update_status to zero after not calling
3617         execute_file_command and deciding to touch instead.
3619 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3621         * main.c (debug_signal_handler): New function; toggles debug_flag.
3622         (main): Handle SIGUSR1 with that.
3624 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3626         * compatMakefile (realclean): Remove Info files.
3628 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3630         * Version 3.72.4.
3632         * job.c (start_job_command): Save and restore environ around vfork
3633         call.
3634         (search_path): Function #if 0'd out.
3635         (exec_command): Use execvp instead of search_path.
3637         * expand.c (variable_expand): Rewrote computed variable name and
3638         substitution reference handling to be simpler.  First expand the
3639         entire text between the parens if it contains any $s, then examine
3640         the result of that for subtitution references and do no further
3641         expansion while parsing them.
3643         * job.c (construct_command_argv_internal): Handle " quoting too,
3644         when no backslash, $ or ` characters appear inside the quotes.
3646         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3647         defined, just use int.
3649 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3651         * default.c (default_variables) [__hpux]: Remove special
3652         definition of ARFLAGS.  Existence of the `f' flag is not
3653         consistent across HPUX versions; and one might be using GNU ar
3654         anyway.
3656         * compatMakefile (clean): Don't remove Info files.
3658         * compatMakefile (check): Remove gratuitous target declaration.
3660 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3662         * compatMakefile (ETAGS, CTAGS): Don't use -t.
3664         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3666         * main.c (decode_switches): For --help, print usage to stdout.
3668 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3670         * Version 3.72.3.
3672         * remake.c (update_file_1): Do set_command_state (FILE,
3673         cs_not_started) only if old state was deps_running.
3675 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3677         * job.c (start_waiting_job): Use set_command_state.
3679         * build.template (CPPFLAGS): New variable.
3680         (prefix, exec_prefix): Set from @...@.
3681         (compilation loop): Pass $CPPFLAGS to compiler.
3683         * GNUmakefile (build.sh.in): Make it executable.
3685         * GNUmakefile (globfiles): Add configure.in, configure.
3687         * Version 3.72.2.
3689         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3691         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3693         * configure.in: Don't check for ranlib.
3695 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3697         * remake.c (notice_finished_file): Only mark also_make's as
3698         updated if really ran cmds.
3700 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3702         * configure.in: Put dnls before random whitespace.
3704 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3706         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
3707         (RANLIB): Variable removed.
3708         (prefix, exec_prefix): Set these from @...@.
3709         (.c.o): Use $(CPPFLAGS).
3710         (glob/libglob.a): Don't pass down variables to sub-make.
3711         glob/Makefile should be configured properly by configure.
3712         (distclean): Remove config.log and config.cache (autoconf stuff).
3714 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3716         * acconfig.h: Add #undef HAVE_UNION_WAIT.
3717         * configure.in: Converted to Autoconf v2.
3718         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
3719         of DIRENT, SYSDIR, NDIR.
3720         * build.sh.in (prefix, exec_prefix): Set these from @...@.
3721         (CPPFLAGS): New variable, set from @CPPFLAGS@.
3722         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
3723         * install.sh: File renamed to install-sh.
3725         * main.c (define_makeflags): When no flags, set WORDS to zero.
3727 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3729         * Version 3.72.1.
3731         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
3732         empty.
3734 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3736         * Version 3.72.
3738 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3740         * Version 3.71.5.
3742         * job.c (start_job_command): When ARGV is nil, only set
3743         update_state and call notice_finished_file if job_next_command
3744         returns zero.
3746         * job.c (start_job_command): Call notice_finished_file for empty
3747         command line.
3749 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3751         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
3752         COMMANDS_NOERROR.
3754 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3756         * Version 3.71.4.
3758 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3760         * file.c (snap_deps): Set command_flags bits in all :: entries.
3762 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3764         * make.h (posix_pedantic): Declare it.
3765         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
3766         snap_deps.
3767         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
3768         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
3769         command_flags and don't set -i.  Likewise .SILENT.
3770         * job.c (start_job_command): In FLAGS initialization, OR in
3771         CHILD->file->command_flags.
3772         * file.h (struct file): New member `command_flags'.
3774 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3776         * main.c (switches): Bump flag values for --no-print-directory and
3777         --warn-undefined-variables, so neither is 1 (which indicates a
3778         nonoption argument).
3780 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3782         * main.c (main): Add missing code in .IGNORE test.
3784 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3786         * variable.c (define_automatic_variables): Define +D and +F.
3788 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3790         * main.c (main): Define hidden automatic variable with command
3791         vars, and MAKEOVERRIDES to a reference to that.
3792         (define_makeflags): If posix_pedantic, write a reference to that
3793         instead.
3795 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3797         * main.c (posix_pedantic): New variable.
3798         (main): Set posix_pedantic if .POSIX is a target.
3799         Fix .IGNORE and .SILENT checks to require is_target.
3801         * commands.c (set_file_variables): Define new automatic variable
3802         $+, like $^ but before calling uniquize_deps.
3804         * job.c (reap_children): Call delete_child_targets for non-signal
3805         error if .DELETE_ON_ERROR is a target.
3807 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3809         * Version 3.71.3.
3811 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3813         * job.c (reap_children): Don't change C->file->command_state when
3814         dying.  Test it only after calling start_job_command for a new
3815         command line.  When no more cmds, just set C->file->update_status.
3816         (start_job_command): When the last line is empty or under -n, set
3817         C->file->update_status.
3818         (start_waiting_job): Grok cs_not_started after start_job_command
3819         as success.
3820         (new_job): Set C->file->update_status when there are no cmds.
3821         (job_next_command): When out of lines, don't set
3822         CHILD->file->update_status or CHILD->file->command_state.
3824         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
3825         if nonzero, also double $s.
3826         (main): Define MAKEOVERRIDES from command_variables here.
3827         (define_makeflags): Don't use command_variables here; instead write a
3828         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
3830         * dir.c [__MSDOS__]: Fixed typo.
3832         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
3834 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3836         * remake.c: Include <assert.h> and use assert instead of printfs
3837         and abort.
3839         * main.c (decode_switches): Loop until optind hits ARGC, not just
3840         until getopt_long returns EOF.  Initialize C to zero before loop;
3841         in loop if C is EOF, set optarg from ARGV[optind++], else call
3842         getopt_long.
3843         (decode_env_switches): Use variable_expand instead of
3844         allocated_variable_expand.  Allocate a fresh buffer to copy split
3845         words into; scan characters by hand to break words and
3846         debackslashify.
3847         (shell_quote): New function.
3848         (define_makeflags): Allocate doubled space for switch args, and command
3849         variable names and values; use shell_quote to quote those things.
3851 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3853         * Version 3.71.2.
3855         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
3857         * main.c (decode_switches): The non-option return from getopt is
3858         1, not 0.
3859         (command_variables): New type and variable.
3860         (decode_switches, decode_env_switches): After making a variable
3861         definition, record the struct variable pointer in the
3862         command_variables chain.
3863         (define_makeflags): If ALL, write variable definitions for
3864         command_variables.
3866         * main.c (other_args): Variable removed.
3867         (goals, lastgoal): New static variables (moved from auto in main).
3868         (main): Don't process OTHER_ARGS at all.
3869         Don't set variable MAKEOVERRIDES at all; define MAKE to just
3870         $(MAKE_COMMAND).
3871         (init_switches): Prepend a - {return in order} instead of a +
3872         {require order}.
3873         (decode_switches): Don't set OTHER_ARGS at all.
3874         Grok '\0' return from getopt_long as non-option argument; try
3875         variable definition and (if !ENV) enter goal targets here.
3876         (decode_env_switches): Use allocated_variable_expand to store value.
3877         Use find_next_token to simplify word-splitting loop.  Don't
3878         prepend a dash to uninterpreted value.  Instead, if split into
3879         only one word, try variable definition and failing that prepend a
3880         dash to the word and pass it to decode_switches as a single arg.
3882 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3884         * remake.c (notice_finished_file): Only recheck modtimes if
3885         FILE->command_state was cs_running on entry (meaning the commands
3886         actually just ran).
3887         (update_file_1): Whenever we set FILE->update_status, call
3888         notice_finished_file instead of just set_command_state.
3889         * job.c (start_job_command): Whenever we set
3890         CHILD->file->update_status, call notice_finished_file instead of
3891         just set_command_state.
3893 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3895         * default.c: Add missing ".
3897         * job.c: Changed all assignments of command_state members to calls
3898         to set_command_state.
3899         * remake.c: Likewise.
3900         * file.c (set_command_state): New function.
3901         * file.h: Declare set_command_state.
3903         * main.c (init_switches): Put a + first in options.
3905 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3907         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
3908         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
3909         * main.c (directory_before_chdir): New variable, moved out of main
3910         (was local).
3911         (main) [__MSDOS__]: Look for \ or : to delimit last component of
3912         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
3913         (die): Change back to `directory_before_chdir' before dying.
3914         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
3915         [__MSDOS__] and not.
3916         * job.c [__MSDOS__]: Include <process.h>.
3917         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
3918         dos_batch_file): New variables.
3919         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
3920         (unblock_sigs) [__MSDOS__]: Do nothing.
3921         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
3922         (load_too_high) [__MSDOS__]: Always return true.
3923         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
3924         Use PATH_SEPARATOR_CHAR instead of ':'.
3925         (construct_command_argv_internal) [__MSDOS__]: Wholly different
3926         values for sh_chars and sh_cmds.  Wholly new code to handle shell
3927         scripts.
3928         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
3929         implementation.
3930         * dir.c [__MSDOS__] (dosify): New function.
3931         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
3932         process the result instead of FILENAME itself.
3933         (file_impossible_p) [__MSDOS__]: Likewise.
3934         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
3935         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
3936         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
3937         `bison -y', and LEX to `flex'.
3938         * configure.bat, configh.dos: New files.
3939         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
3940         intermediates and exit.
3942         * commands.c (set_file_variables): Add parens in length
3943         computation in .SUFFIXES dep loop to quiet compiler warning.  From
3944         Jim Meyering.
3946         * read.c (read_makefile): Free FILENAME if we allocated it.  From
3947         Jim Meyering.
3949 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3951         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
3952         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
3953         * read.c (construct_include_path): Use safe_stat in place of stat.
3954         * job.c (search_path): Use safe_stat in place of stat.
3955         * dir.c (find_directory): Use safe_stat in place of stat.
3956         * commands.c (delete_target): Use safe_stat in place of stat.
3957         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
3958         * remake.c (name_mtime): Use safe_stat in place of stat.
3959         (touch_file) [EINTR]: Do EINTR looping around fstat.
3961 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3963         * read.c (read_makefile): Check for a shell command first, and
3964         then strip leading tabs before further checking if it's not a
3965         shell command line.
3967         * make.h [__arm]: Undefine POSIX.
3968         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
3969         functions that return int.
3971         * job.c (construct_command_argv_internal): After swallowing a
3972         backslash-newline combination, if INSTRING is set goto string_char
3973         (new label) for normal INSTRING handling code.
3975 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3977         * configure.in: Don't check for sys_siglist and _sys_siglist with
3978         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
3980 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3982         * Version 3.71.1 released.
3984         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
3985         _POSIX_VERSION for these declarations.
3987         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
3988         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
3990 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3992         * Version 3.71 released.
3994         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
3995         and [HAVE_SETGID].  Every system has those, and configure doesn't
3996         check for them.
3998         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
4000         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
4001         getloadavg.c.
4002         (loadavg.c): Link or copy it from getloadavg.c.
4003         (distclean): Remove loadavg.c.
4005 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4007         * Version 3.70.4.
4009         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
4010         and HAVE_SETEGID.
4012         * default.c (default_terminal_rules): In SCCS rules, put
4013         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
4014         only before the file name.
4015         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
4017 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4019         * job.c (construct_command_argv_internal): Swallow
4020         backslash-newline combinations inside '' strings too.
4022 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4024         * read.c (do_define): Call collapse_continuations on each line
4025         before all else.
4027 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4029         * job.c (construct_command_argv_internal): Notice newline inside
4030         '' string when RESTP is non-null.
4032 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4034         * Version 3.70.3.
4036         * remake.c (update_goal_chain): Reset FILE to G->file after the
4037         double-colon loop so it is never null for following code.
4039         * read.c (read_makefile): Fix `override define' parsing to skip
4040         whitespace after `define' properly.
4042         * compatMakefile (srcdir): Define as @srcdir@; don't reference
4043         $(VPATH).
4044         (glob/Makefile): New target.
4046 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4048         * Version 3.70.2.
4050         * misc.c (remove_comments): Use find_char_unquote.
4051         * make.h (find_char_unquote): Declare it.
4052         * read.c (find_char_unquote): New function, generalized from
4053         find_percent.
4054         (find_percent, find_semicolon, parse_file_seq): Use that.
4056 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4058         * implicit.c (pattern_search): Always allocate new storage for
4059         FILE->stem.  It is not safe to store STEM's address because it
4060         might be auto storage.
4062         * configure.in: Check for seteuid and setegid.
4063         * misc.c [HAVE_SETEUID]: Declare seteuid.
4064         [HAVE_SETEGID]: Declare setegid.
4065         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
4066         [HAVE_SETEGID]: Use setegid.
4068         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
4069         to preserve whether it's 2 for error or 1 for -q trigger.  When
4070         STATUS gets nonzero and -q is set, always stop immediately.
4071         * main.c (main, decode_switches): Die with 2 for errors.
4072         (main): Accept 2 return from update_goal_chain and die with that.
4073         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
4074         answer.
4075         * job.c (reap_children): Die with 2 for error.
4076         (start_job_command): Set update_status to 2 for error.  Set it to
4077         1 when we would run a command and question_flag is set.
4079         * read.c (read_makefile): Don't mark makefiles as precious.  Just
4080         like other targets, they can be left inconsistent and in need of
4081         remaking by aborted commands.
4083         * read.c (read_makefile): Write no error msg for -include file.
4085 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4087         * commands.c (fatal_error_signal): Don't unblock signals.
4089         * file.h (struct file): Change member `double_colon' from flag to
4090         `struct file *'.
4091         * read.c (record_files): Set double_colon pointer instead of flag.
4092         * main.c (main): When disqualifying makefiles for updating, use
4093         double_colon pointer to find all entries for a file.
4094         * file.c (enter_file): If there is already a double-colon entry
4095         for the file, set NEW->double_colon to that pointer.
4096         (file_hash_enter): Use FILE->double_colon to find all entries to
4097         set name.
4098         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
4099         (update_file): Use FILE->double_colon pointer to find all entries.
4100         (f_mtime): Likewise.
4101         (notice_finished_file): Propagate mtime change to all entries.
4103         * variable.c (try_variable_definition): Return after abort.
4105 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4107         * read.c (read_makefile): Remove unused variable.
4108         (parse_file_seq): When removing an elt that is just `)', properly
4109         fix up the previous elt's next pointer.
4111 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4113         * configure.in: Do AC_SET_MAKE.
4114         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
4116 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4118         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
4119         the search string is the empty string, find a match at the end of
4120         each word (using end_of_token in place of sindex).
4122         * misc.c (end_of_token): Don't treat backslashes specially; you
4123         can no longer escape blanks with backslashes in export, unexport,
4124         and vpath.  This was never documented anyway.
4126 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4128         * read.c (read_makefile): Variable name for `define' is not just
4129         first token; use whole rest of line and strip trailing blanks.
4131 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4133         * Version 3.70.1.
4135         * read.c (read_makefile): Add -d msg stating args.
4137         * read.c (read_makefile): Use isspace to skip over leading
4138         whitespace, and explicitly avoid skipping over tabs.  Don't want
4139         to skip just spaces though; formfeeds et al should be skipped.
4141         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
4143         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
4144         sizeof ar_name for max length to compare.
4146         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
4147         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
4149         * main.c (main): Call user_access after setting `program', in case
4150         it needs to use it in an error message.
4152         * read.c (read_makefile): Ignore an empty line starting with a tab.
4154 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4156         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
4157         AC_COMPILE_CHECK that is now its contents.
4159 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4161         * make.h: #undef strerror after #include <string.h>.
4162         [! ANSI_STRING]: Declare strerror.
4164 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4166         * misc.c (strerror): #undef any macro before function definition.
4168 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4170         * variable.c (try_variable_definition): Calculate BEG before loop
4171         to strip blanks by decrementing END.  Don't decr END to before BEG.
4173         * read.c (read_makefile): Skip over leading space characters, but
4174         not tabs, after removing continuations and comments (it used to
4175         use isspace).
4177 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4179         * variable.c (define_automatic_variables): In $(@D) et al, use
4180         patsubst to remove trailing slash.
4182         * commands.c (delete_target): New function, broken out of
4183         delete_child_targets.  Check for archive members and give special msg.
4184         (delete_child_targets): Use delete_target.
4186 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4188         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
4189         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
4191 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4193         * GNUmakefile (tarfiles): Omit make-doc.
4194         (make-$(version).tar): Include make.info*.
4196 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4198         * compatMakefile (configure, config.h.in): Comment out rules.
4200 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4202         * compatMakefile (binprefix, manprefix): New variables.
4203         (instname): Variable removed.
4204         (install): Use $({bin,man}prefix)make in place of $(instname).
4205         File targets likewised renamed.
4207 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4209         * Version 3.70 released.
4211 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4213         * Version 3.69.3.
4215         * read.c (parse_file_seq): Inside multi-word archive ref
4216         translation loop, check NEW1==0 at end and break out of the loop.
4218         * GNUmakefile (make-$(version).tar): Distribute install.sh.
4219         * install.sh: New file.
4221         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
4222         cmds outside subshell parens, to avoid "command not found" msgs
4223         from the shell.
4225 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4227         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
4228         Redirect output & error from get to /dev/null.
4229         Fix reversed sense of test.
4231 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4233         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
4234         braces inside if condition command; some shells lose.
4236 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4238         * Version 3.69.2.
4240         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
4241         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
4243         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
4245 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4247         * main.c (main): Cast result of pointer arith to unsigned int
4248         before passing to define_variable for envars.  Matters when
4249         sizeof(unsigned)!=sizeof(ptrdiff_t).
4251 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4253         * configure.in: Add new check for SCCS_GET_MINUS_G.
4254         * config.h.in: Add #undef SCCS_GET_MINUS_G.
4255         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
4256         place of `-G $@' in SCCS commands.
4257         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
4258         to "-G$@".
4260         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
4261         (so it goes in config.status), rather than afterward.
4263         * ar.c (ar_member_date): Don't call enter_file on the archive file
4264         if it doesn't exist (by file_exists_p).
4266         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
4267         with `$$dir/make.info' in install-info invocation (oops).
4269         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
4270         we do not unlink and free PATH.
4272         * file.c (print_file_data_base): Fix inverted calculation for
4273         average files per hash bucket.
4275         * read.c (readline): When we see a NUL, give only a warning and
4276         synthesize a newline to terminate the building line (used to
4277         fatal).  Move fgets call into the loop condition, and after the
4278         loop test ferror (used to test !feof in the loop).
4280 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4282         * configure.in: Check for strerror in AC_HAVE_FUNCS.
4284 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4286         Differentiate different flavors of missing makefile error msgs,
4287         removing gratuitous `fopen: ' and giving caller for included makefiles.
4288         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
4289         (perror_with_name, pfatal_with_name): Use strerror instead of
4290         replicating its functionality.
4291         * read.c (read_makefile): Return int instead of void.
4292         (read_all_makefiles, read_makefile): Change callers to notice zero
4293         return and give error msg.
4295 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4297         * Version 3.69.1.
4299         * default.c: Put `-G $@' before $< in SCCS cmds.
4301 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4303         * read.c (read_makefile): After trying a variable defn, notice if
4304         the line begins with a tab, and diagnose an error.
4306 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4308         * Version 3.69.
4310 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4312         * Version 3.68.10.
4314         * implicit.c (try_implicit_rule): Look for a normal rule before an
4315         archive rule.
4317 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4319         * function.c (expand_function: `sort'): Double NWORDS when it
4320         overflows, instead of adding five.
4322         * compatMakefile (clean): Remove loadavg.
4324 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4326         * Version 3.68.9.
4328         * file.h (NEW_MTIME): Define new macro.
4329         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
4330         current time returned from system.  Removed variable NOW.
4331         * remake.c (notice_finished_file): Use NEW_MTIME in place of
4332         current time here too.
4334 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4336         * Version 3.68.8.
4338         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
4339         cmds and !DEPS_CHANGED unless also !NOEXIST.
4341 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4343         * read.c (parse_file_seq): When converting multi-word archive
4344         refs, ignore a word beginning with a '('.
4346 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4348         * configure.in: Check for sys/timeb.h.
4349         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
4351 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4353         * Version 3.68.7.
4355         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
4356         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
4357         TARGNAME to initialize PERCENTS[0].
4359 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4361         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4362         Remove AC_USG; it is no longer used.
4364         * file.c (print_file): New function, broken out of
4365         print_file_data_base.
4366         (print_file_data_base): Call it.
4367         * rule.c (print_rule): New function, broken out of
4368         print_rule_data_base.
4369         (print_rule_data_base): Call it.
4371 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4373         * default.c (install_default_suffix_rules): New function, broken
4374         out of install_default_implicit_rules.
4375         (install_default_implicit_rules): Move suffix rule code there.
4376         * make.h: Declare install_default_suffix_rules.
4377         * main.c (main): Call install_default_suffix_rules before reading
4378         makefiles.  Move convert_to_pattern call before
4379         install_default_implicit_rules.
4381         * job.h (struct child): Make `pid' member type `pid_t' instead of
4382         `int'.
4384         * compatMakefile (RANLIB): New variable, set by configure.
4385         (glob/libglob.a): Pass RANLIB value down to submake.
4387         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
4388         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
4389         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
4390         defined but NOFILES_MAX is, define it to be that.
4392 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4394         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
4395         is distributed.
4397 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4399         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
4401 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4403         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
4404         is another symbol for | in some shells.
4405         * main.c (main): Add it to CMD_DEFS quoting list as well.
4407 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4409         * job.c (construct_command_argv_internal): Remove '=' from
4410         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
4411         first word without an unquoted '='.
4413         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
4415 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4417         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
4419         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
4421         * commands.c (delete_child_targets): Don't delete phony files.
4423         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
4424         see a `+' at the beginning of the command line.
4426 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4428         * Version 3.68.6.
4430 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4432         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
4434 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4436         * expand.c (variable_expand): Fatal on an unterminated reference.
4438 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4440         * Version 3.68.5.
4442         * variable.c (define_automatic_variables): Define new o_default
4443         variable `MAKE_VERSION' from version_string and remote_description.
4445         * make.h (version_string, remote_description): Declare these here.
4446         * main.c: Don't declare version_string.
4447         (print_version): Don't declare remote_description.
4449 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4451         * read.c (read_makefile): Free space pointed to by CONDITIONALS
4452         before restoring the old pointer.
4454 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4456         * compatMakefile ($(objs)): Depend on config.h.
4458         * GNUmakefile (build.sh.in): Depend on compatMakefile.
4460         * configure.in: Touch stamp-config after AC_OUTPUT.
4462 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4464         * Version 3.68.4.
4466 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4468         * make.h: Include <config.h> instead of "config.h".
4470 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4472         * main.c (main): Make all variables interned from ENVP be v_export.
4473         * variable.c (try_variable_definition): In v_default case, don't
4474         check for an o_file variable that `getenv' finds.
4476         * job.c (reap_children): New local variable ANY_LOCAL; set it
4477         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
4479         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
4481         * function.c (expand_function): #if 0 out freeing of ENVP since it
4482         is environ.
4484 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4486         * Version 3.68.3.
4488         * remote-stub.c (remote_status): Set errno to ECHILD before return.
4489         * job.c (reap_children): Scan the chain for remote children and
4490         never call remote_status if there are none.
4492         * function.c (expand_function: `shell'): #if 0 out calling
4493         target_environment; just set ENVP to environ instead.
4495         * job.c (reap_children): Check for negative return from
4496         remote_status and fatal for it.
4497         When blocking local child wait returns 0, then try a blocking call
4498         to remote_status.
4500 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4502         * compatMakefile (clean): Delete make.info* and make.dvi here.
4503         (distclean): Not here.
4505         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
4506         compilers that don't like enum values used as ints.
4508 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4510         * compatMakefile (loadavg): Add $(LOADLIBES).
4512 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4514         * Version 3.68.2.
4516         * compatMakefile (loadavg, check-loadavg): New targets.
4517         (check): Depend on check-loadavg.
4519         * compatMakefile (glob/libglob.a): Depend on config.h.
4521         * misc.c (log_access): Write to stderr instead of stdout.
4523 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4525         * Version 3.68.1.
4527 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4529         * configure.in (SYS_SIGLIST_DECLARED): In test program include
4530         <unistd.h> #ifdef HAVE_UNISTD_H.
4532         * compatMakefile (.PHONY): Put after `all' et al.
4534         * configure.in: Add AC_IRIX_SUN.
4536 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4538         * Version 3.68.
4540 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4542         * Version 3.67.8.
4544 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4546         * Version 3.67.7.
4548         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
4549         Run install-info script if present.
4551 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4553         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
4555         * configure.in: Add AC_STAT_MACROS_BROKEN.
4557 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4559         * Version 3.67.6.
4561         * read.c (read_makefile): Recognize directive `-include', like
4562         `include' but sets RM_DONTCARE flag.
4564         * variable.c (target_environment): If FILE is nil, use
4565         current_variable_set_list in place of FILE->variables.
4566         * function.c (expand_function: `shell'): Get an environment for
4567         the child from target_environment instead of using environ.
4569         * dep.h: Declare read_all_makefiles here.
4570         (RM_*): Define new enum constants.
4571         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
4572         Treat it as a bit mask containing RM_*.
4573         (read_all_makefiles): For default makefiles, set D->changed to
4574         RM_DONTCARE instead of 1.
4575         * main.c: Don't declare read_all_makefiles here.
4576         (main): Check `changed' member of read_makefiles elts for RM_*
4577         flags instead of specific integer values.
4579 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4581         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
4583 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4585         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
4586         as well as VPATH.
4587         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
4588         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
4590         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
4591         PERCENTS, whose storage is not consumed by create_pattern_rule.
4593         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
4595 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4597         * Version 3.67.5.
4599         * rule.c (max_pattern_targets): New variable.
4600         (count_implicit_rule_limits): Compute its value.
4601         * rule.h: Declare it.
4602         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
4603         times bigger.  Move adding new TRYRULES elt inside the inner
4604         targets loop, so each matching target gets its own elt in MATCHES
4605         and CHECKED_LASTSLASH.
4607         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
4608         instead of just `file' in error msg.
4610 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4612         * job.c (construct_command_argv): Turn off
4613         --warn-undefined-variables around expansion of SHELL and IFS.
4614         * read.c (tilde_expand): Likewise for HOME.
4615         (read_all_makefiles): Likewise for MAKEFILES.
4616         * vpath.c (build_vpath_lists): Likewise for VPATH.
4618         * main.c (warn_undefined_variables_flag): New flag variable.
4619         (switches): Add --warn-undefined-variables.
4620         * make.h (warn_undefined_variables_flag): Declare it.
4621         * expand.c (warn_undefined): New function.
4622         (reference_variable): Call it if the variable is undefined.
4623         (variable_expand): In substitution ref, call warn_undefined if the
4624         variable is undefined.
4626         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
4627         `%.tex: %.w %.ch' rules.
4628         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
4629         (default_suffixes): Add `.ch'.
4631 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4633         * default.c (default_suffixes): Replace `.cweb' with `.w'.
4634         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4635         and `.w.tex'.
4637 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4639         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4641 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4643         * Version 3.67.4.
4645         * read.c (multi_glob): Don't free OLD and OLD->name in the
4646         FOUND!=0 fork.  Use new block-local variable F instead of
4647         clobbering OLD.
4649         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4650         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4651         contains no metacharacters.
4653 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4655         * ar.c (ar_glob{_match,_alphacompare}): New function.
4657         * dep.h [! NO_ARCHIVES]: Declare it.
4658         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4660         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4661         multi_glob (which doesn't take a 3rd arg).
4662         * rule.c (install_pattern_rule): Likewise.
4663         * default.c (set_default_suffixes): Here too.
4664         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4666         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4667         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4669 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4671         * compatMakefile (installdirs): Actually pass directory names.
4672         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4673         if it fails, echo a warning msg, but don't make the rule fail.
4675         * read.c (tilde_expand): New function, broken out of tilde_expand.
4676         (multi_glob): Call it.
4677         (construct_include_path): Expand ~ in directory names.
4678         * dep.h: Declare tilde_expand.
4679         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4680         (main): Expand ~ in -C args.
4681         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4683 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4685         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4687         * main.c (main): Put result of alloca in temporary variable with
4688         simple assignment, to make SGI compiler happy.
4690 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4692         * Version 3.67.3.
4694         * main.c (main): Before re-execing, remove intermediate files, and
4695         print the data base under -p.  Sexier debugging message.
4697         * implicit.c (pattern_search): Allocate an extra copy of the name
4698         of a winning intermediate file when putting it in FOUND_FILES.
4700 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4702         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4703         multi_glob (which doesn't take a 3rd arg).
4705         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
4706         chars within D_NAMLEN that are NULs.
4708         * main.c (decode_switches): Don't savestring ARGV[0] to put it
4709         into `other_args'.
4710         For string switch, don't savestring `optarg'.
4711         (main): Don't free elts of makefiles->list that are "-".
4712         Use alloca'd rather than savestring'd storage for elts of
4713         makefiles->list that are temporary file names.
4714         * read.c (read_all_makefiles): Don't free *MAKEFILES.
4715         * file.c (enter_file): Don't strip `./'s.
4716         * main.c (enter_command_line_file): New function.
4717         (main): Use it in place of enter_file for command-line goals from
4718         other_files, and for old_files and new_files.
4720 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4722         * Version 3.67.2.
4724         * compatMakefile (.SUFFIXES): Add .info.
4725         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
4726         else in $srcdir.  Use basename to remove dir name from installed name.
4728 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4730         * implicit.c (pattern_search): When interning FOUND_FILES, try
4731         lookup_file first; if found, free the storage for our copy of the name.
4733 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4735         * Version 3.67.1.
4737         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
4738         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
4740 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4742         * rule.c (convert_suffix_rule): New function.
4743         (convert_to_pattern): Use it instead of doing all the work here
4744         several times.
4745         For target suffix `.a', generate both the archive magic rule and
4746         the normal rule.
4748         * compatMakefile (distclean): Remove stamp-config.
4750 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4752         * Version 3.67.
4754         * file.c (remove_intermediates): Don't write extra space after `rm'.
4756         * main.c (struct command_switch.type): Remove `usage_and_exit'.
4757         (print_usage_flag): New variable.
4758         (switches: --help): Make type `flag', to set print_usage_flag.
4759         (init_switches): Remove `usage_and_exit' case.
4760         (decode_switches): Likewise.
4761         (decode_switches): Print usage if print_usage_flag is set.
4762         When printing usage, die with status of BAD.
4763         (main): Die with 0 if print_version_flag.
4765 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4767         * Version 3.66.
4769 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4771         * compatMakefile (installdirs): New target.
4772         (install): Depend on it.
4774 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4776         * Version 3.65.2.
4778 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4780         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
4781         set LASTPATH to PATH, not NEXT.
4783         * dir.c (read_dirstream): Break out of loop after incrementing
4784         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
4785         dereference DS->contents->files[DIRFILE_BUCKETS].
4787         * read.c (read_makefile): Clear no_targets after reading a
4788         targetful rule line.
4790         * main.c (main): If print_version_flag is set, exit after printing
4791         the version.
4792         (switches): Change --version docstring to say it exits.
4794         * make.h [butterfly]: #undef POSIX.
4796 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4798         * Version 3.65.1.
4800         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
4801         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
4803         * function.c (handle_function): Use fatal instead of
4804         makefile_fatal when reading_filename is nil.
4806         * configure.in: Add AC_GETGROUPS_T.
4807         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
4809 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4811         * Version 3.65.
4813 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4815         * function.c (handle_function): Fatal for unmatched paren.
4817 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4819         * Version 3.64.3.
4821         * commands.c (handling_fatal_signal): New variable.
4822         (fatal_error_signal): Set it.
4823         * job.c (reap_children): Avoid nonreentrant operations if that is set.
4824         * make.h: Declare handling_fatal_signal.
4826         * expand.c (reference_variable): New function, snippet of code
4827         broken out of simple-reference case of variable_expand.
4828         (variable_expand): Use it for simple refs.
4829         (variable_expand): When checking for a computed variable name,
4830         notice a colon that comes before the final CLOSEPAREN.  Expand
4831         only up to the colon, and then replace the pending text with a
4832         copy containing the expanded name and fall through to subst ref
4833         handling.
4834         (variable_expand): Don't bother expanding the name if a colon
4835         appears before the first $.
4836         (expand_argument): Use alloca instead of savestring.
4837         (variable_expand): For subst ref, expand both sides of = before
4838         passing to [pat]subst_expand.  Use find_percent instead of lindex
4839         to check the lhs for a %.
4841 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4843         * Version 3.64.2.
4845 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4847         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
4849         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
4850         not to multi_glob.
4852 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4854         * Version 3.64.1.
4856         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
4857         we read the member name in any of the fashions that allow it to be
4858         arbitrarily long.  Pass its negation to FUNCTION.
4859         (describe_member): Take TRUNCATED from ar_scan and print it.
4860         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
4861         the first sizeof (struct ar_hdr.ar_name) chars.
4862         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
4863         * ar.c (ar_member_date_1): Likewise.
4865 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4867         * job.c (reap_children): Before calling start_job_command to start
4868         the next command line, reset C->remote by calling start_remote_job_p.
4870 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4872         * arscan.c (ar_scan): New local var NAMEMAP.
4873         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
4874         flag IS_NAMEMAP.  When extracting the member name, always put a
4875         null at its end first.  If the name is "//" or "/ARFILENAMES", set
4876         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
4877         like " /N", get full name from NAMEMAP+N.
4878         Else if NAME looks like "#1/N", read N chars from the
4879         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
4880         the elt's data into alloca'd NAMEMAP.
4881         (ar_name_equal): #if 0 truncating code.
4883         * make.h: Don't declare vfork at all.  It returns int anyway,
4884         unless <unistd.h> declared it; and we conflicted with some systems.
4886         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
4887         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
4888         define it to something like "-no-print-directory".
4889         Use %g format instead of %f for floating-valued things.
4891 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4893         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
4894         to change remote-%.dep to remote-stub.dep.
4896 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4898         * Version 3.64.
4900 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4902         * compatMakefile (install): Remove - prefix from chgrp+chmod.
4904         * Version 3.63.8.
4906 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4908         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
4909         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
4910         else to "get".
4911         * default.c (default_variables): Set GET to macro SCCS_GET.
4913         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
4914         if nonzero.  I hope this is the last time this argument is added
4915         or removed.
4916         (read_makefile): Pass it 1 when parsing include file names.
4917         Pass it 1 when parsing target file names.
4918         Pass it 1 when parsing static pattern target pattern names.
4919         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
4920         * default.c (set_default_suffixes): Pass it 1 when parsing
4921         default_suffixes.
4922         * function.c (string_glob): Pass it 0 here.
4924 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4926         * misc.c (log_access): New function.
4927         ({init,user,make,child}_access): Call it.
4928         (child_access): Abort if !access_inited.
4930         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
4931         single-letter option.
4932         (init_switches, decode_switches, define_makeflags): An option with
4933         no single-letter version is no longer indicated by a value of -1;
4934         instead a value that is !isalnum.
4935         (init_switches): Don't put such switches into the string, only
4936         into the long_option table.
4938         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
4940         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
4941         bsdcc defined WIF* to use union wait.
4943         * main.c (struct command_switch): Change member `c' to type int.
4944         (switches): Make const.
4945         (decode_switches): Use `const struct command_switch *'.
4946         (define_makeflags): Likewise.
4948         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
4950 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4952         * Version 3.63.7.
4954         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
4955         Removed AC_MEMORY_H.
4956         * make.h [USG, NeXT]: Don't test these.
4957         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
4958         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
4959         [! ANSI_STRING]: Put decls of bcopy et al here.
4960         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
4961         [HAVE_SIGSETMASK]: Test this rather than USG.
4962         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
4963         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
4964         It doesn't hurt to do both if they are both defined, and testing
4965         USG is useless.
4966         * dir.c: Rationalize directory header conditionals.
4967         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
4969         * default.c (default_suffixes): Add `.txinfo'.
4970         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
4972         * variable.c (try_variable_definition): Replace RECURSIVE flag
4973         with enum FLAVOR, which can be simple, recursive, or append.
4974         Recognize += as append flavor.  Set new variable VALUE in a switch
4975         on FLAVOR.  For append flavor, prepend the variable's old value.
4976         If the variable was previously defined recursive, set FLAVOR to
4977         recursive; if it was defined simple, expand the new value before
4978         appending it to the old value.  Pass RECURSIVE flag to
4979         define_variable iff FLAVOR == recursive.
4981         * variable.c (try_variable_definition): Use alloca and bcopy for
4982         NAME, instead of savestring.  Might as well use stack storage
4983         since we free it immediately anyway.
4985 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4987         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
4989         * main.c (define_makeflags): Rename `struct flag' member `switch'
4990         to `cs', which is not a reserved word.
4992 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4994         * job.c (new_job): Call start_waiting_jobs first thing.
4995         (start_waiting_job): Changed return type from void to int.
4996         Return 0 when putting the child on the waiting_jobs chain.
4997         (start_waiting_jobs): Don't check load and job_slots here.
4998         Always take a job off the chain and call start_waiting_job on it;
4999         give up and return when start_waiting_job returns zero.
5001         * main.c (define_makeflags: struct flag): Change member `char c' to
5002         `struct command_switch *switch'.
5003         (ADD_FLAG): Set that to CS instead of CS->c.
5004         If CS->c is -1, increment FLAGSLEN for the long name.
5005         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
5006         the long name instead.
5008         * compatMakefile (stamp-config): New target of old config.h rule.
5009         Touch stamp-config after running config.status.
5010         (config.h): Just depend on stamp-config, and have empty commands.
5012 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5014         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
5016         * configure.in (AC_HAVE_FUNCS): Check for psignal.
5018 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5020         * main.c (long_option_aliases): Remove "new"; it is already an
5021         unambiguous prefix of "new-file".
5023 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5025         * Version 3.63.6.
5027 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5029         * vpath.c (selective_vpath_search): When adding the
5030         name-within-directory at the end of NAME, and we don't add a
5031         slash, don't copy FILENAME in one char too far into NAME.
5033         * variable.c (define_automatic_variables): Find default_shell's
5034         length with strlen, not numerology.
5036 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5038         * main.c (define_makeflags): Add the elts of a string option in
5039         reverse order, so they come out right when reversed again.
5041 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5043         * compatMakefile (make.info): Use `-o make.info'.
5045 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5047         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
5048         reflect new use.
5049         (objs): Replace remote.o with remote-$(REMOTE).o.
5050         (srcs): Replace remote.c with remote-$(REMOTE).c.
5051         (remote.o): Rule removed.
5053         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
5054         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
5055         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
5056         * build.template (REMOTE): New var; set to @REMOTE@.
5057         (objs): Add remote-${REMOTE}.o.
5059 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5061         * Version 3.63.5.
5063         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
5064         "Rejecting impossible" -d msg.
5066         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
5067         mod'd values there; never mod {OLD,NEW}HASH.
5069 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5071         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
5073         * compatMakefile (VPATH): Set this to @srcdir@.
5074         (srcdir): Set this to $(VPATH).
5076         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
5077         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
5078         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
5080         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
5082         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
5084 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5086         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
5087         as the sed delimiter char.
5089 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5091         * Version 3.63.4.
5093         * rule.h (struct rule): Removed `subdir' member.
5094         * rule.c (new_pattern_rule): No need to clear it.
5095         (count_implicit_rule_limits): Set the `changed' flag in each dep
5096         that refers to a nonexistent directory.  No longer set rule-global
5097         `subdir' flag with that information.
5098         (print_rule_data_base): Don't record info on `subdir' flags.
5100         * implicit.c (pattern_search): Check the DEP->changed flag rather
5101         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
5102         if it is set, the file might exist even though the DEP->changed
5103         flag is set.
5105         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
5106         name arg to dir_file_exists_p to check for existence of directory.
5108         * implicit.c (pattern_search): Inside dep-finding loop, set
5109         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
5110         rather than computing it anew.
5112         * commands.c (set_file_variables): Must alloca space for PERCENT
5113         and copy it, to avoid leaving the trailing `)' in the value.
5115         * misc.c (remove_comments): Fixed backslash-checking loop
5116         condition to allow it to look at the first char on the line.
5117         P2 >= LINE, not P2 > LINE.
5119         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
5120         $@, rm $@.old and mv $@ to $@.old.
5122         * variable.c (try_variable_definition): Take new args FILENAME and
5123         LINENO.  Fatal if the variable name is empty.
5124         * read.c (read_makefile): Change callers.
5125         * main.c (main): Likewise.
5127         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
5128         that configure will replace with the group owning /dev/kmem.
5130 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5132         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
5133         selective_vpath_search.
5134         (selective_vpath_search): Take second arg MTIME_PTR.
5135         If the dir cache thinks a file exists, stat it to make sure, and
5136         put the modtime in *MTIME_PTR.
5137         * remake.c (library_search): Take second arg MTIME_PTR.
5138         When we find a match, record its mtime there.
5139         Pass MTIME_PTR through to vpath_search to do same.
5140         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
5141         store it in FILE->last_mtime if set nonzero.
5142         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
5144         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
5145         so globbing looks somewhere it will find things.
5147         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
5148         not `$(srcdir)/make.info*'; no need to use basename.
5150 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5152         * Version 3.63.3.
5154         * compatMakefile (install): Add missing ;\s.
5156         Make -, @, and + prefixes on a pre-expanded command line affect
5157         all lines in the expansion, not just the first.
5158         * commands.h (struct commands): Replace `lines_recurse' member
5159         with `lines_flags'.
5160         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
5161         that flag byte.
5162         * commands.c (chop_commands): Set `lines_flags' instead of
5163         `lines_recurse'.  Record not only + but also @ and - prefixes.
5164         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
5165         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
5166         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
5167         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
5168         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
5169         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
5171         * remake.c (update_goal_chain): Set G->file to its prev after
5172         checking for G being finished, since that check needs to examine
5173         G->file.
5175         * configure.in (union wait check) [HAVE_WAITPID]: Try using
5176         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
5177         don't work together, we should not use union wait.
5179         * Version 3.63.2.
5181         * remake.c (update_goal_chain): When G->file->updated, move
5182         G->file to its prev.  We aren't finished until G->file is nil.
5184 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5186         * main.c (starting_directory): New global variable.
5187         (main): Set it to cwd after doing -Cs.
5188         (log_working_directory): Use it, rather than computing each time.
5189         * make.h: Declare it.
5191         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
5193         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
5194         ARGV, rather than LEN words plus one byte.
5196 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5198         * compatMakefile ($(bindir)/$(instname)): Put - before
5199         install_setgid command line, so its failure won't be an error.
5200         (infodir): New variable.
5201         (install): Depend on $(infodir)/$(instname).info.
5202         ($(infodir)/$(instname).info): New target.
5204         * read.c (read_makefile): If FILENAMES is nil when we see a line
5205         starting with a tab, don't treat it as a command.  Just fall
5206         through, rather than giving an error.
5208         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
5209         command line, don't clear it before continuing.  We want
5210         subsequent command lines to be ignored as well.
5212         * job.c (new_job): Before expanding each command line, collapse
5213         backslash-newline combinations that are inside var or fn references.
5215 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5217         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
5219         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
5221         * job.c [POSIX] (unblock_sigs): Made global.
5222         [!POSIX] (unblock_sigs): Move defns to job.h.
5223         * job.h [POSIX] (unblock_sigs): Declare.
5225 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5227         * read.c (read_makefile): In vpath parsing, after finding the
5228         pattern token, take entire rest of line as the search path, not
5229         just the next token.
5231         * compatMakefile (remote.o): Depend on remote-*.c.
5233 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5235         * commands.c (set_file_variables): Don't define any F or D versions.
5236         * variable.c (define_automatic_variables): Define them here as
5237         recursively-expanded variables that use the dir and notdir funcs.
5239         * variable.c (target_environment): In v_default case, don't export
5240         o_default or o_automatic variables.
5242         * configure.in (union wait check): Remove ` and ' inside C code;
5243         they confuse the shell script.
5245 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5247         * Version 3.63.1.
5249         * vpath.c (construct_vpath_list): When skipping further processing
5250         of an elt that is ".", don't also skip the code that pushes P past
5251         the next separator.
5253         * compatMakefile (distclean): Don't remove make-*.
5255         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
5256         defined.  If one cannot use WEXITSTATUS with a `union wait'
5257         argument, we don't want to believe the system has `union wait' at all.
5259         * remake.c (update_file): Do nothing to print "up to date" msgs.
5260         (update_goal_chain): Do it here instead.
5261         Use the `changed' flag of each goal's `struct dep' to keep track
5262         of whether files_remade (now commands_started) changed around a
5263         call to update_file for that goal.
5264         When a goal is finished, and its file's update_status is zero (i.e.,
5265         success or nothing done), test the `changed' flag and give an "up
5266         to date" msg iff it is clear.
5267         * make.h (files_remade): Renamed to commands_started.
5268         * remake.c: Changed defn.
5269         (update_goal_chain): Changed uses.
5270         * job.c (start_job_command): Increment commands_started here.
5271         (reap_children): Not here.
5273         * remake.c (update_goal_chain): Don't do anything with files'
5274         `prev' members.  update_file now completely handles this.
5276         * variable.c (target_environment): Don't expand recursive
5277         variables if they came from the environment.
5279         * main.c (define_makeflags): For flags with omitted optional args,
5280         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
5281         so stored cannot have more flags appended to the same word.
5283 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5285         * variable.c (print_variable_set): In vars/bucket calculation,
5286         don't spuriously multiply by 100.
5288         * Version 3.63.
5290         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
5291         Don't define if already defined.
5293         * remake.c (update_file): Don't keep track of the command_state before
5294         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
5295         and don't test it to decide to print the "is up to date" msg.
5296         Testing for files_remade having changed should always be sufficient.
5297         The old method lost when we are called in the goal chain run on a
5298         makefile, because the makefile's command_state is already
5299         `cs_finished' from the makefile chain run.
5301         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
5303         * configure.in: Rewrote wait checking.
5304         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
5305         Use AC_HAVE_FUNCS to check for waitpid and wait3.
5306         Use a compile check to test just for `union wait'.
5307         * job.c: Rewrote conditionals accordingly.
5308         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
5309         [HAVE_WAIT3]: Likewise.
5310         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
5312         * configure.in: Set CFLAGS and LDFLAGS before all checks.
5314         * dir.c: Add static forward decls of {open,read}_dirstream.
5316 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5318         * Version 3.62.31.
5320         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
5322         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
5323         * build.template (CFLAGS, LDFLAGS): Same here.
5324         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
5325         Set them to -g if not defined in the environment.
5327         * remake.c (library_search): Use LIBNAME consistently, setting it
5328         only once, to be the passed name sans `-l'.
5329         Pass new var FILE to be modified by vpath_search.
5331 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5333         * Version 3.62.30.
5335         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
5336         job_slots.
5338         * configure.in: Add AC_CONST for the sake of getopt.
5340         * read.c (read_makefile): Continue after parsing `override'
5341         directive, rather than falling through to lossage.
5342         Check for EOL or blank after "override define".
5344         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
5346 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5348         * Version 3.62.29.
5350         * main.c (define_makeflags): After writing everything into
5351         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
5352         just wrote " -".  Always terminate the string at *P.
5354         * remake.c (library_search): When constructing names in std dirs,
5355         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
5356         buffer we are writing into!).
5358 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5360         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
5361         define" when IGNORING is true.
5363         * compatMakefile (distclean): Remove config.status and build.sh.
5365 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5367         * Version 3.62.28.
5369         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
5370         (char *).
5372         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
5374         * variable.c (define_automatic_variables): Override SHELL value for
5375         origin o_env_override as well as o_env.
5377         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
5378         add the names of the glob objects (w/subdir) to %objs%.
5379         * build.template (globobjs): Removed.
5380         Take basename of $objs before linking.
5382 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5384         * Version 3.62.27.
5386         * configure.in (AC_OUTPUT): Also edit build.sh.
5387         * build.template: New file.
5388         * GNUmakefile (build.sh.in): New rule to create it from build.template.
5389         (make-$(version).tar.Z): Depend on build.sh.in.
5391         * main.c (die): Call print_data_base if -p.
5392         (main): Don't call it here.
5394         * compatMakefile (defines): Add @DEFS@.  configure should turn this
5395         into -DHAVE_CONFIG_H.
5397 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5399         * Version 3.62.26.
5401         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
5402         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
5403         * compatMakefile (install_setgid): New var, set by configure.
5404         (install): Install setgid $(group) only if $(install_setgid) is true.
5406 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5408         * job.c (load_too_high): If getloadavg fails with errno==0, give a
5409         message saying that load limits are not supported.
5411         * vpath.c (construct_vpath_list): Rewrote path deletion code to
5412         not try to use PATH's next link after freeing PATH.
5414         * main.c (define_makeflags): Rewritten; now handles string-valued
5415         option, and has no arbitrary limits.
5416         (switches): Set `toenv' flag for -I and -v.
5418         * main.c (decode_env_switches): Cast return value of alloca to char *.
5420         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
5421         setre[gu]id in place of set[gu]id.
5423 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5425         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
5426         origin o_default.
5428         * make.h [POSIX]: Don't test this to use ANSI_STRING.
5429         Testing STDC_HEADERS should be sufficient.
5431         * job.h: Declare start_waiting_jobs.
5433         * read.c (read_makefile): Add missing parens in if stmt that find
5434         conditional directives.
5436         * main.c (main): Declare init_dir.
5437         * implicit.c (pattern_search): Always use two % specs in a
5438         DEBUGP2, and always pass two non-nil args.
5439         Cast field width args to int.
5440         Add missing parens in !RULE->subdir if stmt.
5441         * function.c (expand_function, patsubst_expand): Add parens around
5442         assignments inside `while' stmts.
5443         * commands.c (print_commands): Cast field width args to int.
5445         * read.c (do_define): Cast return value of alloca to (char *).
5447         * main.c (init_switches): New function, broken out of decode_switches.
5448         (decode_switches): Take new arg ENV.  If set, ignore non-option
5449         args; print no error msgs; ignore options with clear `env' flags.
5450         (decode_env_switches): Rewritten to chop envar value into words
5451         and pass them to decode_switches.
5452         (switches): Set `env' flag for -I and -v.
5454         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
5456 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5458         * Version 3.62.25.
5460         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
5461         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
5462         we don't need these anyway.
5464         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
5465         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
5466         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
5467         but its set[gu]id functions aren't; its setre[gu]id functions work.
5469         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
5471         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
5473         * configure.in: Call AC_PROG_CC.
5474         * compatMakefile (CC): Define to @CC@ (autoconf magic).
5476         * compatMakefile: Add .NOEXPORT magic target.
5478 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5480         * main.c (print_version): Updated copyright to include 93.
5482 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5484         * make.h [_AIX]: Don't declare alloca.
5486 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5488         * Version 3.62.24.
5490         * compatMakefile (objs): Add signame.o.
5491         (srcs): Add signame.[ch].
5493         * compatMakefile (srcs): Add config.h.in.
5494         (remote.o): Add -I. before -I$(srcdir).
5496 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5498         * Version 3.62.23.
5500         * read.c (readline): Fatal when LEN==0, indicating a line starting
5501         with a NUL.
5502         (readline): Take new arg LINENO, for use in error msg.
5503         (read_makefile, do_define): Pass it.
5505         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
5506         (.c.o): Add -I. before -I$(srcdir).
5508 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5510         * read.c (read_makefile): Accept and ignore a rule with no targets.
5512         * compatMakefile (ALLOCA_SRC): New variable.
5513         (srcs): Include its value.
5515         * read.c (struct conditional): Renamed member `max_ignoring' to
5516         `allocated'; added new member `seen_else'.
5517         (conditional_line): Initialize seen_else flag when starting an `if...';
5518         set it when we see an `else'; fatal if set when we see `else'.
5519         (read_makefile): Fatal "missing `endif'" if there are any pending
5520         conditionals, not just if we are still ignoring.
5522 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5524         * compatMakefile (manext): Set to 1, not l.
5525         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
5527         * file.c (file_hash_enter): Don't call uniquize_deps here.
5528         * read.c (record_files): Likewise.
5529         * implicit.c (pattern_search): Likewise.
5530         * commands.c (set_file_variables): Call it only here.
5532         * default.c (default_variables) [__convex__]: FC=fc.
5534         * variable.c (target_environment): Expand the values of recursively
5535         expanded variables when putting them into the environment.
5536         * expand.c (recursively_expand): Made global.
5537         * make.h (recursively_expand): Declare it.
5539         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
5540         when a dep's command_state is cs_running or cs_deps_running.
5542         * read.c (read_makefile): Changed error msg for spurious cmds to
5543         not say "first target".
5545 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5547         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
5548         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
5549         * compatMakefile (config.h, configure, config.h.in): New rules.
5550         (defines): Removed @DEFS@.
5552 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5554         * compatMakefile (realclean): Just depend on distclean; no cmds.
5555         (distclean): Do what realclean did before; also remove Makefile and
5556         config.h; don't remove configure.
5557         (info, dvi): New targets; depend on make.{info,dvi}.
5558         (doc): Removed target.
5559         (MAKEINFO, TEXI2DVI): New vars.
5560         (make.info, make.dvi): Use them instead of explicit cmds.
5562 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5564         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
5566 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5568         * main.c (long_option_aliases): Add --new-file alias for -W.
5570         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
5571         to CXXFLAGS.
5573         * read.c (do_define): Expand the variable name before using it.
5575         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
5576         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
5578         * remake.c (library_search): Search for libNAME.a in cwd; look in
5579         vpath before looking in standard dirs, not after.
5580         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
5582 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5584         * default.c (default_pattern_rules, default_terminal_rules): Added
5585         brackets around initializers.
5587         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
5588         (try_variable_definition): Expand the name before defining the var.
5590         * job.c (init_siglist): Removed function.
5591         Removed decl of `sys_siglist'.
5592         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
5593         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
5594         only under these conditions.
5595         * main.c (main): Don't declare init_siglist.
5596         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
5598 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5600         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
5601         nil; instead just set it to MOREDEPS.
5603 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5605         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
5606         loop that sets MAXELEM.
5608 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5610         * Version 3.62.22.
5612 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5614         * job.c (start_job_command): Under -n, increment files_remade after
5615         processing (i.e., printing) all command lines.
5617 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5619         * read.c (record_files): Append new deps if this rule has no
5620         commands; prepend them to existing deps if this rule has no commands.
5622         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
5624         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
5625         (read_makefile): Changed callers.
5626         * function.c (string_glob): Likewise.
5627         * rule.c (install_pattern_rule): Likewise.
5629 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5631         * remake.c (files_remade): Made global.
5632         (notice_finished_file): Don't increment files_remade here; this
5633         function gets called in many situations where no remaking was in
5634         fact done.
5635         * job.c (reap_children): Do it here instead, when we know that
5636         actual commands have been run for the file.
5637         * make.h (files_remade): Declare it.
5639 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5641         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5642         separate elts in the search path.
5644         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5645         The search path can contain spaces now.
5647 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5649         * compatMakefile (check): New target; no-op.
5651         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5652         testing for OLDHASH==0 but before using the value.
5653         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5654         to file_hash_enter.
5656         * file.c (rename_file): Notice when OLDFILE->cmds came from
5657         default.c, and don't try to print ->filename in that case.
5659 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5661         * remake.c (update_file): Don't process F->also_make here.
5662         (notice_finished_file): Don't process FILE->also_make if no attempt
5663         to update FILE was actually made.
5664         Fixed to call f_mtime directly to refresh their modtimes.
5666 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5668         * read.c (find_percent): Don't increment P again after skipping
5669         an escaped %.
5671         * expand.c (variable_expand): In call to patsubst_expand, don't
5672         find `%'s ourselves; let that function do it.
5674         * read.c (read_makefile: record_waiting_files): Don't call
5675         record_files if FILENAMES is nil.
5676         (read_makefile): All alternatives in the parsing, except for rule
5677         lines, fall through to the end of the loop.  At the end of the
5678         loop, do record_waiting_files so we notice later spurious cmds.
5680 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5682         * variable.c (define_automatic_variables): Free old value of SHELL
5683         before replacing it.
5685 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5687         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5689         * dir.c (open_dirstream): Cast return value to __ptr_t.
5691         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5693         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5694         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5695         Define as (get_path_max ()).
5696         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5697         [! PATH_MAX] (get_path_max): Declare fn.
5698         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5700 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5702         * Version 3.62.21.
5704         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
5705         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5706         SYS_SIGLIST_DECLARED.
5708         * dir.c (file_impossible): When initializing DIR->contents, set
5709         DIR->contents->dirstream to nil.
5711         * compatMakefile (GLOB): Define new variable.
5712         (objs): Use it, rather than glob/libglob.a explicitly.
5714         * read.c (parse_file_seq): When stripping "./", handle cases like
5715         ".///foo" and "./////".
5716         * file.c (lookup_file, enter_file): Likewise.
5718 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5720         * dir.c (struct dirstream, {open,read}_dirstream): New
5721         data type and functions to read a directory sequentially.
5722         (init_dir): New function to hook it into glob.
5723         * main.c (main): Call init_dir.
5725         * compatMakefile (objs): Added glob/libglob.a.
5726         * configure.in: Remove code to test for glob.
5728 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5730         * read.c (record_files): Generalized test for NAME pointing
5731         somewhere into F->name.
5733         * variable.c (define_variable_in_set): Free old value when replacing.
5735         * read.c (do_define): Free the linebuffer before returning.
5736         (record_files): When clearing .SUFFIXES deps, free their data.
5737         (multi_glob): Free OLD and its data when replacing it with results
5738         of glob run.
5740         * commands.c (set_file_variables): Use alloca in place of xmalloc
5741         for temp space for $^, $?, et al.
5743         * dir.c (struct directory): New member `contents' replaces `files'
5744         and `dirstream'.
5745         (struct directory_contents): New type.
5746         (directories_contents): New hash table.
5747         (dir_struct_file_exists_p): Take a struct directory_contents.
5748         (dir_file_exists_p): Pass it the `contents' member of the dir found.
5749         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
5750         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
5751         (dir_file_exists_p, find_directory): Change all callers.
5752         (file_impossible): Use DIR->contents, initializing it if nil.
5753         (print_dir_data_base): Use DIR->contents, and print out device and
5754         inode numbers with each directory.
5756         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
5757         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
5758         (DIRFILE_BUCKETS): Decrease to 107.
5759         (find_directory): Allocate and zero a multiple of
5760         sizeof (struct dirfile *), not of sizeof (struct dirfile).
5761         (dir_struct_file_exists_p): New function, nearly all code from
5762         dir_file_exists_p.
5763         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
5764         * vpath.c (selective_vpath_search): Remove redundant
5765         dir_file_exists_p call.
5767         * configure.in: Comment out glob check; always use our code.
5769 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5771         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5772         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
5773         do have it.
5775 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5777         * main.c (main): Don't do -w automatically if -s.
5779 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5781         * main.c (printed_version): Move variable inside print_version.
5782         (print_version): Return immediately if printed_version is set.
5783         (die): Don't test printed_version here.
5784         (decode_switches): Under -v, do print_version before giving usage.
5785         (DESCRIPTION_COLUMN): New macro.
5786         (decode_switches): Use it when printing the usage message.
5787         Leave at least two spaces between options and their descriptions.
5789 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5791         * Version 3.62.20.
5793 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5795         * read.c (read_makefile): Save errno value from trying to open
5796         FILENAME, and restore it before erring; otherwise we get the errno
5797         value from the last elt of the search path.
5799 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5801         * main.c (long_option_aliases): Add --stop for -S.
5803         * read.c (word1eq): Do strncmp before dereferencing someplace that
5804         may be out in space.
5806 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5808         * remake.c (notice_finished_file): If all the command lines were
5809         recursive, don't do the touching.
5811         * job.c (start_job_command): Don't check for + here.
5812         * commands.c (chop_commands): Do it here instead.
5814         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
5816 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5818         * compatMakefile (objs): Include $(ALLOCA).
5820         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
5822 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5824         * read.c (default_include_directories): Add INCLUDEDIR first.
5825         * compatMakefile (includedir): Define.
5826         (defines): Add -D for INCLUDEDIR="$(includedir)".
5828         * read.c (read_makefile): Grok multiple files in `include';
5829         globbing too.
5831         * remake.c (library_search): New function.
5832         (library_file_mtime): Remove function.
5833         (f_mtime): Use library_search instead of library_file_mtime.
5834         * compatMakefile (libdir): Define.
5835         (defines): Add -D for LIBDIR="$(libdir)".
5836         * make.texinfo (Libraries/Search): Document change.
5838         * file.c (rename_file): Fix file_hash_enter call with missing arg.
5840 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5842         * Version 3.62.19.
5844         * main.c (main): Set command_state to cs_finished for temp files
5845         made for stdin makefiles.
5847         * main.c (decode_switches): Don't tell getopt to return non-option
5848         args in order.
5849         Ignore an argument of `-'.
5851 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5853         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
5854         the command line and go to the next.
5855         (notice_finished_file): Under -t, touch FILE.
5856         * remake.c (remake_file): Don't touch it here.
5858 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5860         * function.c (pattern_matches): Use temporary for strlen (WORD)
5861         instead of two function calls.
5863         * compatMakefile (LOAD_AVG): Remove variable and comments.
5865 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5867         * make.texinfo (Running): Node renamed to `make Invocation'.
5869 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5871         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
5872         NAMELEN != MEMLEN.
5874 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5876         * Version 3.62.18.
5878         * main.c: Don't #include <time.h>; make.h already does.
5880 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5882         * implicit.c (pattern_search): Fixed copying of suffix when building
5883         also_make elts.
5885         * function.c (expand_function: `shell'): Make sure BUFFER is
5886         null-terminated before replacing newlines.
5888         * compatMakefile (mandir): Use man$(manext), not always manl.
5890 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5892         * rule.c (new_pattern_rule): Not static.
5893         * rule.h: Declare it.
5895         * file.c (file_hash_enter): New function, most code from rename_file.
5896         (rename_file): Call it.
5897         * file.h (file_hash_enter): Declare it.
5899         * dep.h: Doc fix.
5901 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5903         * main.c (decode_switches): Handle usage_and_exit when building
5904         long options vector.
5906         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
5907         (default_variables): Define CHECKOUT,v (hairy).
5909         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5910         sys_siglist to _sys_siglist.
5912 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5914         * NEWS: Add header and tail copyright info like Emacs NEWS.
5916         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
5917         bcopy if already #define'd.
5918         [STDC_HEADERS] (qsort, abort, exit): Declare here.
5919         [! __GNU_LIBRARY__ && !POSIX]: Not here.
5921         * make.h [_AIX]: #pragma alloca first thing.
5923         * job.c (start_waiting_job): Set the command_state to cs_running
5924         when we queue a job on waiting_jobs.
5926 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5928         * variable.c (define_automatic_variables): Use "" instead of nil
5929         for empty value.
5931 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5933         * Version 3.62.17.
5935         * main.c (struct command_switch.type): Add alternative usage_and_exit.
5936         (command_switches): Add -h/--help.
5938 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5940         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
5941         * README.template: Mention NEWS.
5942         * CHANGES: Renamed to NEWS.
5944         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
5946 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5948         * main.c (main): Set -o files' command_states to cs_finished.
5950         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
5951         when tossing a rule.
5953         * main.c (main): Use alloca only in simple local var assignment,
5954         for braindead SGI compiler.
5956         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
5957         inconsistent with the number computed when listing them.
5959 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5961         * commands.c (set_file_variables): For $? and $^ elts that are archive
5962         member refs, use member name only.
5964 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5966         * variable.h (struct variable.export): Add new alternative v_ifset.
5967         * variable.c (target_environment): Check for it.
5968         (define_automatic_variables): Set it for MAKEFILES.
5970 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5972         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
5973         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
5974         (distclean, mostlyclean): New targets.
5976 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5978         * Version 3.62.16.
5980         * compatMakefile (config.status): Remove rule.
5982         * job.c (start_waiting_job): Free C after using C->file, not before.
5984 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5986         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
5987         HAVE_* instead of #ifndef *_MISSING.
5988         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
5990 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5992         * main.c (main): makelevel>0 or -C implies -w.
5994 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5996         * file.c, job.c, function.c: Don't #include <errno.h>.
5997         make.h: Do it here instead.
5998         * arscan.c (ar_member_touch): Don't declare errno.
6000 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6002         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
6004         * remake.c (update_file): If commands or deps are running after
6005         update_file_1 returns, break out of the :: rule (->prev) loop and
6006         just return.
6008         * job.c (job_next_command): New function; code from start_job.
6009         (start_job_command): Renamed from start_job.  Call job_next_command
6010         and recurse for empty command lines and -n.
6011         (start_waiting_job): Call start_job_command, not start_job.
6012         (new_job): Call job_next_command to prime the child structure, and
6013         then call start_waiting_job.
6014         (reap_children): Use job_next_command and start_job_command.
6015         (start_waiting_job): Call start_remote_job_p here, and store its
6016         result in C->remote.  If zero, check the load average and
6017         maybe put C on waiting_jobs.
6018         (start_job_command): Test CHILD->remote rather than calling
6019         start_remote_job_p.  Don't do load avg checking at all here.
6021         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
6022         SIGSEGV, SIGFPE or SIGTRAP.
6024         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
6025         configure will set it in glob/Makefile.
6027 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6029         * dir.c [DIRENT] (direct): Don't define to dirent.
6030         [! DIRENT] (direct): Define to dirent.
6031         (dir_file_exists_p): Use struct dirent instead of struct direct.
6033         * make.h (getcwd): No space between macro and ( for args!
6035         * job.c (start_job): Don't put the job on waiting_jobs if
6036         job_slots_used==0.
6038         * make.texinfo (Missing): Shortened title.
6040 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6042         * file.c (remove_intermediates): Print "rm" commands under -n.
6044 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6046         * Version 3.62.15.
6048 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6050         * arscan.c [M_UNIX]: #undef M_XENIX.
6052 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6054         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
6056 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6058         * compatMakefile (getloadavg.o): Removed special rule.
6059         (CFLAGS): Don't include $(defines).
6060         (.c.o): Define suffix rule.
6061         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
6062         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
6064         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
6066         * make.h (max): Removed.
6067         * expand.c (variable_buffer_output): Don't use it.
6069         * compatMakefile (INSTALL): Define.
6070         (Makefile): New rule to make from Makefile.in.
6071         (srcdir): Define.
6072         (VPATH): Define.
6073         (getloadavg.o, remote.o): Use autoconf $foo< hack.
6075         * commands.c (fatal_error_signal): Removed return.
6077 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6079         * Version 3.62.14.
6081         * make.texinfo (Summary): New node.
6082         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
6084         * variable.c (max): Moved to make.h.
6086         * compatMakefile (objs, srcs): Added ar & arscan.
6088         * job.c (start_waiting_job): New function, 2nd half of new_job.
6089         (new_job): Call it.
6090         (start_waiting_jobs): New function.
6091         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
6092         of the main loop.
6093         * compatMakefile (objs, srcs): Removed load, added getloadavg.
6095 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6097         * job.c (load_too_high): New function.  Uses getloadavg.
6098         (waiting_jobs): New variable.
6099         (start_job): Don't call wait_to_start_job.  Instead, if
6100         load_too_high returns nonzero, add the child to the
6101         `waiting_jobs' chain and return without starting the job.
6103 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6105         * expand.c (variable_buffer_output): Made global again.
6106         * variable.h: And declare it.
6108         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
6109         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
6110         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
6111         for a slash in the archive at run time.
6112         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
6113         cope with trailing-slash and non-trailing-slash archives.
6115         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
6116         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
6118         * load.c (load_average) [sgi]: Use sysmp call.
6120         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
6121         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
6123         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
6124         (vfork, VFORK_NAME): Don't define.
6125         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
6127         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
6128         the each file.  Rearranged PATH_MAX hacking.
6129         * job.c: Rearranged NGROUPS_MAX hacking.
6131         * remake.c (fstat, time): Don't declare.
6133         * compatMakefile (defines): Value is @DEFS@.
6134         (LOADLIBES): Value is @LIBS@.
6135         (extras): Value is @LIBOBJS@.
6136         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
6137         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
6139         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
6141         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
6142         (getcwd): Just declare if present.  If not, declare as a macro
6143         using getwd, and declare getwd.
6144         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
6145         * main.c (main, log_working_directory): Use getcwd instead of getwd.
6147         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
6149         * make.h (SIGHANDLER, SIGNAL): Removed.
6150         (RETSIGTYPE): Define if not #define'd.
6151         * main.c (main): Use signal in place of SIGNAL.
6153         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
6155         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
6156         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
6158         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
6159         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
6161         * job.c (child_handler), commands.c (fatal_error_signal): Return
6162         RETSIGTYPE instead of int.
6163         * main.c (main): Declare fatal_error_signal and child_handler here
6164         to return RETSIGTYPE; removed top-level decl of former.
6166         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
6167         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
6169 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6171         * job.c [HAVE_WAITPID]: Test this instead of USG.
6172         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
6173         (GID_T): Don't #define.
6174         (search_path): Use gid_t instead of GID_T.
6175         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
6176         these individually instead of USG for all.
6177         * make.h (ctime): Don't declare.  #include time.h instead.
6178         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
6179         _POSIX_VERSION.
6180         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
6181         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
6183         * arscan.c: Removed #ifdef mess about string.h et al.
6184         Just #include make.h instead.
6185         * make.h (fstat, atol): Declare.
6187         * commands.c (fatal_error_signal): Don't use sigmask to check for
6188         propagated signals; use ||s instead.
6189         (PROPAGATED_SIGNAL_MASK): Removed.
6190         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
6192         * variable.c (variable_buffer, variable_buffer_length,
6193         initialize_variable_output, variable_output): Moved to expand.c;
6194         made all static.
6195         (struct output_state, save_variable_output,
6196         restore_variable_output): Removed.
6197         * expand.c (initialize_variable_output): Put a NUL at the beginning
6198         of the new buffer after allocating it.
6199         (allocated_variable_expand_for_file): Don't use
6200         {save,restore}_variable_output.  Do it by hand instead, keeping
6201         state on the stack instead of malloc'ing it.
6202         (allocated_variable_expand): Removed.
6203         * variable.h (allocated_variable_expand): Define here as macro.
6204         (variable_buffer_output, initialize_variable_output,
6205         save_variable_output, restore_variable_output): Removed decls.
6207         * read.c (conditional_line): For an if cmd, if any elt of the
6208         conditionals stack is ignoring, just push a new level that ignores
6209         and return 1; don't evaluate the condition.
6211 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6213         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
6215         * job.c (getdtablesize): Don't declare or #define if already #define'd.
6217 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6219         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
6220         export_all_variables.
6221         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
6223 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6225         * Version 3.62.13.
6227         * commands.c (set_file_variables): Calculate length for ^D and ?D
6228         individually, making sure to give them at least enough space for "./".
6230         * make.h [CRAY]: #define signal to bsdsignal.
6232         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
6233         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
6235         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
6236         wasn't defined by <ar.h>.
6238 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6240         * Version 3.62.12.
6242 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6244         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
6245         pattern_rules.
6247 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6249         * main.c (decode_switches): Initialize all the long_option elt members.
6251 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6253         * make.texinfo (Text Functions): Correct filter-out description.
6255 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6257         * compatMakefile (realclean): Don't remove backup files.
6259         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
6261 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6263         * Version 3.62.11.
6265 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6267         * job.c (reap_children): Don't die if wait returns EINTR.
6269 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6271         * job.c (reap_children): Always run the next command for a
6272         successful target.  If we are going to die, we don't want to leave
6273         the target partially made.
6275 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6277         * job.c (construct_command_argv_internal): After loop, if we only
6278         have one word, check it for being a shell command.
6280         * main.c (decode_switches): Allocate ARGC slots in other_args to
6281         begin with, so we never need to worry about growing it.
6282         If we get a non-option arg and POSIXLY_CORRECT is in the
6283         environment, break out of the loop.  After the loop, add all remaining
6284         args to other_args list.
6286         * main.c (decode_switches): For positive_int and floating switches
6287         when optarg is nil, use next arg if it looks right (start with a
6288         digit, or maybe decimal point for floating).
6290         * variable.c (define_automatic_variables): Always set SHELL to
6291         default if it comes from the environment.  Set its export bit.
6292         * make.texinfo (Environment): Document change.
6294 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6296         * Version 3.62.10.
6298         * compatMakefile (tags, TAGS): Use vars for cmds.
6299         (ETAGS, CTAGS): Define.
6301         * main.c (decode_switches): If a switches elt has a nil long_name,
6302         make the long option name elt be "".
6303         Fixed loop to not ignore all the options.
6305         * make.texinfo (Option Summary): Added long options.
6307         * main.c (switches): Changed -m's description to "-b".
6308         (decode_switches): When printing the usage message, don't print
6309         switches whose descriptions start with -.
6310         When constructing the list of names for switch -C, search the
6311         switches vector for switches whose descriptions are "-C".
6313         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
6314         Call -I --include-dir, not --include-path.
6315         (long_option_aliases): Added --new == -W, --assume-new == -W,
6316         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
6317         --makefile == -f.
6319         * main.c (switches): Removed bogus "silent" elt.
6320         (long_option_aliases): Define new var.
6321         (decode_switches): Add long_option_aliases onto the end of the long
6322         options vector created for getopt_long.
6323         Look through long_option_aliases for extra names to list
6324         in usage message.
6326 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6328         * main.c (log_working_directory): Fixed to properly not print the
6329         leaving message when we haven't printed the entering message.
6331 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6333         * main.c (struct command_switch): Added elts `long_name',
6334         `description', and `argdesc'.
6335         (switches): Added initializers for new members.
6336         (decode_switches): Rewritten to use getopt_long.
6337         * compatMakefile (GETOPT, GETOPT_SRC): Define.
6338         (objs, srcs): Include them.
6340         * job.c (child_died): Renamed to dead_children; made static.
6341         (child_handler): Increment dead_children instead of setting child_died.
6342         (reap_children): Decrement dead_children instead of clearing
6343         child_died.  The point of all this is to avoid printing "waiting
6344         for unfinished jobs" when we don't actually need to block.
6345         This happened when multiple SIGCHLDs before reap_children was called.
6347         * job.c (reap_children): If ERR is set, so we don't call start_job
6348         on the child being reaped, instead set its command_state to
6349         cs_finished.
6350         (reap_children, child_handler, new_job): I added several
6351         debugging printf's while fixing this.  I left them in if (debug_flag)
6352         because they may be useful for debugging this stuff again.
6354 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6356         * read.c (read_makefile): v_export is not 1.
6358 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6360         * Version 3.62.9.
6362         * variable.c (export_all_variables): New variable.
6363         (target_environment): Export variables whose `export' member is
6364         v_default if export_all_variables is set and their names are benign.
6365         * variable.h: Declare export_all_variables.
6366         * read.c (read_makefile): If export or unexport is given with no
6367         args, set or clear export_all_variables, respectively.
6369         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
6370         so it isn't duplicated when we add it at the end.
6372 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6374         * Version 3.62.8.
6376         * variable.h (struct variable): Added new member `export'.
6377         * variable.c (define_variable_in_set): Initialize it to v_default.
6378         (target_environment): Don't check for .NOEXPORT.
6379         Export variables whose `export' member is v_default and that would
6380         have been exported under .NOEXPORT, and variables whose `export'
6381         member is v_export.
6382         (try_variable_definition): Return the variable defined.
6383         * variable.h (try_variable_definition): Changed decl.
6384         * read.c (read_makefile): Recognize `export' and `unexport' directives.
6386 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6388         * main.c (main) [POSIX]: Reversed args to sigaddset.
6390 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6392         * job.c [POSIX || !USG] (unblock_sigs): New fn.
6393         (start_job): Block signals before forking.
6394         (new_job): Unblock signals after putting the new child on the chain.
6395         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
6396         int fatal_signal_mask.
6398         * load.c [sgi] (LDAV_CVT): Define.
6400 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6402         * Version 3.62.7.
6404         * load.c (load_average) [sgi]: Clear the high bit of the address
6405         from the symbol table before looking it up in kmem.
6407         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
6408         (remake_file): No longer needed in message here.
6410         * main.c (die): Call reap_children with BLOCK==1.
6412 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6414         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
6416 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6418         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
6419         not to head of chain.  Extract next ptr before we might do
6420         freerule, and use that for next iteration.
6421         (freerule): Still do next ptr frobbing if LASTRULE is nil.
6423 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6425         * job.c (child_error): Removed extra %s from error msg format.
6427         * Version 3.62.6.
6429         * job.c (reap_children): Don't start later commands in a sequence
6430         if ERR is nonzero.
6432         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
6434         * job.c (reap_children): New function; work that used to be done in
6435         child_handler.
6436         (child_died): New global var.
6437         (child_handler): Now just sets child_died.
6438         (wait_for_children): Removed.
6439         (unknown_children_possible, block_signals, unblock_signals,
6440         push_signals_blocked_p, pop_signals_blocked_p): Removed.
6441         (child_execute_job): Removed call to unblock_signals.
6442         (new_job): Removed calls to push_signals_blocked_p and
6443         pop_signals_blocked_p.
6444         * job.h: Declare reap_children, not wait_for_children.
6445         * commands.c (fatal_error_signal), job.c (new_job),
6446         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
6447         remake.c (update_goal_chain), function.c (expand_function: `shell'):
6448         Changed wait_for_children calls to reap_children.
6449         Some needed to be loops to wait for all children to die.
6450         * commands.c (fatal_error_signal), main.c (main,
6451         log_working_directory), function.c (expand_function): Removed calls
6452         to push_signals_blocked_p and pop_signals_blocked_p.
6453         * job.h: Removed decls.
6455         * job.h: Added copyright notice.
6457 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6459         * job.c (child_error): No *** for ignored error.
6461 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6463         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
6464         avoid compiler warnings.
6466         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
6467         blank.
6469 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6471         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
6472         avoid compiler warnings.
6474         * remake.c (notice_finished_file): Run file_mtime on the also_make
6475         files, so vpath_search can happen.
6477         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
6478         (alpha-files): Include test suite tar file.
6480 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6482         * Version 3.62.5.
6484 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6486         * remake.c (update_file, update_file_1): Do check_renamed on elts
6487         of dep chains when traversing them.  Something unrelated might have
6488         renamed one of the files the dep chain points to.
6490         * file.c (rename_file): If FILE has been renamed, follow its
6491         `renamed' ptr, so we get to the final real FILE.  Using the renamed
6492         ones loses because they are not in the hash table, so the removal
6493         code loops infinitely.
6495         * read.c (read_all_makefiles): Clobber null terminator into
6496         MAKEFILES expansion, so string passed to read_makefile is properly
6497         terminated.
6499 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6501         * commands.c (set_file_variables): $* for archive member with
6502         explicit cmds is stem of member, not of whole `lib(member)'.
6504 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6506         * Version 3.62.4.
6508 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6510         * rule.c (new_pattern_rule): Rules are identical only if all their
6511         targets match (regardless of order).
6513 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
6515         * remake.c (remake_file): Changed error "no way to make" to "no
6516         rule to make".  Fiat Hugh.
6518         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
6519         behavior.
6521         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
6522         target.
6524 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6526         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
6527         environment to pass to child.
6528         * job.c (start_job): Pass it.
6530 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6532         * file.c (enter_file): Also strip ./s here, to get command-line
6533         target names.
6535         * remote-cstms.c: Add comment telling people to leave me alone.
6537         * compatMakefile (manpage install): Remove target before copying.
6539 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6541         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
6542         Added paragraph describing $? incompatibility with Unix and POSIX.2.
6544 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
6546         * function.c (expand_function: `shell'): Don't declare fork or pipe.
6547         Use vfork instead of fork.
6549 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6551         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
6552         intermediate files.
6554         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
6556 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6558         * Version 3.62.3.
6560 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6562         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
6564 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6566         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
6568         * read.c (record_files): Pass arg for %s in error msg.
6570         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
6571         call.
6573 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6575         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
6577 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6579         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
6581 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6583         * Version 3.62.2.
6585 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6587         * job.c (construct_command_argv_internal): Correctly ignore
6588         whitespace after backslash-NL.
6590 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6592         * compatMakefile: Ignore errors from chgrp and chmod when installing.
6594 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6596         * main.c (main): When setting MAKELEVEL in the env to re-exec,
6597         allocate space so as not to clobber past the end of the old string.
6599         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
6600         * compatMakefile (defines): Document HAVE_ALLOCA_H.
6602 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6604         * make.h [VFORK_MISSING]: Use fork instead.
6605         * compatMakefile (defines): Document same.
6607         * job.c (construct_command_argv_internal): Don't create an empty
6608         arg if backslash-NL is at beginning of word.
6610 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6612         * main.c [DGUX]: Call setvbuf as for USGr3.
6614         * job.c (construct_command_argv_internal): Notice correctly that
6615         backslash-NL is the end of the arg (because it is replaced with a
6616         space).
6618 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6620         * job.c (construct_command_argv_internal): If SHELL is nil, set it
6621         to default_shell before proceeding.
6623         * make.h [sgi]: No alloca.h, after all.
6625 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6627         * read.c (multi_glob): Cons up the chain of the results of glob
6628         from back to front, so it comes out in forward order.
6630         * job.c (construct_command_argv_internal): Don't eat char following
6631         backslash-NL.
6633 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6635         * Version 3.62.1.
6637         * default.c (default_variables) [ultrix]: GET=get, like USG.
6639         * job.c (construct_command_argv_internal): Remove tabs following
6640         backslash-NL combos in the input line, so they don't show up when
6641         that line is printed.
6643         * read.c (read_makefile): Don't collapse_continuations the line on
6644         input; do it on the copy we do remove_comments on.
6645         For rule lines, collapse_continuations the line after chopping
6646         ";cmds" off the end, so we don't eat conts in the cmds.
6647         Give error for ";cmds" with no rule.
6648         * job.c (construct_command_argv_internal): Eat backslash-NL combos
6649         when constructing the line to recurse on for slow, too.
6651 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
6653         * file.c (enter_file): Don't strip leading `./'s.
6654         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6655         * default.c (set_default_suffixes), function.c (string_glob),
6656         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6658         * default.c (default_variables) [_IBMR2]: FC=xlf
6660         * job.c (construct_command_argv_internal): Turn backslash-NL and
6661         following whitespace into a single space, rather than just eating
6662         the backslash.
6664         * make.texinfo (Copying): @include gpl.texinfo, rather than
6665         duplicating its contents.
6667 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6669         * job.c (construct_command_argv_internal): Make sure not to bother
6670         processing an empty line.
6672         * Version 3.62.0.
6674         * job.c (construct_command_argv_internal): Always recurse for slow;
6675         simple case didn't handle finding newlines.
6677 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
6679         * job.c (construct_command_argv_internal): Set RESTP properly when
6680         slow; don't \ify past a newline.
6682 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6684         * make.h [sgi]: #include <alloca.h>.
6688 See ChangeLog.1 for earlier changes.