* Add configure option to enable dmalloc library.
[make.git] / ChangeLog
blob25978d7d5cec0191099c6be171700df22cc95580
1 1999-07-21  Paul D. Smith  <psmith@gnu.org>
3         * various: Changed !strncmp() calls to strneq() macros.
5         * misc.c (sindex): Make slightly more efficient.
7         * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
8         * implicit.c (pattern_search): Ditto.
9         * main.c (enter_command_line_file): Ditto.
10         (main): Ditto.
11         * misc.c (copy_dep_chain): Ditto.
12         * read.c (read_makefile): Ditto.
13         (parse_file_seq): Ditto.
14         (tilde_expand): Ditto.
15         (multi_glob): Ditto.
16         * rule.c (install_pattern_rule): Ditto.
17         * variable.c (define_variable_in_set): Ditto.
18         (define_automatic_variables): Ditto.
19         * vpath.c (construct_vpath_list): Ditto.
21         * misc.c (xrealloc): If PTR is NULL, call malloc to conform to
22         the standard--some older versions of realloc are non-standard so
23         make xrealloc DTRT.
24         * main.c (main): Call xrealloc() directly instead of testing for
25         NULL.
27         * function.c (func_sort): Don't try to free NULL; some older,
28         non-standard versions of free() don't like it.
30         * configure.in (--enable-dmalloc): Install some support for using
31         dmalloc (http://www.dmalloc.com) with make.  Use --enable-dmalloc
32         with configure.
34 1999-07-20  Paul D. Smith  <psmith@gnu.org>
36         * job.c (start_job_command): Ensure that the state of the target
37         is cs_running.  It might not be if we skipped all the lines due to
38         -n (for example).
40         * commands.c (execute_file_commands): If we discover that the
41         command script is empty and succeed early, set cs_running so the
42         modtime of the target is still rechecked.
44         * rule.c (freerule): Free the dependency list for the rule.
46         * implicit.c (pattern_search): When turning an intermediate file
47         into a real target, keep the also_make list.
48         Free the dep->name if we didn't use it during enter_file().
50 1999-07-16  Paul D. Smith  <psmith@gnu.org>
52         * read.c (read_makefile): Don't allocate the commands buffer until
53         we're sure we found a makefile and won't return early (mem leak).
55         * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
56         not FD_SETFD.  Close-on-exec isn't getting set on the bad_stdin
57         file descriptor and it's leaking :-/.
58         * getloadavg.c (getloadavg): Ditto.
60 1999-07-15  Paul D. Smith  <psmith@gnu.org>
62         * read.c (read_makefile): Fix some potential memory stomps parsing
63         `define' directives where no variable name is given.
65         * function.c (func_call): Rename from func_apply.  Various code
66         cleanup and tightening.
67         (function_table): Add "call" as a valid builtin function.
69         * make.texinfo (Call Function): Document it.
71         * NEWS: Announce it.
73 1999-07-09  Eli Zaretskii  <eliz@is.elta.co.il>
75         * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
76         Treat "override SHELL=" the same as just "SHELL=".
78 1999-07-09  Paul D. Smith  <psmith@gnu.org>
80         * job.c (start_waiting_job): Don't get a second job token if we
81         already have one; if we're waiting on the load to go down
82         start_waiting_job() might get called twice on the same file.
84         * remake.c (update_goal_chain): If we try to update a goal and it
85         doesn't complete (e.g., parallel builds) remember that by setting
86         the `deferred' flag in the goal structure.  Later when we're
87         determining the return value we consider a goal updated if either
88         the mtime has changed _or_ this flag was set.  We need this
89         because the mtime doesn't change during the update_file() function
90         if we started a job running; instead it's set during the
91         reap_children() call.  So, the code doesn't know it was updated
92         and returns a status of -1 (nothing done).  This is OK during
93         "normal" builds since our caller (main) treats these cases
94         identically in that case, but if you're building makefiles the
95         difference is very important (whether we re-exec or not).
97         * dep.h: Add a `deferred' flag to track whether a goal was run but
98         not completed (parallel builds).
100 1999-07-08  Paul D. Smith  <psmith@gnu.org>
102         * main.c (switches): Define a new switch -R (or
103         --no-builtin-variables).  This option disables the defining of all
104         the GNU make builtin variables.
105         (main): If -R was given, force -r as well.
106         * default.c (define_default_variables): Test the new flag.
107         * make.h: Declare global flag.
108         * make.texinfo (Options Summary): Document the new option.
109         (Implicit Variables): Ditto.
111 1999-07-06  Paul D. Smith  <psmith@gnu.org>
113         * make.texinfo (Options Summary): Correct examples in
114         --print-data-base option summary (problem reported by David Morse
115         <morse@nichimen.com>).
117         * arscan.c: Add support for archives in Windows (VC++).  Frank
118         Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
119         this.
120         * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
121         compile line.
122         * build_w32.bat: Ditto.
124         * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
125         give errors if you try to -include the same file twice.
126         (updating_makefiles): New variable: we need to know this info in
127         no_rule_error() so we know whether to print an error or not.
128         (update_file_1): Unconditionally call no_rule_error(), don't try
129         to play games with the dontcare flag.
131 1999-06-14  Paul D. Smith  <psmith@gnu.org>
133         * make.texinfo (Remaking Makefiles): Add a description of how to
134         prevent implicit rule searches for makefiles.
136         * make.1: Remove statement that make continues processing when -v
137         is given.
139 1999-06-14  Paul D. Smith  <psmith@gnu.org>
141         * read.c (read_makefile): Cast -1 arguments to
142         variable_expand_string() to long.  Alexandre Sauve
143         <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
144         on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
145         anyway).  Of course, (a) I'd really love to start using function
146         prototypes, and (b) there's a whole slew of issues related to int
147         vs. long and signed vs. unsigned in the length handling of
148         variable buffers, etc.  Gross.  Needs a complete mucking-out.
149         * expand.c (variable_expand): Ditto.
151         * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
152         Lars Hecking <lhecking@nmrc.ucc.ie>.
154         * read.c (get_next_mword): Allow colons to be escaped in target
155         names: fix for regression failure.
157 1999-04-26  Paul D. Smith  <psmith@gnu.org>
159         * main.c (main): Reset read_makefiles to empty after processing so
160         we get the right error message.
162 1999-04-25  Paul D. Smith  <psmith@gnu.org>
164         * make.texinfo: Updates to @dircategory and @direntry suggested by
165         Karl Berry <karl@cs.umb.edu>.
167 1999-04-23  Eli Zaretskii  <eliz@is.elta.co.il>
169         * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
170         turning off dos_command_running, so child's signals produce the
171         right effect.
173         * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
174         instead of 1.
176 1999-04-18  Eli Zaretskii  <eliz@is.elta.co.il>
178         * configh.dos.template: Update to recognize that version 2.02 of
179         DJGPP contains sys_siglist stuff.
181 1999-04-14  Paul D. Smith  <psmith@gnu.org>
183         * make.texinfo (Options/Recursion): Document the job server.
184         (Parallel): Tweaks.
186 1999-04-13  Paul D. Smith  <psmith@gnu.org>
188         Implement a new "job server" feature; the implementation was
189         suggested by Howard Chu <hyc@highlandsun.com>.
191         * configure.in (job-server): New disable option for job server
192         support--it's enabled by default.
194         * NEWS: Summarize the new feature.
196         * acconfig.h: New definition MAKE_JOBSERVER if job server support
197         is enabled.
198         * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
199         * config.h.W32.template: Ditto.
200         * config.ami.template: Ditto.
202         * main.c (struct command_switch): Add a new type: int_string.
203         (switches[]) Use int_string for -j if MAKE_JOBSERVER.
204         (init_switches): Initialize the new int_string switch type.
205         (print_usage): New function, extracted from decode_switches().
206         (decode_switches): Call it.  Decode the new int_string switch type.
207         (define_makeflags): Add new int_string switch data to MAKEFLAGS.
208         (job_fds[]) Array to contain the pipe file descriptors.
209         (main): Parse the job_slots_str option results.  If necessary,
210         create the pipe and seed it with tokens.  Set the non-blocking bit
211         for the read fd.  Enable the signal handler for SIGCHLD even if we
212         have a non-hanging wait; it's needed to interrupt the select() in
213         job.c:start_waiting_job().
215         * make.h: Declare job_fds[].
217         * job.h (struct child): Add job_token field to store the token for
218         this job (if any).
220         * job.c (reap_children): When a child is fully reaped, release the
221         token back into the pipe.
222         (free_child): If the child to be freed still has a token, put it
223         back.
224         (new_job): Initialize the job_token member.
225         (start_waiting_job): For local jobs, if we're using the pipe, get
226         a token before we check the load, etc.  We do this by performing a
227         non-blocking read in a loop.  If the read fails, no token is
228         available.  Do a select on the fd to wait for a token.  We need to
229         re-enable the signal handler for SIGCHLD even if we have a
230         non-hanging waitpid() or wait3(), so that the signal will
231         interrupt the select() and we can wake up to reap children.
232         (child_handler): Re-enable the signal handler.  The count is still
233         kept although it's not needed or used unless you don't have
234         waitpid() or wait3().
236 1999-04-03  Paul D. Smith  <psmith@gnu.org>
238         * remake.c (f_mtime): If: a) we found a file and b) we didn't
239         create it and c) it's not marked as an implicit target and d) it
240         is marked as an intermediate target, then it was so marked due to
241         an .INTERMEDIATE special target, but it already existed in the
242         directory.  In this case, unset the intermediate flag so we won't
243         delete it when make is done.  It feels like it would be cleaner to
244         put this check in update_file_1() but I worry it'll get missed...
246 1999-04-01  Paul D. Smith  <psmith@gnu.org>
248         * job.c (construct_command_argv_internal): Use bcopy() to copy
249         overlapping strings, rather than strcpy().  ISO C says the latter
250         is undefined.  Found this in a bug report from 1996!  Ouch!
252 1999-03-31  Paul D. Smith  <psmith@gnu.org>
254         * read.c (readline): Ignore carriage returns at the end of the
255         line, to allow Windows-y CRLF line terminators.
257 1999-03-30  Paul D. Smith  <psmith@gnu.org>
259         * configure.in: Don't put build.sh here, since build.sh.in doesn't
260         exist initially.  This cause autoreconf and automake to fail when
261         run on a clean CVS checkout.  Instead, we create build.sh in the
262         Makefile (see below).
264         * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
265         Put those files directly into EXTRA_DIST so they're distributed.
266         Create a local build rule to create build.sh.
267         Create a local maintainer-clean rule to delete all the funky
268         maintainers files.
270         * maintMakefile: Makefile.in depends on README, since automake
271         fails if it doesn't exist.  Also don't remove glob/Makefile.in
272         here, as it causes problems.
274 1999-03-26  Paul D. Smith  <psmith@gnu.org>
276         * configure.in: Substitute GLOBLIB if we need the link the
277         glob/libglob.a library.
278         * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
279         don't link the local libglob.a at all if we don't need it.
280         * build.template: Don't compile glob/*.o unless we want globlib.
281         * maintMakefile (build.sh.in): Substitute the glob/*.o files
282         separately.
284 1999-03-25  Paul D. Smith  <psmith@gnu.org>
286         * make.texinfo: Various typos and additions, pointed out by James
287         G. Sack <jsack@dornfeld.com>.
289 1999-03-22  Paul D. Smith  <psmith@gnu.org>
291         * make.texinfo (Functions): Add a new section documenting the new
292         $(error ...) and $(warning ...) functions.  Also updated copyright
293         dates.
294         * NEWS: Updated for the new functions.
295         * function.c (func_error): Implement the new $(error ...) and
296         $(warning ...) functions.
297         (function_table): Insert new functions into the table.
298         (func_firstword): Don't call find_next_token() with argv[0]
299         itself, since that function modifies the pointer.
300         * function.c: Cleanups and slight changes to the new method of
301         calling functions.
303 1999-03-20  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
305         * function.c: Rewrite to use one C function per make function,
306         instead of a huge switch statement.  Also allows some cleanup of
307         multi-architecture issues, and a cleaner API which makes things
308         like func_apply() simple.
310         * function.c (func_apply): Initial implementation.  Expand either
311         a builtin function or a make variable in the context of some
312         arguments, provided as $1, $2, ... $N.
314 1999-03-19  Eli Zaretskii  <eliz@is.elta.co.il>
315 1999-03-19  Rob Tulloh  <rob_tulloh@dev.tivoli.com>
317         * job.c (construct_command_argv_internal): Don't treat _all_
318         backslashes as escapes, only those which really escape a special
319         character.  This allows most normal "\" directory separators to be
320         treated normally.
322 1999-03-05  Paul D. Smith  <psmith@gnu.org>
324         * configure.in: Check for a system strdup().
325         * misc.c (xstrdup): Created.  Suggestion by Han-Wen Nienhuys
326         <hanwen@cs.uu.nl>.
327         * make.h: Prototype xstrdup().
328         * remake.c (library_search): Use it.
329         * main.c (main): Use it.
330         (find_and_set_default_shell): Use it.
331         * job.c (construct_command_argv_internal): Use it.
332         * dir.c (find_directory): Use it.
334         * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
335         maintMakefile instead of "include", to avoid automake 1.4
336         incompatibility.
338 1999-03-04  Paul D. Smith  <psmith@gnu.org>
340         * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
341         * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
342         * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
343         * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
344         * vpath.c, Makefile.ami, NMakefile.template, build.template,
345         * makefile.vms: Updated FSF address in the copyright notice.
347         * variable.c (try_variable_definition): If we see a conditional
348         variable and we decide to set it, re-type it as recursive so it
349         will be expanded properly later.
351 1999-02-22  Paul D. Smith  <psmith@gnu.org>
353         * NEWS: Mention new .LIBPATTERNS feature.
355         * make.texinfo (Libraries/Search): Describe the use and
356         ramifications of the new .LIBPATTERNS variable.
358         * remake.c (library_search): Instead of searching only for the
359         hardcoded expansion "libX.a" for a library reference "-lX", we
360         obtain a list of patterns from the .LIBPATTERNS variable and
361         search those in order.
363         * default.c: Added a new default variable .LIBPATTERNS.  The
364         default for UNIX is "lib%.so lib%.a".  Amiga and DOS values are
365         also provided.
367         * read.c: Remove bogus HAVE_GLOB_H references; always include
368         vanilla glob.h.
370 1999-02-21  Paul D. Smith  <psmith@gnu.org>
372         * function.c (expand_function): Set value to 0 to avoid freeing it.
373         * variable.c (pop_variable_scope): Free the value of the variable.
374         (try_variable_definition): For simple variables, use
375         allocated_variable_expand() to avoid stomping on the variable
376         buffer when we still need it for other things.
378         * arscan.c: Modified to support AIX 4.3 big archives.  The changes
379         are based on information provided by Phil Adams
380         <padams@austin.ibm.com>; thanks!
382 1999-02-19  Paul D. Smith  <psmith@gnu.org>
384         * configure.in: Check to see if the GNU glob library is already
385         installed on the system.  If so, _don't_ add -I./glob to the
386         compile line.  Using the system glob code with the local headers
387         is very bad mojo!
388         Rewrite SCCS macros to use more autoconf facilities.
390         * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
391         CPPFLAGS by configure now.
392         Automake 1.4 introduced its own "include" feature which conflicts
393         with the maintMakefile stuff.  A hack that seems to work is add a
394         space before the include :-/.
396         * build.template: Move -Iglob out of the compile line; it'll get
397         added to CPPFLAGS by configure now.
399 1999-02-16  Glenn D. Wolf  <Glenn_Wolf@email.sps.mot.com>
401         * arscan.c (ar_scan): [VMS] Initialized VMS_member_date before
402         calling lbr$get_index since if the archive is empty,
403         VMS_get_member_info won't get called at all, and any leftover date
404         will be used.  This bug shows up if any member of any archive is
405         made, followed by a dependency check on a different, empty
406         archive.
408 1998-11-30  Paul D. Smith  <psmith@gnu.org>
410         * signame.c (init_sig): Check the sizes of signals being set up to
411         avoid array overwrites (if the system headers have problems).
413 1998-11-17  Paul D. Smith  <psmith@gnu.org>
415         * read.c (record_files): Clean up some indentation.
417 1998-11-08  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
419         * rule.c (print_rule_data_base): Fix arguments to fatal() call.
421 1998-10-13  Paul D. Smith  <psmith@gnu.org>
423         * job.c (start_job_command): If the command list resolves to no
424         chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
425         quit early.
427 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
429         * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
430         zero.
432 1998-10-09  Paul D. Smith  <psmith@gnu.org>
434         * read.c (read_makefile): Allow non-empty lines to expand to the
435         empty string after variable, etc., expansion, and be ignored.
437 1998-09-21  Paul D. Smith  <psmith@gnu.org>
439         * job.c (construct_command_argv_internal): Only add COMMAND.COM
440         "@echo off" line for non-UNIXy shells.
442 1998-09-09  Paul D. Smith  <psmith@gnu.org>
444         * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
446 1998-09-04  Paul D. Smith  <psmith@gnu.org>
448         * read.c (read_makefile): If we hit the "missing separator" error,
449         check for the common case of 8 spaces instead of a TAB and give an
450         extra comment to help people out.
452 1998-08-29  Paul Eggert  <eggert@twinsun.com>
454         * configure.in (AC_STRUCT_ST_MTIM_NSEC):
455         Renamed from AC_STRUCT_ST_MTIM.
457         * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC):  Likewise.
458         Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
460         * acconfig.h (ST_MTIM_NSEC):
461         Renamed from HAVE_ST_MTIM, with a new meaning.
463         * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
464         Use new ST_MTIM_NSEC macro.
466 1998-08-26  Paul D. Smith  <psmith@gnu.org>
468         * remake.c (check_dep): For any intermediate file, not just
469         secondary ones, try implicit and default rules if no explicit
470         rules are given.  I'm not sure why this was restricted to
471         secondary rules in the first place.
473 1998-08-24  Paul D. Smith  <psmith@gnu.org>
475         * make.texinfo (Special Targets): Update documentation for
476         .INTERMEDIATE: if used with no dependencies, then it does nothing;
477         old docs said it marked all targets as intermediate, which it
478         didn't... and which would be silly :).
480         * implicit.c (pattern_search): If we find a dependency in our
481         internal tables, make sure it's not marked intermediate before
482         accepting it as a found_file[].
484 1998-08-20  Paul D. Smith  <psmith@gnu.org>
486         * ar.c (ar_glob): Use existing alpha_compare() with qsort.
487         (ar_glob_alphacompare): Remove it.
489         Modify Paul Eggert's patch so we don't abandon older systems:
491         * configure.in: Warn the user if neither waitpid() nor wait3() is
492         available.
494         * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
495         (child_handler, dead_children): Define these if WAIT_NOHANG is not
496         available.
497         (reap_children): Only track the dead_children count if no
498         WAIT_NOHANG.  Otherwise, it's a boolean.
500         * main.c (main): Add back signal handler if no WAIT_NOHANG is
501         available; only use default signal handler if it is.
503 1998-08-20  Paul Eggert  <eggert@twinsun.com>
505         Install a more robust signal handling mechanism for systems which
506         support it.
508         * job.c (WAIT_NOHANG): Define to a syntax error if our host
509         is truly ancient; this should never happen.
510         (child_handler, dead_children): Remove.
511         (reap_children): Don't try to keep separate track of how many
512         dead children we have, as this is too bug-prone.
513         Just ask the OS instead.
514         (vmsHandleChildTerm): Fix typo in error message; don't mention
515         child_handler.
517         * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
518         do this early, before we could possibly create a subprocess.
519         Just use the default behavior; don't have our own handler.
521 1998-08-18  Eli Zaretskii  <eliz@is.elta.co.il>
523         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
524         recognize library archive members when dealing with drive spec
525         mess.  Discovery and initial fix by George Racz <gracz@mincom.com>.
527 1998-08-18  Paul D. Smith  <psmith@gnu.org>
529         * configure.in: Check for stdlib.h explicitly (some hosts have it
530         but don't have STDC_HEADERS).
531         * make.h: Use HAVE_STDLIB_H.  Clean up some #defines.
532         * config.ami: Re-compute based on new config.h.in contents.
533         * config.h-vms: Ditto.
534         * config.h.W32: Ditto.
535         * configh.dos: Ditto.
537 1998-08-17  Paul D. Smith  <psmith@gnu.org>
539         * make.texinfo: Added copyright year to the printed copy.  Removed
540         the price from the manual.  Change the top-level reference to
541         running make to be "Invoking make" instead of "make Invocation",
542         to comply with GNU doc standards.
544         * make.h (__format__, __printf__): Added support for these in
545         __attribute__ macro.
546         (message, error, fatal): Use ... prototype form under __STDC__.
547         Add __format__ attributes for printf-style functions.
549         * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
551         * misc.c(message, error, fatal): Add preprocessor stuff to enable
552         creation of variable-argument functions with appropriate
553         prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
554         v*printf(), _doprnt(), or none of the above.  Culled from GNU
555         fileutils and slightly modified.
556         (makefile_error, makefile_error): Removed (merged into error() and
557         fatal(), respectively).
558         * amiga.c: Use them.
559         * ar.c: Use them.
560         * arscan.c: Use them.
561         * commands.c: Use them.
562         * expand.c: Use them.
563         * file.c: Use them.
564         * function.c: Use them.
565         * job.c: Use them.
566         * main.c: Use them.
567         * misc.c: Use them.
568         * read.c: Use them.
569         * remake.c: Use them.
570         * remote-cstms.c: Use them.
571         * rule.c: Use them.
572         * variable.c: Use them.
574         * make.h (struct floc): New structure to store file location
575         information.
576         * commands.h (struct commands): Use it.
577         * variable.c (try_variable_definition): Use it.
578         * commands.c: Use it.
579         * default.c: Use it.
580         * file.c: Use it.
581         * function.c: Use it.
582         * misc.c: Use it.
583         * read.c: Use it.
584         * rule.c: Use it.
586 1998-08-16  Paul Eggert  <eggert@twinsun.com>
588         * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
590 1998-08-16  Paul Eggert  <eggert@twinsun.com>
592         * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
593         (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
594         make it easier to understand.
596 1998-08-14  Paul D. Smith  <psmith@gnu.org>
598         * read.c (read_makefile): We've already unquoted any colon chars
599         by the time we're done reading the targets, so arrange for
600         parse_file_seq() on the target list to not do so again.
602 1998-08-05  Paul D. Smith  <psmith@gnu.org>
604         * configure.in: Added glob/configure.in data.  We'll have the glob
605         code include the regular make config.h, rather than creating its
606         own.
608         * getloadavg.c (main): Change return type to int.
610 1998-08-01  Paul Eggert  <eggert@twinsun.com>
612         * job.c (reap_children): Ignore unknown children.
614 1998-07-31  Paul D. Smith  <psmith@gnu.org>
616         * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
617         Add prototypes for functions.  Some prototypes needed to be moved
618         in order to get #include order reasonable.
620 1998-07-30  Paul D. Smith  <psmith@gnu.org>
622         * make.h: Added MIN/MAX.
623         * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
625 1998-07-30  Paul Eggert  <eggert@twinsun.com>
627         Add support for sub-second timestamp resolution on hosts that
628         support it (just Solaris 2.6, so far).
630         * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
631         * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
632         jm_AC_TYPE_UINTMAX_T): New defuns.
633         * commands.c (delete_target): Convert file timestamp to
634         seconds before comparing to archive timestamp.  Extract mod
635         time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
636         * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
637         (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
638         * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
639         (file_timestamp_now, file_timestamp_sprintf): New functions.
640         (print_file): Print file timestamps as FILE_TIMESTAMP, not
641         time_t.
642         * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
643         (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
644         FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
645         FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
646         FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
647         (file_timestamp_now, file_timestamp_sprintf): New decls.
648         (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
649         time_t -> FILE_TIMESTAMP.
650         * implicit.c (pattern_search): Likewise.
651         * vpath.c (vpath_search, selective_vpath_search): Likewise.
652         * main.c (main): Likewise.
653         * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
654         (f_mtime): Use file_timestamp_now instead of `time'.
655         Print file timestamp with file_timestamp_sprintf.
656         * vpath.c (selective_vpath_search): Extract file time stamp from
657         struct stat with FILE_TIMESTAMP_STAT_MODTIME.
659 1998-07-28  Paul D. Smith  <psmith@gnu.org>
661         * Version 3.77 released.
663         * dosbuild.bat: Change to DOS CRLF line terminators.
665         * make-stds.texi: Update from latest version.
667         * make.texinfo (Options Summary): Clarify that the -r option
668         affects only rules, not builtin variables.
670 1998-07-27  Paul D. Smith  <psmith@gnu.org>
672         * make.h: Make __attribute__ resolve to empty for non-GCC _and_
673         for GCC pre-2.5.x.
675         * misc.c (log_access): Print UID/GID's as unsigned long int for
676         maximum portability.
678         * job.c (reap_children): Print PIDs as long int for maximum
679         portability.
681 1998-07-24  Eli Zaretskii  <eliz@is.elta.co.il>
683         * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
685 1998-07-25  Paul D. Smith  <psmith@gnu.org>
687         * Version 3.76.94 released.
689 1998-07-23  Paul D. Smith  <psmith@gnu.org>
691         * config.h.W32.template: Make sure all the #defines of macros here
692         have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
693         just ``#define HAVE_STRING_H''.  Keeps the preprocessor happy in
694         some contexts.
696         * make.h: Remove __attribute__((format...)) stuff; using it with
697         un-prototyped functions causes older GCC's to fail.
699         * Version 3.76.93 released.
701 1998-07-22  Paul D. Smith  <psmith@gnu.org>
703         * file.c (print_file_data_base): Fix average calculation.
705 1998-07-20  Paul D. Smith  <psmith@gnu.org>
707         * main.c (die): Postpone the chdir() until after
708         remove_intermediates() so that intermediate targets with relative
709         pathnames are removed properly.
711 1998-07-17  Paul D. Smith  <psmith@gnu.org>
713         * filedef.h (struct file): New flag: did we print an error or not?
715         * remake.c (no_rule_error): New function to print error messages,
716         extraced from remake_file().
718         * remake.c (remake_file): Invoke the new error print function.
719         (update_file_1): Invoke the error print function if we see that we
720         already tried this target and it failed, but that an error wasn't
721         printed for it.  This can happen if a file is included with
722         -include or sinclude and couldn't be built, then later is also
723         the dependency of another target.  Without this change, make just
724         silently stops :-/.
726 1998-07-16  Paul D. Smith  <psmith@gnu.org>
728         * make.texinfo: Removed "beta" version designator.
729         Updated ISBN for the next printing.
731 1998-07-13  Paul Eggert  <eggert@twinsun.com>
733         * acinclude.m4: New AC_LFS macro to determine if special compiler
734         flags are needed to allow access to large files (e.g., Solaris 2.6).
735         * configure.in: Invoke it.
737 1998-07-08  Eli Zaretskii  <eliz@is.elta.co.il>
739         * Makefile.DOS: track changes in Makefile.in.
741 1998-07-07  Paul D. Smith  <psmith@gnu.org>
743         * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
744         top so host is initialized early enough.
746         * acinclude.m4: New file.  Need some special autoconf macros to
747         check for network libraries (-lsocket, -lnsl, etc.) when
748         configuring Customs.
750         * configure.in (make_try_customs): Invoke new network libs macro.
752 1998-07-06  Paul D. Smith  <psmith@gnu.org>
754         * Version 3.76.92 released.
756         * README.customs: Added to the distribution.
758         * configure.in (make_try_customs): Rewrite to require an installed
759         Customs library, rather than looking at the build directory.
761         * Makefile.am (man_MANS): Install make.1.
762         * make.1: Renamed from make.man.
764         * make.texinfo (Bugs): New mailing list address for GNU make bug
765         reports.
767 1998-07-02  Paul D. Smith  <psmith@gnu.org>
769         * Version 3.76.91 released.
771         * default.c: Added default rule for new-style RCS master file
772         storage; ``% :: RCS/%''.
773         Added default rules for DOS-style C++ files with suffix ".cpp".
774         They use the new LINK.cpp and COMPILE.cpp macros, which are set by
775         default to be equal to LINK.cc and COMPILE.cc.
777 1998-06-19  Eli Zaretskii  <eliz@is.elta.co.il>
779         * job.c (start_job_command): Reset execute_by_shell after an empty
780         command was skipped.
782 1998-06-09  Paul D. Smith  <psmith@gnu.org>
784         * main.c (main): Keep track of the temporary filename created when
785         reading a makefile from stdin (-f-) and attempt to remove it
786         as soon as we know we're not going to re-exec.  If we are, add it
787         to the exec'd make's cmd line with "-o" so the exec'd make doesn't
788         try to rebuild it.  We still have a hole: if make re-execs then
789         the temporary file will never be removed.  To fix this we'd need
790         a brand new option that meant "really delete this".
791         * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
792         Updated mailing addresses.
794 1998-06-08  Paul D. Smith  <psmith@gnu.org>
796         * main.c (main): Andreas Luik <luik@isa.de> points out that the
797         check for makefile :: rules with commands but no dependencies
798         causing a loop terminates incorrectly.
800         * maintMakefile: Make a template for README.DOS to update version
801         numbers.
803 1998-05-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
805         * remake.c (update_file_1): Don't free the memory for the
806         dependency structure when dropping a circular dependency.
808 1998-05-30  Eli Zaretskii  <eliz@is.elta.co.il>
810         * dir.c (file_exists_p, file_impossible_p, file_impossible)
811         [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
812         dirname of "d:foo" be "d:".
814 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
816         * read.c (read_makefile): Avoid running past EOS when scanning
817         file name after `include'.
819 1998-05-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
821         * make.texinfo (Flavors): Correct description of conditional
822         assignment, which is not equivalent to ifndef.
823         (Setting): Likewise.
825 1998-05-24  Paul D. Smith  <psmith@gnu.org>
827         * arscan.c (ar_name_equal): strncmp() might be implemented as a
828         macro, so don't put preprocessor conditions inside the arguments
829         list.
831 1998-05-23  Eli Zaretskii  <eliz@is.elta.co.il>
833         * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
834         drive specs when parsing targets, target-specific variables and
835         static pattern rules.  A colon can only be part of drive spec if
836         it is after the first letter in a token.
838 1998-05-22  Eli Zaretskii  <eliz@is.elta.co.il>
840         * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
841         yelling bloody murder.
843         * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
845         * read.c (parse_file_seq): Combine the special file-handling code
846         for WINDOWS32 and __MSDOS__ into a single snippet.
847         (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
848         colon as part of a drive spec.
850         * job.c (batch_mode_shell) [__MSDOS__]: Declare.
852 1998-05-20  Paul D. Smith  <psmith@gnu.org>
854         * Version 3.76.90 released.
856 1998-05-19  Paul D. Smith  <psmith@gnu.org>
858         * make.texinfo (Make Errors): Added a new appendix describing
859         common errors make might generate and how to resolve them (or at
860         least more information on what they mean).
862         * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
863         to create a dependency file to construct Makefile.DOS, SMakefile,
864         and NMakefile.
865         (.dep_segment): Generate the dependency fragment file.
867 1998-05-14  Paul D. Smith  <psmith@gnu.org>
869         * make.man: Minor changes.
871 1998-05-13  Paul D. Smith  <psmith@gnu.org>
873         * function.c (pattern_matches,expand_function): Change variables
874         and types named "word" to something else, to avoid compilation
875         problems on Cray C90 Unicos.
876         * variable.h: Modify the function prototype.
878 1998-05-11  Rob Tulloh  <rob_tulloh@tivoli.com>
880         * job.c (construct_command_argv_internal): [WINDOWS32] Turn off
881         echo when using a batch file, and make sure the command ends in a
882         newline.
884 1998-05-03  Paul D. Smith  <psmith@gnu.org>
886         * configure.in (make_try_customs): Add some customs flags if the
887         user configures custom support.
889         * job.c, remote-cstms.c: Merge in changes for custom library.
891         * remote-stub.c: Add option to stub start_remote_job_p().
893 1998-05-01  Paul D. Smith  <psmith@gnu.org>
895         * remake.c (f_mtime): Install VPATH+ handling for archives; use
896         the hname field instead of the name field, and rehash when
897         appropriate.
899 1998-04-30  Paul D. Smith  <psmith@gnu.org>
901         * rule.c (print_rule_data_base): Print out any pattern-specific
902         variable values into the rules database.
904         * variable.c (print_variable_set): Make this variable extern, to
905         be called by print_rule_data_base() for pattern-specific variables.
907         * make.texinfo (Pattern-specific): Document pattern-specific
908         variables.
910 1998-04-29  Paul D. Smith  <psmith@gnu.org>
912         * expand.c (variable_expand_for_file): Make static; its only
913         called internally.  Look up this target in the list of
914         pattern-specific variables and insert the variable set into the
915         queue to be searched.
917         * filedef.h (struct file): Add a new field to hold the
918         previously-found pattern-specific variable reference.  Add a new
919         flag to remember whether we already searched for this file.
921         * rule.h (struct pattern_var): New structure for storing
922         pattern-specific variable values.  Define new function prototypes.
924         * rule.c: New variables pattern_vars and last_pattern_var for
925         storage and handling of pattern-specific variable values.
926         (create_pattern_var): Create a new pattern-specific variable value
927         structure.
928         (lookup_pattern_var): Try to match a target to one of the
929         pattern-specific variable values.
931 1998-04-22  Paul D. Smith  <psmith@gnu.org>
933         * make.texinfo (Target-specific): Document target-specific
934         variables.
936 1998-04-21  Paul D. Smith  <psmith@gnu.org>
938         * variable.c (define_variable_in_set): Made globally visible.
939         (lookup_variable_in_set): New function: like lookup_variable but
940         look only in a specific variable set.
941         (target_environment): Use lookup_variable_in_set() to get the
942         correct export rules for a target-specific variable.
943         (create_new_variable_set): Create a new variable set, and just
944         return it without installing it anywhere.
945         (push_new_variable_scope): Reimplement in terms of
946         create_new_variable_set.
948         * read.c (record_target_var): Like record_files, but instead of
949         files create a target-specific variable value for each of the
950         listed targets.  Invoked from read_makefile() when the target line
951         turns out to be a target-specific variable assignment.
953 1998-04-19  Paul D. Smith <psmith@gnu.org>
955         * read.c (read_makefile): Rewrite the entire target parsing
956         section to implement target-specific variables.  In particular, we
957         cannot expand the entire line as soon as it's read in, since we
958         may want to evaluate parts of it with different variable contexts
959         active.  Instead, start expanding from the beginning until we find
960         the `:' (or `::'), then determine what kind of line this is and
961         continue appropriately.
963         * read.c (get_next_mword): New function to parse a makefile line
964         by "words", considering an entire variable or function as one
965         word.  Return the type read in, along with its starting position
966         and length.
967         (enum make_word_type): The types of words that are recognized by
968         get_next_mword().
970         * variable.h (struct variable): Add a flag to specify a per-target
971         variable.
973         * expand.c: Make variable_buffer global.  We need this during the
974         new parsing of the makefile.
975         (variable_expand_string): New function.  Like variable_expand(),
976         but start at a specific point in the buffer, not the beginning.
977         (variable_expand): Rewrite to simply call variable_expand_string().
979 1998-04-13  Paul D. Smith  <psmith@gnu.org>
981         * remake.c (update_goal_chain): Allow the rebuilding makefiles
982         step to use parallel jobs.  Not sure why this was disabled:
983         hopefully we won't find out :-/.
985 1998-04-11  Paul D. Smith  <psmith@gnu.org>
987         * main.c (main): Set the CURDIR makefile variable.
988         * make.texinfo (Recursion): Document it.
990 1998-03-17  Paul D. Smith  <psmith@gnu.org>
992         * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
993         * variable.c (try_variable_definition): Use new feature.
995 1998-03-10  Paul D. Smith  <psmith@gnu.org>
997         * main.c (main): Don't pass included, rebuilt makefiles to
998         re-exec'd makes with -o.  Reopens a possible loop, but it caused
999         too many problems.
1001 1998-03-02  Paul D. Smith  <psmith@gnu.org>
1003         * variable.c (try_variable_definition): Implement ?=.
1004         * make.texinfo (Setting): Document it.
1006 1998-02-28  Eli Zaretskii  <eliz@is.elta.co.il>
1008         * job.c (start_job_command): Reset execute_by_shell after an empty
1009         command, like ":", has been seen.
1011 Tue Oct 07 15:00:00 1997  Phil Brooks <phillip_brooks@hp.com>
1013         * make.h: [WINDOWS32] make case sensitivity configurable
1014         * dir.c: [WINDOWS32] make case sensitivity configurable
1015         * README.W32: Document case sensitivity
1016         * config.ami: Share case warping code with Windows
1018 Mon Oct  6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1020         * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
1021         (turn on HAVE_MKS_SHELL).
1022         * read.c: [WINDOWS32] Fixed a problem with multiple target rules
1023         reported by Gilbert Catipon (gcatipon@tibco.com).  If multiple
1024         path tokens in a rule did not have drive letters, make would
1025         incorrectly concatenate the 2 tokens together.
1026         * main.c/variable.c: [WINDOWS32] changed SHELL detection code to
1027         follow what MSDOS did. In addition to watching for SHELL variable
1028         updates, make's main will attempt to default the value of SHELL
1029         before and after makefiles are parsed.
1030         * job.c/job.h: [WINDOWS32] The latest changes made to enable use
1031         of the GNUWIN32 shell from make could cause make to fail due to a
1032         concurrency condition between parent and child processes.  Make
1033         now creates a batch file per job instead of trying to reuse the
1034         same singleton batch file.
1035         * job.c/job.h/function.c/config.h.W32: [WINDOWS32] Renamed macro
1036         from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
1037         logic to reduce complexity. WINDOWS32 now uses the unixy_shell
1038         variable to detect Bourne-shell compatible environments. There is
1039         also a batch_mode_shell variable that determines whether not
1040         command lines should be executed via script files. A WINDOWS32
1041         system with no sh.exe installed would have unixy_shell set to
1042         FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
1043         that does not behave well when invoking things via 'sh -c xxx',
1044         you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
1045         improve.
1046         * NMakefile: Added /D DEBUG to debug build flags so that unhandled
1047         exceptions could be debugged.
1049 Mon Oct  6 00:04:25 1997  Rob Tulloh <rob_tulloh@dev.tivoli.com>
1051         * main.c: [WINDOWS32] The function define_variable() does not
1052         handle NULL. Test before calling it to set Path.
1053         * main.c: [WINDOWS32] Search Path again after makefiles have been
1054         parsed to detect sh.exe.
1055         * job.c: [WINDOWS32] Added support for Cygnus GNU WIN32 tools.
1056         To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
1057         * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
1059 Sun Oct  5 22:43:59 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
1061         * glob/glob.c (glob_in_dir): [VMS] Globbing shouldn't be
1062         case-sensitive.
1063         * job.c (child_execute_job): [VMS] Use a VMS .com file if the
1064         command contains a newline (e.g. from a define/enddef block).
1065         * vmsify.c (vmsify): Return relative pathnames wherever possible.
1066         * vmsify.c (vmsify): An input string like "../.." returns "[--]".
1068 Wed Oct  1 15:45:09 1997  Rob Tulloh <rob_tulloh@tivoli.com>
1070         * NMakefile: Changed nmake to $(MAKE).
1071         * subproc.bat: Take the make command name from the command
1072         line. If no command name was given, default to nmake.
1073         * job.c: [WINDOWS32/MSDOS] Fix memory stomp: temporary file names
1074         are now always created in heap memory.
1075         * w32/subproc/sub_proc.c: New implementation of make_command_line()
1076         which is more compatible with different Bourne shell implementations.
1077         Deleted the now obsolete fix_command_line() function.
1078         * main.c: [WINDOWS32] Any arbitrary spelling of Path can be
1079         detected. Make will ensure that the special spelling `Path' is
1080         inserted into the environment when the path variable is propagated
1081         within itself and to make's children.
1082         * main.c: [WINDOWS32] Detection of sh.exe was occurring too
1083         soon. The 2nd check for the existence of sh.exe must come after
1084         the call to read_all_makefiles().
1086 Fri Sep 26 01:14:18 1997  <zinser@axp602.gsi.de>
1088         * makefile.com: [VMS] Fixed definition of sys.
1089         * readme.vms: Comments on what's changed lately.
1091 Fri Sep 26 01:14:18 1997  John W. Eaton <jwe@bevo.che.wisc.edu>
1093         * read.c (read_all_makefiles): Allow make to find files named
1094         "MAKEFILE" with no extension on VMS.
1095         * file.c (lookup_file): Lowercase filenames on VMS.
1097 1997-09-29  Paul D. Smith  <psmith@baynetworks.com>
1099         * read.c (read_makefile): Reworked target detection again; the old
1100         version had an obscure quirk.
1102 Fri Sep 19 09:20:49 1997  Paul D. Smith  <psmith@baynetworks.com>
1104         * Version 3.76.1 released.
1106         * Makefile.am: Add loadavg files to clean rules.
1108         * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
1109         * Makefile.ami (distclean): Ditto.
1110         * SMakefile (distclean): Ditto.
1112         * main.c (main): Arg count should be int, not char!  Major braino.
1114 Tue Sep 16 10:18:22 1997  Paul D. Smith  <psmith@baynetworks.com>
1116         * Version 3.76 released.
1118 Tue Sep  2 10:07:39 1997  Paul D. Smith  <psmith@baynetworks.com>
1120         * function.c (expand_function): When processing $(shell...)
1121         translate a CRLF (\r\n) sequence as well as a newline (\n) to a
1122         space.  Also remove an ending \r\n sequence.
1123         * make.texinfo (Shell Function): Document it.
1125 Fri Aug 29 12:59:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1127         * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
1128         paths which contain single character entries like `.' are not
1129         handled correctly.
1131         * README.W32: Document path handling issues on Windows systems.
1133 Fri Aug 29 02:01:27 1997  Paul D. Smith  <psmith@baynetworks.com>
1135         * Version 3.75.93.
1137 Thu Aug 28 19:39:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1139         * job.c (exec_command): [WINDOWS32] If exec_command() is invoked
1140         from main() to re-exec make, the call to execvp() would
1141         incorrectly return control to parent shell before the exec'ed
1142         command could run to completion. I believe this is a feature of
1143         the way that execvp() is implemented on top of WINDOWS32 APIs. To
1144         alleviate the problem, use the supplied process launch function in
1145         the sub_proc library and suspend the parent process until the
1146         child process has run.  When the child exits, exit the parent make
1147         with the exit code of the child make.
1149 Thu Aug 28 17:04:47 1997  Paul D. Smith  <psmith@baynetworks.com>
1151         * Makefile.DOS.template (distdir): Fix a line that got wrapped in
1152         email.
1154         * Makefile.am (loadavg): Give the necessary cmdline options when
1155         linking loadavg.
1157         * configure.in: Check for pstat_getdynamic for getloadvg on HP.
1159         * job.c (start_job_command): [VMS,_AMIGA] Don't perform empty
1160         command optimization on these systems; it doesn't make sense.
1162 Wed Aug 27 17:09:32 1997  Paul D. Smith  <psmith@baynetworks.com>
1164         * Version 3.75.92
1166 Tue Aug 26 11:59:15 1997  Paul D. Smith  <psmith@baynetworks.com>
1168         * main.c (print_version): Add '97 to copyright years.
1170         * read.c (do_define): Check the length of the array before looking
1171         at a particular offset.
1173         * job.c (construct_command_argv_internal): Examine the last byte
1174         of the previous arg, not the byte after that.
1176 Sat Aug 23 1997  Eli Zaretskii  <eliz@is.elta.co.il>
1178         * Makefile.DOS.template: New file (converted to Makefile.DOS in
1179         the distribution).
1181         * configure.bat: Rewrite to use Makefile.DOS instead of editing
1182         Makefile.in.  Add support for building from outside of the source
1183         directory.  Fail if the environment block is too small.
1185         * configh.dos: Use <sys/config.h>.
1187         * README.DOS: Update instructions.
1189 Fri Aug 22 1997  Eli Zaretskii  <eliz@is.elta.co.il>
1191         * job.c (start_job_command): [__MSDOS__] Don't test for "/bin/sh"
1192         literally, use value of unixy_shell instead.
1194         * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
1195         time_t is unsigned.
1197 Sat Aug 16 00:56:15 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
1199         * vmsify.c (vmsify, case 11): After translating `..' elements, set
1200         nstate to N_OPEN if there are still more elements to process.
1201         (vmsify, case 2): After translating `foo/bar' up to the slash,
1202         set nstate to N_OPEN, not N_DOT.
1204 Fri Aug  8 15:18:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
1206         * dir.c (vmsstat_dir): Leave name unmodified on exit.
1207         * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
1208         * vpath.c: Fix comments to refer to path separator, not colon.
1209         (selective_vpath_search): Avoid Unixy slash handling for VMS.
1211 Thu Aug  7 22:24:03 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
1213         * ar.c: [VMS] Don't declare ar_member_touch.
1214         Delete VMS version of ar_member_date.
1215         Enable non-VMS versions of ar_member_date and ar_member_date_1 for
1216         VMS too.
1217         * arscan.c (VMS_get_member_info): New function.
1218         (ar_scan): Provide version for VMS systems.
1219         (ar_name_equal): Simply compare name and mem on VMS systems.
1220         Don't define ar_member_pos or ar_member_touch on VMS systems.
1222         * config.h-vms (pid_t, uid_t): Don't define.
1224         * remake.c: Delete declaration of vms_stat.
1225         (name_mtime): Don't call vms_stat.
1226         (f_mtime): [VMS] Funky time value manipulation no longer necessary.
1228         * file.c (print_file): [VMS] Use ctime, not cvt_time.
1230         * make.h: [VMS] Don't define POSIX.
1232         * makefile.com (filelist): Include ar and arscan.
1233         Also include them in the link commands.
1234         Don't define NO_ARCHIVES in cc command.
1236         * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
1237         (defines): Delete NO_ARCHIVES from list.
1239         * remake.c (f_mtime): Only check to see if intermediate file is
1240         out of date if it also exists (i.e., mtime != (time_t) -1).
1242         * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
1244 Fri Jun 20 23:02:07 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1246         * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
1247         (#!/bin/sh) in script files correctly.
1248         Fixed a couple of memory leaks.
1249         Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
1250         files with extensions are preferred over files without extensions.
1251         Added search for files with .cmd extension too.
1252         * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
1254 Mon Aug 18 09:41:08 1997  Paul D. Smith  <psmith@baynetworks.com>
1256         * Version 3.75.91
1258 Fri Aug 15 13:50:54 1997  Paul D. Smith  <psmith@baynetworks.com>
1260         * read.c (do_define): Remember to count the newline after the endef.
1262 Thu Aug 14 23:14:37 1997  Paul D. Smith  <psmith@baynetworks.com>
1264         * many: Rewrote builds to use Automake 1.2.
1266         * AUTHORS: New file.
1267         * maintMakefile: Contains maintainer-only make snippets.
1268         * GNUmakefile: This now only runs the initial auto* tools.
1269         * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
1270         automatically by automake).
1271         * compatMakefile: Removed (not needed anymore).
1272         * README,build.sh.in: Removed (built from templates).
1273         * config.h.in,Makefile.in: Removed (built by tools).
1275 Wed Aug 13 02:22:08 1997  Paul D. Smith  <psmith@baynetworks.com>
1277         * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
1278         * README,README.DOS: Ditto.
1280         * remake.c (update_file_1,f_mtime): Fix GPATH handling.
1281         * vpath.c (gpath_search): Ditto.
1283         * file.c (rename_file): New function: rehash, but also rename to
1284         the hashname.
1285         * filedef.h: Declare it.
1287         * variable.c (merge_variable_set_lists): Remove free() of variable
1288         set; since various files can share variable sets we don't want to
1289         free them here.
1291 Tue Aug 12 10:51:54 1997  Paul D. Smith  <psmith@baynetworks.com>
1293         * configure.in: Require autoconf 2.12
1295         * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
1296         more stylistically correct "cd subdir && $(MAKE)".
1298         * main.c: Global variable `clock_skew_detected' defined.
1299         (main): Print final warning if it's set.
1300         * make.h: Declare it.
1301         * remake.c (f_mtime): Test and set it.
1303         * job.c (start_job_command): Add special optimizations for
1304         "do-nothing" rules, containing just the shell no-op ":".  This is
1305         useful for timestamp files and can make a real difference if you
1306         have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
1308         * configure.in,Makefile.in: Rewrote to use the new autoconf
1309         program_transform_name macro.
1311         * function.c (function_strip): Strip newlines as well as spaces
1312         and TABs.
1314 Fri Jun  6 23:41:04 1997  Rob Tulloh <rob_tulloh@tivoli.com>
1316         * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
1317         even seconds when stored, so if the date check fails on WINDOWS32
1318          systems, see if this "off-by-one" error is the problem.
1320         * General: If your TZ environment variable is not set correctly
1321         then all your timestamps will be off by hours.  So, set it!
1323 Mon Apr  7 02:06:22 1997  Paul D. Smith  <psmith@baynetworks.com>
1325         * Version 3.75.1
1327         * compatMakefile (objs): Define & use the $(GLOB) variable so
1328         that it's removed correctly from build.sh.in when it's built.
1330         * configure.in: On Solaris we can use the kstat_*() functions to
1331         get load averages without needing special permissions.  Add a
1332         check for -lkstat to see if we have it.
1334         * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
1335         the test to enable kstat_open(), etc. processing.
1337 Fri Apr  4 20:21:18 1997  Eli Zaretskii  <eliz@is.elta.co.il>
1339         * <lots>: Fixes to work in the DJGPP DOS environment.
1341 Mon Mar 31 02:42:52 1997  Paul D. Smith  <psmith@baynetworks.com>
1343         * function.c (expand_function): Added new function $(wordlist).
1345         * make.texinfo (Filename Functions): Document $(wordlist) function.
1347         * vpath.c (build_vpath_lists): Construct the GPATH variable
1348         information in the same manner we used to construct VPATH.
1349         (gpath_search): New function to search GPATH.
1351         * make.h: Declare the new function.
1353         * remake.c (update_file_1): Call it, and keep VPATH if it's found.
1355         * make.texinfo (Search Algorithm): Document GPATH variable.
1357 Sun Mar 30 20:57:16 1997  Paul D. Smith  <psmith@baynetworks.com>
1359         * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
1360         variable to contain the user options passed in on the cmd line.
1362         * make.texinfo (Goals): Document MAKECMDGOALS variable.
1364         * remake.c (f_mtime): Print a warning if we detect a clock skew
1365         error, rather than failing.
1367         * main.c (main): If we rebuild any makefiles and need to re-exec,
1368         add "-o<mkfile>" options for each makefile rebuilt to avoid
1369         infinite looping.
1371 Fri Mar 28 15:26:05 1997  Paul D. Smith  <psmith@baynetworks.com>
1373         * job.c (construct_command_argv_internal): Track whether the last
1374         arg in the cmd string was empty or not (Roland).
1375         (construct_command_argv_internal): If the shell line is empty,
1376         don't do anything (Roland).
1378         * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
1379         the latest changes from the GLIBC version of glob (Ulrich Drepper).
1381         * getloadavg.c,make-stds.texi: New version (Roland).
1383         * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
1385 Mon Mar 24 15:33:34 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
1387         * README.W32: Describe preliminary FAT support.
1389         * build_w32.bat: Use a variable for the final exe name.
1391         * dir.c (find_directory): W32: Find the filesystem type.
1392         (dir_contents_file_exists_p): W32: for FAT filesystems, always
1393         rehash since FAT doesn't change directory mtime on change.
1395         * main.c (handle_runtime_exceptions): W32: Add an
1396         UnhandledExceptionFilter so that when make bombs due to ^C or a
1397         bug, it won't cause a GUI requestor to pop up unless debug is
1398         turned on.
1399         (main): Call it.
1401 Mon Mar 24 00:57:34 1997  Paul D. Smith  <psmith@baynetworks.com>
1403         * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
1404         Check for memmove() function.
1406         * make.h (bcopy): If memmove() available, define bcopy() to use it.
1407         Otherwise just use bcopy().  Don't use memcpy(); it's not guaranteed
1408         to handle overlapping moves.
1410         * read.c (read_makefile): Fix some uninitialized memory reads
1411         (reported by Purify).
1413         * job.c (construct_command_argv_internal): Use bcopy() not
1414         strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
1416         * Makefile.in: Change install-info option ``--infodir'' to
1417         ``--info-dir'' for use with new texinfo.
1419         * function.c (expand_function): $(basename) and $(suffix) should
1420         only search for suffixes as far back as the last directory (e.g.,
1421         only the final filename in the path).
1423 Sun Mar 23 00:13:05 1997  Paul D. Smith  <psmith@baynetworks.com>
1425         * make.texinfo: Add @dircategory/@direntry information.
1426         (Top): Remove previous reference to (dir) (from RMS).
1427         (Static Usage): Add "all:" rule to example.
1428         (Automatic Dependencies): fix .d file creation example.
1430         * Install VPATH+ patch:
1432         * filedef.h (struct file): Add in hname field to store the hashed
1433         filename, and a flag to remember if we're using the vpath filename
1434         or not.  Renamed a few functions for more clarity.
1436         * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
1437         in the hash table based on their "hash name".  We can change this
1438         while keeping the original target in "name".
1439         (rehash_file): Renamed from "rename_file" to be more accurate.
1440         Changes the hash name, but not the target name.
1442         * remake.c (update_file_1): Modify -d output for more detailed
1443         VPATH info.  If we don't need to rebuild, use the VPATH name.
1444         (f_mtime): Don't search for vpath if we're ignoring it.  Call
1445         renamed function rehash_file.  Call name_mtime instead of
1446         file_mtime, to avoid infinite recursion since the file wasn't
1447         actually renamed.
1449         * implicit.c (pattern_search): if we find an implicit file in
1450         VPATH, save the original name not the VPATH name.
1452         * make.texinfo (Directory Search): Add a section on the new VPATH
1453         functionality.
1455 Sun Dec  1 18:36:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1457         * dir.c (file_exists_p, file_impossible, file_impossible_p): If
1458         dirname is empty replace it by the name of the root directory.
1459         Note that this doesn't work (yet) for W32, Amiga, or VMS.
1461 Tue Oct 08 13:57:03 1996  Rob Tulloh  <tulloh@tivoli.com>
1463         * main.c (main): W32 bug fix for PATH vars.
1465 Tue Sep 17 1996  Paul Eggert  <eggert@twinsun.com>
1467         * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
1468         32-bit quantity.
1470         * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
1471         INTEGER_TYPE_MINIMUM): New macros.
1473 Tue Aug 27 01:06:34 1996  Roland McGrath  <roland@baalperazim.frob.com>
1475         * Version 3.75 released.
1477         * main.c (print_version): Print out bug-reporting address.
1479 Mon Aug 26 19:55:47 1996  Roland McGrath  <roland@baalperazim.frob.com>
1481         * main.c (print_data_base): Don't declare ctime; headers do it for us
1482         already.
1484 Sun Jul 28 15:37:09 1996  Rob Tulloh (tulloh@tivoli.com)
1486         * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
1487         real function. This was done so that VPATH could contain
1488         white space separated pathnames. Please note that directory
1489         paths (in VPATH/vpath context) containing white space are not
1490         supported (just as they are not under Unix). See README.W32
1491         for suggestions.
1493         * w32/include/pathstuff.h: Added prototype for the new
1494         function convert_vpath_to_w32. Deleted macro for same.
1496         * README.W32: Added some notes about why I chose not to try
1497         and support pathnames which contain white space and some
1498         workaround suggestions.
1500 Thu Jul 25 19:53:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1502         * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
1504         * Version 3.74.7.
1506         * main.c (define_makeflags): Back up P to point at null terminator
1507         when killing final space and dash before setting MFLAGS.
1509         From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
1510         * dir.c [__MSDOS__] [DJGPP > 1]: Include <libc/dosio.h> and defin
1511         `__opendir_flags' initialized to 0.
1512         [__MSDOS__] (dosify) [DJGPP > 1]: Return name unchanged if _USE_LFN.
1513         (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
1514         __opendir_flags to __OPENDIR_PRESERVE_CASE.
1516         * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
1518         * GNUmakefile (w32files): Add NMakefile.
1520         * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
1522 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
1524         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
1525         modtime check.
1526         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
1528 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1530         * configure.in: Require autoconf 2.10 or later.
1532 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1534         * Version 3.74.6.
1536         * GNUmakefile (w32files): New variable.
1537         (distfiles): Add it.
1538         * w32: Updated by Rob Tulloh.
1540         * makefile.vms (LOADLIBES): Fix typo.
1542 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1544         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
1546         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
1548         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
1550         * Version 3.74.5.
1552         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
1554 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1556         * configure.in: Don't check for _sys_siglist.
1557         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
1558         no strsignal or sys_siglist.
1560         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
1561         same as `ifeq (a, b)'.
1563         * job.c (reap_children): Don't call die if handling_fatal_signal.
1565         * file.c (file_hash_enter): Allow renaming :: to : when latter is
1566         non-target, or : to :: when former is non-target.
1568         * job.c (start_job_command): Call block_sigs.
1569         (block_sigs): New function, broken out of start_job_command.
1570         (reap_children): Block fatal signals around removing dead child from
1571         chain and adjusting job_slots_used.
1572         * job.h: Declare block_sigs.
1574         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
1575         * main.c (main): Call remote_setup.
1576         (die): Call remote_cleanup.
1578         * job.c (reap_children): Quiescent value of shell_function_pid is
1579         zero, not -1.
1581         * main.c (print_version): Add 96 to copyright years.
1583 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1585         * read.c (find_char_unquote): Avoid calling strlen on every call
1586         just to throw away the value most of the time.
1588 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1590         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
1591         no '=', regardless of ARGC.
1592         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
1593         word is short option, regardless of WORDS.
1595 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1597         * makefile.vms: Set LOADLIBES.
1598         * makefile.com (link_using_library): Fix typo.
1600 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1602         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
1603         long.
1605 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
1607         * dir.c: W32 does not support inode. For now, fully qualified
1608         pathname along with st_mtime will be keys for files.
1609         Fixed problem where vpath can be confused when files
1610         are added to a directory after the directory has already been
1611         read in. The code now attempts to reread the directory if it
1612         discovers that the datestamp on the directory has changed since
1613         it was cached by make. This problem only seems to occur on W32
1614         right now so it is lumped under port #ifdef WINDOWS32.
1616         * function.c: W32: call subproc library (CreateProcess()) instead of
1617         fork/exec.
1619         * job.c: W32: Added the code to do fork/exec/waitpid style processing
1620         on W32 systems via calls to subproc library.
1622         * main.c: W32: Several things added here. First, there is code
1623         for dealing with PATH and SHELL defaults. Make tries to figure
1624         out if the user has %PATH% set in the environment and sets it to
1625         %Path% if it is not set already. Make also looks to see if sh.exe
1626         is anywhere to be found. Code path through job.c will change
1627         based on existence of a working Bourne shell. The checking for
1628         default shell is done twice: once before makefiles are read in
1629         and again after. Fall back to MSDOS style execution mode if no sh.exe
1630         is found. Also added some debug support that allows user to pause make
1631         with -D switch and attach a debugger. This is especially useful for
1632         debugging recursive calls to make where problems appear only in the
1633         sub-make.
1635         * make.h: W32: A few macros and header files for W32 support.
1637         * misc.c: W32: Added a function end_of_token_w32() to assist
1638         in parsing code in read.c.
1640         * read.c: W32: Fixes similar to MSDOS which allow colon to
1641         appear in filenames. Use of colon in filenames would otherwise
1642         confuse make.
1644         * remake.c: W32: Added include of io.h to eliminate compiler
1645         warnings. Added some code to default LIBDIR if it is not set
1646         on W32.
1648         * variable.c: W32: Added support for detecting Path/PATH
1649         and converting them to semicolon separated lists for make's
1650         internal use. New function sync_Path_environment()
1651         which is called in job.c and function.c before creating a new
1652         process. Caller must set Path in environment since we don't
1653         have fork() to do this for us.
1655         * vpath.c: W32: Added detection for filenames containing
1656         forward or backward slashes.
1658         * NMakefile: W32: Visual C compatible makefile for use with nmake.
1659         Use this to build GNU make the first time on Windows NT or Windows 95.
1661         * README.W32: W32: Contains some helpful notes.
1663         * build_w32.bat: W32: If you don't like nmake, use this the first
1664         time you build GNU make on Windows NT or Windows 95.
1666         * config.h.W32: W32 version of config.h
1668         * subproc.bat: W32: A bat file used to build the
1669         subproc library from the top-level NMakefile. Needed because
1670         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
1672         * w32/include/dirent.h
1673         * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
1675         * w32/include/pathstuff.h: W32: used by files needed functions
1676         defined in pathstuff.c (prototypes).
1678         * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
1680         * w32/include/w32err.h: W32: prototypes for w32err.c.
1682         * w32/pathstuff.c: W32: File and Path/Path conversion functions.
1684         * w32/subproc/build.bat: W32: build script for subproc library
1685         if you don't wish to use nmake.
1687         * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
1688         with nmake. Used to build subproc library.
1690         * w32/subproc/misc.c: W32: subproc library support code
1691         * w32/subproc/proc.h: W32: subproc library support code
1692         * w32/subproc/sub_proc.c: W32: subproc library source code
1693         * w32/subproc/w32err.c: W32: subproc library support code
1695 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1697         * Version 3.74.4.
1699         * GNUmakefile (vmsfiles): Fix typo.
1701         * GNUmakefile (amigafiles): Add amiga.h.
1703 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
1705         * dir.c: New function: amigafy() to fold filenames
1706         Changes HASH() to HASHI() to fold filenames on Amiga.
1707         Stringcompares use strieq() instead of streq()
1708         The current directory on Amiga is "" instead of "."
1709         * file.c: Likewise.
1711         * amiga.c: New function wildcard_expansion(). Allows to use
1712         Amiga wildcards with $(wildcard )
1714         * amiga.h: New file. Prototypes for amiga.c
1716         * function.c: Use special function wildcard_expansion() for
1717         $(wildcard ) to allow Amiga wildcards
1718         The current directory on Amiga is "" instead of "."
1720         * job.c: No Pipes on Amiga, too
1721         (load_too_high) Neither on Amiga
1722         ENV variable on Amiga are in a special directory and are not
1723         passed as third argument to main().
1725         * job.h: No envp on Amiga
1727         * make.h: Added HASHI(). This is the same as HASH() but converts
1728         it's second parameter to lowercase on Amiga to fold filenames.
1730         * main.c: (main), variable.c Changed handling of ENV-vars. Make
1731         stores now the names of the variables only and reads their contents
1732         when they are accessed to reflect that these variables are really
1733         global (ie. they CAN change WHILE make runs !) This handling is
1734         made in lookup_variable()
1736         * Makefile.ami: renamed file.h to filedep.h
1737         Updated dependencies
1739         * read.c: "find_semicolon" is declared as static but never defined.
1740         No difference between Makefile and makefile on Amiga; added
1741         SMakefile to *default_makefiles[].
1742         (read_makefile) SAS/C want's two_colon and pattern_percent be set
1743         before use.
1744         The current directory on Amiga is "" instead of "."
1745         Strange #endif moved.
1747         * README.Amiga: updated feature list
1749         * SMakefile: Updated dependencies
1751         * variable.c: Handling of ENV variable happens inside lookup_variable()
1753 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1755         * variable.c (try_variable_definition): Count parens in lhs variable
1756         refs to avoid seeing =/:=/+= inside a ref.
1758 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1760         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
1761         conditional.
1763         * main.c (main): Use unsigned for fread return.
1765         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
1766         conflict issues.
1767         * dep.h: Fix prototype.
1769         * function.c (expand_function) [_AMIGA]: Fix some typos.
1770         (patsubst_expand): Make len vars unsigned.
1772         * GNUmakefile (globfiles): Add AmigaDOS support files.
1773         (distfiles): Add $(amigafiles).
1774         (amigafiles): New variable.
1776 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
1778         * Added Amiga support in commands.c, dir.c, function.c,
1779         job.c, main.c, make.h, read.c, remake.c
1780         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
1781         * dir.c: Amiga has filenames with Upper- and Lowercase,
1782         but "FileName" is the same as "filename". Added strieq()
1783         which is use to compare filenames. This is like streq()
1784         on all other systems. Also there is no such thing as
1785         "." under AmigaDOS.
1786         * function.c: On Amiga, the environment is not passed as envp,
1787         there are no pipes and Amiga can't fork. Use my own function
1788         to create a new child.
1789         * job.c: default_shell is "" (The system automatically chooses
1790         a shell for me). Have to use the same workaround as MSDOS for
1791         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
1792         known on Amiga. Cloned code to run children from MSDOS. Own
1793         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
1794         * main.c: Force stack to 20000 bytes. Read environment from ENV:
1795         device. On Amiga, exec_command() does return, so I exit()
1796         afterwards.
1797         * make.h: Added strieq() to compare filenames.
1798         * read.c: Amiga needs special extension to have passwd. Only
1799         one include-dir. "Makefile" and "makefile" are the same.
1800         Added "SMakefile".  Added special code to handle device names (xxx:)
1801         and "./" in rules.
1802         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
1803         instead of "lib%s.a".
1804         * main.c, rule.c, variable.c: Avoid floats at all costs.
1805         * vpath.c: Get rid of as many alloca()s as possible.
1807 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1809         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
1811 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1813         * GNUmakefile (vmsfiles): New variable.
1814         (distfiles): Include $(vmsfiles).
1816 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1818         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
1819         * make.h (PARAMS): New macro.
1820         * config.h-vms: New file.
1821         * makefile.com: New file.
1822         * makefile.vms: New file.
1823         * readme.vms: New file.
1824         * vmsdir.h: New file.
1825         * vmsfunctions.c: New file.
1826         * vmsify.c: New file.
1827         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
1828         * ar.c: Added prototypes and changes for VMS.
1829         * commands.c: Likewise.
1830         * commands.h: Likewise.
1831         * default.c: Likewise.
1832         * dep.h: Likewise.
1833         * dir.c: Likewise.
1834         * expand.c: Likewise.
1835         * file.c: Likewise.
1836         * function.c: Likewise.
1837         * implicit.c: Likewise.
1838         * job.c: Likewise.
1839         * job.h: Likewise.
1840         * main.c: Likewise.
1841         * make.h: Likewise.
1842         * misc.c: Likewise.
1843         * read.c: Likewise.
1844         * remake.c: Likewise.
1845         * remote-stub.c: Likewise.
1846         * rule.c: Likewise.
1847         * rule.h: Likewise.
1848         * variable.c: Likewise.
1849         * variable.h: Likewise.
1850         * vpath.c: Likewise.
1851         * compatMakefile (srcs): Rename file.h to filedef.h.
1853 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
1855         * remake.c (check_dep): For a secondary file, try implicit and
1856         default rules if appropriate.
1858 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
1860         * remake.c (check_dep): If an intermediate file exists,
1861         do consider its actual date.
1863 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
1865         * file.h (struct file): New field `secondary'.
1866         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
1867         (remove_intermediates): Don't delete .SECONDARY files.
1869 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1871         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
1873 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1875         * Version 3.74.3.
1877         * remake.c (f_mtime): Move future modtime check before FILE is
1878         clobbered by :: loop.
1880         * dir.c: Use canonical code from autoconf manual for dirent include.
1881         [_D_NAMLEN]: Redefine NAMLEN using this.
1882         (dir_contents_file_exists_p): Use NAMLEN macro.
1883         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
1885         * compatMakefile (objs): Add missing backslash.
1887 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1889         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
1890         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
1892         * remake.c (f_mtime): Check for future timestamps; give error and mark
1893         file as "failed to update".
1895 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1897         * job.c: Don't declare unblock_sigs; job.h already does.
1899 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1901         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
1903         * job.c (NGROUPS_MAX): Don't try to define this macro.
1905 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1907         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
1908         (objs, srcs): Include their values here instead of references.
1910 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1912         * Version 3.74.2.
1914         * job.c (reap_children): Call unblock_sigs after start_job_command.
1916 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
1918         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
1919         Avoid & before function names to silence bogus sunos4 compiler.
1921         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
1923 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1925         * Version 3.74.1.
1927         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
1928         reallocating it!
1930 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1932         * misc.c (collapse_continuations): Fix skipping of trailing \s so
1933         it can never dereference before the beginning of the array.
1935         * read.c (find_semicolon): Function removed.
1936         (read_makefile): Don't use find_semicolon or remove_comments for
1937         rule lines.  Use find_char_unquote directly and handle quoted comments
1938         properly.
1940         * default.c: Remove all [M_XENIX] code.
1942         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
1943         (D_NAMLEN): Macro removed.
1944         (FAKE_DIR_ENTRY): New macro.
1945         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
1946         D_NAMLEN.
1947         (read_dirstream): Return a struct dirent * for new glob interface.
1948         (init_dir): Function removed.
1949         (dir_setup_glob): New function.
1950         * main.c (main): Don't call init_dir.
1951         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
1952         GLOB_ALTDIRFUNC flag.
1954         * misc.c (safe_stat): Function removed.
1955         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
1956         safe_stat.
1958 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1960         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
1962         * main.c (log_working_directory): Made global.
1963         Print entering msg only once.
1964         * make.h (log_working_directory): Declare it.
1965         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
1966         nonzero.  Call log_working_directory.
1967         * remake.c: Pass new arg in `message' calls.
1968         * job.c (start_job_command): Pass new arg to `message'; fix
1969         inverted test in that call.
1971 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1973         * job.c (start_job_command): Use `message' to print the command,
1974         and call it with null if the command is silent.
1975         * remake.c (touch_file): Use message instead of printf.
1977 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1979         * main.c (enter_command_line_file): Barf if NAME is "".
1981 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1983         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
1985 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1987         * configure.in: Don't check for getdtablesize.
1988         * job.c (getdtablesize): Remove decls and macros.
1990 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1992         * main.c (define_makeflags): Omit command line variable
1993         definitions from MFLAGS value.
1995         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
1996         indicating a valid, but empty, archive.
1998 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2000         * dir.c (file_impossible_p): Correctly reset FILENAME to name
2001         within directory before hash search.
2003         * job.c (child_error): Do nothing if IGNORED under -s.
2005         * job.c (exec_command): Correctly use ARGV[0] for script name when
2006         running shell directly.
2008 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2010         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
2011         dup'ing from them.  Don't try to close all excess descriptors;
2012         getdtablesize might return a huge value.  Any open descriptors in
2013         the parent should have FD_CLOEXEC set.
2014         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
2016 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2018         * read.c (read_all_makefiles): Properly append default makefiles
2019         to the end of the `read_makefiles' chain.
2021 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2023         * Version 3.74 released.
2025 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2027         * Version 3.73.3.
2029 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2031         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
2032         install-info cmd.
2034 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2036         * file.c (print_file): Grok update_status of 1 for -q.
2038 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2040         * Version 3.73.2.
2042 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2044         * file.c (remove_intermediates): Fix inverted test to bail under
2045         -n for signal case.  Bail under -q or -t.
2046         Skip files with update_status==-1.
2048         * job.c (job_next_command): Skip empty lines.
2049         (new_job): Don't test the return of job_next_command.
2050         Just let start_waiting_job handle the case of empty commands.
2052 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2054         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
2056         * Version 3.73.1.
2058 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2060         * remake.c (notice_finished_file): Set FILE->update_status to zero
2061         if it's -1.
2063 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2065         * Version 3.73 released.
2067 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2069         * main.c (main): Fixed braino in assert.
2071         * Version 3.72.13.
2073 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2075         * main.c: Avoid string in assert expression.  Some systems are broken.
2077 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2079         * main.c (main): Handle 1 and 2 returns from update_goal_chain
2080         makefile run properly.
2082         * Version 3.72.12.
2084         * main.c (handle_non_switch_argument): New function, broken out of
2085         decode_switches.
2086         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
2087         When getopt_long returns EOF, break the loop and handle remaining args
2088         with a simple second loop.
2090         * remake.c (remake_file): Set update_status to 2 instead of 1 for
2091         no rule to make.  Mention parent (dependent) in error message.
2092         (update_file_1): Handle FILE->update_status == 2 in -d printout.
2093         * job.c (start_job_command, reap_children): Set update_status to 2
2094         instead of 1 for failed commands.
2096 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2098         * job.c (search_path): Function removed (was already #if 0'd out).
2099         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
2101 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2103         * configure.bat: Write @CPPFLAGS@ translation.
2105 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2107         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
2108         to not skip the elt immediately preceding `l(...'.
2110 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2112         * Version 3.72.11.
2114         * read.c (find_char_unquote): Make second arg a string of stop
2115         chars instead of a single stop char.  Stop when any char in the
2116         string is hit.  All callers changed.
2117         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
2118         instead of using two calls.  If the match is not a ; but a #,
2119         return zero.
2120         * misc.c: Changed find_char_unquote callers here too.
2122         * Version 3.72.10.
2124         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
2125         __MSDOS__.
2127         * GNUmakefile (globfiles): Add glob/configure.bat.
2128         (distfiles): Add configh.dos, configure.bat.
2130 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2132         Fixes for MS-DOS from DJ Delorie.
2133         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
2134         as separator in "C:\...".
2135         * configh.dos (STDC_HEADERS): Define only if undefined.
2136         (HAVE_SYS_PARAM_H): Don't define this.
2137         (HAVE_STRERROR): Define this.
2138         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
2140         * Version 3.72.9.
2142         * main.c (decode_switches): Reset optind to 1 instead of 0.
2144 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
2146         * main.c (decode_switches): If non-option arg is "-", ignore it.
2148 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2150         * Version 3.72.8.
2152 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2154         * Version 3.72.7.
2156 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2158         * main.c (main): Pass missing arg to tmpnam.
2160         * configure.in: Check for strsignal.
2161         * job.c (child_error): Use strsignal.
2162         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
2164         * misc.c (strerror): Fix swapped args in sprintf.
2166 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2168         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
2170 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2172         * main.c (print_version): Add 95 to copyright years.
2174         * Version 3.72.6.
2176         * job.c (start_job_command): Remember to call notice_finished_file
2177         under -n when not recursing.  To do this, consolidate that code
2178         under the empty command case and goto there for the -n case.
2180 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2182         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
2183         declare it int.
2185 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2187         * read.c (read_makefile): For bogus line starting with tab, ignore
2188         it if blank after removing comments.
2190         * main.c: Cast results of `alloca' to `char *'.
2191         * expand.c: Likewise.
2193 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2195         * Version 3.72.5.
2197         * configure.in: Check for mktemp.
2198         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
2200         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
2201         (_SC_OPEN_MAX)'.
2202         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
2203         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
2204         using sysconf.
2206 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2208         * remake.c (update_file_1): When !MUST_MAKE, don't set
2209         FILE->update_status to zero before calling notice_finished_file.
2210         (notice_finished_file): Touch only when FILE->update_status is zero.
2211         (remake_file): Set FILE->update_status to zero after not calling
2212         execute_file_command and deciding to touch instead.
2214 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2216         * main.c (debug_signal_handler): New function; toggles debug_flag.
2217         (main): Handle SIGUSR1 with that.
2219 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2221         * compatMakefile (realclean): Remove Info files.
2223 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2225         * Version 3.72.4.
2227         * job.c (start_job_command): Save and restore environ around vfork
2228         call.
2229         (search_path): Function #if 0'd out.
2230         (exec_command): Use execvp instead of search_path.
2232         * expand.c (variable_expand): Rewrote computed variable name and
2233         substitution reference handling to be simpler.  First expand the
2234         entire text between the parens if it contains any $s, then examine
2235         the result of that for subtitution references and do no further
2236         expansion while parsing them.
2238         * job.c (construct_command_argv_internal): Handle " quoting too,
2239         when no backslash, $ or ` characters appear inside the quotes.
2241         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
2242         defined, just use int.
2244 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2246         * default.c (default_variables) [__hpux]: Remove special
2247         definition of ARFLAGS.  Existence of the `f' flag is not
2248         consistent across HPUX versions; and one might be using GNU ar
2249         anyway.
2251         * compatMakefile (clean): Don't remove Info files.
2253         * compatMakefile (check): Remove gratuitous target declaration.
2255 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2257         * compatMakefile (ETAGS, CTAGS): Don't use -t.
2259         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
2261         * main.c (decode_switches): For --help, print usage to stdout.
2263 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2265         * Version 3.72.3.
2267         * remake.c (update_file_1): Do set_command_state (FILE,
2268         cs_not_started) only if old state was deps_running.
2270 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2272         * job.c (start_waiting_job): Use set_command_state.
2274         * build.template (CPPFLAGS): New variable.
2275         (prefix, exec_prefix): Set from @...@.
2276         (compilation loop): Pass $CPPFLAGS to compiler.
2278         * GNUmakefile (build.sh.in): Make it executable.
2280         * GNUmakefile (globfiles): Add configure.in, configure.
2282         * Version 3.72.2.
2284         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
2286         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
2288         * configure.in: Don't check for ranlib.
2290 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2292         * remake.c (notice_finished_file): Only mark also_make's as
2293         updated if really ran cmds.
2295 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2297         * configure.in: Put dnls before random whitespace.
2299 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2301         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
2302         (RANLIB): Variable removed.
2303         (prefix, exec_prefix): Set these from @...@.
2304         (.c.o): Use $(CPPFLAGS).
2305         (glob/libglob.a): Don't pass down variables to sub-make.
2306         glob/Makefile should be configured properly by configure.
2307         (distclean): Remove config.log and config.cache (autoconf stuff).
2309 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2311         * acconfig.h: Add #undef HAVE_UNION_WAIT.
2312         * configure.in: Converted to Autoconf v2.
2313         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
2314         of DIRENT, SYSDIR, NDIR.
2315         * build.sh.in (prefix, exec_prefix): Set these from @...@.
2316         (CPPFLAGS): New variable, set from @CPPFLAGS@.
2317         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
2318         * install.sh: File renamed to install-sh.
2320         * main.c (define_makeflags): When no flags, set WORDS to zero.
2322 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2324         * Version 3.72.1.
2326         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
2327         empty.
2329 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2331         * Version 3.72.
2333 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2335         * Version 3.71.5.
2337         * job.c (start_job_command): When ARGV is nil, only set
2338         update_state and call notice_finished_file if job_next_command
2339         returns zero.
2341         * job.c (start_job_command): Call notice_finished_file for empty
2342         command line.
2344 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2346         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
2347         COMMANDS_NOERROR.
2349 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2351         * Version 3.71.4.
2353 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2355         * file.c (snap_deps): Set command_flags bits in all :: entries.
2357 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2359         * make.h (posix_pedantic): Declare it.
2360         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
2361         snap_deps.
2362         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
2363         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
2364         command_flags and don't set -i.  Likewise .SILENT.
2365         * job.c (start_job_command): In FLAGS initialization, OR in
2366         CHILD->file->command_flags.
2367         * file.h (struct file): New member `command_flags'.
2369 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2371         * main.c (switches): Bump flag values for --no-print-directory and
2372         --warn-undefined-variables, so neither is 1 (which indicates a
2373         nonoption argument).
2375 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2377         * main.c (main): Add missing code in .IGNORE test.
2379 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2381         * variable.c (define_automatic_variables): Define +D and +F.
2383 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2385         * main.c (main): Define hidden automatic variable with command
2386         vars, and MAKEOVERRIDES to a reference to that.
2387         (define_makeflags): If posix_pedantic, write a reference to that
2388         instead.
2390 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2392         * main.c (posix_pedantic): New variable.
2393         (main): Set posix_pedantic if .POSIX is a target.
2394         Fix .IGNORE and .SILENT checks to require is_target.
2396         * commands.c (set_file_variables): Define new automatic variable
2397         $+, like $^ but before calling uniquize_deps.
2399         * job.c (reap_children): Call delete_child_targets for non-signal
2400         error if .DELETE_ON_ERROR is a target.
2402 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2404         * Version 3.71.3.
2406 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2408         * job.c (reap_children): Don't change C->file->command_state when
2409         dying.  Test it only after calling start_job_command for a new
2410         command line.  When no more cmds, just set C->file->update_status.
2411         (start_job_command): When the last line is empty or under -n, set
2412         C->file->update_status.
2413         (start_waiting_job): Grok cs_not_started after start_job_command
2414         as success.
2415         (new_job): Set C->file->update_status when there are no cmds.
2416         (job_next_command): When out of lines, don't set
2417         CHILD->file->update_status or CHILD->file->command_state.
2419         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
2420         if nonzero, also double $s.
2421         (main): Define MAKEOVERRIDES from command_variables here.
2422         (define_makeflags): Don't use command_variables here; instead write a
2423         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
2425         * dir.c [__MSDOS__]: Fixed typo.
2427         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
2429 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2431         * remake.c: Include <assert.h> and use assert instead of printfs
2432         and abort.
2434         * main.c (decode_switches): Loop until optind hits ARGC, not just
2435         until getopt_long returns EOF.  Initialize C to zero before loop;
2436         in loop if C is EOF, set optarg from ARGV[optind++], else call
2437         getopt_long.
2438         (decode_env_switches): Use variable_expand instead of
2439         allocated_variable_expand.  Allocate a fresh buffer to copy split
2440         words into; scan characters by hand to break words and
2441         debackslashify.
2442         (shell_quote): New function.
2443         (define_makeflags): Allocate doubled space for switch args, and command
2444         variable names and values; use shell_quote to quote those things.
2446 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2448         * Version 3.71.2.
2450         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
2452         * main.c (decode_switches): The non-option return from getopt is
2453         1, not 0.
2454         (command_variables): New type and variable.
2455         (decode_switches, decode_env_switches): After making a variable
2456         definition, record the struct variable pointer in the
2457         command_variables chain.
2458         (define_makeflags): If ALL, write variable definitions for
2459         command_variables.
2461         * main.c (other_args): Variable removed.
2462         (goals, lastgoal): New static variables (moved from auto in main).
2463         (main): Don't process OTHER_ARGS at all.
2464         Don't set variable MAKEOVERRIDES at all; define MAKE to just
2465         $(MAKE_COMMAND).
2466         (init_switches): Prepend a - {return in order} instead of a +
2467         {require order}.
2468         (decode_switches): Don't set OTHER_ARGS at all.
2469         Grok '\0' return from getopt_long as non-option argument; try
2470         variable definition and (if !ENV) enter goal targets here.
2471         (decode_env_switches): Use allocated_variable_expand to store value.
2472         Use find_next_token to simplify word-splitting loop.  Don't
2473         prepend a dash to uninterpreted value.  Instead, if split into
2474         only one word, try variable definition and failing that prepend a
2475         dash to the word and pass it to decode_switches as a single arg.
2477 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2479         * remake.c (notice_finished_file): Only recheck modtimes if
2480         FILE->command_state was cs_running on entry (meaning the commands
2481         actually just ran).
2482         (update_file_1): Whenever we set FILE->update_status, call
2483         notice_finished_file instead of just set_command_state.
2484         * job.c (start_job_command): Whenever we set
2485         CHILD->file->update_status, call notice_finished_file instead of
2486         just set_command_state.
2488 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
2490         * default.c: Add missing ".
2492         * job.c: Changed all assignments of command_state members to calls
2493         to set_command_state.
2494         * remake.c: Likewise.
2495         * file.c (set_command_state): New function.
2496         * file.h: Declare set_command_state.
2498         * main.c (init_switches): Put a + first in options.
2500 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2502         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
2503         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
2504         * main.c (directory_before_chdir): New variable, moved out of main
2505         (was local).
2506         (main) [__MSDOS__]: Look for \ or : to delimit last component of
2507         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
2508         (die): Change back to `directory_before_chdir' before dying.
2509         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
2510         [__MSDOS__] and not.
2511         * job.c [__MSDOS__]: Include <process.h>.
2512         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
2513         dos_batch_file): New variables.
2514         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
2515         (unblock_sigs) [__MSDOS__]: Do nothing.
2516         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
2517         (load_too_high) [__MSDOS__]: Always return true.
2518         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
2519         Use PATH_SEPARATOR_CHAR instead of ':'.
2520         (construct_command_argv_internal) [__MSDOS__]: Wholly different
2521         values for sh_chars and sh_cmds.  Wholly new code to handle shell
2522         scripts.
2523         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
2524         implementation.
2525         * dir.c [__MSDOS__] (dosify): New function.
2526         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
2527         process the result instead of FILENAME itself.
2528         (file_impossible_p) [__MSDOS__]: Likewise.
2529         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
2530         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
2531         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
2532         `bison -y', and LEX to `flex'.
2533         * configure.bat, configh.dos: New files.
2534         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
2535         intermediates and exit.
2537         * commands.c (set_file_variables): Add parens in length
2538         computation in .SUFFIXES dep loop to quiet compiler warning.  From
2539         Jim Meyering.
2541         * read.c (read_makefile): Free FILENAME if we allocated it.  From
2542         Jim Meyering.
2544 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2546         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
2547         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
2548         * read.c (construct_include_path): Use safe_stat in place of stat.
2549         * job.c (search_path): Use safe_stat in place of stat.
2550         * dir.c (find_directory): Use safe_stat in place of stat.
2551         * commands.c (delete_target): Use safe_stat in place of stat.
2552         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
2553         * remake.c (name_mtime): Use safe_stat in place of stat.
2554         (touch_file) [EINTR]: Do EINTR looping around fstat.
2556 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2558         * read.c (read_makefile): Check for a shell command first, and
2559         then strip leading tabs before further checking if it's not a
2560         shell command line.
2562         * make.h [__arm]: Undefine POSIX.
2563         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
2564         functions that return int.
2566         * job.c (construct_command_argv_internal): After swallowing a
2567         backslash-newline combination, if INSTRING is set goto string_char
2568         (new label) for normal INSTRING handling code.
2570 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2572         * configure.in: Don't check for sys_siglist and _sys_siglist with
2573         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
2575 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2577         * Version 3.71.1 released.
2579         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
2580         _POSIX_VERSION for these declarations.
2582         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
2583         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
2585 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2587         * Version 3.71 released.
2589         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
2590         and [HAVE_SETGID].  Every system has those, and configure doesn't
2591         check for them.
2593         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
2595         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
2596         getloadavg.c.
2597         (loadavg.c): Link or copy it from getloadavg.c.
2598         (distclean): Remove loadavg.c.
2600 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2602         * Version 3.70.4.
2604         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
2605         and HAVE_SETEGID.
2607         * default.c (default_terminal_rules): In SCCS rules, put
2608         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
2609         only before the file name.
2610         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
2612 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2614         * job.c (construct_command_argv_internal): Swallow
2615         backslash-newline combinations inside '' strings too.
2617 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2619         * read.c (do_define): Call collapse_continuations on each line
2620         before all else.
2622 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2624         * job.c (construct_command_argv_internal): Notice newline inside
2625         '' string when RESTP is non-null.
2627 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2629         * Version 3.70.3.
2631         * remake.c (update_goal_chain): Reset FILE to G->file after the
2632         double-colon loop so it is never null for following code.
2634         * read.c (read_makefile): Fix `override define' parsing to skip
2635         whitespace after `define' properly.
2637         * compatMakefile (srcdir): Define as @srcdir@; don't reference
2638         $(VPATH).
2639         (glob/Makefile): New target.
2641 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2643         * Version 3.70.2.
2645         * misc.c (remove_comments): Use find_char_unquote.
2646         * make.h (find_char_unquote): Declare it.
2647         * read.c (find_char_unquote): New function, generalized from
2648         find_percent.
2649         (find_percent, find_semicolon, parse_file_seq): Use that.
2651 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2653         * implicit.c (pattern_search): Always allocate new storage for
2654         FILE->stem.  It is not safe to store STEM's address because it
2655         might be auto storage.
2657         * configure.in: Check for seteuid and setegid.
2658         * misc.c [HAVE_SETEUID]: Declare seteuid.
2659         [HAVE_SETEGID]: Declare setegid.
2660         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
2661         [HAVE_SETEGID]: Use setegid.
2663         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
2664         to preserve whether it's 2 for error or 1 for -q trigger.  When
2665         STATUS gets nonzero and -q is set, always stop immediately.
2666         * main.c (main, decode_switches): Die with 2 for errors.
2667         (main): Accept 2 return from update_goal_chain and die with that.
2668         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
2669         answer.
2670         * job.c (reap_children): Die with 2 for error.
2671         (start_job_command): Set update_status to 2 for error.  Set it to
2672         1 when we would run a command and question_flag is set.
2674         * read.c (read_makefile): Don't mark makefiles as precious.  Just
2675         like other targets, they can be left inconsistent and in need of
2676         remaking by aborted commands.
2678         * read.c (read_makefile): Write no error msg for -include file.
2680 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2682         * commands.c (fatal_error_signal): Don't unblock signals.
2684         * file.h (struct file): Change member `double_colon' from flag to
2685         `struct file *'.
2686         * read.c (record_files): Set double_colon pointer instead of flag.
2687         * main.c (main): When disqualifying makefiles for updating, use
2688         double_colon pointer to find all entries for a file.
2689         * file.c (enter_file): If there is already a double-colon entry
2690         for the file, set NEW->double_colon to that pointer.
2691         (file_hash_enter): Use FILE->double_colon to find all entries to
2692         set name.
2693         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
2694         (update_file): Use FILE->double_colon pointer to find all entries.
2695         (f_mtime): Likewise.
2696         (notice_finished_file): Propagate mtime change to all entries.
2698         * variable.c (try_variable_definition): Return after abort.
2700 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2702         * read.c (read_makefile): Remove unused variable.
2703         (parse_file_seq): When removing an elt that is just `)', properly
2704         fix up the previous elt's next pointer.
2706 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
2708         * configure.in: Do AC_SET_MAKE.
2709         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
2711 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2713         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
2714         the search string is the empty string, find a match at the end of
2715         each word (using end_of_token in place of sindex).
2717         * misc.c (end_of_token): Don't treat backslashes specially; you
2718         can no longer escape blanks with backslashes in export, unexport,
2719         and vpath.  This was never documented anyway.
2721 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2723         * read.c (read_makefile): Variable name for `define' is not just
2724         first token; use whole rest of line and strip trailing blanks.
2726 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2728         * Version 3.70.1.
2730         * read.c (read_makefile): Add -d msg stating args.
2732         * read.c (read_makefile): Use isspace to skip over leading
2733         whitespace, and explicitly avoid skipping over tabs.  Don't want
2734         to skip just spaces though; formfeeds et al should be skipped.
2736         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
2738         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
2739         sizeof ar_name for max length to compare.
2741         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
2742         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
2744         * main.c (main): Call user_access after setting `program', in case
2745         it needs to use it in an error message.
2747         * read.c (read_makefile): Ignore an empty line starting with a tab.
2749 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2751         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
2752         AC_COMPILE_CHECK that is now its contents.
2754 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2756         * make.h: #undef strerror after #include <string.h>.
2757         [! ANSI_STRING]: Declare strerror.
2759 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2761         * misc.c (strerror): #undef any macro before function definition.
2763 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2765         * variable.c (try_variable_definition): Calculate BEG before loop
2766         to strip blanks by decrementing END.  Don't decr END to before BEG.
2768         * read.c (read_makefile): Skip over leading space characters, but
2769         not tabs, after removing continuations and comments (it used to
2770         use isspace).
2772 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2774         * variable.c (define_automatic_variables): In $(@D) et al, use
2775         patsubst to remove trailing slash.
2777         * commands.c (delete_target): New function, broken out of
2778         delete_child_targets.  Check for archive members and give special msg.
2779         (delete_child_targets): Use delete_target.
2781 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2783         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
2784         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
2786 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2788         * GNUmakefile (tarfiles): Omit make-doc.
2789         (make-$(version).tar): Include make.info*.
2791 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2793         * compatMakefile (configure, config.h.in): Comment out rules.
2795 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2797         * compatMakefile (binprefix, manprefix): New variables.
2798         (instname): Variable removed.
2799         (install): Use $({bin,man}prefix)make in place of $(instname).
2800         File targets likewised renamed.
2802 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2804         * Version 3.70 released.
2806 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2808         * Version 3.69.3.
2810         * read.c (parse_file_seq): Inside multi-word archive ref
2811         translation loop, check NEW1==0 at end and break out of the loop.
2813         * GNUmakefile (make-$(version).tar): Distribute install.sh.
2814         * install.sh: New file.
2816         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
2817         cmds outside subshell parens, to avoid "command not found" msgs
2818         from the shell.
2820 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2822         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
2823         Redirect output & error from get to /dev/null.
2824         Fix reversed sense of test.
2826 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2828         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
2829         braces inside if condition command; some shells lose.
2831 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2833         * Version 3.69.2.
2835         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
2836         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
2838         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
2840 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2842         * main.c (main): Cast result of pointer arith to unsigned int
2843         before passing to define_variable for envars.  Matters when
2844         sizeof(unsigned)!=sizeof(ptrdiff_t).
2846 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2848         * configure.in: Add new check for SCCS_GET_MINUS_G.
2849         * config.h.in: Add #undef SCCS_GET_MINUS_G.
2850         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
2851         place of `-G $@' in SCCS commands.
2852         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
2853         to "-G$@".
2855         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
2856         (so it goes in config.status), rather than afterward.
2858         * ar.c (ar_member_date): Don't call enter_file on the archive file
2859         if it doesn't exist (by file_exists_p).
2861         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
2862         with `$$dir/make.info' in install-info invocation (oops).
2864         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
2865         we do not unlink and free PATH.
2867         * file.c (print_file_data_base): Fix inverted calculation for
2868         average files per hash bucket.
2870         * read.c (readline): When we see a NUL, give only a warning and
2871         synthesize a newline to terminate the building line (used to
2872         fatal).  Move fgets call into the loop condition, and after the
2873         loop test ferror (used to test !feof in the loop).
2875 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2877         * configure.in: Check for strerror in AC_HAVE_FUNCS.
2879 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2881         Differentiate different flavors of missing makefile error msgs,
2882         removing gratuitous `fopen: ' and giving caller for included makefiles.
2883         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
2884         (perror_with_name, pfatal_with_name): Use strerror instead of
2885         replicating its functionality.
2886         * read.c (read_makefile): Return int instead of void.
2887         (read_all_makefiles, read_makefile): Change callers to notice zero
2888         return and give error msg.
2890 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2892         * Version 3.69.1.
2894         * default.c: Put `-G $@' before $< in SCCS cmds.
2896 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2898         * read.c (read_makefile): After trying a variable defn, notice if
2899         the line begins with a tab, and diagnose an error.
2901 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2903         * Version 3.69.
2905 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2907         * Version 3.68.10.
2909         * implicit.c (try_implicit_rule): Look for a normal rule before an
2910         archive rule.
2912 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2914         * function.c (expand_function: `sort'): Double NWORDS when it
2915         overflows, instead of adding five.
2917         * compatMakefile (clean): Remove loadavg.
2919 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2921         * Version 3.68.9.
2923         * file.h (NEW_MTIME): Define new macro.
2924         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
2925         current time returned from system.  Removed variable NOW.
2926         * remake.c (notice_finished_file): Use NEW_MTIME in place of
2927         current time here too.
2929 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2931         * Version 3.68.8.
2933         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
2934         cmds and !DEPS_CHANGED unless also !NOEXIST.
2936 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2938         * read.c (parse_file_seq): When converting multi-word archive
2939         refs, ignore a word beginning with a '('.
2941 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2943         * configure.in: Check for sys/timeb.h.
2944         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
2946 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2948         * Version 3.68.7.
2950         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
2951         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
2952         TARGNAME to initialize PERCENTS[0].
2954 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2956         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
2957         Remove AC_USG; it is no longer used.
2959         * file.c (print_file): New function, broken out of
2960         print_file_data_base.
2961         (print_file_data_base): Call it.
2962         * rule.c (print_rule): New function, broken out of
2963         print_rule_data_base.
2964         (print_rule_data_base): Call it.
2966 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2968         * default.c (install_default_suffix_rules): New function, broken
2969         out of install_default_implicit_rules.
2970         (install_default_implicit_rules): Move suffix rule code there.
2971         * make.h: Declare install_default_suffix_rules.
2972         * main.c (main): Call install_default_suffix_rules before reading
2973         makefiles.  Move convert_to_pattern call before
2974         install_default_implicit_rules.
2976         * job.h (struct child): Make `pid' member type `pid_t' instead of
2977         `int'.
2979         * compatMakefile (RANLIB): New variable, set by configure.
2980         (glob/libglob.a): Pass RANLIB value down to submake.
2982         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
2983         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
2984         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
2985         defined but NOFILES_MAX is, define it to be that.
2987 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2989         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
2990         is distributed.
2992 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2994         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
2996 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2998         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
2999         is another symbol for | in some shells.
3000         * main.c (main): Add it to CMD_DEFS quoting list as well.
3002 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3004         * job.c (construct_command_argv_internal): Remove '=' from
3005         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
3006         first word without an unquoted '='.
3008         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
3010 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3012         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
3014         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
3016         * commands.c (delete_child_targets): Don't delete phony files.
3018         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
3019         see a `+' at the beginning of the command line.
3021 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3023         * Version 3.68.6.
3025 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3027         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
3029 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3031         * expand.c (variable_expand): Fatal on an unterminated reference.
3033 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3035         * Version 3.68.5.
3037         * variable.c (define_automatic_variables): Define new o_default
3038         variable `MAKE_VERSION' from version_string and remote_description.
3040         * make.h (version_string, remote_description): Declare these here.
3041         * main.c: Don't declare version_string.
3042         (print_version): Don't declare remote_description.
3044 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3046         * read.c (read_makefile): Free space pointed to by CONDITIONALS
3047         before restoring the old pointer.
3049 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3051         * compatMakefile ($(objs)): Depend on config.h.
3053         * GNUmakefile (build.sh.in): Depend on compatMakefile.
3055         * configure.in: Touch stamp-config after AC_OUTPUT.
3057 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3059         * Version 3.68.4.
3061 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3063         * make.h: Include <config.h> instead of "config.h".
3065 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3067         * main.c (main): Make all variables interned from ENVP be v_export.
3068         * variable.c (try_variable_definition): In v_default case, don't
3069         check for an o_file variable that `getenv' finds.
3071         * job.c (reap_children): New local variable ANY_LOCAL; set it
3072         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
3074         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
3076         * function.c (expand_function): #if 0 out freeing of ENVP since it
3077         is environ.
3079 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3081         * Version 3.68.3.
3083         * remote-stub.c (remote_status): Set errno to ECHILD before return.
3084         * job.c (reap_children): Scan the chain for remote children and
3085         never call remote_status if there are none.
3087         * function.c (expand_function: `shell'): #if 0 out calling
3088         target_environment; just set ENVP to environ instead.
3090         * job.c (reap_children): Check for negative return from
3091         remote_status and fatal for it.
3092         When blocking local child wait returns 0, then try a blocking call
3093         to remote_status.
3095 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3097         * compatMakefile (clean): Delete make.info* and make.dvi here.
3098         (distclean): Not here.
3100         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
3101         compilers that don't like enum values used as ints.
3103 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3105         * compatMakefile (loadavg): Add $(LOADLIBES).
3107 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3109         * Version 3.68.2.
3111         * compatMakefile (loadavg, check-loadavg): New targets.
3112         (check): Depend on check-loadavg.
3114         * compatMakefile (glob/libglob.a): Depend on config.h.
3116         * misc.c (log_access): Write to stderr instead of stdout.
3118 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3120         * Version 3.68.1.
3122 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3124         * configure.in (SYS_SIGLIST_DECLARED): In test program include
3125         <unistd.h> #ifdef HAVE_UNISTD_H.
3127         * compatMakefile (.PHONY): Put after `all' et al.
3129         * configure.in: Add AC_IRIX_SUN.
3131 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3133         * Version 3.68.
3135 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3137         * Version 3.67.8.
3139 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3141         * Version 3.67.7.
3143         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
3144         Run install-info script if present.
3146 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3148         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
3150         * configure.in: Add AC_STAT_MACROS_BROKEN.
3152 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3154         * Version 3.67.6.
3156         * read.c (read_makefile): Recognize directive `-include', like
3157         `include' but sets RM_DONTCARE flag.
3159         * variable.c (target_environment): If FILE is nil, use
3160         current_variable_set_list in place of FILE->variables.
3161         * function.c (expand_function: `shell'): Get an environment for
3162         the child from target_environment instead of using environ.
3164         * dep.h: Declare read_all_makefiles here.
3165         (RM_*): Define new enum constants.
3166         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
3167         Treat it as a bit mask containing RM_*.
3168         (read_all_makefiles): For default makefiles, set D->changed to
3169         RM_DONTCARE instead of 1.
3170         * main.c: Don't declare read_all_makefiles here.
3171         (main): Check `changed' member of read_makefiles elts for RM_*
3172         flags instead of specific integer values.
3174 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3176         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
3178 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3180         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
3181         as well as VPATH.
3182         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
3183         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
3185         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
3186         PERCENTS, whose storage is not consumed by create_pattern_rule.
3188         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
3190 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3192         * Version 3.67.5.
3194         * rule.c (max_pattern_targets): New variable.
3195         (count_implicit_rule_limits): Compute its value.
3196         * rule.h: Declare it.
3197         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
3198         times bigger.  Move adding new TRYRULES elt inside the inner
3199         targets loop, so each matching target gets its own elt in MATCHES
3200         and CHECKED_LASTSLASH.
3202         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
3203         instead of just `file' in error msg.
3205 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3207         * job.c (construct_command_argv): Turn off
3208         --warn-undefined-variables around expansion of SHELL and IFS.
3209         * read.c (tilde_expand): Likewise for HOME.
3210         (read_all_makefiles): Likewise for MAKEFILES.
3211         * vpath.c (build_vpath_lists): Likewise for VPATH.
3213         * main.c (warn_undefined_variables_flag): New flag variable.
3214         (switches): Add --warn-undefined-variables.
3215         * make.h (warn_undefined_variables_flag): Declare it.
3216         * expand.c (warn_undefined): New function.
3217         (reference_variable): Call it if the variable is undefined.
3218         (variable_expand): In substitution ref, call warn_undefined if the
3219         variable is undefined.
3221         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
3222         `%.tex: %.w %.ch' rules.
3223         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
3224         (default_suffixes): Add `.ch'.
3226 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3228         * default.c (default_suffixes): Replace `.cweb' with `.w'.
3229         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
3230         and `.w.tex'.
3232 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3234         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
3236 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3238         * Version 3.67.4.
3240         * read.c (multi_glob): Don't free OLD and OLD->name in the
3241         FOUND!=0 fork.  Use new block-local variable F instead of
3242         clobbering OLD.
3244         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
3245         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
3246         contains no metacharacters.
3248 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3250         * ar.c (ar_glob{_match,_alphacompare}): New function.
3252         * dep.h [! NO_ARCHIVES]: Declare it.
3253         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
3255         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
3256         multi_glob (which doesn't take a 3rd arg).
3257         * rule.c (install_pattern_rule): Likewise.
3258         * default.c (set_default_suffixes): Here too.
3259         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
3261         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
3262         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
3264 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3266         * compatMakefile (installdirs): Actually pass directory names.
3267         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
3268         if it fails, echo a warning msg, but don't make the rule fail.
3270         * read.c (tilde_expand): New function, broken out of tilde_expand.
3271         (multi_glob): Call it.
3272         (construct_include_path): Expand ~ in directory names.
3273         * dep.h: Declare tilde_expand.
3274         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
3275         (main): Expand ~ in -C args.
3276         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
3278 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3280         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
3282         * main.c (main): Put result of alloca in temporary variable with
3283         simple assignment, to make SGI compiler happy.
3285 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3287         * Version 3.67.3.
3289         * main.c (main): Before re-execing, remove intermediate files, and
3290         print the data base under -p.  Sexier debugging message.
3292         * implicit.c (pattern_search): Allocate an extra copy of the name
3293         of a winning intermediate file when putting it in FOUND_FILES.
3295 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3297         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
3298         multi_glob (which doesn't take a 3rd arg).
3300         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
3301         chars within D_NAMLEN that are NULs.
3303         * main.c (decode_switches): Don't savestring ARGV[0] to put it
3304         into `other_args'.
3305         For string switch, don't savestring `optarg'.
3306         (main): Don't free elts of makefiles->list that are "-".
3307         Use alloca'd rather than savestring'd storage for elts of
3308         makefiles->list that are temporary file names.
3309         * read.c (read_all_makefiles): Don't free *MAKEFILES.
3310         * file.c (enter_file): Don't strip `./'s.
3311         * main.c (enter_command_line_file): New function.
3312         (main): Use it in place of enter_file for command-line goals from
3313         other_files, and for old_files and new_files.
3315 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3317         * Version 3.67.2.
3319         * compatMakefile (.SUFFIXES): Add .info.
3320         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
3321         else in $srcdir.  Use basename to remove dir name from installed name.
3323 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3325         * implicit.c (pattern_search): When interning FOUND_FILES, try
3326         lookup_file first; if found, free the storage for our copy of the name.
3328 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3330         * Version 3.67.1.
3332         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
3333         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
3335 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3337         * rule.c (convert_suffix_rule): New function.
3338         (convert_to_pattern): Use it instead of doing all the work here
3339         several times.
3340         For target suffix `.a', generate both the archive magic rule and
3341         the normal rule.
3343         * compatMakefile (distclean): Remove stamp-config.
3345 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3347         * Version 3.67.
3349         * file.c (remove_intermediates): Don't write extra space after `rm'.
3351         * main.c (struct command_switch.type): Remove `usage_and_exit'.
3352         (print_usage_flag): New variable.
3353         (switches: --help): Make type `flag', to set print_usage_flag.
3354         (init_switches): Remove `usage_and_exit' case.
3355         (decode_switches): Likewise.
3356         (decode_switches): Print usage if print_usage_flag is set.
3357         When printing usage, die with status of BAD.
3358         (main): Die with 0 if print_version_flag.
3360 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3362         * Version 3.66.
3364 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3366         * compatMakefile (installdirs): New target.
3367         (install): Depend on it.
3369 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3371         * Version 3.65.2.
3373 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3375         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
3376         set LASTPATH to PATH, not NEXT.
3378         * dir.c (read_dirstream): Break out of loop after incrementing
3379         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
3380         dereference DS->contents->files[DIRFILE_BUCKETS].
3382         * read.c (read_makefile): Clear no_targets after reading a
3383         targetful rule line.
3385         * main.c (main): If print_version_flag is set, exit after printing
3386         the version.
3387         (switches): Change --version docstring to say it exits.
3389         * make.h [butterfly]: #undef POSIX.
3391 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3393         * Version 3.65.1.
3395         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
3396         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
3398         * function.c (handle_function): Use fatal instead of
3399         makefile_fatal when reading_filename is nil.
3401         * configure.in: Add AC_GETGROUPS_T.
3402         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
3404 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3406         * Version 3.65.
3408 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3410         * function.c (handle_function): Fatal for unmatched paren.
3412 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3414         * Version 3.64.3.
3416         * commands.c (handling_fatal_signal): New variable.
3417         (fatal_error_signal): Set it.
3418         * job.c (reap_children): Avoid nonreentrant operations if that is set.
3419         * make.h: Declare handling_fatal_signal.
3421         * expand.c (reference_variable): New function, snippet of code
3422         broken out of simple-reference case of variable_expand.
3423         (variable_expand): Use it for simple refs.
3424         (variable_expand): When checking for a computed variable name,
3425         notice a colon that comes before the final CLOSEPAREN.  Expand
3426         only up to the colon, and then replace the pending text with a
3427         copy containing the expanded name and fall through to subst ref
3428         handling.
3429         (variable_expand): Don't bother expanding the name if a colon
3430         appears before the first $.
3431         (expand_argument): Use alloca instead of savestring.
3432         (variable_expand): For subst ref, expand both sides of = before
3433         passing to [pat]subst_expand.  Use find_percent instead of lindex
3434         to check the lhs for a %.
3436 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3438         * Version 3.64.2.
3440 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3442         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
3444         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
3445         not to multi_glob.
3447 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3449         * Version 3.64.1.
3451         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
3452         we read the member name in any of the fashions that allow it to be
3453         arbitrarily long.  Pass its negation to FUNCTION.
3454         (describe_member): Take TRUNCATED from ar_scan and print it.
3455         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
3456         the first sizeof (struct ar_hdr.ar_name) chars.
3457         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
3458         * ar.c (ar_member_date_1): Likewise.
3460 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3462         * job.c (reap_children): Before calling start_job_command to start
3463         the next command line, reset C->remote by calling start_remote_job_p.
3465 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3467         * arscan.c (ar_scan): New local var NAMEMAP.
3468         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
3469         flag IS_NAMEMAP.  When extracting the member name, always put a
3470         null at its end first.  If the name is "//" or "/ARFILENAMES", set
3471         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
3472         like " /N", get full name from NAMEMAP+N.
3473         Else if NAME looks like "#1/N", read N chars from the
3474         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
3475         the elt's data into alloca'd NAMEMAP.
3476         (ar_name_equal): #if 0 truncating code.
3478         * make.h: Don't declare vfork at all.  It returns int anyway,
3479         unless <unistd.h> declared it; and we conflicted with some systems.
3481         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
3482         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
3483         define it to something like "-no-print-directory".
3484         Use %g format instead of %f for floating-valued things.
3486 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3488         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
3489         to change remote-%.dep to remote-stub.dep.
3491 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3493         * Version 3.64.
3495 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3497         * compatMakefile (install): Remove - prefix from chgrp+chmod.
3499         * Version 3.63.8.
3501 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3503         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
3504         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
3505         else to "get".
3506         * default.c (default_variables): Set GET to macro SCCS_GET.
3508         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
3509         if nonzero.  I hope this is the last time this argument is added
3510         or removed.
3511         (read_makefile): Pass it 1 when parsing include file names.
3512         Pass it 1 when parsing target file names.
3513         Pass it 1 when parsing static pattern target pattern names.
3514         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
3515         * default.c (set_default_suffixes): Pass it 1 when parsing
3516         default_suffixes.
3517         * function.c (string_glob): Pass it 0 here.
3519 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3521         * misc.c (log_access): New function.
3522         ({init,user,make,child}_access): Call it.
3523         (child_access): Abort if !access_inited.
3525         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
3526         single-letter option.
3527         (init_switches, decode_switches, define_makeflags): An option with
3528         no single-letter version is no longer indicated by a value of -1;
3529         instead a value that is !isalnum.
3530         (init_switches): Don't put such switches into the string, only
3531         into the long_option table.
3533         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
3535         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
3536         bsdcc defined WIF* to use union wait.
3538         * main.c (struct command_switch): Change member `c' to type int.
3539         (switches): Make const.
3540         (decode_switches): Use `const struct command_switch *'.
3541         (define_makeflags): Likewise.
3543         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
3545 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3547         * Version 3.63.7.
3549         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
3550         Removed AC_MEMORY_H.
3551         * make.h [USG, NeXT]: Don't test these.
3552         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
3553         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
3554         [! ANSI_STRING]: Put decls of bcopy et al here.
3555         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
3556         [HAVE_SIGSETMASK]: Test this rather than USG.
3557         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
3558         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
3559         It doesn't hurt to do both if they are both defined, and testing
3560         USG is useless.
3561         * dir.c: Rationalize directory header conditionals.
3562         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
3564         * default.c (default_suffixes): Add `.txinfo'.
3565         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
3567         * variable.c (try_variable_definition): Replace RECURSIVE flag
3568         with enum FLAVOR, which can be simple, recursive, or append.
3569         Recognize += as append flavor.  Set new variable VALUE in a switch
3570         on FLAVOR.  For append flavor, prepend the variable's old value.
3571         If the variable was previously defined recursive, set FLAVOR to
3572         recursive; if it was defined simple, expand the new value before
3573         appending it to the old value.  Pass RECURSIVE flag to
3574         define_variable iff FLAVOR == recursive.
3576         * variable.c (try_variable_definition): Use alloca and bcopy for
3577         NAME, instead of savestring.  Might as well use stack storage
3578         since we free it immediately anyway.
3580 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3582         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
3584         * main.c (define_makeflags): Rename `struct flag' member `switch'
3585         to `cs', which is not a reserved word.
3587 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3589         * job.c (new_job): Call start_waiting_jobs first thing.
3590         (start_waiting_job): Changed return type from void to int.
3591         Return 0 when putting the child on the waiting_jobs chain.
3592         (start_waiting_jobs): Don't check load and job_slots here.
3593         Always take a job off the chain and call start_waiting_job on it;
3594         give up and return when start_waiting_job returns zero.
3596         * main.c (define_makeflags: struct flag): Change member `char c' to
3597         `struct command_switch *switch'.
3598         (ADD_FLAG): Set that to CS instead of CS->c.
3599         If CS->c is -1, increment FLAGSLEN for the long name.
3600         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
3601         the long name instead.
3603         * compatMakefile (stamp-config): New target of old config.h rule.
3604         Touch stamp-config after running config.status.
3605         (config.h): Just depend on stamp-config, and have empty commands.
3607 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3609         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
3611         * configure.in (AC_HAVE_FUNCS): Check for psignal.
3613 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3615         * main.c (long_option_aliases): Remove "new"; it is already an
3616         unambiguous prefix of "new-file".
3618 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3620         * Version 3.63.6.
3622 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3624         * vpath.c (selective_vpath_search): When adding the
3625         name-within-directory at the end of NAME, and we don't add a
3626         slash, don't copy FILENAME in one char too far into NAME.
3628         * variable.c (define_automatic_variables): Find default_shell's
3629         length with strlen, not numerology.
3631 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3633         * main.c (define_makeflags): Add the elts of a string option in
3634         reverse order, so they come out right when reversed again.
3636 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3638         * compatMakefile (make.info): Use `-o make.info'.
3640 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3642         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
3643         reflect new use.
3644         (objs): Replace remote.o with remote-$(REMOTE).o.
3645         (srcs): Replace remote.c with remote-$(REMOTE).c.
3646         (remote.o): Rule removed.
3648         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
3649         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
3650         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
3651         * build.template (REMOTE): New var; set to @REMOTE@.
3652         (objs): Add remote-${REMOTE}.o.
3654 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3656         * Version 3.63.5.
3658         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
3659         "Rejecting impossible" -d msg.
3661         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
3662         mod'd values there; never mod {OLD,NEW}HASH.
3664 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3666         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
3668         * compatMakefile (VPATH): Set this to @srcdir@.
3669         (srcdir): Set this to $(VPATH).
3671         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
3672         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
3673         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
3675         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
3677         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
3679 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3681         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
3682         as the sed delimiter char.
3684 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3686         * Version 3.63.4.
3688         * rule.h (struct rule): Removed `subdir' member.
3689         * rule.c (new_pattern_rule): No need to clear it.
3690         (count_implicit_rule_limits): Set the `changed' flag in each dep
3691         that refers to a nonexistent directory.  No longer set rule-global
3692         `subdir' flag with that information.
3693         (print_rule_data_base): Don't record info on `subdir' flags.
3695         * implicit.c (pattern_search): Check the DEP->changed flag rather
3696         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
3697         if it is set, the file might exist even though the DEP->changed
3698         flag is set.
3700         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
3701         name arg to dir_file_exists_p to check for existence of directory.
3703         * implicit.c (pattern_search): Inside dep-finding loop, set
3704         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
3705         rather than computing it anew.
3707         * commands.c (set_file_variables): Must alloca space for PERCENT
3708         and copy it, to avoid leaving the trailing `)' in the value.
3710         * misc.c (remove_comments): Fixed backslash-checking loop
3711         condition to allow it to look at the first char on the line.
3712         P2 >= LINE, not P2 > LINE.
3714         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
3715         $@, rm $@.old and mv $@ to $@.old.
3717         * variable.c (try_variable_definition): Take new args FILENAME and
3718         LINENO.  Fatal if the variable name is empty.
3719         * read.c (read_makefile): Change callers.
3720         * main.c (main): Likewise.
3722         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
3723         that configure will replace with the group owning /dev/kmem.
3725 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3727         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
3728         selective_vpath_search.
3729         (selective_vpath_search): Take second arg MTIME_PTR.
3730         If the dir cache thinks a file exists, stat it to make sure, and
3731         put the modtime in *MTIME_PTR.
3732         * remake.c (library_search): Take second arg MTIME_PTR.
3733         When we find a match, record its mtime there.
3734         Pass MTIME_PTR through to vpath_search to do same.
3735         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
3736         store it in FILE->last_mtime if set nonzero.
3737         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
3739         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
3740         so globbing looks somewhere it will find things.
3742         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
3743         not `$(srcdir)/make.info*'; no need to use basename.
3745 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3747         * Version 3.63.3.
3749         * compatMakefile (install): Add missing ;\s.
3751         Make -, @, and + prefixes on a pre-expanded command line affect
3752         all lines in the expansion, not just the first.
3753         * commands.h (struct commands): Replace `lines_recurse' member
3754         with `lines_flags'.
3755         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
3756         that flag byte.
3757         * commands.c (chop_commands): Set `lines_flags' instead of
3758         `lines_recurse'.  Record not only + but also @ and - prefixes.
3759         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
3760         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
3761         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
3762         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
3763         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
3764         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
3766         * remake.c (update_goal_chain): Set G->file to its prev after
3767         checking for G being finished, since that check needs to examine
3768         G->file.
3770         * configure.in (union wait check) [HAVE_WAITPID]: Try using
3771         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
3772         don't work together, we should not use union wait.
3774         * Version 3.63.2.
3776         * remake.c (update_goal_chain): When G->file->updated, move
3777         G->file to its prev.  We aren't finished until G->file is nil.
3779 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3781         * main.c (starting_directory): New global variable.
3782         (main): Set it to cwd after doing -Cs.
3783         (log_working_directory): Use it, rather than computing each time.
3784         * make.h: Declare it.
3786         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
3788         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
3789         ARGV, rather than LEN words plus one byte.
3791 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3793         * compatMakefile ($(bindir)/$(instname)): Put - before
3794         install_setgid command line, so its failure won't be an error.
3795         (infodir): New variable.
3796         (install): Depend on $(infodir)/$(instname).info.
3797         ($(infodir)/$(instname).info): New target.
3799         * read.c (read_makefile): If FILENAMES is nil when we see a line
3800         starting with a tab, don't treat it as a command.  Just fall
3801         through, rather than giving an error.
3803         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
3804         command line, don't clear it before continuing.  We want
3805         subsequent command lines to be ignored as well.
3807         * job.c (new_job): Before expanding each command line, collapse
3808         backslash-newline combinations that are inside var or fn references.
3810 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3812         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
3814         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
3816         * job.c [POSIX] (unblock_sigs): Made global.
3817         [!POSIX] (unblock_sigs): Move defns to job.h.
3818         * job.h [POSIX] (unblock_sigs): Declare.
3820 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3822         * read.c (read_makefile): In vpath parsing, after finding the
3823         pattern token, take entire rest of line as the search path, not
3824         just the next token.
3826         * compatMakefile (remote.o): Depend on remote-*.c.
3828 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3830         * commands.c (set_file_variables): Don't define any F or D versions.
3831         * variable.c (define_automatic_variables): Define them here as
3832         recursively-expanded variables that use the dir and notdir funcs.
3834         * variable.c (target_environment): In v_default case, don't export
3835         o_default or o_automatic variables.
3837         * configure.in (union wait check): Remove ` and ' inside C code;
3838         they confuse the shell script.
3840 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3842         * Version 3.63.1.
3844         * vpath.c (construct_vpath_list): When skipping further processing
3845         of an elt that is ".", don't also skip the code that pushes P past
3846         the next separator.
3848         * compatMakefile (distclean): Don't remove make-*.
3850         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
3851         defined.  If one cannot use WEXITSTATUS with a `union wait'
3852         argument, we don't want to believe the system has `union wait' at all.
3854         * remake.c (update_file): Do nothing to print "up to date" msgs.
3855         (update_goal_chain): Do it here instead.
3856         Use the `changed' flag of each goal's `struct dep' to keep track
3857         of whether files_remade (now commands_started) changed around a
3858         call to update_file for that goal.
3859         When a goal is finished, and its file's update_status is zero (i.e.,
3860         success or nothing done), test the `changed' flag and give an "up
3861         to date" msg iff it is clear.
3862         * make.h (files_remade): Renamed to commands_started.
3863         * remake.c: Changed defn.
3864         (update_goal_chain): Changed uses.
3865         * job.c (start_job_command): Increment commands_started here.
3866         (reap_children): Not here.
3868         * remake.c (update_goal_chain): Don't do anything with files'
3869         `prev' members.  update_file now completely handles this.
3871         * variable.c (target_environment): Don't expand recursive
3872         variables if they came from the environment.
3874         * main.c (define_makeflags): For flags with omitted optional args,
3875         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
3876         so stored cannot have more flags appended to the same word.
3878 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3880         * variable.c (print_variable_set): In vars/bucket calculation,
3881         don't spuriously multiply by 100.
3883         * Version 3.63.
3885         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
3886         Don't define if already defined.
3888         * remake.c (update_file): Don't keep track of the command_state before
3889         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
3890         and don't test it to decide to print the "is up to date" msg.
3891         Testing for files_remade having changed should always be sufficient.
3892         The old method lost when we are called in the goal chain run on a
3893         makefile, because the makefile's command_state is already
3894         `cs_finished' from the makefile chain run.
3896         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
3898         * configure.in: Rewrote wait checking.
3899         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
3900         Use AC_HAVE_FUNCS to check for waitpid and wait3.
3901         Use a compile check to test just for `union wait'.
3902         * job.c: Rewrote conditionals accordingly.
3903         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
3904         [HAVE_WAIT3]: Likewise.
3905         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
3907         * configure.in: Set CFLAGS and LDFLAGS before all checks.
3909         * dir.c: Add static forward decls of {open,read}_dirstream.
3911 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3913         * Version 3.62.31.
3915         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
3917         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
3918         * build.template (CFLAGS, LDFLAGS): Same here.
3919         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
3920         Set them to -g if not defined in the environment.
3922         * remake.c (library_search): Use LIBNAME consistently, setting it
3923         only once, to be the passed name sans `-l'.
3924         Pass new var FILE to be modified by vpath_search.
3926 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3928         * Version 3.62.30.
3930         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
3931         job_slots.
3933         * configure.in: Add AC_CONST for the sake of getopt.
3935         * read.c (read_makefile): Continue after parsing `override'
3936         directive, rather than falling through to lossage.
3937         Check for EOL or blank after "override define".
3939         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
3941 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3943         * Version 3.62.29.
3945         * main.c (define_makeflags): After writing everything into
3946         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
3947         just wrote " -".  Always terminate the string at *P.
3949         * remake.c (library_search): When constructing names in std dirs,
3950         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
3951         buffer we are writing into!).
3953 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3955         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
3956         define" when IGNORING is true.
3958         * compatMakefile (distclean): Remove config.status and build.sh.
3960 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3962         * Version 3.62.28.
3964         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
3965         (char *).
3967         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
3969         * variable.c (define_automatic_variables): Override SHELL value for
3970         origin o_env_override as well as o_env.
3972         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
3973         add the names of the glob objects (w/subdir) to %objs%.
3974         * build.template (globobjs): Removed.
3975         Take basename of $objs before linking.
3977 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3979         * Version 3.62.27.
3981         * configure.in (AC_OUTPUT): Also edit build.sh.
3982         * build.template: New file.
3983         * GNUmakefile (build.sh.in): New rule to create it from build.template.
3984         (make-$(version).tar.Z): Depend on build.sh.in.
3986         * main.c (die): Call print_data_base if -p.
3987         (main): Don't call it here.
3989         * compatMakefile (defines): Add @DEFS@.  configure should turn this
3990         into -DHAVE_CONFIG_H.
3992 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3994         * Version 3.62.26.
3996         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
3997         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
3998         * compatMakefile (install_setgid): New var, set by configure.
3999         (install): Install setgid $(group) only if $(install_setgid) is true.
4001 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4003         * job.c (load_too_high): If getloadavg fails with errno==0, give a
4004         message saying that load limits are not supported.
4006         * vpath.c (construct_vpath_list): Rewrote path deletion code to
4007         not try to use PATH's next link after freeing PATH.
4009         * main.c (define_makeflags): Rewritten; now handles string-valued
4010         option, and has no arbitrary limits.
4011         (switches): Set `toenv' flag for -I and -v.
4013         * main.c (decode_env_switches): Cast return value of alloca to char *.
4015         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
4016         setre[gu]id in place of set[gu]id.
4018 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4020         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
4021         origin o_default.
4023         * make.h [POSIX]: Don't test this to use ANSI_STRING.
4024         Testing STDC_HEADERS should be sufficient.
4026         * job.h: Declare start_waiting_jobs.
4028         * read.c (read_makefile): Add missing parens in if stmt that find
4029         conditional directives.
4031         * main.c (main): Declare init_dir.
4032         * implicit.c (pattern_search): Always use two % specs in a
4033         DEBUGP2, and always pass two non-nil args.
4034         Cast field width args to int.
4035         Add missing parens in !RULE->subdir if stmt.
4036         * function.c (expand_function, patsubst_expand): Add parens around
4037         assignments inside `while' stmts.
4038         * commands.c (print_commands): Cast field width args to int.
4040         * read.c (do_define): Cast return value of alloca to (char *).
4042         * main.c (init_switches): New function, broken out of decode_switches.
4043         (decode_switches): Take new arg ENV.  If set, ignore non-option
4044         args; print no error msgs; ignore options with clear `env' flags.
4045         (decode_env_switches): Rewritten to chop envar value into words
4046         and pass them to decode_switches.
4047         (switches): Set `env' flag for -I and -v.
4049         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
4051 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4053         * Version 3.62.25.
4055         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
4056         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
4057         we don't need these anyway.
4059         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
4060         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
4061         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
4062         but its set[gu]id functions aren't; its setre[gu]id functions work.
4064         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
4066         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
4068         * configure.in: Call AC_PROG_CC.
4069         * compatMakefile (CC): Define to @CC@ (autoconf magic).
4071         * compatMakefile: Add .NOEXPORT magic target.
4073 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4075         * main.c (print_version): Updated copyright to include 93.
4077 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4079         * make.h [_AIX]: Don't declare alloca.
4081 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4083         * Version 3.62.24.
4085         * compatMakefile (objs): Add signame.o.
4086         (srcs): Add signame.[ch].
4088         * compatMakefile (srcs): Add config.h.in.
4089         (remote.o): Add -I. before -I$(srcdir).
4091 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4093         * Version 3.62.23.
4095         * read.c (readline): Fatal when LEN==0, indicating a line starting
4096         with a NUL.
4097         (readline): Take new arg LINENO, for use in error msg.
4098         (read_makefile, do_define): Pass it.
4100         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
4101         (.c.o): Add -I. before -I$(srcdir).
4103 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4105         * read.c (read_makefile): Accept and ignore a rule with no targets.
4107         * compatMakefile (ALLOCA_SRC): New variable.
4108         (srcs): Include its value.
4110         * read.c (struct conditional): Renamed member `max_ignoring' to
4111         `allocated'; added new member `seen_else'.
4112         (conditional_line): Initialize seen_else flag when starting an `if...';
4113         set it when we see an `else'; fatal if set when we see `else'.
4114         (read_makefile): Fatal "missing `endif'" if there are any pending
4115         conditionals, not just if we are still ignoring.
4117 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4119         * compatMakefile (manext): Set to 1, not l.
4120         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
4122         * file.c (file_hash_enter): Don't call uniquize_deps here.
4123         * read.c (record_files): Likewise.
4124         * implicit.c (pattern_search): Likewise.
4125         * commands.c (set_file_variables): Call it only here.
4127         * default.c (default_variables) [__convex__]: FC=fc.
4129         * variable.c (target_environment): Expand the values of recursively
4130         expanded variables when putting them into the environment.
4131         * expand.c (recursively_expand): Made global.
4132         * make.h (recursively_expand): Declare it.
4134         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
4135         when a dep's command_state is cs_running or cs_deps_running.
4137         * read.c (read_makefile): Changed error msg for spurious cmds to
4138         not say "first target".
4140 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4142         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
4143         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
4144         * compatMakefile (config.h, configure, config.h.in): New rules.
4145         (defines): Removed @DEFS@.
4147 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4149         * compatMakefile (realclean): Just depend on distclean; no cmds.
4150         (distclean): Do what realclean did before; also remove Makefile and
4151         config.h; don't remove configure.
4152         (info, dvi): New targets; depend on make.{info,dvi}.
4153         (doc): Removed target.
4154         (MAKEINFO, TEXI2DVI): New vars.
4155         (make.info, make.dvi): Use them instead of explicit cmds.
4157 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4159         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
4161 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4163         * main.c (long_option_aliases): Add --new-file alias for -W.
4165         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
4166         to CXXFLAGS.
4168         * read.c (do_define): Expand the variable name before using it.
4170         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
4171         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
4173         * remake.c (library_search): Search for libNAME.a in cwd; look in
4174         vpath before looking in standard dirs, not after.
4175         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
4177 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4179         * default.c (default_pattern_rules, default_terminal_rules): Added
4180         brackets around initializers.
4182         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
4183         (try_variable_definition): Expand the name before defining the var.
4185         * job.c (init_siglist): Removed function.
4186         Removed decl of `sys_siglist'.
4187         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
4188         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
4189         only under these conditions.
4190         * main.c (main): Don't declare init_siglist.
4191         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
4193 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4195         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
4196         nil; instead just set it to MOREDEPS.
4198 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4200         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
4201         loop that sets MAXELEM.
4203 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4205         * Version 3.62.22.
4207 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4209         * job.c (start_job_command): Under -n, increment files_remade after
4210         processing (i.e., printing) all command lines.
4212 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4214         * read.c (record_files): Append new deps if this rule has no
4215         commands; prepend them to existing deps if this rule has no commands.
4217         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
4219         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
4220         (read_makefile): Changed callers.
4221         * function.c (string_glob): Likewise.
4222         * rule.c (install_pattern_rule): Likewise.
4224 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4226         * remake.c (files_remade): Made global.
4227         (notice_finished_file): Don't increment files_remade here; this
4228         function gets called in many situations where no remaking was in
4229         fact done.
4230         * job.c (reap_children): Do it here instead, when we know that
4231         actual commands have been run for the file.
4232         * make.h (files_remade): Declare it.
4234 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4236         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
4237         separate elts in the search path.
4239         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
4240         The search path can contain spaces now.
4242 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4244         * compatMakefile (check): New target; no-op.
4246         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
4247         testing for OLDHASH==0 but before using the value.
4248         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
4249         to file_hash_enter.
4251         * file.c (rename_file): Notice when OLDFILE->cmds came from
4252         default.c, and don't try to print ->filename in that case.
4254 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4256         * remake.c (update_file): Don't process F->also_make here.
4257         (notice_finished_file): Don't process FILE->also_make if no attempt
4258         to update FILE was actually made.
4259         Fixed to call f_mtime directly to refresh their modtimes.
4261 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4263         * read.c (find_percent): Don't increment P again after skipping
4264         an escaped %.
4266         * expand.c (variable_expand): In call to patsubst_expand, don't
4267         find `%'s ourselves; let that function do it.
4269         * read.c (read_makefile: record_waiting_files): Don't call
4270         record_files if FILENAMES is nil.
4271         (read_makefile): All alternatives in the parsing, except for rule
4272         lines, fall through to the end of the loop.  At the end of the
4273         loop, do record_waiting_files so we notice later spurious cmds.
4275 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4277         * variable.c (define_automatic_variables): Free old value of SHELL
4278         before replacing it.
4280 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4282         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
4284         * dir.c (open_dirstream): Cast return value to __ptr_t.
4286         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
4288         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
4289         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
4290         Define as (get_path_max ()).
4291         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
4292         [! PATH_MAX] (get_path_max): Declare fn.
4293         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
4295 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4297         * Version 3.62.21.
4299         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
4300         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4301         SYS_SIGLIST_DECLARED.
4303         * dir.c (file_impossible): When initializing DIR->contents, set
4304         DIR->contents->dirstream to nil.
4306         * compatMakefile (GLOB): Define new variable.
4307         (objs): Use it, rather than glob/libglob.a explicitly.
4309         * read.c (parse_file_seq): When stripping "./", handle cases like
4310         ".///foo" and "./////".
4311         * file.c (lookup_file, enter_file): Likewise.
4313 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4315         * dir.c (struct dirstream, {open,read}_dirstream): New
4316         data type and functions to read a directory sequentially.
4317         (init_dir): New function to hook it into glob.
4318         * main.c (main): Call init_dir.
4320         * compatMakefile (objs): Added glob/libglob.a.
4321         * configure.in: Remove code to test for glob.
4323 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4325         * read.c (record_files): Generalized test for NAME pointing
4326         somewhere into F->name.
4328         * variable.c (define_variable_in_set): Free old value when replacing.
4330         * read.c (do_define): Free the linebuffer before returning.
4331         (record_files): When clearing .SUFFIXES deps, free their data.
4332         (multi_glob): Free OLD and its data when replacing it with results
4333         of glob run.
4335         * commands.c (set_file_variables): Use alloca in place of xmalloc
4336         for temp space for $^, $?, et al.
4338         * dir.c (struct directory): New member `contents' replaces `files'
4339         and `dirstream'.
4340         (struct directory_contents): New type.
4341         (directories_contents): New hash table.
4342         (dir_struct_file_exists_p): Take a struct directory_contents.
4343         (dir_file_exists_p): Pass it the `contents' member of the dir found.
4344         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
4345         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
4346         (dir_file_exists_p, find_directory): Change all callers.
4347         (file_impossible): Use DIR->contents, initializing it if nil.
4348         (print_dir_data_base): Use DIR->contents, and print out device and
4349         inode numbers with each directory.
4351         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
4352         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
4353         (DIRFILE_BUCKETS): Decrease to 107.
4354         (find_directory): Allocate and zero a multiple of
4355         sizeof (struct dirfile *), not of sizeof (struct dirfile).
4356         (dir_struct_file_exists_p): New function, nearly all code from
4357         dir_file_exists_p.
4358         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
4359         * vpath.c (selective_vpath_search): Remove redundant
4360         dir_file_exists_p call.
4362         * configure.in: Comment out glob check; always use our code.
4364 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4366         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4367         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
4368         do have it.
4370 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4372         * main.c (main): Don't do -w automatically if -s.
4374 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4376         * main.c (printed_version): Move variable inside print_version.
4377         (print_version): Return immediately if printed_version is set.
4378         (die): Don't test printed_version here.
4379         (decode_switches): Under -v, do print_version before giving usage.
4380         (DESCRIPTION_COLUMN): New macro.
4381         (decode_switches): Use it when printing the usage message.
4382         Leave at least two spaces between options and their descriptions.
4384 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4386         * Version 3.62.20.
4388 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4390         * read.c (read_makefile): Save errno value from trying to open
4391         FILENAME, and restore it before erring; otherwise we get the errno
4392         value from the last elt of the search path.
4394 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4396         * main.c (long_option_aliases): Add --stop for -S.
4398         * read.c (word1eq): Do strncmp before dereferencing someplace that
4399         may be out in space.
4401 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4403         * remake.c (notice_finished_file): If all the command lines were
4404         recursive, don't do the touching.
4406         * job.c (start_job_command): Don't check for + here.
4407         * commands.c (chop_commands): Do it here instead.
4409         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
4411 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4413         * compatMakefile (objs): Include $(ALLOCA).
4415         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
4417 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4419         * read.c (default_include_directories): Add INCLUDEDIR first.
4420         * compatMakefile (includedir): Define.
4421         (defines): Add -D for INCLUDEDIR="$(includedir)".
4423         * read.c (read_makefile): Grok multiple files in `include';
4424         globbing too.
4426         * remake.c (library_search): New function.
4427         (library_file_mtime): Remove function.
4428         (f_mtime): Use library_search instead of library_file_mtime.
4429         * compatMakefile (libdir): Define.
4430         (defines): Add -D for LIBDIR="$(libdir)".
4431         * make.texinfo (Libraries/Search): Document change.
4433         * file.c (rename_file): Fix file_hash_enter call with missing arg.
4435 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4437         * Version 3.62.19.
4439         * main.c (main): Set command_state to cs_finished for temp files
4440         made for stdin makefiles.
4442         * main.c (decode_switches): Don't tell getopt to return non-option
4443         args in order.
4444         Ignore an argument of `-'.
4446 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4448         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
4449         the command line and go to the next.
4450         (notice_finished_file): Under -t, touch FILE.
4451         * remake.c (remake_file): Don't touch it here.
4453 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4455         * function.c (pattern_matches): Use temporary for strlen (WORD)
4456         instead of two function calls.
4458         * compatMakefile (LOAD_AVG): Remove variable and comments.
4460 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4462         * make.texinfo (Running): Node renamed to `make Invocation'.
4464 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4466         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
4467         NAMELEN != MEMLEN.
4469 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4471         * Version 3.62.18.
4473         * main.c: Don't #include <time.h>; make.h already does.
4475 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4477         * implicit.c (pattern_search): Fixed copying of suffix when building
4478         also_make elts.
4480         * function.c (expand_function: `shell'): Make sure BUFFER is
4481         null-terminated before replacing newlines.
4483         * compatMakefile (mandir): Use man$(manext), not always manl.
4485 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4487         * rule.c (new_pattern_rule): Not static.
4488         * rule.h: Declare it.
4490         * file.c (file_hash_enter): New function, most code from rename_file.
4491         (rename_file): Call it.
4492         * file.h (file_hash_enter): Declare it.
4494         * dep.h: Doc fix.
4496 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4498         * main.c (decode_switches): Handle usage_and_exit when building
4499         long options vector.
4501         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
4502         (default_variables): Define CHECKOUT,v (hairy).
4504         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
4505         sys_siglist to _sys_siglist.
4507 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4509         * NEWS: Add header and tail copyright info like Emacs NEWS.
4511         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
4512         bcopy if already #define'd.
4513         [STDC_HEADERS] (qsort, abort, exit): Declare here.
4514         [! __GNU_LIBRARY__ && !POSIX]: Not here.
4516         * make.h [_AIX]: #pragma alloca first thing.
4518         * job.c (start_waiting_job): Set the command_state to cs_running
4519         when we queue a job on waiting_jobs.
4521 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4523         * variable.c (define_automatic_variables): Use "" instead of nil
4524         for empty value.
4526 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4528         * Version 3.62.17.
4530         * main.c (struct command_switch.type): Add alternative usage_and_exit.
4531         (command_switches): Add -h/--help.
4533 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4535         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
4536         * README.template: Mention NEWS.
4537         * CHANGES: Renamed to NEWS.
4539         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
4541 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4543         * main.c (main): Set -o files' command_states to cs_finished.
4545         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
4546         when tossing a rule.
4548         * main.c (main): Use alloca only in simple local var assignment,
4549         for braindead SGI compiler.
4551         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
4552         inconsistent with the number computed when listing them.
4554 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4556         * commands.c (set_file_variables): For $? and $^ elts that are archive
4557         member refs, use member name only.
4559 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4561         * variable.h (struct variable.export): Add new alternative v_ifset.
4562         * variable.c (target_environment): Check for it.
4563         (define_automatic_variables): Set it for MAKEFILES.
4565 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4567         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
4568         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
4569         (distclean, mostlyclean): New targets.
4571 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4573         * Version 3.62.16.
4575         * compatMakefile (config.status): Remove rule.
4577         * job.c (start_waiting_job): Free C after using C->file, not before.
4579 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4581         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
4582         HAVE_* instead of #ifndef *_MISSING.
4583         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
4585 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4587         * main.c (main): makelevel>0 or -C implies -w.
4589 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4591         * file.c, job.c, function.c: Don't #include <errno.h>.
4592         make.h: Do it here instead.
4593         * arscan.c (ar_member_touch): Don't declare errno.
4595 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4597         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
4599         * remake.c (update_file): If commands or deps are running after
4600         update_file_1 returns, break out of the :: rule (->prev) loop and
4601         just return.
4603         * job.c (job_next_command): New function; code from start_job.
4604         (start_job_command): Renamed from start_job.  Call job_next_command
4605         and recurse for empty command lines and -n.
4606         (start_waiting_job): Call start_job_command, not start_job.
4607         (new_job): Call job_next_command to prime the child structure, and
4608         then call start_waiting_job.
4609         (reap_children): Use job_next_command and start_job_command.
4610         (start_waiting_job): Call start_remote_job_p here, and store its
4611         result in C->remote.  If zero, check the load average and
4612         maybe put C on waiting_jobs.
4613         (start_job_command): Test CHILD->remote rather than calling
4614         start_remote_job_p.  Don't do load avg checking at all here.
4616         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
4617         SIGSEGV, SIGFPE or SIGTRAP.
4619         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
4620         configure will set it in glob/Makefile.
4622 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4624         * dir.c [DIRENT] (direct): Don't define to dirent.
4625         [! DIRENT] (direct): Define to dirent.
4626         (dir_file_exists_p): Use struct dirent instead of struct direct.
4628         * make.h (getcwd): No space between macro and ( for args!
4630         * job.c (start_job): Don't put the job on waiting_jobs if
4631         job_slots_used==0.
4633         * make.texinfo (Missing): Shortened title.
4635 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4637         * file.c (remove_intermediates): Print "rm" commands under -n.
4639 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4641         * Version 3.62.15.
4643 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4645         * arscan.c [M_UNIX]: #undef M_XENIX.
4647 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4649         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
4651 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4653         * compatMakefile (getloadavg.o): Removed special rule.
4654         (CFLAGS): Don't include $(defines).
4655         (.c.o): Define suffix rule.
4656         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
4657         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
4659         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
4661         * make.h (max): Removed.
4662         * expand.c (variable_buffer_output): Don't use it.
4664         * compatMakefile (INSTALL): Define.
4665         (Makefile): New rule to make from Makefile.in.
4666         (srcdir): Define.
4667         (VPATH): Define.
4668         (getloadavg.o, remote.o): Use autoconf $foo< hack.
4670         * commands.c (fatal_error_signal): Removed return.
4672 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4674         * Version 3.62.14.
4676         * make.texinfo (Summary): New node.
4677         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
4679         * variable.c (max): Moved to make.h.
4681         * compatMakefile (objs, srcs): Added ar & arscan.
4683         * job.c (start_waiting_job): New function, 2nd half of new_job.
4684         (new_job): Call it.
4685         (start_waiting_jobs): New function.
4686         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
4687         of the main loop.
4688         * compatMakefile (objs, srcs): Removed load, added getloadavg.
4690 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4692         * job.c (load_too_high): New function.  Uses getloadavg.
4693         (waiting_jobs): New variable.
4694         (start_job): Don't call wait_to_start_job.  Instead, if
4695         load_too_high returns nonzero, add the child to the
4696         `waiting_jobs' chain and return without starting the job.
4698 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4700         * expand.c (variable_buffer_output): Made global again.
4701         * variable.h: And declare it.
4703         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
4704         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
4705         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
4706         for a slash in the archive at run time.
4707         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
4708         cope with trailing-slash and non-trailing-slash archives.
4710         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
4711         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
4713         * load.c (load_average) [sgi]: Use sysmp call.
4715         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
4716         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
4718         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
4719         (vfork, VFORK_NAME): Don't define.
4720         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
4722         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
4723         the each file.  Rearranged PATH_MAX hacking.
4724         * job.c: Rearranged NGROUPS_MAX hacking.
4726         * remake.c (fstat, time): Don't declare.
4728         * compatMakefile (defines): Value is @DEFS@.
4729         (LOADLIBES): Value is @LIBS@.
4730         (extras): Value is @LIBOBJS@.
4731         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
4732         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
4734         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
4736         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
4737         (getcwd): Just declare if present.  If not, declare as a macro
4738         using getwd, and declare getwd.
4739         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
4740         * main.c (main, log_working_directory): Use getcwd instead of getwd.
4742         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
4744         * make.h (SIGHANDLER, SIGNAL): Removed.
4745         (RETSIGTYPE): Define if not #define'd.
4746         * main.c (main): Use signal in place of SIGNAL.
4748         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
4750         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
4751         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
4753         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
4754         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
4756         * job.c (child_handler), commands.c (fatal_error_signal): Return
4757         RETSIGTYPE instead of int.
4758         * main.c (main): Declare fatal_error_signal and child_handler here
4759         to return RETSIGTYPE; removed top-level decl of former.
4761         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
4762         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
4764 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4766         * job.c [HAVE_WAITPID]: Test this instead of USG.
4767         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
4768         (GID_T): Don't #define.
4769         (search_path): Use gid_t instead of GID_T.
4770         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
4771         these individually instead of USG for all.
4772         * make.h (ctime): Don't declare.  #include time.h instead.
4773         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
4774         _POSIX_VERSION.
4775         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
4776         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
4778         * arscan.c: Removed #ifdef mess about string.h et al.
4779         Just #include make.h instead.
4780         * make.h (fstat, atol): Declare.
4782         * commands.c (fatal_error_signal): Don't use sigmask to check for
4783         propagated signals; use ||s instead.
4784         (PROPAGATED_SIGNAL_MASK): Removed.
4785         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
4787         * variable.c (variable_buffer, variable_buffer_length,
4788         initialize_variable_output, variable_output): Moved to expand.c;
4789         made all static.
4790         (struct output_state, save_variable_output,
4791         restore_variable_output): Removed.
4792         * expand.c (initialize_variable_output): Put a NUL at the beginning
4793         of the new buffer after allocating it.
4794         (allocated_variable_expand_for_file): Don't use
4795         {save,restore}_variable_output.  Do it by hand instead, keeping
4796         state on the stack instead of malloc'ing it.
4797         (allocated_variable_expand): Removed.
4798         * variable.h (allocated_variable_expand): Define here as macro.
4799         (variable_buffer_output, initialize_variable_output,
4800         save_variable_output, restore_variable_output): Removed decls.
4802         * read.c (conditional_line): For an if cmd, if any elt of the
4803         conditionals stack is ignoring, just push a new level that ignores
4804         and return 1; don't evaluate the condition.
4806 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4808         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
4810         * job.c (getdtablesize): Don't declare or #define if already #define'd.
4812 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4814         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
4815         export_all_variables.
4816         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
4818 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4820         * Version 3.62.13.
4822         * commands.c (set_file_variables): Calculate length for ^D and ?D
4823         individually, making sure to give them at least enough space for "./".
4825         * make.h [CRAY]: #define signal to bsdsignal.
4827         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
4828         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
4830         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
4831         wasn't defined by <ar.h>.
4833 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4835         * Version 3.62.12.
4837 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4839         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
4840         pattern_rules.
4842 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4844         * main.c (decode_switches): Initialize all the long_option elt members.
4846 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4848         * make.texinfo (Text Functions): Correct filter-out description.
4850 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4852         * compatMakefile (realclean): Don't remove backup files.
4854         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
4856 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4858         * Version 3.62.11.
4860 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4862         * job.c (reap_children): Don't die if wait returns EINTR.
4864 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4866         * job.c (reap_children): Always run the next command for a
4867         successful target.  If we are going to die, we don't want to leave
4868         the target partially made.
4870 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4872         * job.c (construct_command_argv_internal): After loop, if we only
4873         have one word, check it for being a shell command.
4875         * main.c (decode_switches): Allocate ARGC slots in other_args to
4876         begin with, so we never need to worry about growing it.
4877         If we get a non-option arg and POSIXLY_CORRECT is in the
4878         environment, break out of the loop.  After the loop, add all remaining
4879         args to other_args list.
4881         * main.c (decode_switches): For positive_int and floating switches
4882         when optarg is nil, use next arg if it looks right (start with a
4883         digit, or maybe decimal point for floating).
4885         * variable.c (define_automatic_variables): Always set SHELL to
4886         default if it comes from the environment.  Set its export bit.
4887         * make.texinfo (Environment): Document change.
4889 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4891         * Version 3.62.10.
4893         * compatMakefile (tags, TAGS): Use vars for cmds.
4894         (ETAGS, CTAGS): Define.
4896         * main.c (decode_switches): If a switches elt has a nil long_name,
4897         make the long option name elt be "".
4898         Fixed loop to not ignore all the options.
4900         * make.texinfo (Option Summary): Added long options.
4902         * main.c (switches): Changed -m's description to "-b".
4903         (decode_switches): When printing the usage message, don't print
4904         switches whose descriptions start with -.
4905         When constructing the list of names for switch -C, search the
4906         switches vector for switches whose descriptions are "-C".
4908         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
4909         Call -I --include-dir, not --include-path.
4910         (long_option_aliases): Added --new == -W, --assume-new == -W,
4911         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
4912         --makefile == -f.
4914         * main.c (switches): Removed bogus "silent" elt.
4915         (long_option_aliases): Define new var.
4916         (decode_switches): Add long_option_aliases onto the end of the long
4917         options vector created for getopt_long.
4918         Look through long_option_aliases for extra names to list
4919         in usage message.
4921 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4923         * main.c (log_working_directory): Fixed to properly not print the
4924         leaving message when we haven't printed the entering message.
4926 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4928         * main.c (struct command_switch): Added elts `long_name',
4929         `description', and `argdesc'.
4930         (switches): Added initializers for new members.
4931         (decode_switches): Rewritten to use getopt_long.
4932         * compatMakefile (GETOPT, GETOPT_SRC): Define.
4933         (objs, srcs): Include them.
4935         * job.c (child_died): Renamed to dead_children; made static.
4936         (child_handler): Increment dead_children instead of setting child_died.
4937         (reap_children): Decrement dead_children instead of clearing
4938         child_died.  The point of all this is to avoid printing "waiting
4939         for unfinished jobs" when we don't actually need to block.
4940         This happened when multiple SIGCHLDs before reap_children was called.
4942         * job.c (reap_children): If ERR is set, so we don't call start_job
4943         on the child being reaped, instead set its command_state to
4944         cs_finished.
4945         (reap_children, child_handler, new_job): I added several
4946         debugging printf's while fixing this.  I left them in if (debug_flag)
4947         because they may be useful for debugging this stuff again.
4949 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4951         * read.c (read_makefile): v_export is not 1.
4953 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4955         * Version 3.62.9.
4957         * variable.c (export_all_variables): New variable.
4958         (target_environment): Export variables whose `export' member is
4959         v_default if export_all_variables is set and their names are benign.
4960         * variable.h: Declare export_all_variables.
4961         * read.c (read_makefile): If export or unexport is given with no
4962         args, set or clear export_all_variables, respectively.
4964         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
4965         so it isn't duplicated when we add it at the end.
4967 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4969         * Version 3.62.8.
4971         * variable.h (struct variable): Added new member `export'.
4972         * variable.c (define_variable_in_set): Initialize it to v_default.
4973         (target_environment): Don't check for .NOEXPORT.
4974         Export variables whose `export' member is v_default and that would
4975         have been exported under .NOEXPORT, and variables whose `export'
4976         member is v_export.
4977         (try_variable_definition): Return the variable defined.
4978         * variable.h (try_variable_definition): Changed decl.
4979         * read.c (read_makefile): Recognize `export' and `unexport' directives.
4981 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4983         * main.c (main) [POSIX]: Reversed args to sigaddset.
4985 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4987         * job.c [POSIX || !USG] (unblock_sigs): New fn.
4988         (start_job): Block signals before forking.
4989         (new_job): Unblock signals after putting the new child on the chain.
4990         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
4991         int fatal_signal_mask.
4993         * load.c [sgi] (LDAV_CVT): Define.
4995 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4997         * Version 3.62.7.
4999         * load.c (load_average) [sgi]: Clear the high bit of the address
5000         from the symbol table before looking it up in kmem.
5002         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
5003         (remake_file): No longer needed in message here.
5005         * main.c (die): Call reap_children with BLOCK==1.
5007 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5009         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
5011 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5013         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
5014         not to head of chain.  Extract next ptr before we might do
5015         freerule, and use that for next iteration.
5016         (freerule): Still do next ptr frobbing if LASTRULE is nil.
5018 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5020         * job.c (child_error): Removed extra %s from error msg format.
5022         * Version 3.62.6.
5024         * job.c (reap_children): Don't start later commands in a sequence
5025         if ERR is nonzero.
5027         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
5029         * job.c (reap_children): New function; work that used to be done in
5030         child_handler.
5031         (child_died): New global var.
5032         (child_handler): Now just sets child_died.
5033         (wait_for_children): Removed.
5034         (unknown_children_possible, block_signals, unblock_signals,
5035         push_signals_blocked_p, pop_signals_blocked_p): Removed.
5036         (child_execute_job): Removed call to unblock_signals.
5037         (new_job): Removed calls to push_signals_blocked_p and
5038         pop_signals_blocked_p.
5039         * job.h: Declare reap_children, not wait_for_children.
5040         * commands.c (fatal_error_signal), job.c (new_job),
5041         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
5042         remake.c (update_goal_chain), function.c (expand_function: `shell'):
5043         Changed wait_for_children calls to reap_children.
5044         Some needed to be loops to wait for all children to die.
5045         * commands.c (fatal_error_signal), main.c (main,
5046         log_working_directory), function.c (expand_function): Removed calls
5047         to push_signals_blocked_p and pop_signals_blocked_p.
5048         * job.h: Removed decls.
5050         * job.h: Added copyright notice.
5052 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5054         * job.c (child_error): No *** for ignored error.
5056 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5058         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
5059         avoid compiler warnings.
5061         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
5062         blank.
5064 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5066         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
5067         avoid compiler warnings.
5069         * remake.c (notice_finished_file): Run file_mtime on the also_make
5070         files, so vpath_search can happen.
5072         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
5073         (alpha-files): Include test suite tar file.
5075 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5077         * Version 3.62.5.
5079 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5081         * remake.c (update_file, update_file_1): Do check_renamed on elts
5082         of dep chains when traversing them.  Something unrelated might have
5083         renamed one of the files the dep chain points to.
5085         * file.c (rename_file): If FILE has been renamed, follow its
5086         `renamed' ptr, so we get to the final real FILE.  Using the renamed
5087         ones loses because they are not in the hash table, so the removal
5088         code loops infinitely.
5090         * read.c (read_all_makefiles): Clobber null terminator into
5091         MAKEFILES expansion, so string passed to read_makefile is properly
5092         terminated.
5094 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5096         * commands.c (set_file_variables): $* for archive member with
5097         explicit cmds is stem of member, not of whole `lib(member)'.
5099 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5101         * Version 3.62.4.
5103 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5105         * rule.c (new_pattern_rule): Rules are identical only if all their
5106         targets match (regardless of order).
5108 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5110         * remake.c (remake_file): Changed error "no way to make" to "no
5111         rule to make".  Fiat Hugh.
5113         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
5114         behavior.
5116         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
5117         target.
5119 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5121         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
5122         environment to pass to child.
5123         * job.c (start_job): Pass it.
5125 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5127         * file.c (enter_file): Also strip ./s here, to get command-line
5128         target names.
5130         * remote-cstms.c: Add comment telling people to leave me alone.
5132         * compatMakefile (manpage install): Remove target before copying.
5134 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5136         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
5137         Added paragraph describing $? incompatibility with Unix and POSIX.2.
5139 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
5141         * function.c (expand_function: `shell'): Don't declare fork or pipe.
5142         Use vfork instead of fork.
5144 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5146         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
5147         intermediate files.
5149         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
5151 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5153         * Version 3.62.3.
5155 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5157         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
5159 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5161         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
5163         * read.c (record_files): Pass arg for %s in error msg.
5165         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
5166         call.
5168 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5170         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
5172 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5174         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
5176 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5178         * Version 3.62.2.
5180 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5182         * job.c (construct_command_argv_internal): Correctly ignore
5183         whitespace after backslash-NL.
5185 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5187         * compatMakefile: Ignore errors from chgrp and chmod when installing.
5189 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5191         * main.c (main): When setting MAKELEVEL in the env to re-exec,
5192         allocate space so as not to clobber past the end of the old string.
5194         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
5195         * compatMakefile (defines): Document HAVE_ALLOCA_H.
5197 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5199         * make.h [VFORK_MISSING]: Use fork instead.
5200         * compatMakefile (defines): Document same.
5202         * job.c (construct_command_argv_internal): Don't create an empty
5203         arg if backslash-NL is at beginning of word.
5205 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5207         * main.c [DGUX]: Call setvbuf as for USGr3.
5209         * job.c (construct_command_argv_internal): Notice correctly that
5210         backslash-NL is the end of the arg (because it is replaced with a
5211         space).
5213 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5215         * job.c (construct_command_argv_internal): If SHELL is nil, set it
5216         to default_shell before proceeding.
5218         * make.h [sgi]: No alloca.h, after all.
5220 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5222         * read.c (multi_glob): Cons up the chain of the results of glob
5223         from back to front, so it comes out in forward order.
5225         * job.c (construct_command_argv_internal): Don't eat char following
5226         backslash-NL.
5228 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5230         * Version 3.62.1.
5232         * default.c (default_variables) [ultrix]: GET=get, like USG.
5234         * job.c (construct_command_argv_internal): Remove tabs following
5235         backslash-NL combos in the input line, so they don't show up when
5236         that line is printed.
5238         * read.c (read_makefile): Don't collapse_continuations the line on
5239         input; do it on the copy we do remove_comments on.
5240         For rule lines, collapse_continuations the line after chopping
5241         ";cmds" off the end, so we don't eat conts in the cmds.
5242         Give error for ";cmds" with no rule.
5243         * job.c (construct_command_argv_internal): Eat backslash-NL combos
5244         when constructing the line to recurse on for slow, too.
5246 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
5248         * file.c (enter_file): Don't strip leading `./'s.
5249         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
5250         * default.c (set_default_suffixes), function.c (string_glob),
5251         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
5253         * default.c (default_variables) [_IBMR2]: FC=xlf
5255         * job.c (construct_command_argv_internal): Turn backslash-NL and
5256         following whitespace into a single space, rather than just eating
5257         the backslash.
5259         * make.texinfo (Copying): @include gpl.texinfo, rather than
5260         duplicating its contents.
5262 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5264         * job.c (construct_command_argv_internal): Make sure not to bother
5265         processing an empty line.
5267         * Version 3.62.0.
5269         * job.c (construct_command_argv_internal): Always recurse for slow;
5270         simple case didn't handle finding newlines.
5272 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
5274         * job.c (construct_command_argv_internal): Set RESTP properly when
5275         slow; don't \ify past a newline.
5277 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5279         * make.h [sgi]: #include <alloca.h>.
5283 See ChangeLog.1 for earlier changes.