(collapse_continuations): Fix skipping of trailing \s so it can never
[make.git] / ChangeLog
blobeac885ed7cdf4681df2dc64021e95946adc29280
1 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3         * read.c (find_semicolon): Function removed.
4         (read_makefile): Don't use find_semicolon or remove_comments for
5         rule lines.  Use find_char_unquote directly and handle quoted comments
6         properly.
8         * default.c: Remove all [M_XENIX] code.
10         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
11         (D_NAMLEN): Macro removed.
12         (FAKE_DIR_ENTRY): New macro.
13         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
14         D_NAMLEN.
15         (read_dirstream): Return a struct dirent * for new glob interface.
16         (init_dir): Function removed.
17         (dir_setup_glob): New function.
18         * main.c (main): Don't call init_dir.
19         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
20         GLOB_ALTDIRFUNC flag.
22         * misc.c (safe_stat): Function removed.
23         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
24         safe_stat.
26 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
28         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
30         * main.c (log_working_directory): Made global.
31         Print entering msg only once.
32         * make.h (log_working_directory): Declare it.
33         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
34         nonzero.  Call log_working_directory.
35         * remake.c: Pass new arg in `message' calls.
36         * job.c (start_job_command): Pass new arg to `message'; fix
37         inverted test in that call.
39 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
41         * job.c (start_job_command): Use `message' to print the command,
42         and call it with null if the command is silent.
43         * remake.c (touch_file): Use message instead of printf.
45 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
47         * main.c (enter_command_line_file): Barf if NAME is "".
49 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
51         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
53 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
55         * configure.in: Don't check for getdtablesize.
56         * job.c (getdtablesize): Remove decls and macros.
58 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
60         * main.c (define_makeflags): Omit command line variable
61         definitions from MFLAGS value.
63         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
64         indicating a valid, but empty, archive.
66 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
68         * dir.c (file_impossible_p): Correctly reset FILENAME to name
69         within directory before hash search.
71         * job.c (child_error): Do nothing if IGNORED under -s.
73         * job.c (exec_command): Correctly use ARGV[0] for script name when
74         running shell directly.
76 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
78         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
79         dup'ing from them.  Don't try to close all excess descriptors;
80         getdtablesize might return a huge value.  Any open descriptors in
81         the parent should have FD_CLOEXEC set.
82         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
84 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
86         * read.c (read_all_makefiles): Properly append default makefiles
87         to the end of the `read_makefiles' chain.
89 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
91         * Version 3.74 released.
93 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
95         * Version 3.73.3.
97 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
99         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
100         install-info cmd.
102 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
104         * file.c (print_file): Grok update_status of 1 for -q.
106 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
108         * Version 3.73.2.
110 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
112         * file.c (remove_intermediates): Fix inverted test to bail under
113         -n for signal case.  Bail under -q or -t.
114         Skip files with update_status==-1.
116         * job.c (job_next_command): Skip empty lines.
117         (new_job): Don't test the return of job_next_command.
118         Just let start_waiting_job handle the case of empty commands.
120 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
122         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
124         * Version 3.73.1.
126 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
128         * remake.c (notice_finished_file): Set FILE->update_status to zero
129         if it's -1.
131 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
133         * Version 3.73 released.
135 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
137         * main.c (main): Fixed braino in assert.
139         * Version 3.72.13.
141 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
143         * main.c: Avoid string in assert expression.  Some systems are broken.
145 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
147         * main.c (main): Handle 1 and 2 returns from update_goal_chain
148         makefile run properly.
150         * Version 3.72.12.
152         * main.c (handle_non_switch_argument): New function, broken out of
153         decode_switches.
154         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
155         When getopt_long returns EOF, break the loop and handle remaining args
156         with a simple second loop.
158         * remake.c (remake_file): Set update_status to 2 instead of 1 for
159         no rule to make.  Mention parent (dependent) in error message.
160         (update_file_1): Handle FILE->update_status == 2 in -d printout.
161         * job.c (start_job_command, reap_children): Set update_status to 2
162         instead of 1 for failed commands.
164 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
166         * job.c (search_path): Function removed (was already #if 0'd out).
167         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
169 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
171         * configure.bat: Write @CPPFLAGS@ translation.
173 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
175         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
176         to not skip the elt immediately preceding `l(...'.
178 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
180         * Version 3.72.11.
182         * read.c (find_char_unquote): Make second arg a string of stop
183         chars instead of a single stop char.  Stop when any char in the
184         string is hit.  All callers changed.
185         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
186         instead of using two calls.  If the match is not a ; but a #,
187         return zero.
188         * misc.c: Changed find_char_unquote callers here too.
190         * Version 3.72.10.
192         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
193         __MSDOS__.
195         * GNUmakefile (globfiles): Add glob/configure.bat.
196         (distfiles): Add configh.dos, configure.bat.
198 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
200         Fixes for MS-DOS from DJ Delorie.
201         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
202         as separator in "C:\...".
203         * configh.dos (STDC_HEADERS): Define only if undefined.
204         (HAVE_SYS_PARAM_H): Don't define this.
205         (HAVE_STRERROR): Define this.
206         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
208         * Version 3.72.9.
210         * main.c (decode_switches): Reset optind to 1 instead of 0.
212 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
214         * main.c (decode_switches): If non-option arg is "-", ignore it.
216 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
218         * Version 3.72.8.
220 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
222         * Version 3.72.7.
224 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
226         * main.c (main): Pass missing arg to tmpnam.
228         * configure.in: Check for strsignal.
229         * job.c (child_error): Use strsignal.
230         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
232         * misc.c (strerror): Fix swapped args in sprintf.
234 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
236         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
238 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
240         * main.c (print_version): Add 95 to copyright years.
242         * Version 3.72.6.
244         * job.c (start_job_command): Remember to call notice_finished_file
245         under -n when not recursing.  To do this, consolidate that code
246         under the empty command case and goto there for the -n case.
248 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
250         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
251         declare it int.
253 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
255         * read.c (read_makefile): For bogus line starting with tab, ignore
256         it if blank after removing comments.
258         * main.c: Cast results of `alloca' to `char *'.
259         * expand.c: Likewise.
261 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
263         * Version 3.72.5.
265         * configure.in: Check for mktemp.
266         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
268         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
269         (_SC_OPEN_MAX)'.
270         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
271         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
272         using sysconf.
274 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
276         * remake.c (update_file_1): When !MUST_MAKE, don't set
277         FILE->update_status to zero before calling notice_finished_file.
278         (notice_finished_file): Touch only when FILE->update_status is zero.
279         (remake_file): Set FILE->update_status to zero after not calling
280         execute_file_command and deciding to touch instead.
282 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
284         * main.c (debug_signal_handler): New function; toggles debug_flag.
285         (main): Handle SIGUSR1 with that.
287 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
289         * compatMakefile (realclean): Remove Info files.
291 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
293         * Version 3.72.4.
295         * job.c (start_job_command): Save and restore environ around vfork
296         call.
297         (search_path): Function #if 0'd out.
298         (exec_command): Use execvp instead of search_path.
300         * expand.c (variable_expand): Rewrote computed variable name and
301         substitution reference handling to be simpler.  First expand the
302         entire text between the parens if it contains any $s, then examine
303         the result of that for subtitution references and do no further
304         expansion while parsing them.
306         * job.c (construct_command_argv_internal): Handle " quoting too,
307         when no backslash, $ or ` characters appear inside the quotes.
309         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
310         defined, just use int.
312 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
314         * default.c (default_variables) [__hpux]: Remove special
315         definition of ARFLAGS.  Existence of the `f' flag is not
316         consistent across HPUX versions; and one might be using GNU ar
317         anyway.
319         * compatMakefile (clean): Don't remove Info files.
321         * compatMakefile (check): Remove gratuitous target declaration.
323 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
325         * compatMakefile (ETAGS, CTAGS): Don't use -t.
327         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
329         * main.c (decode_switches): For --help, print usage to stdout.
331 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
333         * Version 3.72.3.
335         * remake.c (update_file_1): Do set_command_state (FILE,
336         cs_not_started) only if old state was deps_running.
338 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
340         * job.c (start_waiting_job): Use set_command_state.
342         * build.template (CPPFLAGS): New variable.
343         (prefix, exec_prefix): Set from @...@.
344         (compilation loop): Pass $CPPFLAGS to compiler.
346         * GNUmakefile (build.sh.in): Make it executable.
348         * GNUmakefile (globfiles): Add configure.in, configure.
350         * Version 3.72.2.
352         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
354         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
356         * configure.in: Don't check for ranlib.
358 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
360         * remake.c (notice_finished_file): Only mark also_make's as
361         updated if really ran cmds.
363 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
365         * configure.in: Put dnls before random whitespace.
367 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
369         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
370         (RANLIB): Variable removed.
371         (prefix, exec_prefix): Set these from @...@.
372         (.c.o): Use $(CPPFLAGS).
373         (glob/libglob.a): Don't pass down variables to sub-make.
374         glob/Makefile should be configured properly by configure.
375         (distclean): Remove config.log and config.cache (autoconf stuff).
377 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
379         * acconfig.h: Add #undef HAVE_UNION_WAIT.
380         * configure.in: Converted to Autoconf v2.
381         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
382         of DIRENT, SYSDIR, NDIR.
383         * build.sh.in (prefix, exec_prefix): Set these from @...@.
384         (CPPFLAGS): New variable, set from @CPPFLAGS@.
385         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
386         * install.sh: File renamed to install-sh.
388         * main.c (define_makeflags): When no flags, set WORDS to zero.
390 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
392         * Version 3.72.1.
394         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
395         empty.
397 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
399         * Version 3.72.
401 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
403         * Version 3.71.5.
405         * job.c (start_job_command): When ARGV is nil, only set
406         update_state and call notice_finished_file if job_next_command
407         returns zero.
409         * job.c (start_job_command): Call notice_finished_file for empty
410         command line.
412 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
414         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
415         COMMANDS_NOERROR.
417 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
419         * Version 3.71.4.
421 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
423         * file.c (snap_deps): Set command_flags bits in all :: entries.
425 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
427         * make.h (posix_pedantic): Declare it.
428         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
429         snap_deps.
430         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
431         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
432         command_flags and don't set -i.  Likewise .SILENT.
433         * job.c (start_job_command): In FLAGS initialization, OR in
434         CHILD->file->command_flags.
435         * file.h (struct file): New member `command_flags'.
437 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
439         * main.c (switches): Bump flag values for --no-print-directory and
440         --warn-undefined-variables, so neither is 1 (which indicates a
441         nonoption argument).
443 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
445         * main.c (main): Add missing code in .IGNORE test.
447 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
449         * variable.c (define_automatic_variables): Define +D and +F.
451 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
453         * main.c (main): Define hidden automatic variable with command
454         vars, and MAKEOVERRIDES to a reference to that.
455         (define_makeflags): If posix_pedantic, write a reference to that
456         instead.
458 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
460         * main.c (posix_pedantic): New variable.
461         (main): Set posix_pedantic if .POSIX is a target.
462         Fix .IGNORE and .SILENT checks to require is_target.
464         * commands.c (set_file_variables): Define new automatic variable
465         $+, like $^ but before calling uniquize_deps.
467         * job.c (reap_children): Call delete_child_targets for non-signal
468         error if .DELETE_ON_ERROR is a target.
470 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
472         * Version 3.71.3.
474 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
476         * job.c (reap_children): Don't change C->file->command_state when
477         dying.  Test it only after calling start_job_command for a new
478         command line.  When no more cmds, just set C->file->update_status.
479         (start_job_command): When the last line is empty or under -n, set
480         C->file->update_status.
481         (start_waiting_job): Grok cs_not_started after start_job_command
482         as success.
483         (new_job): Set C->file->update_status when there are no cmds.
484         (job_next_command): When out of lines, don't set
485         CHILD->file->update_status or CHILD->file->command_state.
487         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
488         if nonzero, also double $s.
489         (main): Define MAKEOVERRIDES from command_variables here.
490         (define_makeflags): Don't use command_variables here; instead write a
491         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
493         * dir.c [__MSDOS__]: Fixed typo.
495         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
497 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
499         * remake.c: Include <assert.h> and use assert instead of printfs
500         and abort.
502         * main.c (decode_switches): Loop until optind hits ARGC, not just
503         until getopt_long returns EOF.  Initialize C to zero before loop;
504         in loop if C is EOF, set optarg from ARGV[optind++], else call
505         getopt_long.
506         (decode_env_switches): Use variable_expand instead of
507         allocated_variable_expand.  Allocate a fresh buffer to copy split
508         words into; scan characters by hand to break words and
509         debackslashify.
510         (shell_quote): New function.
511         (define_makeflags): Allocate doubled space for switch args, and command
512         variable names and values; use shell_quote to quote those things.
514 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
516         * Version 3.71.2.
518         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
520         * main.c (decode_switches): The non-option return from getopt is
521         1, not 0.
522         (command_variables): New type and variable.
523         (decode_switches, decode_env_switches): After making a variable
524         definition, record the struct variable pointer in the
525         command_variables chain.
526         (define_makeflags): If ALL, write variable definitions for
527         command_variables.
529         * main.c (other_args): Variable removed.
530         (goals, lastgoal): New static variables (moved from auto in main).
531         (main): Don't process OTHER_ARGS at all.
532         Don't set variable MAKEOVERRIDES at all; define MAKE to just
533         $(MAKE_COMMAND).
534         (init_switches): Prepend a - {return in order} instead of a +
535         {require order}.
536         (decode_switches): Don't set OTHER_ARGS at all.
537         Grok '\0' return from getopt_long as non-option argument; try
538         variable definition and (if !ENV) enter goal targets here.
539         (decode_env_switches): Use allocated_variable_expand to store value.
540         Use find_next_token to simplify word-splitting loop.  Don't
541         prepend a dash to uninterpreted value.  Instead, if split into
542         only one word, try variable definition and failing that prepend a
543         dash to the word and pass it to decode_switches as a single arg.
545 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
547         * remake.c (notice_finished_file): Only recheck modtimes if
548         FILE->command_state was cs_running on entry (meaning the commands
549         actually just ran).
550         (update_file_1): Whenever we set FILE->update_status, call
551         notice_finished_file instead of just set_command_state.
552         * job.c (start_job_command): Whenever we set
553         CHILD->file->update_status, call notice_finished_file instead of
554         just set_command_state.
556 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
558         * default.c: Add missing ".
560         * job.c: Changed all assignments of command_state members to calls
561         to set_command_state.
562         * remake.c: Likewise.
563         * file.c (set_command_state): New function.
564         * file.h: Declare set_command_state.
566         * main.c (init_switches): Put a + first in options.
568 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
570         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
571         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
572         * main.c (directory_before_chdir): New variable, moved out of main
573         (was local).
574         (main) [__MSDOS__]: Look for \ or : to delimit last component of
575         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
576         (die): Change back to `directory_before_chdir' before dying.
577         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
578         [__MSDOS__] and not.
579         * job.c [__MSDOS__]: Include <process.h>.
580         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
581         dos_batch_file): New variables.
582         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
583         (unblock_sigs) [__MSDOS__]: Do nothing.
584         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
585         (load_too_high) [__MSDOS__]: Always return true.
586         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
587         Use PATH_SEPARATOR_CHAR instead of ':'.
588         (construct_command_argv_internal) [__MSDOS__]: Wholly different
589         values for sh_chars and sh_cmds.  Wholly new code to handle shell
590         scripts.
591         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
592         implementation.
593         * dir.c [__MSDOS__] (dosify): New function.
594         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
595         process the result instead of FILENAME itself.
596         (file_impossible_p) [__MSDOS__]: Likewise.
597         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
598         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
599         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
600         `bison -y', and LEX to `flex'.
601         * configure.bat, configh.dos: New files.
602         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
603         intermediates and exit.
605         * commands.c (set_file_variables): Add parens in length
606         computation in .SUFFIXES dep loop to quiet compiler warning.  From
607         Jim Meyering.
609         * read.c (read_makefile): Free FILENAME if we allocated it.  From
610         Jim Meyering.
612 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
614         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
615         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
616         * read.c (construct_include_path): Use safe_stat in place of stat.
617         * job.c (search_path): Use safe_stat in place of stat.
618         * dir.c (find_directory): Use safe_stat in place of stat.
619         * commands.c (delete_target): Use safe_stat in place of stat.
620         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
621         * remake.c (name_mtime): Use safe_stat in place of stat.
622         (touch_file) [EINTR]: Do EINTR looping around fstat.
624 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
626         * read.c (read_makefile): Check for a shell command first, and
627         then strip leading tabs before further checking if it's not a
628         shell command line.
630         * make.h [__arm]: Undefine POSIX.
631         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
632         functions that return int.
634         * job.c (construct_command_argv_internal): After swallowing a
635         backslash-newline combination, if INSTRING is set goto string_char
636         (new label) for normal INSTRING handling code.
638 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
640         * configure.in: Don't check for sys_siglist and _sys_siglist with
641         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
643 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
645         * Version 3.71.1 released.
647         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
648         _POSIX_VERSION for these declarations.
650         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
651         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
653 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
655         * Version 3.71 released.
657         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
658         and [HAVE_SETGID].  Every system has those, and configure doesn't
659         check for them.
661         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
663         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
664         getloadavg.c.
665         (loadavg.c): Link or copy it from getloadavg.c.
666         (distclean): Remove loadavg.c.
668 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
670         * Version 3.70.4.
672         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
673         and HAVE_SETEGID.
675         * default.c (default_terminal_rules): In SCCS rules, put
676         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
677         only before the file name.
678         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
680 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
682         * job.c (construct_command_argv_internal): Swallow
683         backslash-newline combinations inside '' strings too.
685 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
687         * read.c (do_define): Call collapse_continuations on each line
688         before all else.
690 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
692         * job.c (construct_command_argv_internal): Notice newline inside
693         '' string when RESTP is non-null.
695 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
697         * Version 3.70.3.
699         * remake.c (update_goal_chain): Reset FILE to G->file after the
700         double-colon loop so it is never null for following code.
702         * read.c (read_makefile): Fix `override define' parsing to skip
703         whitespace after `define' properly.
705         * compatMakefile (srcdir): Define as @srcdir@; don't reference
706         $(VPATH).
707         (glob/Makefile): New target.
709 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
711         * Version 3.70.2.
713         * misc.c (remove_comments): Use find_char_unquote.
714         * make.h (find_char_unquote): Declare it.
715         * read.c (find_char_unquote): New function, generalized from
716         find_percent.
717         (find_percent, find_semicolon, parse_file_seq): Use that.
719 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
721         * implicit.c (pattern_search): Always allocate new storage for
722         FILE->stem.  It is not safe to store STEM's address because it
723         might be auto storage.
725         * configure.in: Check for seteuid and setegid.
726         * misc.c [HAVE_SETEUID]: Declare seteuid.
727         [HAVE_SETEGID]: Declare setegid.
728         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
729         [HAVE_SETEGID]: Use setegid.
731         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
732         to preserve whether it's 2 for error or 1 for -q trigger.  When
733         STATUS gets nonzero and -q is set, always stop immediately.
734         * main.c (main, decode_switches): Die with 2 for errors.
735         (main): Accept 2 return from update_goal_chain and die with that.
736         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
737         answer.
738         * job.c (reap_children): Die with 2 for error.
739         (start_job_command): Set update_status to 2 for error.  Set it to
740         1 when we would run a command and question_flag is set.
742         * read.c (read_makefile): Don't mark makefiles as precious.  Just
743         like other targets, they can be left inconsistent and in need of
744         remaking by aborted commands.
746         * read.c (read_makefile): Write no error msg for -include file.
748 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
750         * commands.c (fatal_error_signal): Don't unblock signals.
752         * file.h (struct file): Change member `double_colon' from flag to
753         `struct file *'.
754         * read.c (record_files): Set double_colon pointer instead of flag.
755         * main.c (main): When disqualifying makefiles for updating, use
756         double_colon pointer to find all entries for a file.
757         * file.c (enter_file): If there is already a double-colon entry
758         for the file, set NEW->double_colon to that pointer.
759         (file_hash_enter): Use FILE->double_colon to find all entries to
760         set name.
761         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
762         (update_file): Use FILE->double_colon pointer to find all entries.
763         (f_mtime): Likewise.
764         (notice_finished_file): Propagate mtime change to all entries.
766         * variable.c (try_variable_definition): Return after abort.
768 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
770         * read.c (read_makefile): Remove unused variable.
771         (parse_file_seq): When removing an elt that is just `)', properly
772         fix up the previous elt's next pointer.
774 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
776         * configure.in: Do AC_SET_MAKE.
777         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
779 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
781         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
782         the search string is the empty string, find a match at the end of
783         each word (using end_of_token in place of sindex).
785         * misc.c (end_of_token): Don't treat backslashes specially; you
786         can no longer escape blanks with backslashes in export, unexport,
787         and vpath.  This was never documented anyway.
789 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
791         * read.c (read_makefile): Variable name for `define' is not just
792         first token; use whole rest of line and strip trailing blanks.
794 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
796         * Version 3.70.1.
798         * read.c (read_makefile): Add -d msg stating args.
800         * read.c (read_makefile): Use isspace to skip over leading
801         whitespace, and explicitly avoid skipping over tabs.  Don't want
802         to skip just spaces though; formfeeds et al should be skipped.
804         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
806         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
807         sizeof ar_name for max length to compare.
809         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
810         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
812         * main.c (main): Call user_access after setting `program', in case
813         it needs to use it in an error message.
815         * read.c (read_makefile): Ignore an empty line starting with a tab.
817 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
819         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
820         AC_COMPILE_CHECK that is now its contents.
822 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
824         * make.h: #undef strerror after #include <string.h>.
825         [! ANSI_STRING]: Declare strerror.
827 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
829         * misc.c (strerror): #undef any macro before function definition.
831 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
833         * variable.c (try_variable_definition): Calculate BEG before loop
834         to strip blanks by decrementing END.  Don't decr END to before BEG.
836         * read.c (read_makefile): Skip over leading space characters, but
837         not tabs, after removing continuations and comments (it used to
838         use isspace).
840 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
842         * variable.c (define_automatic_variables): In $(@D) et al, use
843         patsubst to remove trailing slash.
845         * commands.c (delete_target): New function, broken out of
846         delete_child_targets.  Check for archive members and give special msg.
847         (delete_child_targets): Use delete_target.
849 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
851         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
852         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
854 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
856         * GNUmakefile (tarfiles): Omit make-doc.
857         (make-$(version).tar): Include make.info*.
859 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
861         * compatMakefile (configure, config.h.in): Comment out rules.
863 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
865         * compatMakefile (binprefix, manprefix): New variables.
866         (instname): Variable removed.
867         (install): Use $({bin,man}prefix)make in place of $(instname).
868         File targets likewised renamed.
870 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
872         * Version 3.70 released.
874 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
876         * Version 3.69.3.
878         * read.c (parse_file_seq): Inside multi-word archive ref
879         translation loop, check NEW1==0 at end and break out of the loop.
881         * GNUmakefile (make-$(version).tar): Distribute install.sh.
882         * install.sh: New file.
884         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
885         cmds outside subshell parens, to avoid "command not found" msgs
886         from the shell.
888 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
890         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
891         Redirect output & error from get to /dev/null.
892         Fix reversed sense of test.
894 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
896         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
897         braces inside if condition command; some shells lose.
899 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
901         * Version 3.69.2.
903         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
904         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
906         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
908 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
910         * main.c (main): Cast result of pointer arith to unsigned int
911         before passing to define_variable for envars.  Matters when
912         sizeof(unsigned)!=sizeof(ptrdiff_t).
914 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
916         * configure.in: Add new check for SCCS_GET_MINUS_G.
917         * config.h.in: Add #undef SCCS_GET_MINUS_G.
918         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
919         place of `-G $@' in SCCS commands.
920         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
921         to "-G$@".
923         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
924         (so it goes in config.status), rather than afterward.
926         * ar.c (ar_member_date): Don't call enter_file on the archive file
927         if it doesn't exist (by file_exists_p).
929         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
930         with `$$dir/make.info' in install-info invocation (oops).
932         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
933         we do not unlink and free PATH.
935         * file.c (print_file_data_base): Fix inverted calculation for
936         average files per hash bucket.
938         * read.c (readline): When we see a NUL, give only a warning and
939         synthesize a newline to terminate the building line (used to
940         fatal).  Move fgets call into the loop condition, and after the
941         loop test ferror (used to test !feof in the loop).
943 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
945         * configure.in: Check for strerror in AC_HAVE_FUNCS.
947 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
949         Differentiate different flavors of missing makefile error msgs,
950         removing gratuitous `fopen: ' and giving caller for included makefiles.
951         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
952         (perror_with_name, pfatal_with_name): Use strerror instead of
953         replicating its functionality.
954         * read.c (read_makefile): Return int instead of void.
955         (read_all_makefiles, read_makefile): Change callers to notice zero
956         return and give error msg.
958 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
960         * Version 3.69.1.
962         * default.c: Put `-G $@' before $< in SCCS cmds.
964 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
966         * read.c (read_makefile): After trying a variable defn, notice if
967         the line begins with a tab, and diagnose an error.
969 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
971         * Version 3.69.
973 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
975         * Version 3.68.10.
977         * implicit.c (try_implicit_rule): Look for a normal rule before an
978         archive rule.
980 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
982         * function.c (expand_function: `sort'): Double NWORDS when it
983         overflows, instead of adding five.
985         * compatMakefile (clean): Remove loadavg.
987 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
989         * Version 3.68.9.
991         * file.h (NEW_MTIME): Define new macro.
992         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
993         current time returned from system.  Removed variable NOW.
994         * remake.c (notice_finished_file): Use NEW_MTIME in place of
995         current time here too.
997 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
999         * Version 3.68.8.
1001         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1002         cmds and !DEPS_CHANGED unless also !NOEXIST.
1004 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1006         * read.c (parse_file_seq): When converting multi-word archive
1007         refs, ignore a word beginning with a '('.
1009 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1011         * configure.in: Check for sys/timeb.h.
1012         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1014 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1016         * Version 3.68.7.
1018         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
1019         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
1020         TARGNAME to initialize PERCENTS[0].
1022 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1024         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1025         Remove AC_USG; it is no longer used.
1027         * file.c (print_file): New function, broken out of
1028         print_file_data_base.
1029         (print_file_data_base): Call it.
1030         * rule.c (print_rule): New function, broken out of
1031         print_rule_data_base.
1032         (print_rule_data_base): Call it.
1034 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1036         * default.c (install_default_suffix_rules): New function, broken
1037         out of install_default_implicit_rules.
1038         (install_default_implicit_rules): Move suffix rule code there.
1039         * make.h: Declare install_default_suffix_rules.
1040         * main.c (main): Call install_default_suffix_rules before reading
1041         makefiles.  Move convert_to_pattern call before
1042         install_default_implicit_rules.
1044         * job.h (struct child): Make `pid' member type `pid_t' instead of
1045         `int'.
1047         * compatMakefile (RANLIB): New variable, set by configure.
1048         (glob/libglob.a): Pass RANLIB value down to submake.
1050         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1051         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1052         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1053         defined but NOFILES_MAX is, define it to be that.
1055 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1057         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1058         is distributed.
1060 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1062         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1064 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1066         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1067         is another symbol for | in some shells.
1068         * main.c (main): Add it to CMD_DEFS quoting list as well.
1070 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1072         * job.c (construct_command_argv_internal): Remove '=' from
1073         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1074         first word without an unquoted '='.
1076         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1078 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1080         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1082         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1084         * commands.c (delete_child_targets): Don't delete phony files.
1086         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1087         see a `+' at the beginning of the command line.
1089 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1091         * Version 3.68.6.
1093 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1095         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1097 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1099         * expand.c (variable_expand): Fatal on an unterminated reference.
1101 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1103         * Version 3.68.5.
1105         * variable.c (define_automatic_variables): Define new o_default
1106         variable `MAKE_VERSION' from version_string and remote_description.
1108         * make.h (version_string, remote_description): Declare these here.
1109         * main.c: Don't declare version_string.
1110         (print_version): Don't declare remote_description.
1112 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1114         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1115         before restoring the old pointer.
1117 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1119         * compatMakefile ($(objs)): Depend on config.h.
1121         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1123         * configure.in: Touch stamp-config after AC_OUTPUT.
1125 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1127         * Version 3.68.4.
1129 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1131         * make.h: Include <config.h> instead of "config.h".
1133 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1135         * main.c (main): Make all variables interned from ENVP be v_export.
1136         * variable.c (try_variable_definition): In v_default case, don't
1137         check for an o_file variable that `getenv' finds.
1139         * job.c (reap_children): New local variable ANY_LOCAL; set it
1140         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1142         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1144         * function.c (expand_function): #if 0 out freeing of ENVP since it
1145         is environ.
1147 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1149         * Version 3.68.3.
1151         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1152         * job.c (reap_children): Scan the chain for remote children and
1153         never call remote_status if there are none.
1155         * function.c (expand_function: `shell'): #if 0 out calling
1156         target_environment; just set ENVP to environ instead.
1158         * job.c (reap_children): Check for negative return from
1159         remote_status and fatal for it.
1160         When blocking local child wait returns 0, then try a blocking call
1161         to remote_status.
1163 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1165         * compatMakefile (clean): Delete make.info* and make.dvi here.
1166         (distclean): Not here.
1168         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1169         compilers that don't like enum values used as ints.
1171 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1173         * compatMakefile (loadavg): Add $(LOADLIBES).
1175 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1177         * Version 3.68.2.
1179         * compatMakefile (loadavg, check-loadavg): New targets.
1180         (check): Depend on check-loadavg.
1182         * compatMakefile (glob/libglob.a): Depend on config.h.
1184         * misc.c (log_access): Write to stderr instead of stdout.
1186 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1188         * Version 3.68.1.
1190 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1192         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1193         <unistd.h> #ifdef HAVE_UNISTD_H.
1195         * compatMakefile (.PHONY): Put after `all' et al.
1197         * configure.in: Add AC_IRIX_SUN.
1199 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1201         * Version 3.68.
1203 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1205         * Version 3.67.8.
1207 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1209         * Version 3.67.7.
1211         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
1212         Run install-info script if present.
1214 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1216         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
1218         * configure.in: Add AC_STAT_MACROS_BROKEN.
1220 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1222         * Version 3.67.6.
1224         * read.c (read_makefile): Recognize directive `-include', like
1225         `include' but sets RM_DONTCARE flag.
1227         * variable.c (target_environment): If FILE is nil, use
1228         current_variable_set_list in place of FILE->variables.
1229         * function.c (expand_function: `shell'): Get an environment for
1230         the child from target_environment instead of using environ.
1232         * dep.h: Declare read_all_makefiles here.
1233         (RM_*): Define new enum constants.
1234         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
1235         Treat it as a bit mask containing RM_*.
1236         (read_all_makefiles): For default makefiles, set D->changed to
1237         RM_DONTCARE instead of 1.
1238         * main.c: Don't declare read_all_makefiles here.
1239         (main): Check `changed' member of read_makefiles elts for RM_*
1240         flags instead of specific integer values.
1242 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1244         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
1246 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1248         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
1249         as well as VPATH.
1250         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
1251         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
1253         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
1254         PERCENTS, whose storage is not consumed by create_pattern_rule.
1256         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
1258 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1260         * Version 3.67.5.
1262         * rule.c (max_pattern_targets): New variable.
1263         (count_implicit_rule_limits): Compute its value.
1264         * rule.h: Declare it.
1265         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
1266         times bigger.  Move adding new TRYRULES elt inside the inner
1267         targets loop, so each matching target gets its own elt in MATCHES
1268         and CHECKED_LASTSLASH.
1270         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
1271         instead of just `file' in error msg.
1273 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1275         * job.c (construct_command_argv): Turn off
1276         --warn-undefined-variables around expansion of SHELL and IFS.
1277         * read.c (tilde_expand): Likewise for HOME.
1278         (read_all_makefiles): Likewise for MAKEFILES.
1279         * vpath.c (build_vpath_lists): Likewise for VPATH.
1281         * main.c (warn_undefined_variables_flag): New flag variable.
1282         (switches): Add --warn-undefined-variables.
1283         * make.h (warn_undefined_variables_flag): Declare it.
1284         * expand.c (warn_undefined): New function.
1285         (reference_variable): Call it if the variable is undefined.
1286         (variable_expand): In substitution ref, call warn_undefined if the
1287         variable is undefined.
1289         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
1290         `%.tex: %.w %.ch' rules.
1291         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
1292         (default_suffixes): Add `.ch'.
1294 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1296         * default.c (default_suffixes): Replace `.cweb' with `.w'.
1297         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
1298         and `.w.tex'.
1300 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1302         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
1304 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1306         * Version 3.67.4.
1308         * read.c (multi_glob): Don't free OLD and OLD->name in the
1309         FOUND!=0 fork.  Use new block-local variable F instead of
1310         clobbering OLD.
1312         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
1313         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
1314         contains no metacharacters.
1316 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1318         * ar.c (ar_glob{_match,_alphacompare}): New function.
1320         * dep.h [! NO_ARCHIVES]: Declare it.
1321         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
1323         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1324         multi_glob (which doesn't take a 3rd arg).
1325         * rule.c (install_pattern_rule): Likewise.
1326         * default.c (set_default_suffixes): Here too.
1327         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
1329         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
1330         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
1332 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1334         * compatMakefile (installdirs): Actually pass directory names.
1335         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
1336         if it fails, echo a warning msg, but don't make the rule fail.
1338         * read.c (tilde_expand): New function, broken out of tilde_expand.
1339         (multi_glob): Call it.
1340         (construct_include_path): Expand ~ in directory names.
1341         * dep.h: Declare tilde_expand.
1342         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
1343         (main): Expand ~ in -C args.
1344         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
1346 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1348         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
1350         * main.c (main): Put result of alloca in temporary variable with
1351         simple assignment, to make SGI compiler happy.
1353 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1355         * Version 3.67.3.
1357         * main.c (main): Before re-execing, remove intermediate files, and
1358         print the data base under -p.  Sexier debugging message.
1360         * implicit.c (pattern_search): Allocate an extra copy of the name
1361         of a winning intermediate file when putting it in FOUND_FILES.
1363 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1365         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
1366         multi_glob (which doesn't take a 3rd arg).
1368         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
1369         chars within D_NAMLEN that are NULs.
1371         * main.c (decode_switches): Don't savestring ARGV[0] to put it
1372         into `other_args'.
1373         For string switch, don't savestring `optarg'.
1374         (main): Don't free elts of makefiles->list that are "-".
1375         Use alloca'd rather than savestring'd storage for elts of
1376         makefiles->list that are temporary file names.
1377         * read.c (read_all_makefiles): Don't free *MAKEFILES.
1378         * file.c (enter_file): Don't strip `./'s.
1379         * main.c (enter_command_line_file): New function.
1380         (main): Use it in place of enter_file for command-line goals from
1381         other_files, and for old_files and new_files.
1383 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1385         * Version 3.67.2.
1387         * compatMakefile (.SUFFIXES): Add .info.
1388         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
1389         else in $srcdir.  Use basename to remove dir name from installed name.
1391 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1393         * implicit.c (pattern_search): When interning FOUND_FILES, try
1394         lookup_file first; if found, free the storage for our copy of the name.
1396 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1398         * Version 3.67.1.
1400         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
1401         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
1403 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1405         * rule.c (convert_suffix_rule): New function.
1406         (convert_to_pattern): Use it instead of doing all the work here
1407         several times.
1408         For target suffix `.a', generate both the archive magic rule and
1409         the normal rule.
1411         * compatMakefile (distclean): Remove stamp-config.
1413 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1415         * Version 3.67.
1417         * file.c (remove_intermediates): Don't write extra space after `rm'.
1419         * main.c (struct command_switch.type): Remove `usage_and_exit'.
1420         (print_usage_flag): New variable.
1421         (switches: --help): Make type `flag', to set print_usage_flag.
1422         (init_switches): Remove `usage_and_exit' case.
1423         (decode_switches): Likewise.
1424         (decode_switches): Print usage if print_usage_flag is set.
1425         When printing usage, die with status of BAD.
1426         (main): Die with 0 if print_version_flag.
1428 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1430         * Version 3.66.
1432 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1434         * compatMakefile (installdirs): New target.
1435         (install): Depend on it.
1437 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1439         * Version 3.65.2.
1441 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1443         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
1444         set LASTPATH to PATH, not NEXT.
1446         * dir.c (read_dirstream): Break out of loop after incrementing
1447         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
1448         dereference DS->contents->files[DIRFILE_BUCKETS].
1450         * read.c (read_makefile): Clear no_targets after reading a
1451         targetful rule line.
1453         * main.c (main): If print_version_flag is set, exit after printing
1454         the version.
1455         (switches): Change --version docstring to say it exits.
1457         * make.h [butterfly]: #undef POSIX.
1459 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1461         * Version 3.65.1.
1463         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
1464         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
1466         * function.c (handle_function): Use fatal instead of
1467         makefile_fatal when reading_filename is nil.
1469         * configure.in: Add AC_GETGROUPS_T.
1470         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
1472 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1474         * Version 3.65.
1476 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1478         * function.c (handle_function): Fatal for unmatched paren.
1480 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1482         * Version 3.64.3.
1484         * commands.c (handling_fatal_signal): New variable.
1485         (fatal_error_signal): Set it.
1486         * job.c (reap_children): Avoid nonreentrant operations if that is set.
1487         * make.h: Declare handling_fatal_signal.
1489         * expand.c (reference_variable): New function, snippet of code
1490         broken out of simple-reference case of variable_expand.
1491         (variable_expand): Use it for simple refs.
1492         (variable_expand): When checking for a computed variable name,
1493         notice a colon that comes before the final CLOSEPAREN.  Expand
1494         only up to the colon, and then replace the pending text with a
1495         copy containing the expanded name and fall through to subst ref
1496         handling.
1497         (variable_expand): Don't bother expanding the name if a colon
1498         appears before the first $.
1499         (expand_argument): Use alloca instead of savestring.
1500         (variable_expand): For subst ref, expand both sides of = before
1501         passing to [pat]subst_expand.  Use find_percent instead of lindex
1502         to check the lhs for a %.
1504 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1506         * Version 3.64.2.
1508 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1510         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
1512         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
1513         not to multi_glob.
1515 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1517         * Version 3.64.1.
1519         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
1520         we read the member name in any of the fashions that allow it to be
1521         arbitrarily long.  Pass its negation to FUNCTION.
1522         (describe_member): Take TRUNCATED from ar_scan and print it.
1523         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
1524         the first sizeof (struct ar_hdr.ar_name) chars.
1525         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
1526         * ar.c (ar_member_date_1): Likewise.
1528 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1530         * job.c (reap_children): Before calling start_job_command to start
1531         the next command line, reset C->remote by calling start_remote_job_p.
1533 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1535         * arscan.c (ar_scan): New local var NAMEMAP.
1536         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
1537         flag IS_NAMEMAP.  When extracting the member name, always put a
1538         null at its end first.  If the name is "//" or "/ARFILENAMES", set
1539         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
1540         like " /N", get full name from NAMEMAP+N.
1541         Else if NAME looks like "#1/N", read N chars from the
1542         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
1543         the elt's data into alloca'd NAMEMAP.
1544         (ar_name_equal): #if 0 truncating code.
1546         * make.h: Don't declare vfork at all.  It returns int anyway,
1547         unless <unistd.h> declared it; and we conflicted with some systems.
1549         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
1550         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
1551         define it to something like "-no-print-directory".
1552         Use %g format instead of %f for floating-valued things.
1554 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1556         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
1557         to change remote-%.dep to remote-stub.dep.
1559 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1561         * Version 3.64.
1563 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1565         * compatMakefile (install): Remove - prefix from chgrp+chmod.
1567         * Version 3.63.8.
1569 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1571         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
1572         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
1573         else to "get".
1574         * default.c (default_variables): Set GET to macro SCCS_GET.
1576         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
1577         if nonzero.  I hope this is the last time this argument is added
1578         or removed.
1579         (read_makefile): Pass it 1 when parsing include file names.
1580         Pass it 1 when parsing target file names.
1581         Pass it 1 when parsing static pattern target pattern names.
1582         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
1583         * default.c (set_default_suffixes): Pass it 1 when parsing
1584         default_suffixes.
1585         * function.c (string_glob): Pass it 0 here.
1587 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1589         * misc.c (log_access): New function.
1590         ({init,user,make,child}_access): Call it.
1591         (child_access): Abort if !access_inited.
1593         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
1594         single-letter option.
1595         (init_switches, decode_switches, define_makeflags): An option with
1596         no single-letter version is no longer indicated by a value of -1;
1597         instead a value that is !isalnum.
1598         (init_switches): Don't put such switches into the string, only
1599         into the long_option table.
1601         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
1603         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
1604         bsdcc defined WIF* to use union wait.
1606         * main.c (struct command_switch): Change member `c' to type int.
1607         (switches): Make const.
1608         (decode_switches): Use `const struct command_switch *'.
1609         (define_makeflags): Likewise.
1611         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
1613 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1615         * Version 3.63.7.
1617         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
1618         Removed AC_MEMORY_H.
1619         * make.h [USG, NeXT]: Don't test these.
1620         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
1621         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
1622         [! ANSI_STRING]: Put decls of bcopy et al here.
1623         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
1624         [HAVE_SIGSETMASK]: Test this rather than USG.
1625         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
1626         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
1627         It doesn't hurt to do both if they are both defined, and testing
1628         USG is useless.
1629         * dir.c: Rationalize directory header conditionals.
1630         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
1632         * default.c (default_suffixes): Add `.txinfo'.
1633         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
1635         * variable.c (try_variable_definition): Replace RECURSIVE flag
1636         with enum FLAVOR, which can be simple, recursive, or append.
1637         Recognize += as append flavor.  Set new variable VALUE in a switch
1638         on FLAVOR.  For append flavor, prepend the variable's old value.
1639         If the variable was previously defined recursive, set FLAVOR to
1640         recursive; if it was defined simple, expand the new value before
1641         appending it to the old value.  Pass RECURSIVE flag to
1642         define_variable iff FLAVOR == recursive.
1644         * variable.c (try_variable_definition): Use alloca and bcopy for
1645         NAME, instead of savestring.  Might as well use stack storage
1646         since we free it immediately anyway.
1648 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1650         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
1652         * main.c (define_makeflags): Rename `struct flag' member `switch'
1653         to `cs', which is not a reserved word.
1655 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1657         * job.c (new_job): Call start_waiting_jobs first thing.
1658         (start_waiting_job): Changed return type from void to int.
1659         Return 0 when putting the child on the waiting_jobs chain.
1660         (start_waiting_jobs): Don't check load and job_slots here.
1661         Always take a job off the chain and call start_waiting_job on it;
1662         give up and return when start_waiting_job returns zero.
1664         * main.c (define_makeflags: struct flag): Change member `char c' to
1665         `struct command_switch *switch'.
1666         (ADD_FLAG): Set that to CS instead of CS->c.
1667         If CS->c is -1, increment FLAGSLEN for the long name.
1668         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
1669         the long name instead.
1671         * compatMakefile (stamp-config): New target of old config.h rule.
1672         Touch stamp-config after running config.status.
1673         (config.h): Just depend on stamp-config, and have empty commands.
1675 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1677         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
1679         * configure.in (AC_HAVE_FUNCS): Check for psignal.
1681 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1683         * main.c (long_option_aliases): Remove "new"; it is already an
1684         unambiguous prefix of "new-file".
1686 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1688         * Version 3.63.6.
1690 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1692         * vpath.c (selective_vpath_search): When adding the
1693         name-within-directory at the end of NAME, and we don't add a
1694         slash, don't copy FILENAME in one char too far into NAME.
1696         * variable.c (define_automatic_variables): Find default_shell's
1697         length with strlen, not numerology.
1699 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1701         * main.c (define_makeflags): Add the elts of a string option in
1702         reverse order, so they come out right when reversed again.
1704 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1706         * compatMakefile (make.info): Use `-o make.info'.
1708 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1710         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
1711         reflect new use.
1712         (objs): Replace remote.o with remote-$(REMOTE).o.
1713         (srcs): Replace remote.c with remote-$(REMOTE).c.
1714         (remote.o): Rule removed.
1716         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
1717         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
1718         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
1719         * build.template (REMOTE): New var; set to @REMOTE@.
1720         (objs): Add remote-${REMOTE}.o.
1722 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1724         * Version 3.63.5.
1726         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
1727         "Rejecting impossible" -d msg.
1729         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
1730         mod'd values there; never mod {OLD,NEW}HASH.
1732 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1734         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
1736         * compatMakefile (VPATH): Set this to @srcdir@.
1737         (srcdir): Set this to $(VPATH).
1739         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
1740         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
1741         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
1743         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
1745         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
1747 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1749         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
1750         as the sed delimiter char.
1752 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1754         * Version 3.63.4.
1756         * rule.h (struct rule): Removed `subdir' member.
1757         * rule.c (new_pattern_rule): No need to clear it.
1758         (count_implicit_rule_limits): Set the `changed' flag in each dep
1759         that refers to a nonexistent directory.  No longer set rule-global
1760         `subdir' flag with that information.
1761         (print_rule_data_base): Don't record info on `subdir' flags.
1763         * implicit.c (pattern_search): Check the DEP->changed flag rather
1764         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
1765         if it is set, the file might exist even though the DEP->changed
1766         flag is set.
1768         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
1769         name arg to dir_file_exists_p to check for existence of directory.
1771         * implicit.c (pattern_search): Inside dep-finding loop, set
1772         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
1773         rather than computing it anew.
1775         * commands.c (set_file_variables): Must alloca space for PERCENT
1776         and copy it, to avoid leaving the trailing `)' in the value.
1778         * misc.c (remove_comments): Fixed backslash-checking loop
1779         condition to allow it to look at the first char on the line.
1780         P2 >= LINE, not P2 > LINE.
1782         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
1783         $@, rm $@.old and mv $@ to $@.old.
1785         * variable.c (try_variable_definition): Take new args FILENAME and
1786         LINENO.  Fatal if the variable name is empty.
1787         * read.c (read_makefile): Change callers.
1788         * main.c (main): Likewise.
1790         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
1791         that configure will replace with the group owning /dev/kmem.
1793 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1795         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
1796         selective_vpath_search.
1797         (selective_vpath_search): Take second arg MTIME_PTR.
1798         If the dir cache thinks a file exists, stat it to make sure, and
1799         put the modtime in *MTIME_PTR.
1800         * remake.c (library_search): Take second arg MTIME_PTR.
1801         When we find a match, record its mtime there.
1802         Pass MTIME_PTR through to vpath_search to do same.
1803         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
1804         store it in FILE->last_mtime if set nonzero.
1805         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
1807         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
1808         so globbing looks somewhere it will find things.
1810         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
1811         not `$(srcdir)/make.info*'; no need to use basename.
1813 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1815         * Version 3.63.3.
1817         * compatMakefile (install): Add missing ;\s.
1819         Make -, @, and + prefixes on a pre-expanded command line affect
1820         all lines in the expansion, not just the first.
1821         * commands.h (struct commands): Replace `lines_recurse' member
1822         with `lines_flags'.
1823         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
1824         that flag byte.
1825         * commands.c (chop_commands): Set `lines_flags' instead of
1826         `lines_recurse'.  Record not only + but also @ and - prefixes.
1827         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
1828         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
1829         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
1830         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
1831         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
1832         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
1834         * remake.c (update_goal_chain): Set G->file to its prev after
1835         checking for G being finished, since that check needs to examine
1836         G->file.
1838         * configure.in (union wait check) [HAVE_WAITPID]: Try using
1839         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
1840         don't work together, we should not use union wait.
1842         * Version 3.63.2.
1844         * remake.c (update_goal_chain): When G->file->updated, move
1845         G->file to its prev.  We aren't finished until G->file is nil.
1847 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1849         * main.c (starting_directory): New global variable.
1850         (main): Set it to cwd after doing -Cs.
1851         (log_working_directory): Use it, rather than computing each time.
1852         * make.h: Declare it.
1854         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
1856         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
1857         ARGV, rather than LEN words plus one byte.
1859 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1861         * compatMakefile ($(bindir)/$(instname)): Put - before
1862         install_setgid command line, so its failure won't be an error.
1863         (infodir): New variable.
1864         (install): Depend on $(infodir)/$(instname).info.
1865         ($(infodir)/$(instname).info): New target.
1867         * read.c (read_makefile): If FILENAMES is nil when we see a line
1868         starting with a tab, don't treat it as a command.  Just fall
1869         through, rather than giving an error.
1871         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
1872         command line, don't clear it before continuing.  We want
1873         subsequent command lines to be ignored as well.
1875         * job.c (new_job): Before expanding each command line, collapse
1876         backslash-newline combinations that are inside var or fn references.
1878 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1880         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
1882         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
1884         * job.c [POSIX] (unblock_sigs): Made global.
1885         [!POSIX] (unblock_sigs): Move defns to job.h.
1886         * job.h [POSIX] (unblock_sigs): Declare.
1888 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1890         * read.c (read_makefile): In vpath parsing, after finding the
1891         pattern token, take entire rest of line as the search path, not
1892         just the next token.
1894         * compatMakefile (remote.o): Depend on remote-*.c.
1896 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1898         * commands.c (set_file_variables): Don't define any F or D versions.
1899         * variable.c (define_automatic_variables): Define them here as
1900         recursively-expanded variables that use the dir and notdir funcs.
1902         * variable.c (target_environment): In v_default case, don't export
1903         o_default or o_automatic variables.
1905         * configure.in (union wait check): Remove ` and ' inside C code;
1906         they confuse the shell script.
1908 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1910         * Version 3.63.1.
1912         * vpath.c (construct_vpath_list): When skipping further processing
1913         of an elt that is ".", don't also skip the code that pushes P past
1914         the next separator.
1916         * compatMakefile (distclean): Don't remove make-*.
1918         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
1919         defined.  If one cannot use WEXITSTATUS with a `union wait'
1920         argument, we don't want to believe the system has `union wait' at all.
1922         * remake.c (update_file): Do nothing to print "up to date" msgs.
1923         (update_goal_chain): Do it here instead.
1924         Use the `changed' flag of each goal's `struct dep' to keep track
1925         of whether files_remade (now commands_started) changed around a
1926         call to update_file for that goal.
1927         When a goal is finished, and its file's update_status is zero (i.e.,
1928         success or nothing done), test the `changed' flag and give an "up
1929         to date" msg iff it is clear.
1930         * make.h (files_remade): Renamed to commands_started.
1931         * remake.c: Changed defn.
1932         (update_goal_chain): Changed uses.
1933         * job.c (start_job_command): Increment commands_started here.
1934         (reap_children): Not here.
1936         * remake.c (update_goal_chain): Don't do anything with files'
1937         `prev' members.  update_file now completely handles this.
1939         * variable.c (target_environment): Don't expand recursive
1940         variables if they came from the environment.
1942         * main.c (define_makeflags): For flags with omitted optional args,
1943         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
1944         so stored cannot have more flags appended to the same word.
1946 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1948         * variable.c (print_variable_set): In vars/bucket calculation,
1949         don't spuriously multiply by 100.
1951         * Version 3.63.
1953         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
1954         Don't define if already defined.
1956         * remake.c (update_file): Don't keep track of the command_state before
1957         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
1958         and don't test it to decide to print the "is up to date" msg.
1959         Testing for files_remade having changed should always be sufficient.
1960         The old method lost when we are called in the goal chain run on a
1961         makefile, because the makefile's command_state is already
1962         `cs_finished' from the makefile chain run.
1964         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
1966         * configure.in: Rewrote wait checking.
1967         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
1968         Use AC_HAVE_FUNCS to check for waitpid and wait3.
1969         Use a compile check to test just for `union wait'.
1970         * job.c: Rewrote conditionals accordingly.
1971         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
1972         [HAVE_WAIT3]: Likewise.
1973         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
1975         * configure.in: Set CFLAGS and LDFLAGS before all checks.
1977         * dir.c: Add static forward decls of {open,read}_dirstream.
1979 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1981         * Version 3.62.31.
1983         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
1985         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
1986         * build.template (CFLAGS, LDFLAGS): Same here.
1987         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
1988         Set them to -g if not defined in the environment.
1990         * remake.c (library_search): Use LIBNAME consistently, setting it
1991         only once, to be the passed name sans `-l'.
1992         Pass new var FILE to be modified by vpath_search.
1994 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1996         * Version 3.62.30.
1998         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
1999         job_slots.
2001         * configure.in: Add AC_CONST for the sake of getopt.
2003         * read.c (read_makefile): Continue after parsing `override'
2004         directive, rather than falling through to lossage.
2005         Check for EOL or blank after "override define".
2007         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2009 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2011         * Version 3.62.29.
2013         * main.c (define_makeflags): After writing everything into
2014         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2015         just wrote " -".  Always terminate the string at *P.
2017         * remake.c (library_search): When constructing names in std dirs,
2018         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2019         buffer we are writing into!).
2021 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2023         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2024         define" when IGNORING is true.
2026         * compatMakefile (distclean): Remove config.status and build.sh.
2028 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2030         * Version 3.62.28.
2032         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2033         (char *).
2035         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2037         * variable.c (define_automatic_variables): Override SHELL value for
2038         origin o_env_override as well as o_env.
2040         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
2041         add the names of the glob objects (w/subdir) to %objs%.
2042         * build.template (globobjs): Removed.
2043         Take basename of $objs before linking.
2045 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2047         * Version 3.62.27.
2049         * configure.in (AC_OUTPUT): Also edit build.sh.
2050         * build.template: New file.
2051         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2052         (make-$(version).tar.Z): Depend on build.sh.in.
2054         * main.c (die): Call print_data_base if -p.
2055         (main): Don't call it here.
2057         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2058         into -DHAVE_CONFIG_H.
2060 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2062         * Version 3.62.26.
2064         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2065         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2066         * compatMakefile (install_setgid): New var, set by configure.
2067         (install): Install setgid $(group) only if $(install_setgid) is true.
2069 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2071         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2072         message saying that load limits are not supported.
2074         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2075         not try to use PATH's next link after freeing PATH.
2077         * main.c (define_makeflags): Rewritten; now handles string-valued
2078         option, and has no arbitrary limits.
2079         (switches): Set `toenv' flag for -I and -v.
2081         * main.c (decode_env_switches): Cast return value of alloca to char *.
2083         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2084         setre[gu]id in place of set[gu]id.
2086 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2088         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2089         origin o_default.
2091         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2092         Testing STDC_HEADERS should be sufficient.
2094         * job.h: Declare start_waiting_jobs.
2096         * read.c (read_makefile): Add missing parens in if stmt that find
2097         conditional directives.
2099         * main.c (main): Declare init_dir.
2100         * implicit.c (pattern_search): Always use two % specs in a
2101         DEBUGP2, and always pass two non-nil args.
2102         Cast field width args to int.
2103         Add missing parens in !RULE->subdir if stmt.
2104         * function.c (expand_function, patsubst_expand): Add parens around
2105         assignments inside `while' stmts.
2106         * commands.c (print_commands): Cast field width args to int.
2108         * read.c (do_define): Cast return value of alloca to (char *).
2110         * main.c (init_switches): New function, broken out of decode_switches.
2111         (decode_switches): Take new arg ENV.  If set, ignore non-option
2112         args; print no error msgs; ignore options with clear `env' flags.
2113         (decode_env_switches): Rewritten to chop envar value into words
2114         and pass them to decode_switches.
2115         (switches): Set `env' flag for -I and -v.
2117         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2119 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2121         * Version 3.62.25.
2123         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2124         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2125         we don't need these anyway.
2127         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2128         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2129         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2130         but its set[gu]id functions aren't; its setre[gu]id functions work.
2132         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2134         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2136         * configure.in: Call AC_PROG_CC.
2137         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2139         * compatMakefile: Add .NOEXPORT magic target.
2141 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2143         * main.c (print_version): Updated copyright to include 93.
2145 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2147         * make.h [_AIX]: Don't declare alloca.
2149 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2151         * Version 3.62.24.
2153         * compatMakefile (objs): Add signame.o.
2154         (srcs): Add signame.[ch].
2156         * compatMakefile (srcs): Add config.h.in.
2157         (remote.o): Add -I. before -I$(srcdir).
2159 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2161         * Version 3.62.23.
2163         * read.c (readline): Fatal when LEN==0, indicating a line starting
2164         with a NUL.
2165         (readline): Take new arg LINENO, for use in error msg.
2166         (read_makefile, do_define): Pass it.
2168         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2169         (.c.o): Add -I. before -I$(srcdir).
2171 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2173         * read.c (read_makefile): Accept and ignore a rule with no targets.
2175         * compatMakefile (ALLOCA_SRC): New variable.
2176         (srcs): Include its value.
2178         * read.c (struct conditional): Renamed member `max_ignoring' to
2179         `allocated'; added new member `seen_else'.
2180         (conditional_line): Initialize seen_else flag when starting an `if...';
2181         set it when we see an `else'; fatal if set when we see `else'.
2182         (read_makefile): Fatal "missing `endif'" if there are any pending
2183         conditionals, not just if we are still ignoring.
2185 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2187         * compatMakefile (manext): Set to 1, not l.
2188         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2190         * file.c (file_hash_enter): Don't call uniquize_deps here.
2191         * read.c (record_files): Likewise.
2192         * implicit.c (pattern_search): Likewise.
2193         * commands.c (set_file_variables): Call it only here.
2195         * default.c (default_variables) [__convex__]: FC=fc.
2197         * variable.c (target_environment): Expand the values of recursively
2198         expanded variables when putting them into the environment.
2199         * expand.c (recursively_expand): Made global.
2200         * make.h (recursively_expand): Declare it.
2202         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
2203         when a dep's command_state is cs_running or cs_deps_running.
2205         * read.c (read_makefile): Changed error msg for spurious cmds to
2206         not say "first target".
2208 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2210         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
2211         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
2212         * compatMakefile (config.h, configure, config.h.in): New rules.
2213         (defines): Removed @DEFS@.
2215 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2217         * compatMakefile (realclean): Just depend on distclean; no cmds.
2218         (distclean): Do what realclean did before; also remove Makefile and
2219         config.h; don't remove configure.
2220         (info, dvi): New targets; depend on make.{info,dvi}.
2221         (doc): Removed target.
2222         (MAKEINFO, TEXI2DVI): New vars.
2223         (make.info, make.dvi): Use them instead of explicit cmds.
2225 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2227         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
2229 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2231         * main.c (long_option_aliases): Add --new-file alias for -W.
2233         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
2234         to CXXFLAGS.
2236         * read.c (do_define): Expand the variable name before using it.
2238         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
2239         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
2241         * remake.c (library_search): Search for libNAME.a in cwd; look in
2242         vpath before looking in standard dirs, not after.
2243         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
2245 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2247         * default.c (default_pattern_rules, default_terminal_rules): Added
2248         brackets around initializers.
2250         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
2251         (try_variable_definition): Expand the name before defining the var.
2253         * job.c (init_siglist): Removed function.
2254         Removed decl of `sys_siglist'.
2255         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
2256         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
2257         only under these conditions.
2258         * main.c (main): Don't declare init_siglist.
2259         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
2261 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2263         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
2264         nil; instead just set it to MOREDEPS.
2266 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2268         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
2269         loop that sets MAXELEM.
2271 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2273         * Version 3.62.22.
2275 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2277         * job.c (start_job_command): Under -n, increment files_remade after
2278         processing (i.e., printing) all command lines.
2280 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2282         * read.c (record_files): Append new deps if this rule has no
2283         commands; prepend them to existing deps if this rule has no commands.
2285         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
2287         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
2288         (read_makefile): Changed callers.
2289         * function.c (string_glob): Likewise.
2290         * rule.c (install_pattern_rule): Likewise.
2292 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2294         * remake.c (files_remade): Made global.
2295         (notice_finished_file): Don't increment files_remade here; this
2296         function gets called in many situations where no remaking was in
2297         fact done.
2298         * job.c (reap_children): Do it here instead, when we know that
2299         actual commands have been run for the file.
2300         * make.h (files_remade): Declare it.
2302 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2304         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
2305         separate elts in the search path.
2307         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
2308         The search path can contain spaces now.
2310 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2312         * compatMakefile (check): New target; no-op.
2314         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
2315         testing for OLDHASH==0 but before using the value.
2316         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
2317         to file_hash_enter.
2319         * file.c (rename_file): Notice when OLDFILE->cmds came from
2320         default.c, and don't try to print ->filename in that case.
2322 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2324         * remake.c (update_file): Don't process F->also_make here.
2325         (notice_finished_file): Don't process FILE->also_make if no attempt
2326         to update FILE was actually made.
2327         Fixed to call f_mtime directly to refresh their modtimes.
2329 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2331         * read.c (find_percent): Don't increment P again after skipping
2332         an escaped %.
2334         * expand.c (variable_expand): In call to patsubst_expand, don't
2335         find `%'s ourselves; let that function do it.
2337         * read.c (read_makefile: record_waiting_files): Don't call
2338         record_files if FILENAMES is nil.
2339         (read_makefile): All alternatives in the parsing, except for rule
2340         lines, fall through to the end of the loop.  At the end of the
2341         loop, do record_waiting_files so we notice later spurious cmds.
2343 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2345         * variable.c (define_automatic_variables): Free old value of SHELL
2346         before replacing it.
2348 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2350         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
2352         * dir.c (open_dirstream): Cast return value to __ptr_t.
2354         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
2356         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
2357         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
2358         Define as (get_path_max ()).
2359         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
2360         [! PATH_MAX] (get_path_max): Declare fn.
2361         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
2363 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2365         * Version 3.62.21.
2367         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
2368         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2369         SYS_SIGLIST_DECLARED.
2371         * dir.c (file_impossible): When initializing DIR->contents, set
2372         DIR->contents->dirstream to nil.
2374         * compatMakefile (GLOB): Define new variable.
2375         (objs): Use it, rather than glob/libglob.a explicitly.
2377         * read.c (parse_file_seq): When stripping "./", handle cases like
2378         ".///foo" and "./////".
2379         * file.c (lookup_file, enter_file): Likewise.
2381 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2383         * dir.c (struct dirstream, {open,read}_dirstream): New
2384         data type and functions to read a directory sequentially.
2385         (init_dir): New function to hook it into glob.
2386         * main.c (main): Call init_dir.
2388         * compatMakefile (objs): Added glob/libglob.a.
2389         * configure.in: Remove code to test for glob.
2391 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2393         * read.c (record_files): Generalized test for NAME pointing
2394         somewhere into F->name.
2396         * variable.c (define_variable_in_set): Free old value when replacing.
2398         * read.c (do_define): Free the linebuffer before returning.
2399         (record_files): When clearing .SUFFIXES deps, free their data.
2400         (multi_glob): Free OLD and its data when replacing it with results
2401         of glob run.
2403         * commands.c (set_file_variables): Use alloca in place of xmalloc
2404         for temp space for $^, $?, et al.
2406         * dir.c (struct directory): New member `contents' replaces `files'
2407         and `dirstream'.
2408         (struct directory_contents): New type.
2409         (directories_contents): New hash table.
2410         (dir_struct_file_exists_p): Take a struct directory_contents.
2411         (dir_file_exists_p): Pass it the `contents' member of the dir found.
2412         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
2413         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
2414         (dir_file_exists_p, find_directory): Change all callers.
2415         (file_impossible): Use DIR->contents, initializing it if nil.
2416         (print_dir_data_base): Use DIR->contents, and print out device and
2417         inode numbers with each directory.
2419         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
2420         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
2421         (DIRFILE_BUCKETS): Decrease to 107.
2422         (find_directory): Allocate and zero a multiple of
2423         sizeof (struct dirfile *), not of sizeof (struct dirfile).
2424         (dir_struct_file_exists_p): New function, nearly all code from
2425         dir_file_exists_p.
2426         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
2427         * vpath.c (selective_vpath_search): Remove redundant
2428         dir_file_exists_p call.
2430         * configure.in: Comment out glob check; always use our code.
2432 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2434         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2435         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
2436         do have it.
2438 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2440         * main.c (main): Don't do -w automatically if -s.
2442 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2444         * main.c (printed_version): Move variable inside print_version.
2445         (print_version): Return immediately if printed_version is set.
2446         (die): Don't test printed_version here.
2447         (decode_switches): Under -v, do print_version before giving usage.
2448         (DESCRIPTION_COLUMN): New macro.
2449         (decode_switches): Use it when printing the usage message.
2450         Leave at least two spaces between options and their descriptions.
2452 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2454         * Version 3.62.20.
2456 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2458         * read.c (read_makefile): Save errno value from trying to open
2459         FILENAME, and restore it before erring; otherwise we get the errno
2460         value from the last elt of the search path.
2462 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2464         * main.c (long_option_aliases): Add --stop for -S.
2466         * read.c (word1eq): Do strncmp before dereferencing someplace that
2467         may be out in space.
2469 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2471         * remake.c (notice_finished_file): If all the command lines were
2472         recursive, don't do the touching.
2474         * job.c (start_job_command): Don't check for + here.
2475         * commands.c (chop_commands): Do it here instead.
2477         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
2479 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2481         * compatMakefile (objs): Include $(ALLOCA).
2483         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
2485 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2487         * read.c (default_include_directories): Add INCLUDEDIR first.
2488         * compatMakefile (includedir): Define.
2489         (defines): Add -D for INCLUDEDIR="$(includedir)".
2491         * read.c (read_makefile): Grok multiple files in `include';
2492         globbing too.
2494         * remake.c (library_search): New function.
2495         (library_file_mtime): Remove function.
2496         (f_mtime): Use library_search instead of library_file_mtime.
2497         * compatMakefile (libdir): Define.
2498         (defines): Add -D for LIBDIR="$(libdir)".
2499         * make.texinfo (Libraries/Search): Document change.
2501         * file.c (rename_file): Fix file_hash_enter call with missing arg.
2503 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2505         * Version 3.62.19.
2507         * main.c (main): Set command_state to cs_finished for temp files
2508         made for stdin makefiles.
2510         * main.c (decode_switches): Don't tell getopt to return non-option
2511         args in order.
2512         Ignore an argument of `-'.
2514 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2516         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
2517         the command line and go to the next.
2518         (notice_finished_file): Under -t, touch FILE.
2519         * remake.c (remake_file): Don't touch it here.
2521 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2523         * function.c (pattern_matches): Use temporary for strlen (WORD)
2524         instead of two function calls.
2526         * compatMakefile (LOAD_AVG): Remove variable and comments.
2528 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2530         * make.texinfo (Running): Node renamed to `make Invocation'.
2532 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2534         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
2535         NAMELEN != MEMLEN.
2537 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2539         * Version 3.62.18.
2541         * main.c: Don't #include <time.h>; make.h already does.
2543 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2545         * implicit.c (pattern_search): Fixed copying of suffix when building
2546         also_make elts.
2548         * function.c (expand_function: `shell'): Make sure BUFFER is
2549         null-terminated before replacing newlines.
2551         * compatMakefile (mandir): Use man$(manext), not always manl.
2553 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2555         * rule.c (new_pattern_rule): Not static.
2556         * rule.h: Declare it.
2558         * file.c (file_hash_enter): New function, most code from rename_file.
2559         (rename_file): Call it.
2560         * file.h (file_hash_enter): Declare it.
2562         * dep.h: Doc fix.
2564 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2566         * main.c (decode_switches): Handle usage_and_exit when building
2567         long options vector.
2569         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
2570         (default_variables): Define CHECKOUT,v (hairy).
2572         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
2573         sys_siglist to _sys_siglist.
2575 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2577         * NEWS: Add header and tail copyright info like Emacs NEWS.
2579         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
2580         bcopy if already #define'd.
2581         [STDC_HEADERS] (qsort, abort, exit): Declare here.
2582         [! __GNU_LIBRARY__ && !POSIX]: Not here.
2584         * make.h [_AIX]: #pragma alloca first thing.
2586         * job.c (start_waiting_job): Set the command_state to cs_running
2587         when we queue a job on waiting_jobs.
2589 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2591         * variable.c (define_automatic_variables): Use "" instead of nil
2592         for empty value.
2594 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2596         * Version 3.62.17.
2598         * main.c (struct command_switch.type): Add alternative usage_and_exit.
2599         (command_switches): Add -h/--help.
2601 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2603         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
2604         * README.template: Mention NEWS.
2605         * CHANGES: Renamed to NEWS.
2607         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
2609 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2611         * main.c (main): Set -o files' command_states to cs_finished.
2613         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
2614         when tossing a rule.
2616         * main.c (main): Use alloca only in simple local var assignment,
2617         for braindead SGI compiler.
2619         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
2620         inconsistent with the number computed when listing them.
2622 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2624         * commands.c (set_file_variables): For $? and $^ elts that are archive
2625         member refs, use member name only.
2627 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2629         * variable.h (struct variable.export): Add new alternative v_ifset.
2630         * variable.c (target_environment): Check for it.
2631         (define_automatic_variables): Set it for MAKEFILES.
2633 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2635         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
2636         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
2637         (distclean, mostlyclean): New targets.
2639 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2641         * Version 3.62.16.
2643         * compatMakefile (config.status): Remove rule.
2645         * job.c (start_waiting_job): Free C after using C->file, not before.
2647 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2649         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
2650         HAVE_* instead of #ifndef *_MISSING.
2651         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
2653 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2655         * main.c (main): makelevel>0 or -C implies -w.
2657 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2659         * file.c, job.c, function.c: Don't #include <errno.h>.
2660         make.h: Do it here instead.
2661         * arscan.c (ar_member_touch): Don't declare errno.
2663 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2665         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
2667         * remake.c (update_file): If commands or deps are running after
2668         update_file_1 returns, break out of the :: rule (->prev) loop and
2669         just return.
2671         * job.c (job_next_command): New function; code from start_job.
2672         (start_job_command): Renamed from start_job.  Call job_next_command
2673         and recurse for empty command lines and -n.
2674         (start_waiting_job): Call start_job_command, not start_job.
2675         (new_job): Call job_next_command to prime the child structure, and
2676         then call start_waiting_job.
2677         (reap_children): Use job_next_command and start_job_command.
2678         (start_waiting_job): Call start_remote_job_p here, and store its
2679         result in C->remote.  If zero, check the load average and
2680         maybe put C on waiting_jobs.
2681         (start_job_command): Test CHILD->remote rather than calling
2682         start_remote_job_p.  Don't do load avg checking at all here.
2684         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
2685         SIGSEGV, SIGFPE or SIGTRAP.
2687         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
2688         configure will set it in glob/Makefile.
2690 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2692         * dir.c [DIRENT] (direct): Don't define to dirent.
2693         [! DIRENT] (direct): Define to dirent.
2694         (dir_file_exists_p): Use struct dirent instead of struct direct.
2696         * make.h (getcwd): No space between macro and ( for args!
2698         * job.c (start_job): Don't put the job on waiting_jobs if
2699         job_slots_used==0.
2701         * make.texinfo (Missing): Shortened title.
2703 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2705         * file.c (remove_intermediates): Print "rm" commands under -n.
2707 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2709         * Version 3.62.15.
2711 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2713         * arscan.c [M_UNIX]: #undef M_XENIX.
2715 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2717         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
2719 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2721         * compatMakefile (getloadavg.o): Removed special rule.
2722         (CFLAGS): Don't include $(defines).
2723         (.c.o): Define suffix rule.
2724         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
2725         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
2727         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
2729         * make.h (max): Removed.
2730         * expand.c (variable_buffer_output): Don't use it.
2732         * compatMakefile (INSTALL): Define.
2733         (Makefile): New rule to make from Makefile.in.
2734         (srcdir): Define.
2735         (VPATH): Define.
2736         (getloadavg.o, remote.o): Use autoconf $foo< hack.
2738         * commands.c (fatal_error_signal): Removed return.
2740 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2742         * Version 3.62.14.
2744         * make.texinfo (Summary): New node.
2745         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
2747         * variable.c (max): Moved to make.h.
2749         * compatMakefile (objs, srcs): Added ar & arscan.
2751         * job.c (start_waiting_job): New function, 2nd half of new_job.
2752         (new_job): Call it.
2753         (start_waiting_jobs): New function.
2754         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
2755         of the main loop.
2756         * compatMakefile (objs, srcs): Removed load, added getloadavg.
2758 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2760         * job.c (load_too_high): New function.  Uses getloadavg.
2761         (waiting_jobs): New variable.
2762         (start_job): Don't call wait_to_start_job.  Instead, if
2763         load_too_high returns nonzero, add the child to the
2764         `waiting_jobs' chain and return without starting the job.
2766 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2768         * expand.c (variable_buffer_output): Made global again.
2769         * variable.h: And declare it.
2771         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
2772         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
2773         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
2774         for a slash in the archive at run time.
2775         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
2776         cope with trailing-slash and non-trailing-slash archives.
2778         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
2779         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
2781         * load.c (load_average) [sgi]: Use sysmp call.
2783         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
2784         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
2786         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
2787         (vfork, VFORK_NAME): Don't define.
2788         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
2790         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
2791         the each file.  Rearranged PATH_MAX hacking.
2792         * job.c: Rearranged NGROUPS_MAX hacking.
2794         * remake.c (fstat, time): Don't declare.
2796         * compatMakefile (defines): Value is @DEFS@.
2797         (LOADLIBES): Value is @LIBS@.
2798         (extras): Value is @LIBOBJS@.
2799         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
2800         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
2802         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
2804         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
2805         (getcwd): Just declare if present.  If not, declare as a macro
2806         using getwd, and declare getwd.
2807         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
2808         * main.c (main, log_working_directory): Use getcwd instead of getwd.
2810         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
2812         * make.h (SIGHANDLER, SIGNAL): Removed.
2813         (RETSIGTYPE): Define if not #define'd.
2814         * main.c (main): Use signal in place of SIGNAL.
2816         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
2818         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
2819         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
2821         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
2822         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
2824         * job.c (child_handler), commands.c (fatal_error_signal): Return
2825         RETSIGTYPE instead of int.
2826         * main.c (main): Declare fatal_error_signal and child_handler here
2827         to return RETSIGTYPE; removed top-level decl of former.
2829         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
2830         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
2832 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2834         * job.c [HAVE_WAITPID]: Test this instead of USG.
2835         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
2836         (GID_T): Don't #define.
2837         (search_path): Use gid_t instead of GID_T.
2838         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
2839         these individually instead of USG for all.
2840         * make.h (ctime): Don't declare.  #include time.h instead.
2841         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
2842         _POSIX_VERSION.
2843         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
2844         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
2846         * arscan.c: Removed #ifdef mess about string.h et al.
2847         Just #include make.h instead.
2848         * make.h (fstat, atol): Declare.
2850         * commands.c (fatal_error_signal): Don't use sigmask to check for
2851         propagated signals; use ||s instead.
2852         (PROPAGATED_SIGNAL_MASK): Removed.
2853         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
2855         * variable.c (variable_buffer, variable_buffer_length,
2856         initialize_variable_output, variable_output): Moved to expand.c;
2857         made all static.
2858         (struct output_state, save_variable_output,
2859         restore_variable_output): Removed.
2860         * expand.c (initialize_variable_output): Put a NUL at the beginning
2861         of the new buffer after allocating it.
2862         (allocated_variable_expand_for_file): Don't use
2863         {save,restore}_variable_output.  Do it by hand instead, keeping
2864         state on the stack instead of malloc'ing it.
2865         (allocated_variable_expand): Removed.
2866         * variable.h (allocated_variable_expand): Define here as macro.
2867         (variable_buffer_output, initialize_variable_output,
2868         save_variable_output, restore_variable_output): Removed decls.
2870         * read.c (conditional_line): For an if cmd, if any elt of the
2871         conditionals stack is ignoring, just push a new level that ignores
2872         and return 1; don't evaluate the condition.
2874 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2876         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
2878         * job.c (getdtablesize): Don't declare or #define if already #define'd.
2880 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2882         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
2883         export_all_variables.
2884         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
2886 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2888         * Version 3.62.13.
2890         * commands.c (set_file_variables): Calculate length for ^D and ?D
2891         individually, making sure to give them at least enough space for "./".
2893         * make.h [CRAY]: #define signal to bsdsignal.
2895         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
2896         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
2898         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
2899         wasn't defined by <ar.h>.
2901 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2903         * Version 3.62.12.
2905 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2907         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
2908         pattern_rules.
2910 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2912         * main.c (decode_switches): Initialize all the long_option elt members.
2914 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2916         * make.texinfo (Text Functions): Correct filter-out description.
2918 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2920         * compatMakefile (realclean): Don't remove backup files.
2922         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
2924 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2926         * Version 3.62.11.
2928 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2930         * job.c (reap_children): Don't die if wait returns EINTR.
2932 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2934         * job.c (reap_children): Always run the next command for a
2935         successful target.  If we are going to die, we don't want to leave
2936         the target partially made.
2938 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2940         * job.c (construct_command_argv_internal): After loop, if we only
2941         have one word, check it for being a shell command.
2943         * main.c (decode_switches): Allocate ARGC slots in other_args to
2944         begin with, so we never need to worry about growing it.
2945         If we get a non-option arg and POSIXLY_CORRECT is in the
2946         environment, break out of the loop.  After the loop, add all remaining
2947         args to other_args list.
2949         * main.c (decode_switches): For positive_int and floating switches
2950         when optarg is nil, use next arg if it looks right (start with a
2951         digit, or maybe decimal point for floating).
2953         * variable.c (define_automatic_variables): Always set SHELL to
2954         default if it comes from the environment.  Set its export bit.
2955         * make.texinfo (Environment): Document change.
2957 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2959         * Version 3.62.10.
2961         * compatMakefile (tags, TAGS): Use vars for cmds.
2962         (ETAGS, CTAGS): Define.
2964         * main.c (decode_switches): If a switches elt has a nil long_name,
2965         make the long option name elt be "".
2966         Fixed loop to not ignore all the options.
2968         * make.texinfo (Option Summary): Added long options.
2970         * main.c (switches): Changed -m's description to "-b".
2971         (decode_switches): When printing the usage message, don't print
2972         switches whose descriptions start with -.
2973         When constructing the list of names for switch -C, search the
2974         switches vector for switches whose descriptions are "-C".
2976         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
2977         Call -I --include-dir, not --include-path.
2978         (long_option_aliases): Added --new == -W, --assume-new == -W,
2979         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
2980         --makefile == -f.
2982         * main.c (switches): Removed bogus "silent" elt.
2983         (long_option_aliases): Define new var.
2984         (decode_switches): Add long_option_aliases onto the end of the long
2985         options vector created for getopt_long.
2986         Look through long_option_aliases for extra names to list
2987         in usage message.
2989 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2991         * main.c (log_working_directory): Fixed to properly not print the
2992         leaving message when we haven't printed the entering message.
2994 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2996         * main.c (struct command_switch): Added elts `long_name',
2997         `description', and `argdesc'.
2998         (switches): Added initializers for new members.
2999         (decode_switches): Rewritten to use getopt_long.
3000         * compatMakefile (GETOPT, GETOPT_SRC): Define.
3001         (objs, srcs): Include them.
3003         * job.c (child_died): Renamed to dead_children; made static.
3004         (child_handler): Increment dead_children instead of setting child_died.
3005         (reap_children): Decrement dead_children instead of clearing
3006         child_died.  The point of all this is to avoid printing "waiting
3007         for unfinished jobs" when we don't actually need to block.
3008         This happened when multiple SIGCHLDs before reap_children was called.
3010         * job.c (reap_children): If ERR is set, so we don't call start_job
3011         on the child being reaped, instead set its command_state to
3012         cs_finished.
3013         (reap_children, child_handler, new_job): I added several
3014         debugging printf's while fixing this.  I left them in if (debug_flag)
3015         because they may be useful for debugging this stuff again.
3017 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3019         * read.c (read_makefile): v_export is not 1.
3021 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3023         * Version 3.62.9.
3025         * variable.c (export_all_variables): New variable.
3026         (target_environment): Export variables whose `export' member is
3027         v_default if export_all_variables is set and their names are benign.
3028         * variable.h: Declare export_all_variables.
3029         * read.c (read_makefile): If export or unexport is given with no
3030         args, set or clear export_all_variables, respectively.
3032         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3033         so it isn't duplicated when we add it at the end.
3035 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3037         * Version 3.62.8.
3039         * variable.h (struct variable): Added new member `export'.
3040         * variable.c (define_variable_in_set): Initialize it to v_default.
3041         (target_environment): Don't check for .NOEXPORT.
3042         Export variables whose `export' member is v_default and that would
3043         have been exported under .NOEXPORT, and variables whose `export'
3044         member is v_export.
3045         (try_variable_definition): Return the variable defined.
3046         * variable.h (try_variable_definition): Changed decl.
3047         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3049 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3051         * main.c (main) [POSIX]: Reversed args to sigaddset.
3053 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3055         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3056         (start_job): Block signals before forking.
3057         (new_job): Unblock signals after putting the new child on the chain.
3058         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3059         int fatal_signal_mask.
3061         * load.c [sgi] (LDAV_CVT): Define.
3063 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3065         * Version 3.62.7.
3067         * load.c (load_average) [sgi]: Clear the high bit of the address
3068         from the symbol table before looking it up in kmem.
3070         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3071         (remake_file): No longer needed in message here.
3073         * main.c (die): Call reap_children with BLOCK==1.
3075 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3077         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3079 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3081         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3082         not to head of chain.  Extract next ptr before we might do
3083         freerule, and use that for next iteration.
3084         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3086 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3088         * job.c (child_error): Removed extra %s from error msg format.
3090         * Version 3.62.6.
3092         * job.c (reap_children): Don't start later commands in a sequence
3093         if ERR is nonzero.
3095         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3097         * job.c (reap_children): New function; work that used to be done in
3098         child_handler.
3099         (child_died): New global var.
3100         (child_handler): Now just sets child_died.
3101         (wait_for_children): Removed.
3102         (unknown_children_possible, block_signals, unblock_signals,
3103         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3104         (child_execute_job): Removed call to unblock_signals.
3105         (new_job): Removed calls to push_signals_blocked_p and
3106         pop_signals_blocked_p.
3107         * job.h: Declare reap_children, not wait_for_children.
3108         * commands.c (fatal_error_signal), job.c (new_job),
3109         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3110         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3111         Changed wait_for_children calls to reap_children.
3112         Some needed to be loops to wait for all children to die.
3113         * commands.c (fatal_error_signal), main.c (main,
3114         log_working_directory), function.c (expand_function): Removed calls
3115         to push_signals_blocked_p and pop_signals_blocked_p.
3116         * job.h: Removed decls.
3118         * job.h: Added copyright notice.
3120 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3122         * job.c (child_error): No *** for ignored error.
3124 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3126         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3127         avoid compiler warnings.
3129         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3130         blank.
3132 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3134         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3135         avoid compiler warnings.
3137         * remake.c (notice_finished_file): Run file_mtime on the also_make
3138         files, so vpath_search can happen.
3140         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3141         (alpha-files): Include test suite tar file.
3143 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3145         * Version 3.62.5.
3147 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3149         * remake.c (update_file, update_file_1): Do check_renamed on elts
3150         of dep chains when traversing them.  Something unrelated might have
3151         renamed one of the files the dep chain points to.
3153         * file.c (rename_file): If FILE has been renamed, follow its
3154         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3155         ones loses because they are not in the hash table, so the removal
3156         code loops infinitely.
3158         * read.c (read_all_makefiles): Clobber null terminator into
3159         MAKEFILES expansion, so string passed to read_makefile is properly
3160         terminated.
3162 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3164         * commands.c (set_file_variables): $* for archive member with
3165         explicit cmds is stem of member, not of whole `lib(member)'.
3167 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3169         * Version 3.62.4.
3171 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3173         * rule.c (new_pattern_rule): Rules are identical only if all their
3174         targets match (regardless of order).
3176 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3178         * remake.c (remake_file): Changed error "no way to make" to "no
3179         rule to make".  Fiat Hugh.
3181         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3182         behavior.
3184         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3185         target.
3187 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3189         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3190         environment to pass to child.
3191         * job.c (start_job): Pass it.
3193 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3195         * file.c (enter_file): Also strip ./s here, to get command-line
3196         target names.
3198         * remote-cstms.c: Add comment telling people to leave me alone.
3200         * compatMakefile (manpage install): Remove target before copying.
3202 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3204         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
3205         Added paragraph describing $? incompatibility with Unix and POSIX.2.
3207 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
3209         * function.c (expand_function: `shell'): Don't declare fork or pipe.
3210         Use vfork instead of fork.
3212 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3214         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
3215         intermediate files.
3217         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
3219 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3221         * Version 3.62.3.
3223 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3225         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
3227 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3229         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
3231         * read.c (record_files): Pass arg for %s in error msg.
3233         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
3234         call.
3236 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3238         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
3240 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3242         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
3244 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3246         * Version 3.62.2.
3248 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3250         * job.c (construct_command_argv_internal): Correctly ignore
3251         whitespace after backslash-NL.
3253 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3255         * compatMakefile: Ignore errors from chgrp and chmod when installing.
3257 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3259         * main.c (main): When setting MAKELEVEL in the env to re-exec,
3260         allocate space so as not to clobber past the end of the old string.
3262         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
3263         * compatMakefile (defines): Document HAVE_ALLOCA_H.
3265 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3267         * make.h [VFORK_MISSING]: Use fork instead.
3268         * compatMakefile (defines): Document same.
3270         * job.c (construct_command_argv_internal): Don't create an empty
3271         arg if backslash-NL is at beginning of word.
3273 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3275         * main.c [DGUX]: Call setvbuf as for USGr3.
3277         * job.c (construct_command_argv_internal): Notice correctly that
3278         backslash-NL is the end of the arg (because it is replaced with a
3279         space).
3281 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3283         * job.c (construct_command_argv_internal): If SHELL is nil, set it
3284         to default_shell before proceeding.
3286         * make.h [sgi]: No alloca.h, after all.
3288 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3290         * read.c (multi_glob): Cons up the chain of the results of glob
3291         from back to front, so it comes out in forward order.
3293         * job.c (construct_command_argv_internal): Don't eat char following
3294         backslash-NL.
3296 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3298         * Version 3.62.1.
3300         * default.c (default_variables) [ultrix]: GET=get, like USG.
3302         * job.c (construct_command_argv_internal): Remove tabs following
3303         backslash-NL combos in the input line, so they don't show up when
3304         that line is printed.
3306         * read.c (read_makefile): Don't collapse_continuations the line on
3307         input; do it on the copy we do remove_comments on.
3308         For rule lines, collapse_continuations the line after chopping
3309         ";cmds" off the end, so we don't eat conts in the cmds.
3310         Give error for ";cmds" with no rule.
3311         * job.c (construct_command_argv_internal): Eat backslash-NL combos
3312         when constructing the line to recurse on for slow, too.
3314 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3316         * file.c (enter_file): Don't strip leading `./'s.
3317         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
3318         * default.c (set_default_suffixes), function.c (string_glob),
3319         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
3321         * default.c (default_variables) [_IBMR2]: FC=xlf
3323         * job.c (construct_command_argv_internal): Turn backslash-NL and
3324         following whitespace into a single space, rather than just eating
3325         the backslash.
3327         * make.texinfo (Copying): @include gpl.texinfo, rather than
3328         duplicating its contents.
3330 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3332         * job.c (construct_command_argv_internal): Make sure not to bother
3333         processing an empty line.
3335         * Version 3.62.0.
3337         * job.c (construct_command_argv_internal): Always recurse for slow;
3338         simple case didn't handle finding newlines.
3340 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3342         * job.c (construct_command_argv_internal): Set RESTP properly when
3343         slow; don't \ify past a newline.
3345 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3347         * make.h [sgi]: #include <alloca.h>.
3351 See ChangeLog.1 for earlier changes.