.
[make.git] / ChangeLog
blobec89b27bb4b1f3a0e295e0153f38e762293297a2
1 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
3         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
5 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7         * configure.in: Don't check for getdtablesize.
8         * job.c (getdtablesize): Remove decls and macros.
10 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12         * main.c (define_makeflags): Omit command line variable
13         definitions from MFLAGS value.
15         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
16         indicating a valid, but empty, archive.
18 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
20         * dir.c (file_impossible_p): Correctly reset FILENAME to name
21         within directory before hash search.
23         * job.c (child_error): Do nothing if IGNORED under -s.
25         * job.c (exec_command): Correctly use ARGV[0] for script name when
26         running shell directly.
28 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
30         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
31         dup'ing from them.  Don't try to close all excess descriptors;
32         getdtablesize might return a huge value.  Any open descriptors in
33         the parent should have FD_CLOEXEC set.
34         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
36 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
38         * read.c (read_all_makefiles): Properly append default makefiles
39         to the end of the `read_makefiles' chain.
41 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
43         * Version 3.74 released.
45 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
47         * Version 3.73.3.
49 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
51         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
52         install-info cmd.
54 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
56         * file.c (print_file): Grok update_status of 1 for -q.
58 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
60         * Version 3.73.2.
62 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
64         * file.c (remove_intermediates): Fix inverted test to bail under
65         -n for signal case.  Bail under -q or -t.  
66         Skip files with update_status==-1.
68         * job.c (job_next_command): Skip empty lines.
69         (new_job): Don't test the return of job_next_command.
70         Just let start_waiting_job handle the case of empty commands.
72 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
74         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
76         * Version 3.73.1.
78 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
80         * remake.c (notice_finished_file): Set FILE->update_status to zero
81         if it's -1.
83 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
85         * Version 3.73 released.
87 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
89         * main.c (main): Fixed braino in assert.
91         * Version 3.72.13.
93 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
95         * main.c: Avoid string in assert expression.  Some systems are broken.
97 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
99         * main.c (main): Handle 1 and 2 returns from update_goal_chain
100         makefile run properly.
102         * Version 3.72.12.
104         * main.c (handle_non_switch_argument): New function, broken out of
105         decode_switches.
106         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
107         When getopt_long returns EOF, break the loop and handle remaining args
108         with a simple second loop.
110         * remake.c (remake_file): Set update_status to 2 instead of 1 for
111         no rule to make.  Mention parent (dependent) in error message.
112         (update_file_1): Handle FILE->update_status == 2 in -d printout.
113         * job.c (start_job_command, reap_children): Set update_status to 2
114         instead of 1 for failed commands.
116 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
118         * job.c (search_path): Function removed (was already #if 0'd out).
119         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
121 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
123         * configure.bat: Write @CPPFLAGS@ translation.
125 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
127         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
128         to not skip the elt immediately preceding `l(...'.
130 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
132         * Version 3.72.11.
134         * read.c (find_char_unquote): Make second arg a string of stop
135         chars instead of a single stop char.  Stop when any char in the
136         string is hit.  All callers changed.
137         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
138         instead of using two calls.  If the match is not a ; but a #,
139         return zero.
140         * misc.c: Changed find_char_unquote callers here too.
142         * Version 3.72.10.
144         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
145         __MSDOS__.
147         * GNUmakefile (globfiles): Add glob/configure.bat.
148         (distfiles): Add configh.dos, configure.bat.
150 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
152         Fixes for MS-DOS from DJ Delorie.
153         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
154         as separator in "C:\...".
155         * configh.dos (STDC_HEADERS): Define only if undefined.
156         (HAVE_SYS_PARAM_H): Don't define this.
157         (HAVE_STRERROR): Define this.
158         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
160         * Version 3.72.9.
162         * main.c (decode_switches): Reset optind to 1 instead of 0.
164 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
166         * main.c (decode_switches): If non-option arg is "-", ignore it.
168 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
170         * Version 3.72.8.
172 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
174         * Version 3.72.7.
176 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
178         * main.c (main): Pass missing arg to tmpnam.
180         * configure.in: Check for strsignal.
181         * job.c (child_error): Use strsignal.
182         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
184         * misc.c (strerror): Fix swapped args in sprintf.
186 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
188         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
190 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
192         * main.c (print_version): Add 95 to copyright years.
194         * Version 3.72.6.
196         * job.c (start_job_command): Remember to call notice_finished_file
197         under -n when not recursing.  To do this, consolidate that code
198         under the empty command case and goto there for the -n case.
200 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
202         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
203         declare it int.
205 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
207         * read.c (read_makefile): For bogus line starting with tab, ignore
208         it if blank after removing comments.
210         * main.c: Cast results of `alloca' to `char *'.
211         * expand.c: Likewise.
213 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
215         * Version 3.72.5.
217         * configure.in: Check for mktemp.
218         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
220         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
221         (_SC_OPEN_MAX)'.
222         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
223         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
224         using sysconf.
226 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
228         * remake.c (update_file_1): When !MUST_MAKE, don't set
229         FILE->update_status to zero before calling notice_finished_file.
230         (notice_finished_file): Touch only when FILE->update_status is zero.
231         (remake_file): Set FILE->update_status to zero after not calling
232         execute_file_command and deciding to touch instead.
234 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
236         * main.c (debug_signal_handler): New function; toggles debug_flag.
237         (main): Handle SIGUSR1 with that.
239 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
241         * compatMakefile (realclean): Remove Info files.
243 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
245         * Version 3.72.4.
247         * job.c (start_job_command): Save and restore environ around vfork
248         call.
249         (search_path): Function #if 0'd out.
250         (exec_command): Use execvp instead of search_path.
252         * expand.c (variable_expand): Rewrote computed variable name and
253         substitution reference handling to be simpler.  First expand the
254         entire text between the parens if it contains any $s, then examine
255         the result of that for subtitution references and do no further
256         expansion while parsing them.
258         * job.c (construct_command_argv_internal): Handle " quoting too,
259         when no backslash, $ or ` characters appear inside the quotes.
261         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
262         defined, just use int.
264 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
266         * default.c (default_variables) [__hpux]: Remove special
267         definition of ARFLAGS.  Existence of the `f' flag is not
268         consistent across HPUX versions; and one might be using GNU ar
269         anyway.
271         * compatMakefile (clean): Don't remove Info files.
273         * compatMakefile (check): Remove gratuitous target declaration.
275 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
277         * compatMakefile (ETAGS, CTAGS): Don't use -t.
279         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
281         * main.c (decode_switches): For --help, print usage to stdout.
283 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
285         * Version 3.72.3.
287         * remake.c (update_file_1): Do set_command_state (FILE,
288         cs_not_started) only if old state was deps_running.
290 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
292         * job.c (start_waiting_job): Use set_command_state.
294         * build.template (CPPFLAGS): New variable.
295         (prefix, exec_prefix): Set from @...@.
296         (compilation loop): Pass $CPPFLAGS to compiler.
298         * GNUmakefile (build.sh.in): Make it executable.
300         * GNUmakefile (globfiles): Add configure.in, configure.
302         * Version 3.72.2.
304         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
306         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
308         * configure.in: Don't check for ranlib.
310 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
312         * remake.c (notice_finished_file): Only mark also_make's as
313         updated if really ran cmds.
315 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
317         * configure.in: Put dnls before random whitespace.
319 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
321         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
322         (RANLIB): Variable removed.
323         (prefix, exec_prefix): Set these from @...@.
324         (.c.o): Use $(CPPFLAGS).
325         (glob/libglob.a): Don't pass down variables to sub-make.
326         glob/Makefile should be configured properly by configure.
327         (distclean): Remove config.log and config.cache (autoconf stuff).
329 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
331         * acconfig.h: Add #undef HAVE_UNION_WAIT.
332         * configure.in: Converted to Autoconf v2.
333         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
334         of DIRENT, SYSDIR, NDIR.
335         * build.sh.in (prefix, exec_prefix): Set these from @...@.
336         (CPPFLAGS): New variable, set from @CPPFLAGS@.
337         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
338         * install.sh: File renamed to install-sh.
340         * main.c (define_makeflags): When no flags, set WORDS to zero.
342 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
344         * Version 3.72.1.
346         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
347         empty.
349 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
351         * Version 3.72.
353 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
355         * Version 3.71.5.
357         * job.c (start_job_command): When ARGV is nil, only set
358         update_state and call notice_finished_file if job_next_command
359         returns zero.
361         * job.c (start_job_command): Call notice_finished_file for empty
362         command line.
364 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
366         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
367         COMMANDS_NOERROR.
369 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
371         * Version 3.71.4.
373 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
375         * file.c (snap_deps): Set command_flags bits in all :: entries.
377 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
379         * make.h (posix_pedantic): Declare it.
380         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
381         snap_deps.
382         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
383         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
384         command_flags and don't set -i.  Likewise .SILENT.
385         * job.c (start_job_command): In FLAGS initialization, OR in
386         CHILD->file->command_flags.
387         * file.h (struct file): New member `command_flags'.
389 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
391         * main.c (switches): Bump flag values for --no-print-directory and
392         --warn-undefined-variables, so neither is 1 (which indicates a
393         nonoption argument).
395 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
397         * main.c (main): Add missing code in .IGNORE test.
399 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
401         * variable.c (define_automatic_variables): Define +D and +F.
403 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
405         * main.c (main): Define hidden automatic variable with command
406         vars, and MAKEOVERRIDES to a reference to that.
407         (define_makeflags): If posix_pedantic, write a reference to that
408         instead.
410 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
412         * main.c (posix_pedantic): New variable.
413         (main): Set posix_pedantic if .POSIX is a target.
414         Fix .IGNORE and .SILENT checks to require is_target.
416         * commands.c (set_file_variables): Define new automatic variable
417         $+, like $^ but before calling uniquize_deps.
419         * job.c (reap_children): Call delete_child_targets for non-signal
420         error if .DELETE_ON_ERROR is a target.
422 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
424         * Version 3.71.3.
426 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
428         * job.c (reap_children): Don't change C->file->command_state when
429         dying.  Test it only after calling start_job_command for a new
430         command line.  When no more cmds, just set C->file->update_status.
431         (start_job_command): When the last line is empty or under -n, set
432         C->file->update_status.
433         (start_waiting_job): Grok cs_not_started after start_job_command
434         as success.
435         (new_job): Set C->file->update_status when there are no cmds.
436         (job_next_command): When out of lines, don't set
437         CHILD->file->update_status or CHILD->file->command_state.
439         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
440         if nonzero, also double $s.
441         (main): Define MAKEOVERRIDES from command_variables here.
442         (define_makeflags): Don't use command_variables here; instead write a
443         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
445         * dir.c [__MSDOS__]: Fixed typo.
447         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
449 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
451         * remake.c: Include <assert.h> and use assert instead of printfs
452         and abort.
454         * main.c (decode_switches): Loop until optind hits ARGC, not just
455         until getopt_long returns EOF.  Initialize C to zero before loop;
456         in loop if C is EOF, set optarg from ARGV[optind++], else call
457         getopt_long.
458         (decode_env_switches): Use variable_expand instead of
459         allocated_variable_expand.  Allocate a fresh buffer to copy split
460         words into; scan characters by hand to break words and
461         debackslashify.
462         (shell_quote): New function.
463         (define_makeflags): Allocate doubled space for switch args, and command
464         variable names and values; use shell_quote to quote those things.
466 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
468         * Version 3.71.2.
470         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
472         * main.c (decode_switches): The non-option return from getopt is
473         1, not 0.
474         (command_variables): New type and variable.
475         (decode_switches, decode_env_switches): After making a variable
476         definition, record the struct variable pointer in the
477         command_variables chain.
478         (define_makeflags): If ALL, write variable definitions for
479         command_variables.
481         * main.c (other_args): Variable removed.
482         (goals, lastgoal): New static variables (moved from auto in main).
483         (main): Don't process OTHER_ARGS at all.
484         Don't set variable MAKEOVERRIDES at all; define MAKE to just
485         $(MAKE_COMMAND).
486         (init_switches): Prepend a - {return in order} instead of a +
487         {require order}.
488         (decode_switches): Don't set OTHER_ARGS at all.
489         Grok '\0' return from getopt_long as non-option argument; try
490         variable definition and (if !ENV) enter goal targets here.
491         (decode_env_switches): Use allocated_variable_expand to store value.
492         Use find_next_token to simplify word-splitting loop.  Don't
493         prepend a dash to uninterpreted value.  Instead, if split into
494         only one word, try variable definition and failing that prepend a
495         dash to the word and pass it to decode_switches as a single arg.
497 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
499         * remake.c (notice_finished_file): Only recheck modtimes if
500         FILE->command_state was cs_running on entry (meaning the commands
501         actually just ran).
502         (update_file_1): Whenever we set FILE->update_status, call
503         notice_finished_file instead of just set_command_state.
504         * job.c (start_job_command): Whenever we set
505         CHILD->file->update_status, call notice_finished_file instead of
506         just set_command_state.
508 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
510         * default.c: Add missing ".
512         * job.c: Changed all assignments of command_state members to calls
513         to set_command_state.
514         * remake.c: Likewise.
515         * file.c (set_command_state): New function.
516         * file.h: Declare set_command_state.
518         * main.c (init_switches): Put a + first in options.
520 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
522         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
523         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
524         * main.c (directory_before_chdir): New variable, moved out of main
525         (was local).
526         (main) [__MSDOS__]: Look for \ or : to delimit last component of
527         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
528         (die): Change back to `directory_before_chdir' before dying.
529         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
530         [__MSDOS__] and not.
531         * job.c [__MSDOS__]: Include <process.h>.
532         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
533         dos_batch_file): New variables.
534         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
535         (unblock_sigs) [__MSDOS__]: Do nothing.
536         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
537         (load_too_high) [__MSDOS__]: Always return true.
538         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
539         Use PATH_SEPARATOR_CHAR instead of ':'.
540         (construct_command_argv_internal) [__MSDOS__]: Wholly different
541         values for sh_chars and sh_cmds.  Wholly new code to handle shell
542         scripts.
543         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
544         implementation.
545         * dir.c [__MSDOS__] (dosify): New function.
546         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
547         process the result instead of FILENAME itself.
548         (file_impossible_p) [__MSDOS__]: Likewise.
549         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
550         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
551         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
552         `bison -y', and LEX to `flex'.
553         * configure.bat, configh.dos: New files.
554         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
555         intermediates and exit.
557         * commands.c (set_file_variables): Add parens in length
558         computation in .SUFFIXES dep loop to quiet compiler warning.  From
559         Jim Meyering.
561         * read.c (read_makefile): Free FILENAME if we allocated it.  From
562         Jim Meyering.
564 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
566         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
567         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
568         * read.c (construct_include_path): Use safe_stat in place of stat.
569         * job.c (search_path): Use safe_stat in place of stat.
570         * dir.c (find_directory): Use safe_stat in place of stat.
571         * commands.c (delete_target): Use safe_stat in place of stat.
572         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
573         * remake.c (name_mtime): Use safe_stat in place of stat.
574         (touch_file) [EINTR]: Do EINTR looping around fstat.
576 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
578         * read.c (read_makefile): Check for a shell command first, and
579         then strip leading tabs before further checking if it's not a
580         shell command line.
582         * make.h [__arm]: Undefine POSIX.
583         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
584         functions that return int.
586         * job.c (construct_command_argv_internal): After swallowing a
587         backslash-newline combination, if INSTRING is set goto string_char
588         (new label) for normal INSTRING handling code.
590 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
592         * configure.in: Don't check for sys_siglist and _sys_siglist with
593         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
595 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
597         * Version 3.71.1 released.
599         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
600         _POSIX_VERSION for these declarations.
602         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
603         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
605 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
607         * Version 3.71 released.
609         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
610         and [HAVE_SETGID].  Every system has those, and configure doesn't
611         check for them.
613         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
615         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
616         getloadavg.c.
617         (loadavg.c): Link or copy it from getloadavg.c.
618         (distclean): Remove loadavg.c.
620 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
622         * Version 3.70.4.
624         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
625         and HAVE_SETEGID.
627         * default.c (default_terminal_rules): In SCCS rules, put
628         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
629         only before the file name.
630         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
632 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
634         * job.c (construct_command_argv_internal): Swallow
635         backslash-newline combinations inside '' strings too.
637 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
639         * read.c (do_define): Call collapse_continuations on each line
640         before all else.
642 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
644         * job.c (construct_command_argv_internal): Notice newline inside
645         '' string when RESTP is non-null.
647 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
649         * Version 3.70.3.
651         * remake.c (update_goal_chain): Reset FILE to G->file after the
652         double-colon loop so it is never null for following code.
654         * read.c (read_makefile): Fix `override define' parsing to skip
655         whitespace after `define' properly.
657         * compatMakefile (srcdir): Define as @srcdir@; don't reference
658         $(VPATH).
659         (glob/Makefile): New target.
661 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
663         * Version 3.70.2.
665         * misc.c (remove_comments): Use find_char_unquote.
666         * make.h (find_char_unquote): Declare it.
667         * read.c (find_char_unquote): New function, generalized from
668         find_percent.
669         (find_percent, find_semicolon, parse_file_seq): Use that.
671 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
673         * implicit.c (pattern_search): Always allocate new storage for
674         FILE->stem.  It is not safe to store STEM's address because it
675         might be auto storage.
677         * configure.in: Check for seteuid and setegid.
678         * misc.c [HAVE_SETEUID]: Declare seteuid.
679         [HAVE_SETEGID]: Declare setegid.
680         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
681         [HAVE_SETEGID]: Use setegid.
683         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
684         to preserve whether it's 2 for error or 1 for -q trigger.  When
685         STATUS gets nonzero and -q is set, always stop immediately.
686         * main.c (main, decode_switches): Die with 2 for errors.
687         (main): Accept 2 return from update_goal_chain and die with that.
688         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
689         answer.
690         * job.c (reap_children): Die with 2 for error.
691         (start_job_command): Set update_status to 2 for error.  Set it to
692         1 when we would run a command and question_flag is set.
694         * read.c (read_makefile): Don't mark makefiles as precious.  Just
695         like other targets, they can be left inconsistent and in need of
696         remaking by aborted commands.
698         * read.c (read_makefile): Write no error msg for -include file.
700 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
702         * commands.c (fatal_error_signal): Don't unblock signals.
704         * file.h (struct file): Change member `double_colon' from flag to
705         `struct file *'.
706         * read.c (record_files): Set double_colon pointer instead of flag.
707         * main.c (main): When disqualifying makefiles for updating, use
708         double_colon pointer to find all entries for a file.
709         * file.c (enter_file): If there is already a double-colon entry
710         for the file, set NEW->double_colon to that pointer.
711         (file_hash_enter): Use FILE->double_colon to find all entries to
712         set name.
713         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
714         (update_file): Use FILE->double_colon pointer to find all entries.
715         (f_mtime): Likewise.
716         (notice_finished_file): Propagate mtime change to all entries.
718         * variable.c (try_variable_definition): Return after abort.
720 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
722         * read.c (read_makefile): Remove unused variable.
723         (parse_file_seq): When removing an elt that is just `)', properly
724         fix up the previous elt's next pointer.
726 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
728         * configure.in: Do AC_SET_MAKE.
729         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
731 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
733         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
734         the search string is the empty string, find a match at the end of
735         each word (using end_of_token in place of sindex).
737         * misc.c (end_of_token): Don't treat backslashes specially; you
738         can no longer escape blanks with backslashes in export, unexport,
739         and vpath.  This was never documented anyway.
741 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
743         * read.c (read_makefile): Variable name for `define' is not just
744         first token; use whole rest of line and strip trailing blanks.
746 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
748         * Version 3.70.1.
750         * read.c (read_makefile): Add -d msg stating args.
752         * read.c (read_makefile): Use isspace to skip over leading
753         whitespace, and explicitly avoid skipping over tabs.  Don't want
754         to skip just spaces though; formfeeds et al should be skipped.
756         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
758         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
759         sizeof ar_name for max length to compare.
761         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
762         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
764         * main.c (main): Call user_access after setting `program', in case
765         it needs to use it in an error message.
767         * read.c (read_makefile): Ignore an empty line starting with a tab.
769 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
771         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
772         AC_COMPILE_CHECK that is now its contents.
774 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
776         * make.h: #undef strerror after #include <string.h>.
777         [! ANSI_STRING]: Declare strerror.
779 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
781         * misc.c (strerror): #undef any macro before function definition.
783 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
785         * variable.c (try_variable_definition): Calculate BEG before loop
786         to strip blanks by decrementing END.  Don't decr END to before BEG.
788         * read.c (read_makefile): Skip over leading space characters, but
789         not tabs, after removing continuations and comments (it used to
790         use isspace).
792 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
794         * variable.c (define_automatic_variables): In $(@D) et al, use
795         patsubst to remove trailing slash.
797         * commands.c (delete_target): New function, broken out of
798         delete_child_targets.  Check for archive members and give special msg.
799         (delete_child_targets): Use delete_target.
801 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
803         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
804         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
806 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
808         * GNUmakefile (tarfiles): Omit make-doc.
809         (make-$(version).tar): Include make.info*.
811 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
813         * compatMakefile (configure, config.h.in): Comment out rules.
815 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
817         * compatMakefile (binprefix, manprefix): New variables.
818         (instname): Variable removed.
819         (install): Use $({bin,man}prefix)make in place of $(instname).
820         File targets likewised renamed.
822 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
824         * Version 3.70 released.
826 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
828         * Version 3.69.3.
830         * read.c (parse_file_seq): Inside multi-word archive ref
831         translation loop, check NEW1==0 at end and break out of the loop.
833         * GNUmakefile (make-$(version).tar): Distribute install.sh.
834         * install.sh: New file.
836         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
837         cmds outside subshell parens, to avoid "command not found" msgs
838         from the shell.
840 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
842         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
843         Redirect output & error from get to /dev/null.
844         Fix reversed sense of test.
846 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
848         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
849         braces inside if condition command; some shells lose.
851 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
853         * Version 3.69.2.
855         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
856         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
858         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
860 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
862         * main.c (main): Cast result of pointer arith to unsigned int
863         before passing to define_variable for envars.  Matters when
864         sizeof(unsigned)!=sizeof(ptrdiff_t).
866 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
868         * configure.in: Add new check for SCCS_GET_MINUS_G.
869         * config.h.in: Add #undef SCCS_GET_MINUS_G.
870         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
871         place of `-G $@' in SCCS commands.
872         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
873         to "-G$@".
875         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
876         (so it goes in config.status), rather than afterward.
878         * ar.c (ar_member_date): Don't call enter_file on the archive file
879         if it doesn't exist (by file_exists_p).
881         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
882         with `$$dir/make.info' in install-info invocation (oops).
884         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
885         we do not unlink and free PATH.
887         * file.c (print_file_data_base): Fix inverted calculation for
888         average files per hash bucket.
890         * read.c (readline): When we see a NUL, give only a warning and
891         synthesize a newline to terminate the building line (used to
892         fatal).  Move fgets call into the loop condition, and after the
893         loop test ferror (used to test !feof in the loop).
895 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
897         * configure.in: Check for strerror in AC_HAVE_FUNCS.
899 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
901         Differentiate different flavors of missing makefile error msgs,
902         removing gratuitous `fopen: ' and giving caller for included makefiles.
903         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
904         (perror_with_name, pfatal_with_name): Use strerror instead of
905         replicating its functionality.
906         * read.c (read_makefile): Return int instead of void.
907         (read_all_makefiles, read_makefile): Change callers to notice zero
908         return and give error msg.
910 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
912         * Version 3.69.1.
914         * default.c: Put `-G $@' before $< in SCCS cmds.
916 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
918         * read.c (read_makefile): After trying a variable defn, notice if
919         the line begins with a tab, and diagnose an error.
921 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
923         * Version 3.69.
925 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
927         * Version 3.68.10.
929         * implicit.c (try_implicit_rule): Look for a normal rule before an
930         archive rule.
932 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
934         * function.c (expand_function: `sort'): Double NWORDS when it
935         overflows, instead of adding five.
937         * compatMakefile (clean): Remove loadavg.
939 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
941         * Version 3.68.9.
943         * file.h (NEW_MTIME): Define new macro.
944         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
945         current time returned from system.  Removed variable NOW.
946         * remake.c (notice_finished_file): Use NEW_MTIME in place of
947         current time here too.
949 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
951         * Version 3.68.8.
953         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
954         cmds and !DEPS_CHANGED unless also !NOEXIST.
956 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
958         * read.c (parse_file_seq): When converting multi-word archive
959         refs, ignore a word beginning with a '('.
961 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
963         * configure.in: Check for sys/timeb.h.
964         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
966 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
968         * Version 3.68.7.
970         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
971         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
972         TARGNAME to initialize PERCENTS[0].
974 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
976         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
977         Remove AC_USG; it is no longer used.
979         * file.c (print_file): New function, broken out of
980         print_file_data_base.
981         (print_file_data_base): Call it.
982         * rule.c (print_rule): New function, broken out of
983         print_rule_data_base.
984         (print_rule_data_base): Call it.
986 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
988         * default.c (install_default_suffix_rules): New function, broken
989         out of install_default_implicit_rules.
990         (install_default_implicit_rules): Move suffix rule code there.
991         * make.h: Declare install_default_suffix_rules.
992         * main.c (main): Call install_default_suffix_rules before reading
993         makefiles.  Move convert_to_pattern call before
994         install_default_implicit_rules.
996         * job.h (struct child): Make `pid' member type `pid_t' instead of
997         `int'.
999         * compatMakefile (RANLIB): New variable, set by configure.
1000         (glob/libglob.a): Pass RANLIB value down to submake.
1002         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1003         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1004         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1005         defined but NOFILES_MAX is, define it to be that.
1007 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1009         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1010         is distributed.
1012 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1014         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1016 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1018         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1019         is another symbol for | in some shells.
1020         * main.c (main): Add it to CMD_DEFS quoting list as well.
1022 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1024         * job.c (construct_command_argv_internal): Remove '=' from
1025         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1026         first word without an unquoted '='.
1028         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1030 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1032         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1034         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1036         * commands.c (delete_child_targets): Don't delete phony files.
1038         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1039         see a `+' at the beginning of the command line.
1041 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1043         * Version 3.68.6.
1045 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1047         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1049 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1051         * expand.c (variable_expand): Fatal on an unterminated reference.
1053 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1055         * Version 3.68.5.
1057         * variable.c (define_automatic_variables): Define new o_default
1058         variable `MAKE_VERSION' from version_string and remote_description.
1060         * make.h (version_string, remote_description): Declare these here.
1061         * main.c: Don't declare version_string.
1062         (print_version): Don't declare remote_description.
1064 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1066         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1067         before restoring the old pointer.
1069 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1071         * compatMakefile ($(objs)): Depend on config.h.
1073         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1075         * configure.in: Touch stamp-config after AC_OUTPUT.
1077 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1079         * Version 3.68.4.
1081 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1083         * make.h: Include <config.h> instead of "config.h".
1085 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1087         * main.c (main): Make all variables interned from ENVP be v_export.
1088         * variable.c (try_variable_definition): In v_default case, don't
1089         check for an o_file variable that `getenv' finds.
1091         * job.c (reap_children): New local variable ANY_LOCAL; set it
1092         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1094         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1096         * function.c (expand_function): #if 0 out freeing of ENVP since it
1097         is environ.
1099 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1101         * Version 3.68.3.
1103         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1104         * job.c (reap_children): Scan the chain for remote children and
1105         never call remote_status if there are none.
1107         * function.c (expand_function: `shell'): #if 0 out calling
1108         target_environment; just set ENVP to environ instead.
1110         * job.c (reap_children): Check for negative return from
1111         remote_status and fatal for it.
1112         When blocking local child wait returns 0, then try a blocking call
1113         to remote_status.
1115 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1117         * compatMakefile (clean): Delete make.info* and make.dvi here.
1118         (distclean): Not here.
1120         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1121         compilers that don't like enum values used as ints.
1123 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1125         * compatMakefile (loadavg): Add $(LOADLIBES).
1127 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1129         * Version 3.68.2.
1131         * compatMakefile (loadavg, check-loadavg): New targets.
1132         (check): Depend on check-loadavg.
1134         * compatMakefile (glob/libglob.a): Depend on config.h.
1136         * misc.c (log_access): Write to stderr instead of stdout.
1138 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1140         * Version 3.68.1.
1142 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1144         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1145         <unistd.h> #ifdef HAVE_UNISTD_H.
1147         * compatMakefile (.PHONY): Put after `all' et al.
1149         * configure.in: Add AC_IRIX_SUN.
1151 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1153         * Version 3.68.
1155 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1157         * Version 3.67.8.
1159 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1161         * Version 3.67.7.
1163         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1164         Run install-info script if present.
1166 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1168         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1170         * configure.in: Add AC_STAT_MACROS_BROKEN.
1172 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1174         * Version 3.67.6.
1176         * read.c (read_makefile): Recognize directive `-include', like
1177         `include' but sets RM_DONTCARE flag.
1179         * variable.c (target_environment): If FILE is nil, use
1180         current_variable_set_list in place of FILE->variables.
1181         * function.c (expand_function: `shell'): Get an environment for
1182         the child from target_environment instead of using environ.
1184         * dep.h: Declare read_all_makefiles here.
1185         (RM_*): Define new enum constants.
1186         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1187         Treat it as a bit mask containing RM_*.
1188         (read_all_makefiles): For default makefiles, set D->changed to
1189         RM_DONTCARE instead of 1.
1190         * main.c: Don't declare read_all_makefiles here.
1191         (main): Check `changed' member of read_makefiles elts for RM_*
1192         flags instead of specific integer values.
1194 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1196         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1198 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1200         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1201         as well as VPATH.
1202         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1203         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1205         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1206         PERCENTS, whose storage is not consumed by create_pattern_rule.
1208         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1210 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1212         * Version 3.67.5.
1214         * rule.c (max_pattern_targets): New variable.
1215         (count_implicit_rule_limits): Compute its value.
1216         * rule.h: Declare it.
1217         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1218         times bigger.  Move adding new TRYRULES elt inside the inner
1219         targets loop, so each matching target gets its own elt in MATCHES
1220         and CHECKED_LASTSLASH.
1222         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1223         instead of just `file' in error msg.
1225 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1227         * job.c (construct_command_argv): Turn off
1228         --warn-undefined-variables around expansion of SHELL and IFS.
1229         * read.c (tilde_expand): Likewise for HOME.
1230         (read_all_makefiles): Likewise for MAKEFILES.
1231         * vpath.c (build_vpath_lists): Likewise for VPATH.
1233         * main.c (warn_undefined_variables_flag): New flag variable.
1234         (switches): Add --warn-undefined-variables.
1235         * make.h (warn_undefined_variables_flag): Declare it.
1236         * expand.c (warn_undefined): New function.
1237         (reference_variable): Call it if the variable is undefined.
1238         (variable_expand): In substitution ref, call warn_undefined if the
1239         variable is undefined.
1241         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1242         `%.tex: %.w %.ch' rules.
1243         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1244         (default_suffixes): Add `.ch'.
1246 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1248         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1249         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1250         and `.w.tex'.
1252 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1254         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1256 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1258         * Version 3.67.4.
1260         * read.c (multi_glob): Don't free OLD and OLD->name in the
1261         FOUND!=0 fork.  Use new block-local variable F instead of
1262         clobbering OLD.
1264         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1265         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1266         contains no metacharacters.
1268 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1270         * ar.c (ar_glob{_match,_alphacompare}): New function.
1272         * dep.h [! NO_ARCHIVES]: Declare it.
1273         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1275         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1276         multi_glob (which doesn't take a 3rd arg).
1277         * rule.c (install_pattern_rule): Likewise.
1278         * default.c (set_default_suffixes): Here too.
1279         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1281         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1282         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1284 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1286         * compatMakefile (installdirs): Actually pass directory names.
1287         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1288         if it fails, echo a warning msg, but don't make the rule fail.
1290         * read.c (tilde_expand): New function, broken out of tilde_expand.
1291         (multi_glob): Call it.
1292         (construct_include_path): Expand ~ in directory names.
1293         * dep.h: Declare tilde_expand.
1294         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1295         (main): Expand ~ in -C args.
1296         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1298 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1300         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1302         * main.c (main): Put result of alloca in temporary variable with
1303         simple assignment, to make SGI compiler happy.
1305 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1307         * Version 3.67.3.
1309         * main.c (main): Before re-execing, remove intermediate files, and
1310         print the data base under -p.  Sexier debugging message.
1312         * implicit.c (pattern_search): Allocate an extra copy of the name
1313         of a winning intermediate file when putting it in FOUND_FILES.
1315 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1317         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1318         multi_glob (which doesn't take a 3rd arg).
1320         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1321         chars within D_NAMLEN that are NULs.
1323         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1324         into `other_args'.
1325         For string switch, don't savestring `optarg'.
1326         (main): Don't free elts of makefiles->list that are "-".
1327         Use alloca'd rather than savestring'd storage for elts of
1328         makefiles->list that are temporary file names.
1329         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1330         * file.c (enter_file): Don't strip `./'s.
1331         * main.c (enter_command_line_file): New function.
1332         (main): Use it in place of enter_file for command-line goals from
1333         other_files, and for old_files and new_files.
1335 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1337         * Version 3.67.2.
1339         * compatMakefile (.SUFFIXES): Add .info.
1340         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1341         else in $srcdir.  Use basename to remove dir name from installed name.
1343 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1345         * implicit.c (pattern_search): When interning FOUND_FILES, try
1346         lookup_file first; if found, free the storage for our copy of the name.
1348 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1350         * Version 3.67.1.
1352         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1353         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1355 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1357         * rule.c (convert_suffix_rule): New function.
1358         (convert_to_pattern): Use it instead of doing all the work here
1359         several times.
1360         For target suffix `.a', generate both the archive magic rule and
1361         the normal rule.
1363         * compatMakefile (distclean): Remove stamp-config.
1365 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1367         * Version 3.67.
1369         * file.c (remove_intermediates): Don't write extra space after `rm'.
1371         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1372         (print_usage_flag): New variable.
1373         (switches: --help): Make type `flag', to set print_usage_flag.
1374         (init_switches): Remove `usage_and_exit' case.
1375         (decode_switches): Likewise.
1376         (decode_switches): Print usage if print_usage_flag is set.
1377         When printing usage, die with status of BAD.
1378         (main): Die with 0 if print_version_flag.
1380 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1382         * Version 3.66.
1384 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1386         * compatMakefile (installdirs): New target.
1387         (install): Depend on it.
1389 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1391         * Version 3.65.2.
1393 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1395         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1396         set LASTPATH to PATH, not NEXT.
1398         * dir.c (read_dirstream): Break out of loop after incrementing
1399         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1400         dereference DS->contents->files[DIRFILE_BUCKETS].
1402         * read.c (read_makefile): Clear no_targets after reading a
1403         targetful rule line.
1405         * main.c (main): If print_version_flag is set, exit after printing
1406         the version.
1407         (switches): Change --version docstring to say it exits.
1409         * make.h [butterfly]: #undef POSIX.
1411 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1413         * Version 3.65.1.
1415         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1416         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1418         * function.c (handle_function): Use fatal instead of
1419         makefile_fatal when reading_filename is nil.
1421         * configure.in: Add AC_GETGROUPS_T.
1422         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1424 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1426         * Version 3.65.
1428 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1430         * function.c (handle_function): Fatal for unmatched paren.
1432 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1434         * Version 3.64.3.
1436         * commands.c (handling_fatal_signal): New variable.
1437         (fatal_error_signal): Set it.
1438         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1439         * make.h: Declare handling_fatal_signal.
1441         * expand.c (reference_variable): New function, snippet of code
1442         broken out of simple-reference case of variable_expand.
1443         (variable_expand): Use it for simple refs.
1444         (variable_expand): When checking for a computed variable name,
1445         notice a colon that comes before the final CLOSEPAREN.  Expand
1446         only up to the colon, and then replace the pending text with a
1447         copy containing the expanded name and fall through to subst ref
1448         handling.
1449         (variable_expand): Don't bother expanding the name if a colon
1450         appears before the first $.
1451         (expand_argument): Use alloca instead of savestring.
1452         (variable_expand): For subst ref, expand both sides of = before
1453         passing to [pat]subst_expand.  Use find_percent instead of lindex
1454         to check the lhs for a %.
1456 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1458         * Version 3.64.2.
1460 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1462         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1464         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1465         not to multi_glob.
1467 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1469         * Version 3.64.1.
1471         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1472         we read the member name in any of the fashions that allow it to be
1473         arbitrarily long.  Pass its negation to FUNCTION.
1474         (describe_member): Take TRUNCATED from ar_scan and print it.
1475         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1476         the first sizeof (struct ar_hdr.ar_name) chars.
1477         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1478         * ar.c (ar_member_date_1): Likewise.
1480 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1482         * job.c (reap_children): Before calling start_job_command to start
1483         the next command line, reset C->remote by calling start_remote_job_p.
1485 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1487         * arscan.c (ar_scan): New local var NAMEMAP.
1488         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1489         flag IS_NAMEMAP.  When extracting the member name, always put a
1490         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1491         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1492         like " /N", get full name from NAMEMAP+N.
1493         Else if NAME looks like "#1/N", read N chars from the
1494         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1495         the elt's data into alloca'd NAMEMAP.
1496         (ar_name_equal): #if 0 truncating code.
1498         * make.h: Don't declare vfork at all.  It returns int anyway,
1499         unless <unistd.h> declared it; and we conflicted with some systems.
1501         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1502         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1503         define it to something like "-no-print-directory".
1504         Use %g format instead of %f for floating-valued things.
1506 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1508         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1509         to change remote-%.dep to remote-stub.dep.
1511 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1513         * Version 3.64.
1515 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1517         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1519         * Version 3.63.8.
1521 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1523         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1524         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1525         else to "get".
1526         * default.c (default_variables): Set GET to macro SCCS_GET.
1528         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1529         if nonzero.  I hope this is the last time this argument is added
1530         or removed.
1531         (read_makefile): Pass it 1 when parsing include file names.
1532         Pass it 1 when parsing target file names.
1533         Pass it 1 when parsing static pattern target pattern names.
1534         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1535         * default.c (set_default_suffixes): Pass it 1 when parsing
1536         default_suffixes.
1537         * function.c (string_glob): Pass it 0 here.
1539 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1541         * misc.c (log_access): New function.
1542         ({init,user,make,child}_access): Call it.
1543         (child_access): Abort if !access_inited.
1545         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1546         single-letter option.
1547         (init_switches, decode_switches, define_makeflags): An option with
1548         no single-letter version is no longer indicated by a value of -1;
1549         instead a value that is !isalnum.
1550         (init_switches): Don't put such switches into the string, only
1551         into the long_option table.
1553         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1555         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1556         bsdcc defined WIF* to use union wait.
1558         * main.c (struct command_switch): Change member `c' to type int.
1559         (switches): Make const.
1560         (decode_switches): Use `const struct command_switch *'.
1561         (define_makeflags): Likewise.
1563         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1565 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1567         * Version 3.63.7.
1569         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1570         Removed AC_MEMORY_H.
1571         * make.h [USG, NeXT]: Don't test these.
1572         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1573         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1574         [! ANSI_STRING]: Put decls of bcopy et al here.
1575         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1576         [HAVE_SIGSETMASK]: Test this rather than USG.
1577         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1578         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1579         It doesn't hurt to do both if they are both defined, and testing
1580         USG is useless.
1581         * dir.c: Rationalize directory header conditionals.
1582         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1584         * default.c (default_suffixes): Add `.txinfo'.
1585         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1587         * variable.c (try_variable_definition): Replace RECURSIVE flag
1588         with enum FLAVOR, which can be simple, recursive, or append.
1589         Recognize += as append flavor.  Set new variable VALUE in a switch
1590         on FLAVOR.  For append flavor, prepend the variable's old value.
1591         If the variable was previously defined recursive, set FLAVOR to
1592         recursive; if it was defined simple, expand the new value before
1593         appending it to the old value.  Pass RECURSIVE flag to
1594         define_variable iff FLAVOR == recursive.
1596         * variable.c (try_variable_definition): Use alloca and bcopy for
1597         NAME, instead of savestring.  Might as well use stack storage
1598         since we free it immediately anyway.
1600 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1602         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1604         * main.c (define_makeflags): Rename `struct flag' member `switch'
1605         to `cs', which is not a reserved word.
1607 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1609         * job.c (new_job): Call start_waiting_jobs first thing.
1610         (start_waiting_job): Changed return type from void to int.
1611         Return 0 when putting the child on the waiting_jobs chain.
1612         (start_waiting_jobs): Don't check load and job_slots here.
1613         Always take a job off the chain and call start_waiting_job on it;
1614         give up and return when start_waiting_job returns zero.
1616         * main.c (define_makeflags: struct flag): Change member `char c' to
1617         `struct command_switch *switch'.
1618         (ADD_FLAG): Set that to CS instead of CS->c.
1619         If CS->c is -1, increment FLAGSLEN for the long name.
1620         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1621         the long name instead.
1623         * compatMakefile (stamp-config): New target of old config.h rule.
1624         Touch stamp-config after running config.status.
1625         (config.h): Just depend on stamp-config, and have empty commands.
1627 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1629         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1631         * configure.in (AC_HAVE_FUNCS): Check for psignal.
1633 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1635         * main.c (long_option_aliases): Remove "new"; it is already an
1636         unambiguous prefix of "new-file".
1638 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1640         * Version 3.63.6.
1642 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1644         * vpath.c (selective_vpath_search): When adding the
1645         name-within-directory at the end of NAME, and we don't add a
1646         slash, don't copy FILENAME in one char too far into NAME.
1648         * variable.c (define_automatic_variables): Find default_shell's
1649         length with strlen, not numerology.
1651 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1653         * main.c (define_makeflags): Add the elts of a string option in
1654         reverse order, so they come out right when reversed again.
1656 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1658         * compatMakefile (make.info): Use `-o make.info'.
1660 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1662         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1663         reflect new use.
1664         (objs): Replace remote.o with remote-$(REMOTE).o.
1665         (srcs): Replace remote.c with remote-$(REMOTE).c.
1666         (remote.o): Rule removed.
1668         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1669         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1670         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1671         * build.template (REMOTE): New var; set to @REMOTE@.
1672         (objs): Add remote-${REMOTE}.o.
1674 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1676         * Version 3.63.5.
1678         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1679         "Rejecting impossible" -d msg.
1681         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
1682         mod'd values there; never mod {OLD,NEW}HASH.
1684 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1686         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1688         * compatMakefile (VPATH): Set this to @srcdir@.
1689         (srcdir): Set this to $(VPATH).
1691         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
1692         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
1693         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1695         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1697         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1699 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1701         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1702         as the sed delimiter char.
1704 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1706         * Version 3.63.4.
1708         * rule.h (struct rule): Removed `subdir' member.
1709         * rule.c (new_pattern_rule): No need to clear it.
1710         (count_implicit_rule_limits): Set the `changed' flag in each dep
1711         that refers to a nonexistent directory.  No longer set rule-global
1712         `subdir' flag with that information.
1713         (print_rule_data_base): Don't record info on `subdir' flags.
1715         * implicit.c (pattern_search): Check the DEP->changed flag rather
1716         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
1717         if it is set, the file might exist even though the DEP->changed
1718         flag is set.
1720         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1721         name arg to dir_file_exists_p to check for existence of directory.
1723         * implicit.c (pattern_search): Inside dep-finding loop, set
1724         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1725         rather than computing it anew.
1727         * commands.c (set_file_variables): Must alloca space for PERCENT
1728         and copy it, to avoid leaving the trailing `)' in the value.
1730         * misc.c (remove_comments): Fixed backslash-checking loop
1731         condition to allow it to look at the first char on the line.
1732         P2 >= LINE, not P2 > LINE.
1734         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1735         $@, rm $@.old and mv $@ to $@.old.
1737         * variable.c (try_variable_definition): Take new args FILENAME and
1738         LINENO.  Fatal if the variable name is empty.
1739         * read.c (read_makefile): Change callers.
1740         * main.c (main): Likewise.
1742         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1743         that configure will replace with the group owning /dev/kmem.
1745 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1747         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1748         selective_vpath_search.
1749         (selective_vpath_search): Take second arg MTIME_PTR.
1750         If the dir cache thinks a file exists, stat it to make sure, and
1751         put the modtime in *MTIME_PTR.
1752         * remake.c (library_search): Take second arg MTIME_PTR.
1753         When we find a match, record its mtime there.
1754         Pass MTIME_PTR through to vpath_search to do same.
1755         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1756         store it in FILE->last_mtime if set nonzero.
1757         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1759         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1760         so globbing looks somewhere it will find things.
1762         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1763         not `$(srcdir)/make.info*'; no need to use basename.
1765 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1767         * Version 3.63.3.
1769         * compatMakefile (install): Add missing ;\s.
1771         Make -, @, and + prefixes on a pre-expanded command line affect
1772         all lines in the expansion, not just the first.
1773         * commands.h (struct commands): Replace `lines_recurse' member
1774         with `lines_flags'.
1775         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1776         that flag byte.
1777         * commands.c (chop_commands): Set `lines_flags' instead of
1778         `lines_recurse'.  Record not only + but also @ and - prefixes.
1779         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1780         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1781         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1782         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1783         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1784         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1786         * remake.c (update_goal_chain): Set G->file to its prev after
1787         checking for G being finished, since that check needs to examine
1788         G->file.
1790         * configure.in (union wait check) [HAVE_WAITPID]: Try using
1791         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
1792         don't work together, we should not use union wait.
1794         * Version 3.63.2.
1796         * remake.c (update_goal_chain): When G->file->updated, move
1797         G->file to its prev.  We aren't finished until G->file is nil.
1799 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1801         * main.c (starting_directory): New global variable.
1802         (main): Set it to cwd after doing -Cs.
1803         (log_working_directory): Use it, rather than computing each time.
1804         * make.h: Declare it.
1806         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1808         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1809         ARGV, rather than LEN words plus one byte.
1811 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1813         * compatMakefile ($(bindir)/$(instname)): Put - before
1814         install_setgid command line, so its failure won't be an error.
1815         (infodir): New variable.
1816         (install): Depend on $(infodir)/$(instname).info.
1817         ($(infodir)/$(instname).info): New target.
1819         * read.c (read_makefile): If FILENAMES is nil when we see a line
1820         starting with a tab, don't treat it as a command.  Just fall
1821         through, rather than giving an error.
1823         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1824         command line, don't clear it before continuing.  We want
1825         subsequent command lines to be ignored as well.
1827         * job.c (new_job): Before expanding each command line, collapse
1828         backslash-newline combinations that are inside var or fn references.
1830 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1832         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1834         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1836         * job.c [POSIX] (unblock_sigs): Made global.
1837         [!POSIX] (unblock_sigs): Move defns to job.h.
1838         * job.h [POSIX] (unblock_sigs): Declare.
1840 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1842         * read.c (read_makefile): In vpath parsing, after finding the
1843         pattern token, take entire rest of line as the search path, not
1844         just the next token.
1846         * compatMakefile (remote.o): Depend on remote-*.c.
1848 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1850         * commands.c (set_file_variables): Don't define any F or D versions.
1851         * variable.c (define_automatic_variables): Define them here as
1852         recursively-expanded variables that use the dir and notdir funcs.
1854         * variable.c (target_environment): In v_default case, don't export
1855         o_default or o_automatic variables.
1857         * configure.in (union wait check): Remove ` and ' inside C code;
1858         they confuse the shell script.
1860 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1862         * Version 3.63.1.
1864         * vpath.c (construct_vpath_list): When skipping further processing
1865         of an elt that is ".", don't also skip the code that pushes P past
1866         the next separator.
1868         * compatMakefile (distclean): Don't remove make-*.
1870         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1871         defined.  If one cannot use WEXITSTATUS with a `union wait'
1872         argument, we don't want to believe the system has `union wait' at all.
1874         * remake.c (update_file): Do nothing to print "up to date" msgs.
1875         (update_goal_chain): Do it here instead.
1876         Use the `changed' flag of each goal's `struct dep' to keep track
1877         of whether files_remade (now commands_started) changed around a
1878         call to update_file for that goal.
1879         When a goal is finished, and its file's update_status is zero (i.e.,
1880         success or nothing done), test the `changed' flag and give an "up
1881         to date" msg iff it is clear.
1882         * make.h (files_remade): Renamed to commands_started.
1883         * remake.c: Changed defn.
1884         (update_goal_chain): Changed uses.
1885         * job.c (start_job_command): Increment commands_started here.
1886         (reap_children): Not here.
1888         * remake.c (update_goal_chain): Don't do anything with files'
1889         `prev' members.  update_file now completely handles this.
1891         * variable.c (target_environment): Don't expand recursive
1892         variables if they came from the environment.
1894         * main.c (define_makeflags): For flags with omitted optional args,
1895         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
1896         so stored cannot have more flags appended to the same word.
1898 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1900         * variable.c (print_variable_set): In vars/bucket calculation,
1901         don't spuriously multiply by 100.
1903         * Version 3.63.
1905         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
1906         Don't define if already defined.
1908         * remake.c (update_file): Don't keep track of the command_state before
1909         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
1910         and don't test it to decide to print the "is up to date" msg.
1911         Testing for files_remade having changed should always be sufficient.
1912         The old method lost when we are called in the goal chain run on a
1913         makefile, because the makefile's command_state is already
1914         `cs_finished' from the makefile chain run.
1916         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
1918         * configure.in: Rewrote wait checking.
1919         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
1920         Use AC_HAVE_FUNCS to check for waitpid and wait3.
1921         Use a compile check to test just for `union wait'.
1922         * job.c: Rewrote conditionals accordingly.
1923         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
1924         [HAVE_WAIT3]: Likewise.
1925         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
1927         * configure.in: Set CFLAGS and LDFLAGS before all checks.
1929         * dir.c: Add static forward decls of {open,read}_dirstream.
1931 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1933         * Version 3.62.31.
1935         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
1937         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
1938         * build.template (CFLAGS, LDFLAGS): Same here.
1939         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
1940         Set them to -g if not defined in the environment.
1942         * remake.c (library_search): Use LIBNAME consistently, setting it
1943         only once, to be the passed name sans `-l'.
1944         Pass new var FILE to be modified by vpath_search.
1946 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1948         * Version 3.62.30.
1950         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
1951         job_slots. 
1953         * configure.in: Add AC_CONST for the sake of getopt.
1955         * read.c (read_makefile): Continue after parsing `override'
1956         directive, rather than falling through to lossage.
1957         Check for EOL or blank after "override define".
1959         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
1961 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1963         * Version 3.62.29.
1965         * main.c (define_makeflags): After writing everything into
1966         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
1967         just wrote " -".  Always terminate the string at *P.
1969         * remake.c (library_search): When constructing names in std dirs,
1970         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
1971         buffer we are writing into!).
1973 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1975         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
1976         define" when IGNORING is true.
1978         * compatMakefile (distclean): Remove config.status and build.sh.
1980 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1982         * Version 3.62.28.
1984         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
1985         (char *).
1987         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
1989         * variable.c (define_automatic_variables): Override SHELL value for
1990         origin o_env_override as well as o_env.
1992         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
1993         add the names of the glob objects (w/subdir) to %objs%.
1994         * build.template (globobjs): Removed.
1995         Take basename of $objs before linking.
1997 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1999         * Version 3.62.27.
2001         * configure.in (AC_OUTPUT): Also edit build.sh.
2002         * build.template: New file.
2003         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2004         (make-$(version).tar.Z): Depend on build.sh.in.
2006         * main.c (die): Call print_data_base if -p.
2007         (main): Don't call it here.
2009         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2010         into -DHAVE_CONFIG_H.
2012 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2014         * Version 3.62.26.
2016         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2017         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2018         * compatMakefile (install_setgid): New var, set by configure.
2019         (install): Install setgid $(group) only if $(install_setgid) is true.
2021 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2023         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2024         message saying that load limits are not supported.
2026         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2027         not try to use PATH's next link after freeing PATH.
2029         * main.c (define_makeflags): Rewritten; now handles string-valued
2030         option, and has no arbitrary limits.
2031         (switches): Set `toenv' flag for -I and -v.
2033         * main.c (decode_env_switches): Cast return value of alloca to char *.
2035         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2036         setre[gu]id in place of set[gu]id.
2038 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2040         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2041         origin o_default.
2043         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2044         Testing STDC_HEADERS should be sufficient.
2046         * job.h: Declare start_waiting_jobs.
2048         * read.c (read_makefile): Add missing parens in if stmt that find
2049         conditional directives.
2051         * main.c (main): Declare init_dir.
2052         * implicit.c (pattern_search): Always use two % specs in a
2053         DEBUGP2, and always pass two non-nil args.
2054         Cast field width args to int.
2055         Add missing parens in !RULE->subdir if stmt.
2056         * function.c (expand_function, patsubst_expand): Add parens around
2057         assignments inside `while' stmts.
2058         * commands.c (print_commands): Cast field width args to int.
2060         * read.c (do_define): Cast return value of alloca to (char *).
2062         * main.c (init_switches): New function, broken out of decode_switches.
2063         (decode_switches): Take new arg ENV.  If set, ignore non-option
2064         args; print no error msgs; ignore options with clear `env' flags.
2065         (decode_env_switches): Rewritten to chop envar value into words
2066         and pass them to decode_switches.
2067         (switches): Set `env' flag for -I and -v.
2069         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2071 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2073         * Version 3.62.25.
2075         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2076         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2077         we don't need these anyway.
2079         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2080         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2081         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2082         but its set[gu]id functions aren't; its setre[gu]id functions work.
2084         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2086         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2088         * configure.in: Call AC_PROG_CC.
2089         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2091         * compatMakefile: Add .NOEXPORT magic target.
2093 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2095         * main.c (print_version): Updated copyright to include 93.
2097 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2099         * make.h [_AIX]: Don't declare alloca.
2101 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2103         * Version 3.62.24.
2105         * compatMakefile (objs): Add signame.o.
2106         (srcs): Add signame.[ch].
2108         * compatMakefile (srcs): Add config.h.in.
2109         (remote.o): Add -I. before -I$(srcdir).
2111 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2113         * Version 3.62.23.
2115         * read.c (readline): Fatal when LEN==0, indicating a line starting
2116         with a NUL.
2117         (readline): Take new arg LINENO, for use in error msg.
2118         (read_makefile, do_define): Pass it.
2120         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2121         (.c.o): Add -I. before -I$(srcdir).
2123 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2125         * read.c (read_makefile): Accept and ignore a rule with no targets.
2127         * compatMakefile (ALLOCA_SRC): New variable.
2128         (srcs): Include its value.
2130         * read.c (struct conditional): Renamed member `max_ignoring' to
2131         `allocated'; added new member `seen_else'.
2132         (conditional_line): Initialize seen_else flag when starting an `if...';
2133         set it when we see an `else'; fatal if set when we see `else'.
2134         (read_makefile): Fatal "missing `endif'" if there are any pending
2135         conditionals, not just if we are still ignoring.
2137 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2139         * compatMakefile (manext): Set to 1, not l.
2140         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2142         * file.c (file_hash_enter): Don't call uniquize_deps here.
2143         * read.c (record_files): Likewise.
2144         * implicit.c (pattern_search): Likewise.
2145         * commands.c (set_file_variables): Call it only here.
2147         * default.c (default_variables) [__convex__]: FC=fc.
2149         * variable.c (target_environment): Expand the values of recursively
2150         expanded variables when putting them into the environment.
2151         * expand.c (recursively_expand): Made global.
2152         * make.h (recursively_expand): Declare it.
2154         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2155         when a dep's command_state is cs_running or cs_deps_running.
2157         * read.c (read_makefile): Changed error msg for spurious cmds to
2158         not say "first target".
2160 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2162         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2163         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2164         * compatMakefile (config.h, configure, config.h.in): New rules.
2165         (defines): Removed @DEFS@.
2167 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2169         * compatMakefile (realclean): Just depend on distclean; no cmds.
2170         (distclean): Do what realclean did before; also remove Makefile and
2171         config.h; don't remove configure.
2172         (info, dvi): New targets; depend on make.{info,dvi}.
2173         (doc): Removed target.
2174         (MAKEINFO, TEXI2DVI): New vars.
2175         (make.info, make.dvi): Use them instead of explicit cmds.
2177 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2179         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2181 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2183         * main.c (long_option_aliases): Add --new-file alias for -W.
2185         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2186         to CXXFLAGS.
2188         * read.c (do_define): Expand the variable name before using it.
2190         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2191         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2193         * remake.c (library_search): Search for libNAME.a in cwd; look in
2194         vpath before looking in standard dirs, not after.
2195         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2197 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2199         * default.c (default_pattern_rules, default_terminal_rules): Added
2200         brackets around initializers.
2202         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2203         (try_variable_definition): Expand the name before defining the var.
2205         * job.c (init_siglist): Removed function.
2206         Removed decl of `sys_siglist'.
2207         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2208         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2209         only under these conditions.
2210         * main.c (main): Don't declare init_siglist.
2211         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2213 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2215         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2216         nil; instead just set it to MOREDEPS.
2218 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2220         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2221         loop that sets MAXELEM.
2223 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2225         * Version 3.62.22.
2227 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2229         * job.c (start_job_command): Under -n, increment files_remade after
2230         processing (i.e., printing) all command lines.
2232 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2234         * read.c (record_files): Append new deps if this rule has no
2235         commands; prepend them to existing deps if this rule has no commands.
2237         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2239         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2240         (read_makefile): Changed callers.
2241         * function.c (string_glob): Likewise.
2242         * rule.c (install_pattern_rule): Likewise.
2244 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2246         * remake.c (files_remade): Made global.
2247         (notice_finished_file): Don't increment files_remade here; this
2248         function gets called in many situations where no remaking was in
2249         fact done.
2250         * job.c (reap_children): Do it here instead, when we know that 
2251         actual commands have been run for the file.
2252         * make.h (files_remade): Declare it.
2254 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2256         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2257         separate elts in the search path.
2259         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2260         The search path can contain spaces now.
2262 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2264         * compatMakefile (check): New target; no-op.
2266         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2267         testing for OLDHASH==0 but before using the value.
2268         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2269         to file_hash_enter.
2271         * file.c (rename_file): Notice when OLDFILE->cmds came from
2272         default.c, and don't try to print ->filename in that case.
2274 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2276         * remake.c (update_file): Don't process F->also_make here.
2277         (notice_finished_file): Don't process FILE->also_make if no attempt
2278         to update FILE was actually made.
2279         Fixed to call f_mtime directly to refresh their modtimes.
2281 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2283         * read.c (find_percent): Don't increment P again after skipping
2284         an escaped %.
2286         * expand.c (variable_expand): In call to patsubst_expand, don't
2287         find `%'s ourselves; let that function do it.
2289         * read.c (read_makefile: record_waiting_files): Don't call
2290         record_files if FILENAMES is nil.
2291         (read_makefile): All alternatives in the parsing, except for rule
2292         lines, fall through to the end of the loop.  At the end of the
2293         loop, do record_waiting_files so we notice later spurious cmds.
2295 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2297         * variable.c (define_automatic_variables): Free old value of SHELL
2298         before replacing it.
2300 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2302         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2304         * dir.c (open_dirstream): Cast return value to __ptr_t.
2306         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2308         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2309         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2310         Define as (get_path_max ()).
2311         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2312         [! PATH_MAX] (get_path_max): Declare fn.
2313         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2315 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2317         * Version 3.62.21.
2319         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2320         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2321         SYS_SIGLIST_DECLARED.
2323         * dir.c (file_impossible): When initializing DIR->contents, set
2324         DIR->contents->dirstream to nil.
2326         * compatMakefile (GLOB): Define new variable.
2327         (objs): Use it, rather than glob/libglob.a explicitly.
2329         * read.c (parse_file_seq): When stripping "./", handle cases like
2330         ".///foo" and "./////".
2331         * file.c (lookup_file, enter_file): Likewise.
2333 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2335         * dir.c (struct dirstream, {open,read}_dirstream): New
2336         data type and functions to read a directory sequentially.
2337         (init_dir): New function to hook it into glob.
2338         * main.c (main): Call init_dir.
2340         * compatMakefile (objs): Added glob/libglob.a.
2341         * configure.in: Remove code to test for glob.
2343 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2345         * read.c (record_files): Generalized test for NAME pointing
2346         somewhere into F->name.
2348         * variable.c (define_variable_in_set): Free old value when replacing.
2350         * read.c (do_define): Free the linebuffer before returning.
2351         (record_files): When clearing .SUFFIXES deps, free their data.
2352         (multi_glob): Free OLD and its data when replacing it with results
2353         of glob run.
2355         * commands.c (set_file_variables): Use alloca in place of xmalloc
2356         for temp space for $^, $?, et al.
2358         * dir.c (struct directory): New member `contents' replaces `files'
2359         and `dirstream'.
2360         (struct directory_contents): New type.
2361         (directories_contents): New hash table.
2362         (dir_struct_file_exists_p): Take a struct directory_contents.
2363         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2364         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2365         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2366         (dir_file_exists_p, find_directory): Change all callers.
2367         (file_impossible): Use DIR->contents, initializing it if nil.
2368         (print_dir_data_base): Use DIR->contents, and print out device and
2369         inode numbers with each directory.
2371         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2372         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2373         (DIRFILE_BUCKETS): Decrease to 107.
2374         (find_directory): Allocate and zero a multiple of
2375         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2376         (dir_struct_file_exists_p): New function, nearly all code from
2377         dir_file_exists_p.
2378         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2379         * vpath.c (selective_vpath_search): Remove redundant
2380         dir_file_exists_p call.
2382         * configure.in: Comment out glob check; always use our code.
2384 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2386         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2387         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2388         do have it.
2390 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2392         * main.c (main): Don't do -w automatically if -s.
2394 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2396         * main.c (printed_version): Move variable inside print_version.
2397         (print_version): Return immediately if printed_version is set.
2398         (die): Don't test printed_version here.
2399         (decode_switches): Under -v, do print_version before giving usage.
2400         (DESCRIPTION_COLUMN): New macro.
2401         (decode_switches): Use it when printing the usage message.
2402         Leave at least two spaces between options and their descriptions.
2404 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2406         * Version 3.62.20.
2408 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2410         * read.c (read_makefile): Save errno value from trying to open
2411         FILENAME, and restore it before erring; otherwise we get the errno
2412         value from the last elt of the search path.
2414 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2416         * main.c (long_option_aliases): Add --stop for -S.
2418         * read.c (word1eq): Do strncmp before dereferencing someplace that
2419         may be out in space.
2421 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2423         * remake.c (notice_finished_file): If all the command lines were
2424         recursive, don't do the touching.
2426         * job.c (start_job_command): Don't check for + here.
2427         * commands.c (chop_commands): Do it here instead.
2429         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2431 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2433         * compatMakefile (objs): Include $(ALLOCA).
2435         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2437 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2439         * read.c (default_include_directories): Add INCLUDEDIR first.
2440         * compatMakefile (includedir): Define.
2441         (defines): Add -D for INCLUDEDIR="$(includedir)".
2443         * read.c (read_makefile): Grok multiple files in `include';
2444         globbing too.
2446         * remake.c (library_search): New function.
2447         (library_file_mtime): Remove function.
2448         (f_mtime): Use library_search instead of library_file_mtime.
2449         * compatMakefile (libdir): Define.
2450         (defines): Add -D for LIBDIR="$(libdir)".
2451         * make.texinfo (Libraries/Search): Document change.
2453         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2455 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2457         * Version 3.62.19.
2459         * main.c (main): Set command_state to cs_finished for temp files
2460         made for stdin makefiles.
2462         * main.c (decode_switches): Don't tell getopt to return non-option
2463         args in order.
2464         Ignore an argument of `-'.
2466 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2468         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2469         the command line and go to the next.
2470         (notice_finished_file): Under -t, touch FILE.
2471         * remake.c (remake_file): Don't touch it here.
2473 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2475         * function.c (pattern_matches): Use temporary for strlen (WORD)
2476         instead of two function calls.
2478         * compatMakefile (LOAD_AVG): Remove variable and comments.
2480 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2482         * make.texinfo (Running): Node renamed to `make Invocation'.
2484 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2486         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2487         NAMELEN != MEMLEN.
2489 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2491         * Version 3.62.18.
2493         * main.c: Don't #include <time.h>; make.h already does.
2495 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2497         * implicit.c (pattern_search): Fixed copying of suffix when building
2498         also_make elts.
2500         * function.c (expand_function: `shell'): Make sure BUFFER is
2501         null-terminated before replacing newlines.
2503         * compatMakefile (mandir): Use man$(manext), not always manl.
2505 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2507         * rule.c (new_pattern_rule): Not static.
2508         * rule.h: Declare it.
2510         * file.c (file_hash_enter): New function, most code from rename_file.
2511         (rename_file): Call it.
2512         * file.h (file_hash_enter): Declare it.
2514         * dep.h: Doc fix.
2516 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2518         * main.c (decode_switches): Handle usage_and_exit when building
2519         long options vector.
2521         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2522         (default_variables): Define CHECKOUT,v (hairy).
2524         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2525         sys_siglist to _sys_siglist.
2527 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2529         * NEWS: Add header and tail copyright info like Emacs NEWS.
2531         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2532         bcopy if already #define'd.
2533         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2534         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2536         * make.h [_AIX]: #pragma alloca first thing.
2538         * job.c (start_waiting_job): Set the command_state to cs_running
2539         when we queue a job on waiting_jobs.
2541 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2543         * variable.c (define_automatic_variables): Use "" instead of nil
2544         for empty value.
2546 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2548         * Version 3.62.17.
2550         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2551         (command_switches): Add -h/--help.
2553 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2555         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2556         * README.template: Mention NEWS.
2557         * CHANGES: Renamed to NEWS.
2559         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2561 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2563         * main.c (main): Set -o files' command_states to cs_finished.
2565         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2566         when tossing a rule.
2568         * main.c (main): Use alloca only in simple local var assignment,
2569         for braindead SGI compiler.
2571         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2572         inconsistent with the number computed when listing them.
2574 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2576         * commands.c (set_file_variables): For $? and $^ elts that are archive
2577         member refs, use member name only.
2579 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2581         * variable.h (struct variable.export): Add new alternative v_ifset.
2582         * variable.c (target_environment): Check for it.
2583         (define_automatic_variables): Set it for MAKEFILES.
2585 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2587         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2588         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2589         (distclean, mostlyclean): New targets.
2591 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2593         * Version 3.62.16.
2595         * compatMakefile (config.status): Remove rule.
2597         * job.c (start_waiting_job): Free C after using C->file, not before.
2599 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2601         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2602         HAVE_* instead of #ifndef *_MISSING.
2603         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2605 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2607         * main.c (main): makelevel>0 or -C implies -w.
2609 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2611         * file.c, job.c, function.c: Don't #include <errno.h>.
2612         make.h: Do it here instead.
2613         * arscan.c (ar_member_touch): Don't declare errno.
2615 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2617         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2619         * remake.c (update_file): If commands or deps are running after
2620         update_file_1 returns, break out of the :: rule (->prev) loop and
2621         just return.
2623         * job.c (job_next_command): New function; code from start_job.
2624         (start_job_command): Renamed from start_job.  Call job_next_command
2625         and recurse for empty command lines and -n.
2626         (start_waiting_job): Call start_job_command, not start_job.
2627         (new_job): Call job_next_command to prime the child structure, and
2628         then call start_waiting_job.
2629         (reap_children): Use job_next_command and start_job_command.
2630         (start_waiting_job): Call start_remote_job_p here, and store its
2631         result in C->remote.  If zero, check the load average and
2632         maybe put C on waiting_jobs.
2633         (start_job_command): Test CHILD->remote rather than calling
2634         start_remote_job_p.  Don't do load avg checking at all here.
2636         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2637         SIGSEGV, SIGFPE or SIGTRAP.
2639         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2640         configure will set it in glob/Makefile.
2642 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2644         * dir.c [DIRENT] (direct): Don't define to dirent.
2645         [! DIRENT] (direct): Define to dirent.
2646         (dir_file_exists_p): Use struct dirent instead of struct direct.
2648         * make.h (getcwd): No space between macro and ( for args!
2650         * job.c (start_job): Don't put the job on waiting_jobs if
2651         job_slots_used==0.
2653         * make.texinfo (Missing): Shortened title.
2655 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2657         * file.c (remove_intermediates): Print "rm" commands under -n.
2659 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2661         * Version 3.62.15.
2663 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2665         * arscan.c [M_UNIX]: #undef M_XENIX.
2667 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2669         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2671 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2673         * compatMakefile (getloadavg.o): Removed special rule.
2674         (CFLAGS): Don't include $(defines).
2675         (.c.o): Define suffix rule.
2676         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2677         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2679         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2681         * make.h (max): Removed.
2682         * expand.c (variable_buffer_output): Don't use it.
2684         * compatMakefile (INSTALL): Define.
2685         (Makefile): New rule to make from Makefile.in.
2686         (srcdir): Define.
2687         (VPATH): Define.
2688         (getloadavg.o, remote.o): Use autoconf $foo< hack.
2690         * commands.c (fatal_error_signal): Removed return.
2692 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2694         * Version 3.62.14.
2696         * make.texinfo (Summary): New node.
2697         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2699         * variable.c (max): Moved to make.h.
2701         * compatMakefile (objs, srcs): Added ar & arscan.
2703         * job.c (start_waiting_job): New function, 2nd half of new_job.
2704         (new_job): Call it.
2705         (start_waiting_jobs): New function.
2706         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2707         of the main loop.
2708         * compatMakefile (objs, srcs): Removed load, added getloadavg.
2710 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2712         * job.c (load_too_high): New function.  Uses getloadavg.
2713         (waiting_jobs): New variable.
2714         (start_job): Don't call wait_to_start_job.  Instead, if
2715         load_too_high returns nonzero, add the child to the
2716         `waiting_jobs' chain and return without starting the job.
2718 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2720         * expand.c (variable_buffer_output): Made global again.
2721         * variable.h: And declare it.
2723         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2724         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2725         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
2726         for a slash in the archive at run time.
2727         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2728         cope with trailing-slash and non-trailing-slash archives.
2730         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2731         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2733         * load.c (load_average) [sgi]: Use sysmp call.
2735         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2736         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2738         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2739         (vfork, VFORK_NAME): Don't define.
2740         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2742         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2743         the each file.  Rearranged PATH_MAX hacking.
2744         * job.c: Rearranged NGROUPS_MAX hacking.
2746         * remake.c (fstat, time): Don't declare.
2748         * compatMakefile (defines): Value is @DEFS@.
2749         (LOADLIBES): Value is @LIBS@.
2750         (extras): Value is @LIBOBJS@.
2751         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2752         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2754         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2756         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2757         (getcwd): Just declare if present.  If not, declare as a macro
2758         using getwd, and declare getwd.
2759         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2760         * main.c (main, log_working_directory): Use getcwd instead of getwd.
2762         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2764         * make.h (SIGHANDLER, SIGNAL): Removed.
2765         (RETSIGTYPE): Define if not #define'd.
2766         * main.c (main): Use signal in place of SIGNAL.
2768         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2770         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2771         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2773         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2774         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2776         * job.c (child_handler), commands.c (fatal_error_signal): Return
2777         RETSIGTYPE instead of int.
2778         * main.c (main): Declare fatal_error_signal and child_handler here
2779         to return RETSIGTYPE; removed top-level decl of former.
2781         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2782         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2784 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2786         * job.c [HAVE_WAITPID]: Test this instead of USG.
2787         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2788         (GID_T): Don't #define.
2789         (search_path): Use gid_t instead of GID_T.
2790         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2791         these individually instead of USG for all.
2792         * make.h (ctime): Don't declare.  #include time.h instead.
2793         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2794         _POSIX_VERSION.
2795         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2796         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2798         * arscan.c: Removed #ifdef mess about string.h et al.
2799         Just #include make.h instead.
2800         * make.h (fstat, atol): Declare.
2802         * commands.c (fatal_error_signal): Don't use sigmask to check for
2803         propagated signals; use ||s instead.
2804         (PROPAGATED_SIGNAL_MASK): Removed.
2805         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2807         * variable.c (variable_buffer, variable_buffer_length,
2808         initialize_variable_output, variable_output): Moved to expand.c;
2809         made all static.
2810         (struct output_state, save_variable_output,
2811         restore_variable_output): Removed.
2812         * expand.c (initialize_variable_output): Put a NUL at the beginning
2813         of the new buffer after allocating it.
2814         (allocated_variable_expand_for_file): Don't use
2815         {save,restore}_variable_output.  Do it by hand instead, keeping
2816         state on the stack instead of malloc'ing it.
2817         (allocated_variable_expand): Removed.
2818         * variable.h (allocated_variable_expand): Define here as macro.
2819         (variable_buffer_output, initialize_variable_output,
2820         save_variable_output, restore_variable_output): Removed decls.
2822         * read.c (conditional_line): For an if cmd, if any elt of the
2823         conditionals stack is ignoring, just push a new level that ignores
2824         and return 1; don't evaluate the condition.
2826 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2828         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2830         * job.c (getdtablesize): Don't declare or #define if already #define'd.
2832 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2834         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2835         export_all_variables.
2836         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2838 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2840         * Version 3.62.13.
2842         * commands.c (set_file_variables): Calculate length for ^D and ?D
2843         individually, making sure to give them at least enough space for "./".
2845         * make.h [CRAY]: #define signal to bsdsignal.
2847         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2848         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2850         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2851         wasn't defined by <ar.h>.
2853 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2855         * Version 3.62.12.
2857 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2859         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2860         pattern_rules.
2862 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2864         * main.c (decode_switches): Initialize all the long_option elt members.
2866 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2868         * make.texinfo (Text Functions): Correct filter-out description.
2870 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2872         * compatMakefile (realclean): Don't remove backup files.
2874         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
2876 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2878         * Version 3.62.11.
2880 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2882         * job.c (reap_children): Don't die if wait returns EINTR.
2884 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2886         * job.c (reap_children): Always run the next command for a
2887         successful target.  If we are going to die, we don't want to leave
2888         the target partially made.
2890 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2892         * job.c (construct_command_argv_internal): After loop, if we only
2893         have one word, check it for being a shell command.
2895         * main.c (decode_switches): Allocate ARGC slots in other_args to
2896         begin with, so we never need to worry about growing it.
2897         If we get a non-option arg and POSIXLY_CORRECT is in the
2898         environment, break out of the loop.  After the loop, add all remaining
2899         args to other_args list.
2901         * main.c (decode_switches): For positive_int and floating switches
2902         when optarg is nil, use next arg if it looks right (start with a
2903         digit, or maybe decimal point for floating).
2905         * variable.c (define_automatic_variables): Always set SHELL to
2906         default if it comes from the environment.  Set its export bit.
2907         * make.texinfo (Environment): Document change.
2909 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2911         * Version 3.62.10.
2913         * compatMakefile (tags, TAGS): Use vars for cmds.
2914         (ETAGS, CTAGS): Define.
2916         * main.c (decode_switches): If a switches elt has a nil long_name,
2917         make the long option name elt be "".
2918         Fixed loop to not ignore all the options.
2920         * make.texinfo (Option Summary): Added long options.
2922         * main.c (switches): Changed -m's description to "-b".
2923         (decode_switches): When printing the usage message, don't print
2924         switches whose descriptions start with -.
2925         When constructing the list of names for switch -C, search the
2926         switches vector for switches whose descriptions are "-C".
2928         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
2929         Call -I --include-dir, not --include-path.
2930         (long_option_aliases): Added --new == -W, --assume-new == -W,
2931         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
2932         --makefile == -f.
2934         * main.c (switches): Removed bogus "silent" elt.
2935         (long_option_aliases): Define new var.
2936         (decode_switches): Add long_option_aliases onto the end of the long
2937         options vector created for getopt_long.
2938         Look through long_option_aliases for extra names to list
2939         in usage message.
2941 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2943         * main.c (log_working_directory): Fixed to properly not print the
2944         leaving message when we haven't printed the entering message.
2946 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2948         * main.c (struct command_switch): Added elts `long_name', 
2949         `description', and `argdesc'.
2950         (switches): Added initializers for new members.
2951         (decode_switches): Rewritten to use getopt_long.
2952         * compatMakefile (GETOPT, GETOPT_SRC): Define.
2953         (objs, srcs): Include them.
2955         * job.c (child_died): Renamed to dead_children; made static.
2956         (child_handler): Increment dead_children instead of setting child_died.
2957         (reap_children): Decrement dead_children instead of clearing
2958         child_died.  The point of all this is to avoid printing "waiting
2959         for unfinished jobs" when we don't actually need to block.
2960         This happened when multiple SIGCHLDs before reap_children was called.
2962         * job.c (reap_children): If ERR is set, so we don't call start_job
2963         on the child being reaped, instead set its command_state to
2964         cs_finished.
2965         (reap_children, child_handler, new_job): I added several
2966         debugging printf's while fixing this.  I left them in if (debug_flag) 
2967         because they may be useful for debugging this stuff again.
2969 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2971         * read.c (read_makefile): v_export is not 1.
2973 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2975         * Version 3.62.9.
2977         * variable.c (export_all_variables): New variable.
2978         (target_environment): Export variables whose `export' member is
2979         v_default if export_all_variables is set and their names are benign.
2980         * variable.h: Declare export_all_variables.
2981         * read.c (read_makefile): If export or unexport is given with no
2982         args, set or clear export_all_variables, respectively.
2984         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
2985         so it isn't duplicated when we add it at the end.
2987 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2989         * Version 3.62.8.
2991         * variable.h (struct variable): Added new member `export'.
2992         * variable.c (define_variable_in_set): Initialize it to v_default.
2993         (target_environment): Don't check for .NOEXPORT.
2994         Export variables whose `export' member is v_default and that would
2995         have been exported under .NOEXPORT, and variables whose `export'
2996         member is v_export.
2997         (try_variable_definition): Return the variable defined.
2998         * variable.h (try_variable_definition): Changed decl.
2999         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3001 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3003         * main.c (main) [POSIX]: Reversed args to sigaddset.
3005 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3007         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3008         (start_job): Block signals before forking.
3009         (new_job): Unblock signals after putting the new child on the chain.
3010         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3011         int fatal_signal_mask.
3013         * load.c [sgi] (LDAV_CVT): Define.
3015 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3017         * Version 3.62.7.
3019         * load.c (load_average) [sgi]: Clear the high bit of the address
3020         from the symbol table before looking it up in kmem.
3022         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3023         (remake_file): No longer needed in message here.
3025         * main.c (die): Call reap_children with BLOCK==1.
3027 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3029         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3031 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3033         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3034         not to head of chain.  Extract next ptr before we might do
3035         freerule, and use that for next iteration.
3036         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3038 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3040         * job.c (child_error): Removed extra %s from error msg format.
3042         * Version 3.62.6.
3044         * job.c (reap_children): Don't start later commands in a sequence
3045         if ERR is nonzero.
3047         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3049         * job.c (reap_children): New function; work that used to be done in
3050         child_handler.
3051         (child_died): New global var.
3052         (child_handler): Now just sets child_died.
3053         (wait_for_children): Removed.
3054         (unknown_children_possible, block_signals, unblock_signals,
3055         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3056         (child_execute_job): Removed call to unblock_signals.
3057         (new_job): Removed calls to push_signals_blocked_p and
3058         pop_signals_blocked_p.
3059         * job.h: Declare reap_children, not wait_for_children.
3060         * commands.c (fatal_error_signal), job.c (new_job),
3061         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3062         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3063         Changed wait_for_children calls to reap_children.
3064         Some needed to be loops to wait for all children to die.
3065         * commands.c (fatal_error_signal), main.c (main,
3066         log_working_directory), function.c (expand_function): Removed calls
3067         to push_signals_blocked_p and pop_signals_blocked_p.
3068         * job.h: Removed decls.
3070         * job.h: Added copyright notice.
3072 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3074         * job.c (child_error): No *** for ignored error.
3076 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3078         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3079         avoid compiler warnings.
3081         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3082         blank.
3084 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3086         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3087         avoid compiler warnings.
3089         * remake.c (notice_finished_file): Run file_mtime on the also_make
3090         files, so vpath_search can happen.
3092         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3093         (alpha-files): Include test suite tar file.
3095 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3097         * Version 3.62.5.
3099 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3101         * remake.c (update_file, update_file_1): Do check_renamed on elts
3102         of dep chains when traversing them.  Something unrelated might have
3103         renamed one of the files the dep chain points to.
3105         * file.c (rename_file): If FILE has been renamed, follow its
3106         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3107         ones loses because they are not in the hash table, so the removal
3108         code loops infinitely.
3110         * read.c (read_all_makefiles): Clobber null terminator into
3111         MAKEFILES expansion, so string passed to read_makefile is properly
3112         terminated.
3114 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3116         * commands.c (set_file_variables): $* for archive member with
3117         explicit cmds is stem of member, not of whole `lib(member)'.
3119 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3121         * Version 3.62.4.
3123 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3125         * rule.c (new_pattern_rule): Rules are identical only if all their
3126         targets match (regardless of order).
3128 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3130         * remake.c (remake_file): Changed error "no way to make" to "no
3131         rule to make".  Fiat Hugh.
3133         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3134         behavior.
3136         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3137         target.
3139 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3141         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3142         environment to pass to child.
3143         * job.c (start_job): Pass it.
3145 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3147         * file.c (enter_file): Also strip ./s here, to get command-line
3148         target names.
3150         * remote-cstms.c: Add comment telling people to leave me alone.
3152         * compatMakefile (manpage install): Remove target before copying.
3154 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3156         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3157         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3159 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3161         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3162         Use vfork instead of fork.
3164 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3166         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3167         intermediate files.
3169         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3171 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3173         * Version 3.62.3.
3175 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3177         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3179 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3181         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3183         * read.c (record_files): Pass arg for %s in error msg.
3185         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3186         call.
3188 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3190         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3192 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3194         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3196 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3198         * Version 3.62.2.
3200 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3202         * job.c (construct_command_argv_internal): Correctly ignore
3203         whitespace after backslash-NL.
3205 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3207         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3209 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3211         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3212         allocate space so as not to clobber past the end of the old string.
3214         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3215         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3217 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3219         * make.h [VFORK_MISSING]: Use fork instead.
3220         * compatMakefile (defines): Document same.
3222         * job.c (construct_command_argv_internal): Don't create an empty
3223         arg if backslash-NL is at beginning of word.
3225 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3227         * main.c [DGUX]: Call setvbuf as for USGr3.
3229         * job.c (construct_command_argv_internal): Notice correctly that
3230         backslash-NL is the end of the arg (because it is replaced with a
3231         space).
3233 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3235         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3236         to default_shell before proceeding.
3238         * make.h [sgi]: No alloca.h, after all.
3240 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3242         * read.c (multi_glob): Cons up the chain of the results of glob
3243         from back to front, so it comes out in forward order.
3245         * job.c (construct_command_argv_internal): Don't eat char following
3246         backslash-NL.
3248 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3250         * Version 3.62.1.
3252         * default.c (default_variables) [ultrix]: GET=get, like USG.
3254         * job.c (construct_command_argv_internal): Remove tabs following
3255         backslash-NL combos in the input line, so they don't show up when
3256         that line is printed.
3258         * read.c (read_makefile): Don't collapse_continuations the line on
3259         input; do it on the copy we do remove_comments on.
3260         For rule lines, collapse_continuations the line after chopping
3261         ";cmds" off the end, so we don't eat conts in the cmds.
3262         Give error for ";cmds" with no rule.
3263         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3264         when constructing the line to recurse on for slow, too.
3266 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3268         * file.c (enter_file): Don't strip leading `./'s.
3269         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3270         * default.c (set_default_suffixes), function.c (string_glob),
3271         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3273         * default.c (default_variables) [_IBMR2]: FC=xlf
3275         * job.c (construct_command_argv_internal): Turn backslash-NL and
3276         following whitespace into a single space, rather than just eating
3277         the backslash.
3279         * make.texinfo (Copying): @include gpl.texinfo, rather than
3280         duplicating its contents.
3282 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3284         * job.c (construct_command_argv_internal): Make sure not to bother
3285         processing an empty line.
3287         * Version 3.62.0.
3289         * job.c (construct_command_argv_internal): Always recurse for slow;
3290         simple case didn't handle finding newlines.
3292 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3294         * job.c (construct_command_argv_internal): Set RESTP properly when
3295         slow; don't \ify past a newline.
3297 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3299         * make.h [sgi]: #include <alloca.h>.
3303 See ChangeLog.1 for earlier changes.