Changes for GNU make 3.75.93.
[make.git] / ChangeLog
blobeaf8c0b0f349d9cfa898049abb6966ac596f9f0b
1 Fri Aug 29 02:01:27 1997  Paul D. Smith  <psmith@baynetworks.com>
3         * Version 3.75.93.
5 Thu Aug 28 19:39:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
7         * job.c (exec_command): [WINDOWS32] If exec_command() is invoked
8         from main() to re-exec make, the call to execvp() would
9         incorrectly return control to parent shell before the exec'ed
10         command could run to completion. I believe this is a feature of
11         the way that execvp() is implemented on top of WIN32 APIs. To
12         alleviate the problem, use the supplied process launch function in
13         the sub_proc library and suspend the parent process until the
14         child process has run.  When the child exits, exit the parent make
15         with the exit code of the child make.
17 Thu Aug 28 17:04:47 1997  Paul D. Smith  <psmith@baynetworks.com>
19         * Makefile.DOS.template (distdir): Fix a line that got wrapped in
20         email.
22         * Makefile.am (loadavg): Give the necessary cmdline options when
23         linking loadavg.
25         * configure.in: Check for pstat_getdynamic for getloadvg on HP.
27         * job.c (start_job_command): [VMS,_AMIGA] Don't perform empty
28         command optimization on these systems; it doesn't make sense.
30 Wed Aug 27 17:09:32 1997  Paul D. Smith  <psmith@baynetworks.com>
32         * Version 3.75.92
34 Tue Aug 26 11:59:15 1997  Paul D. Smith  <psmith@baynetworks.com>
36         * main.c (print_version): Add '97 to copyright years.
38         * read.c (do_define): Check the length of the array before looking
39         at a particular offset.
41         * job.c (construct_command_argv_internal): Examine the last byte
42         of the previous arg, not the byte after that.
44 Sat Aug 23 1997  Eli Zaretskii  <eliz@is.elta.co.il>
46         * Makefile.DOS.template: New file (converted to Makefile.DOS in
47         the distribution).
49         * configure.bat: Rewrite to use Makefile.DOS instead of editing
50         Makefile.in.  Add support for building from outside of the source
51         directory.  Fail if the environment block is too small.
53         * configh.dos: Use <sys/config.h>.
55         * README.DOS: Update instructions.
57 Fri Aug 22 1997  Eli Zaretskii  <eliz@is.elta.co.il>
59         * job.c (start_job_command): [__MSDOS__] Don't test for "/bin/sh"
60         literally, use value of unixy_shell instead.
62         * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
63         time_t is unsigned.
65 Sat Aug 16 00:56:15 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
67         * vmsify.c (vmsify, case 11): After translating `..' elements, set
68         nstate to N_OPEN if there are still more elements to process.
69         (vmsify, case 2): After translating `foo/bar' up to the slash,
70         set nstate to N_OPEN, not N_DOT.
72 Fri Aug  8 15:18:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
74         * dir.c (vmsstat_dir): Leave name unmodified on exit.
75         * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
76         * vpath.c: Fix comments to refer to path separator, not colon.
77         (selective_vpath_search): Avoid Unixy slash handling for VMS.
79 Thu Aug  7 22:24:03 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
81         * ar.c: [VMS] Don't declare ar_member_touch.
82         Delete VMS version of ar_member_date.
83         Enable non-VMS versions of ar_member_date and ar_member_date_1 for
84         VMS too.
85         * arscan.c (VMS_get_member_info): New function.
86         (ar_scan): Provide version for VMS systems.
87         (ar_name_equal): Simply compare name and mem on VMS systems.
88         Don't define ar_member_pos or ar_member_touch on VMS systems.
90         * config.h-vms (pid_t, uid_t): Don't define.
92         * remake.c: Delete declaration of vms_stat.
93         (name_mtime): Don't call vms_stat.
94         (f_mtime): [VMS] Funky time value manipulation no longer necessary.
96         * file.c (print_file): [VMS] Use ctime, not cvt_time.
98         * make.h: [VMS] Don't define POSIX.
100         * makefile.com (filelist): Include ar and arscan.
101         Also include them in the link commands.
102         Don't define NO_ARCHIVES in cc command.
104         * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
105         (defines): Delete NO_ARCHIVES from list.
107         * remake.c (f_mtime): Only check to see if intermediate file is
108         out of date if it also exists (i.e., mtime != (time_t) -1).
110         * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
112 Fri Jun 20 23:02:07 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
114         * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
115         (#!/bin/sh) in script files correctly.
116         Fixed a couple of memory leaks.
117         Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
118         files with extensions are preferred over files without extensions.
119         Added search for files with .cmd extension too.
120         * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
122 Mon Aug 18 09:41:08 1997  Paul D. Smith  <psmith@baynetworks.com>
124         * Version 3.75.91
126 Fri Aug 15 13:50:54 1997  Paul D. Smith  <psmith@baynetworks.com>
128         * read.c (do_define): Remember to count the newline after the endef.
130 Thu Aug 14 23:14:37 1997  Paul D. Smith  <psmith@baynetworks.com>
132         * many: Rewrote builds to use Automake 1.2.
134         * AUTHORS: New file.
135         * maintMakefile: Contains maintainer-only make snippets.
136         * GNUmakefile: This now only runs the initial auto* tools.
137         * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
138         automatically by automake).
139         * compatMakefile: Removed (not needed anymore).
140         * README,build.sh.in: Removed (built from templates).
141         * config.h.in,Makefile.in: Removed (built by tools).
143 Wed Aug 13 02:22:08 1997  Paul D. Smith  <psmith@baynetworks.com>
145         * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
146         * README,README.DOS: Ditto.
148         * remake.c (update_file_1,f_mtime): Fix GPATH handling.
149         * vpath.c (gpath_search): Ditto.
151         * file.c (rename_file): New function: rehash, but also rename to
152         the hashname.
153         * filedef.h: Declare it.
155         * variable.c (merge_variable_set_lists): Remove free() of variable
156         set; since various files can share variable sets we don't want to
157         free them here.
159 Tue Aug 12 10:51:54 1997  Paul D. Smith  <psmith@baynetworks.com>
161         * configure.in: Require autoconf 2.12
163         * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
164         more stylistically correct "cd subdir && $(MAKE)".
166         * main.c: Global variable `clock_skew_detected' defined.
167         (main): Print final warning if it's set.
168         * make.h: Declare it.
169         * remake.c (f_mtime): Test and set it.
171         * job.c (start_job_command): Add special optimizations for
172         "do-nothing" rules, containing just the shell no-op ":".  This is
173         useful for timestamp files and can make a real difference if you
174         have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
176         * configure.in,Makefile.in: Rewrote to use the new autoconf
177         program_transform_name macro.
179         * function.c (function_strip): Strip newlines as well as spaces
180         and TABs.
182 Fri Jun  6 23:41:04 1997  Rob Tulloh <rob_tulloh@tivoli.com>
184         * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
185         even seconds when stored, so if the date check fails on WINDOWS32
186          systems, see if this "off-by-one" error is the problem.
188         * General: If your TZ environment variable is not set correctly
189         then all your timestamps will be off by hours.  So, set it!
191 Mon Apr  7 02:06:22 1997  Paul D. Smith  <psmith@baynetworks.com>
193         * Version 3.75.1
195         * compatMakefile (objs): Define & use the $(GLOB) variable so
196         that it's removed correctly from build.sh.in when it's built.
198         * configure.in: On Solaris we can use the kstat_*() functions to
199         get load averages without needing special permissions.  Add a
200         check for -lkstat to see if we have it.
202         * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
203         the test to enable kstat_open(), etc. processing.
205 Fri Apr  4 20:21:18 1997  Eli Zaretskii  <eliz@is.elta.co.il>
207         * <lots>: Fixes to work in the DJGPP DOS environment.
209 Mon Mar 31 02:42:52 1997  Paul D. Smith  <psmith@baynetworks.com>
211         * function.c (expand_function): Added new function $(wordlist).
213         * make.texinfo (Filename Functions): Document $(wordlist) function.
215         * vpath.c (build_vpath_lists): Construct the GPATH variable
216         information in the same manner we used to construct VPATH.
217         (gpath_search): New function to search GPATH.
219         * make.h: Declare the new function.
221         * remake.c (update_file_1): Call it, and keep VPATH if it's found.
223         * make.texinfo (Search Algorithm): Document GPATH variable.
225 Sun Mar 30 20:57:16 1997  Paul D. Smith  <psmith@baynetworks.com>
227         * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
228         variable to contain the user options passed in on the cmd line.
230         * make.texinfo (Goals): Document MAKECMDGOALS variable.
232         * remake.c (f_mtime): Print a warning if we detect a clock skew
233         error, rather than failing.
235         * main.c (main): If we rebuild any makefiles and need to re-exec,
236         add "-o<mkfile>" options for each makefile rebuilt to avoid
237         infinite looping.
239 Fri Mar 28 15:26:05 1997  Paul D. Smith  <psmith@baynetworks.com>
241         * job.c (construct_command_argv_internal): Track whether the last
242         arg in the cmd string was empty or not (Roland).
243         (construct_command_argv_internal): If the shell line is empty,
244         don't do anything (Roland).
246         * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
247         the latest changes from the GLIBC version of glob (Ulrich Drepper).
249         * getloadavg.c,make-stds.texi: New version (Roland).
251         * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
253 Mon Mar 24 15:33:34 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
255         * README.W32: Describe preliminary FAT support.
257         * build_w32.bat: Use a variable for the final exe name.
259         * dir.c (find_directory): W32: Find the filesystem type.
260         (dir_contents_file_exists_p): W32: for FAT filesystems, always
261         rehash since FAT doesn't change directory mtime on change.
263         * main.c (handle_runtime_exceptions): W32: Add an
264         UnhandledExceptionFilter so that when make bombs due to ^C or a
265         bug, it won't cause a GUI requestor to pop up unless debug is
266         turned on.
267         (main): Call it.
269 Mon Mar 24 00:57:34 1997  Paul D. Smith  <psmith@baynetworks.com>
271         * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
272         Check for memmove() function.
274         * make.h (bcopy): If memmove() available, define bcopy() to use it.
275         Otherwise just use bcopy().  Don't use memcpy(); it's not guaranteed
276         to handle overlapping moves.
278         * read.c (read_makefile): Fix some uninitialized memory reads
279         (reported by Purify).
281         * job.c (construct_command_argv_internal): Use bcopy() not
282         strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
284         * Makefile.in: Change install-info option ``--infodir'' to
285         ``--info-dir'' for use with new texinfo.
287         * function.c (expand_function): $(basename) and $(suffix) should
288         only search for suffixes as far back as the last directory (e.g.,
289         only the final filename in the path).
291 Sun Mar 23 00:13:05 1997  Paul D. Smith  <psmith@baynetworks.com>
293         * make.texinfo: Add @dircategory/@direntry information.
294         (Top): Remove previous reference to (dir) (from RMS).
295         (Static Usage): Add "all:" rule to example.
296         (Automatic Dependencies): fix .d file creation example.
298         * Install VPATH+ patch:
300         * filedef.h (struct file): Add in hname field to store the hashed
301         filename, and a flag to remember if we're using the vpath filename
302         or not.  Renamed a few functions for more clarity.
304         * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
305         in the hash table based on their "hash name".  We can change this
306         while keeping the original target in "name".
307         (rehash_file): Renamed from "rename_file" to be more accurate.
308         Changes the hash name, but not the target name.
310         * remake.c (update_file_1): Modify -d output for more detailed
311         VPATH info.  If we don't need to rebuild, use the VPATH name.
312         (f_mtime): Don't search for vpath if we're ignoring it.  Call
313         renamed function rehash_file.  Call name_mtime instead of
314         file_mtime, to avoid infinite recursion since the file wasn't
315         actually renamed.
317         * implicit.c (pattern_search): if we find an implicit file in
318         VPATH, save the original name not the VPATH name.
320         * make.texinfo (Directory Search): Add a section on the new VPATH
321         functionality.
323 Sun Dec  1 18:36:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
325         * dir.c (file_exists_p, file_impossible, file_impossible_p): If
326         dirname is empty replace it by the name of the root directory.
327         Note that this doesn't work (yet) for W32, Amiga, or VMS.
329 Tue Oct 08 13:57:03 1996  Rob Tulloh  <tulloh@tivoli.com>
331         * main.c (main): W32 bug fix for PATH vars.
333 Tue Sep 17 1996  Paul Eggert  <eggert@twinsun.com>
335         * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
336         32-bit quantity.
338         * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
339         INTEGER_TYPE_MINIMUM): New macros.
341 Tue Aug 27 01:06:34 1996  Roland McGrath  <roland@baalperazim.frob.com>
343         * Version 3.75 released.
345         * main.c (print_version): Print out bug-reporting address.
347 Mon Aug 26 19:55:47 1996  Roland McGrath  <roland@baalperazim.frob.com>
349         * main.c (print_data_base): Don't declare ctime; headers do it for us
350         already.
352 Sun Jul 28 15:37:09 1996  Rob Tulloh (tulloh@tivoli.com)
354         * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
355         real function. This was done so that VPATH could contain
356         white space separated pathnames. Please note that directory
357         paths (in VPATH/vpath context) containing white space are not
358         supported (just as they are not under Unix). See README.W32
359         for suggestions.
361         * w32/include/pathstuff.h: Added prototype for the new
362         function convert_vpath_to_w32. Deleted macro for same.
364         * README.W32: Added some notes about why I chose not to try
365         and support pathnames which contain white space and some
366         workaround suggestions.
368 Thu Jul 25 19:53:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
370         * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
372         * Version 3.74.7.
374         * main.c (define_makeflags): Back up P to point at null terminator
375         when killing final space and dash before setting MFLAGS.
377         From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
378         * dir.c [__MSDOS__] [DJGPP > 1]: Include <libc/dosio.h> and defin
379         `__opendir_flags' initialized to 0.
380         [__MSDOS__] (dosify) [DJGPP > 1]: Return name unchanged if _USE_LFN.
381         (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
382         __opendir_flags to __OPENDIR_PRESERVE_CASE.
384         * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
386         * GNUmakefile (w32files): Add NMakefile.
388         * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
390 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
392         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
393         modtime check.
394         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
396 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
398         * configure.in: Require autoconf 2.10 or later.
400 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
402         * Version 3.74.6.
404         * GNUmakefile (w32files): New variable.
405         (distfiles): Add it.
406         * w32: Updated by Rob Tulloh.
408         * makefile.vms (LOADLIBES): Fix typo.
410 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
412         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
414         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
416         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
418         * Version 3.74.5.
420         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
422 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
424         * configure.in: Don't check for _sys_siglist.
425         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
426         no strsignal or sys_siglist.
428         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
429         same as `ifeq (a, b)'.
431         * job.c (reap_children): Don't call die if handling_fatal_signal.
433         * file.c (file_hash_enter): Allow renaming :: to : when latter is
434         non-target, or : to :: when former is non-target.
436         * job.c (start_job_command): Call block_sigs.
437         (block_sigs): New function, broken out of start_job_command.
438         (reap_children): Block fatal signals around removing dead child from
439         chain and adjusting job_slots_used.
440         * job.h: Declare block_sigs.
442         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
443         * main.c (main): Call remote_setup.
444         (die): Call remote_cleanup.
446         * job.c (reap_children): Quiescent value of shell_function_pid is
447         zero, not -1.
449         * main.c (print_version): Add 96 to copyright years.
451 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
453         * read.c (find_char_unquote): Avoid calling strlen on every call
454         just to throw away the value most of the time.
456 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
458         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
459         no '=', regardless of ARGC.
460         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
461         word is short option, regardless of WORDS.
463 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
465         * makefile.vms: Set LOADLIBES.
466         * makefile.com (link_using_library): Fix typo.
468 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
470         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
471         long.
473 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
475         * dir.c: W32 does not support inode. For now, fully qualified
476         pathname along with st_mtime will be keys for files.
477         Fixed problem where vpath can be confused when files
478         are added to a directory after the directory has already been
479         read in. The code now attempts to reread the directory if it
480         discovers that the datestamp on the directory has changed since
481         it was cached by make. This problem only seems to occur on W32
482         right now so it is lumped under port #ifdef WINDOWS32.
484         * function.c: W32: call subproc library (CreateProcess()) instead of
485         fork/exec.
487         * job.c: W32: Added the code to do fork/exec/waitpid style processing
488         on W32 systems via calls to subproc library.
490         * main.c: W32: Several things added here. First, there is code
491         for dealing with PATH and SHELL defaults. Make tries to figure
492         out if the user has %PATH% set in the environment and sets it to
493         %Path% if it is not set already. Make also looks to see if sh.exe
494         is anywhere to be found. Code path through job.c will change
495         based on existence of a working Bourne shell. The checking for
496         default shell is done twice: once before makefiles are read in
497         and again after. Fall back to MSDOS style execution mode if no sh.exe
498         is found. Also added some debug support that allows user to pause make
499         with -D switch and attach a debugger. This is especially useful for
500         debugging recursive calls to make where problems appear only in the
501         sub-make.
503         * make.h: W32: A few macros and header files for W32 support.
505         * misc.c: W32: Added a function end_of_token_w32() to assist
506         in parsing code in read.c.
508         * read.c: W32: Fixes similar to MSDOS which allow colon to
509         appear in filenames. Use of colon in filenames would otherwise
510         confuse make.
512         * remake.c: W32: Added include of io.h to eliminate compiler
513         warnings. Added some code to default LIBDIR if it is not set
514         on W32.
516         * variable.c: W32: Added support for detecting Path/PATH
517         and converting them to semicolon separated lists for make's
518         internal use. New function sync_Path_environment()
519         which is called in job.c and function.c before creating a new
520         process. Caller must set Path in environment since we don't
521         have fork() to do this for us.
523         * vpath.c: W32: Added detection for filenames containing
524         forward or backward slashes.
526         * NMakefile: W32: Visual C compatible makefile for use with nmake.
527         Use this to build GNU make the first time on Windows NT or Windows 95.
529         * README.W32: W32: Contains some helpful notes.
531         * build_w32.bat: W32: If you don't like nmake, use this the first
532         time you build GNU make on Windows NT or Windows 95.
534         * config.h.W32: W32 version of config.h
536         * subproc.bat: W32: A bat file used to build the
537         subproc library from the top-level NMakefile. Needed because
538         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
540         * w32/include/dirent.h
541         * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
543         * w32/include/pathstuff.h: W32: used by files needed functions
544         defined in pathstuff.c (prototypes).
546         * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
548         * w32/include/w32err.h: W32: prototypes for w32err.c.
550         * w32/pathstuff.c: W32: File and Path/Path conversion functions.
552         * w32/subproc/build.bat: W32: build script for subproc library
553         if you don't wish to use nmake.
555         * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
556         with nmake. Used to build subproc library.
558         * w32/subproc/misc.c: W32: subproc library support code
559         * w32/subproc/proc.h: W32: subproc library support code
560         * w32/subproc/sub_proc.c: W32: subproc library source code
561         * w32/subproc/w32err.c: W32: subproc library support code
563 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
565         * Version 3.74.4.
567         * GNUmakefile (vmsfiles): Fix typo.
569         * GNUmakefile (amigafiles): Add amiga.h.
571 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
573         * dir.c: New function: amigafy() to fold filenames
574         Changes HASH() to HASHI() to fold filenames on Amiga.
575         Stringcompares use strieq() instead of streq()
576         The current directory on Amiga is "" instead of "."
577         * file.c: Likewise.
579         * amiga.c: New function wildcard_expansion(). Allows to use
580         Amiga wildcards with $(wildcard )
582         * amiga.h: New file. Prototypes for amiga.c
584         * function.c: Use special function wildcard_expansion() for
585         $(wildcard ) to allow Amiga wildcards
586         The current directory on Amiga is "" instead of "."
588         * job.c: No Pipes on Amiga, too
589         (load_too_high) Neither on Amiga
590         ENV variable on Amiga are in a special directory and are not
591         passed as third argument to main().
593         * job.h: No envp on Amiga
595         * make.h: Added HASHI(). This is the same as HASH() but converts
596         it's second parameter to lowercase on Amiga to fold filenames.
598         * main.c: (main), variable.c Changed handling of ENV-vars. Make
599         stores now the names of the variables only and reads their contents
600         when they are accessed to reflect that these variables are really
601         global (ie. they CAN change WHILE make runs !) This handling is
602         made in lookup_variable()
604         * Makefile.ami: renamed file.h to filedep.h
605         Updated dependencies
607         * read.c: "find_semicolon" is declared as static but never defined.
608         No difference between Makefile and makefile on Amiga; added
609         SMakefile to *default_makefiles[].
610         (read_makefile) SAS/C want's two_colon and pattern_percent be set
611         before use.
612         The current directory on Amiga is "" instead of "."
613         Strange #endif moved.
615         * README.Amiga: updated feature list
617         * SMakefile: Updated dependencies
619         * variable.c: Handling of ENV variable happens inside lookup_variable()
621 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
623         * variable.c (try_variable_definition): Count parens in lhs variable
624         refs to avoid seeing =/:=/+= inside a ref.
626 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
628         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
629         conditional.
631         * main.c (main): Use unsigned for fread return.
633         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
634         conflict issues.
635         * dep.h: Fix prototype.
637         * function.c (expand_function) [_AMIGA]: Fix some typos.
638         (patsubst_expand): Make len vars unsigned.
640         * GNUmakefile (globfiles): Add AmigaDOS support files.
641         (distfiles): Add $(amigafiles).
642         (amigafiles): New variable.
644 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
646         * Added Amiga support in commands.c, dir.c, function.c,
647         job.c, main.c, make.h, read.c, remake.c
648         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
649         * dir.c: Amiga has filenames with Upper- and Lowercase,
650         but "FileName" is the same as "filename". Added strieq()
651         which is use to compare filenames. This is like streq()
652         on all other systems. Also there is no such thing as
653         "." under AmigaDOS.
654         * function.c: On Amiga, the environment is not passed as envp,
655         there are no pipes and Amiga can't fork. Use my own function
656         to create a new child.
657         * job.c: default_shell is "" (The system automatically chooses
658         a shell for me). Have to use the same workaround as MSDOS for
659         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
660         known on Amiga. Cloned code to run children from MSDOS. Own
661         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
662         * main.c: Force stack to 20000 bytes. Read environment from ENV:
663         device. On Amiga, exec_command() does return, so I exit()
664         afterwards.
665         * make.h: Added strieq() to compare filenames.
666         * read.c: Amiga needs special extension to have passwd. Only
667         one include-dir. "Makefile" and "makefile" are the same.
668         Added "SMakefile".  Added special code to handle device names (xxx:)
669         and "./" in rules.
670         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
671         instead of "lib%s.a".
672         * main.c, rule.c, variable.c: Avoid floats at all costs.
673         * vpath.c: Get rid of as many alloca()s as possible.
675 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
677         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
679 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
681         * GNUmakefile (vmsfiles): New variable.
682         (distfiles): Include $(vmsfiles).
684 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
686         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
687         * make.h (PARAMS): New macro.
688         * config.h-vms: New file.
689         * makefile.com: New file.
690         * makefile.vms: New file.
691         * readme.vms: New file.
692         * vmsdir.h: New file.
693         * vmsfunctions.c: New file.
694         * vmsify.c: New file.
695         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
696         * ar.c: Added prototypes and changes for VMS.
697         * commands.c: Likewise.
698         * commands.h: Likewise.
699         * default.c: Likewise.
700         * dep.h: Likewise.
701         * dir.c: Likewise.
702         * expand.c: Likewise.
703         * file.c: Likewise.
704         * function.c: Likewise.
705         * implicit.c: Likewise.
706         * job.c: Likewise.
707         * job.h: Likewise.
708         * main.c: Likewise.
709         * make.h: Likewise.
710         * misc.c: Likewise.
711         * read.c: Likewise.
712         * remake.c: Likewise.
713         * remote-stub.c: Likewise.
714         * rule.c: Likewise.
715         * rule.h: Likewise.
716         * variable.c: Likewise.
717         * variable.h: Likewise.
718         * vpath.c: Likewise.
719         * compatMakefile (srcs): Rename file.h to filedef.h.
721 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
723         * remake.c (check_dep): For a secondary file, try implicit and
724         default rules if appropriate.
726 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
728         * remake.c (check_dep): If an intermediate file exists,
729         do consider its actual date.
731 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
733         * file.h (struct file): New field `secondary'.
734         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
735         (remove_intermediates): Don't delete .SECONDARY files.
737 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
739         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
741 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
743         * Version 3.74.3.
745         * remake.c (f_mtime): Move future modtime check before FILE is
746         clobbered by :: loop.
748         * dir.c: Use canonical code from autoconf manual for dirent include.
749         [_D_NAMLEN]: Redefine NAMLEN using this.
750         (dir_contents_file_exists_p): Use NAMLEN macro.
751         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
753         * compatMakefile (objs): Add missing backslash.
755 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
757         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
758         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
760         * remake.c (f_mtime): Check for future timestamps; give error and mark
761         file as "failed to update".
763 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
765         * job.c: Don't declare unblock_sigs; job.h already does.
767 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
769         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
771         * job.c (NGROUPS_MAX): Don't try to define this macro.
773 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
775         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
776         (objs, srcs): Include their values here instead of references.
778 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
780         * Version 3.74.2.
782         * job.c (reap_children): Call unblock_sigs after start_job_command.
784 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
786         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
787         Avoid & before function names to silence bogus sunos4 compiler.
789         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
791 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
793         * Version 3.74.1.
795         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
796         reallocating it!
798 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
800         * misc.c (collapse_continuations): Fix skipping of trailing \s so
801         it can never dereference before the beginning of the array.
803         * read.c (find_semicolon): Function removed.
804         (read_makefile): Don't use find_semicolon or remove_comments for
805         rule lines.  Use find_char_unquote directly and handle quoted comments
806         properly.
808         * default.c: Remove all [M_XENIX] code.
810         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
811         (D_NAMLEN): Macro removed.
812         (FAKE_DIR_ENTRY): New macro.
813         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
814         D_NAMLEN.
815         (read_dirstream): Return a struct dirent * for new glob interface.
816         (init_dir): Function removed.
817         (dir_setup_glob): New function.
818         * main.c (main): Don't call init_dir.
819         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
820         GLOB_ALTDIRFUNC flag.
822         * misc.c (safe_stat): Function removed.
823         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
824         safe_stat.
826 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
828         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
830         * main.c (log_working_directory): Made global.
831         Print entering msg only once.
832         * make.h (log_working_directory): Declare it.
833         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
834         nonzero.  Call log_working_directory.
835         * remake.c: Pass new arg in `message' calls.
836         * job.c (start_job_command): Pass new arg to `message'; fix
837         inverted test in that call.
839 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
841         * job.c (start_job_command): Use `message' to print the command,
842         and call it with null if the command is silent.
843         * remake.c (touch_file): Use message instead of printf.
845 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
847         * main.c (enter_command_line_file): Barf if NAME is "".
849 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
851         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
853 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
855         * configure.in: Don't check for getdtablesize.
856         * job.c (getdtablesize): Remove decls and macros.
858 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
860         * main.c (define_makeflags): Omit command line variable
861         definitions from MFLAGS value.
863         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
864         indicating a valid, but empty, archive.
866 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
868         * dir.c (file_impossible_p): Correctly reset FILENAME to name
869         within directory before hash search.
871         * job.c (child_error): Do nothing if IGNORED under -s.
873         * job.c (exec_command): Correctly use ARGV[0] for script name when
874         running shell directly.
876 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
878         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
879         dup'ing from them.  Don't try to close all excess descriptors;
880         getdtablesize might return a huge value.  Any open descriptors in
881         the parent should have FD_CLOEXEC set.
882         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
884 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
886         * read.c (read_all_makefiles): Properly append default makefiles
887         to the end of the `read_makefiles' chain.
889 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
891         * Version 3.74 released.
893 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
895         * Version 3.73.3.
897 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
899         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
900         install-info cmd.
902 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
904         * file.c (print_file): Grok update_status of 1 for -q.
906 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
908         * Version 3.73.2.
910 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
912         * file.c (remove_intermediates): Fix inverted test to bail under
913         -n for signal case.  Bail under -q or -t.
914         Skip files with update_status==-1.
916         * job.c (job_next_command): Skip empty lines.
917         (new_job): Don't test the return of job_next_command.
918         Just let start_waiting_job handle the case of empty commands.
920 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
922         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
924         * Version 3.73.1.
926 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
928         * remake.c (notice_finished_file): Set FILE->update_status to zero
929         if it's -1.
931 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
933         * Version 3.73 released.
935 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
937         * main.c (main): Fixed braino in assert.
939         * Version 3.72.13.
941 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
943         * main.c: Avoid string in assert expression.  Some systems are broken.
945 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
947         * main.c (main): Handle 1 and 2 returns from update_goal_chain
948         makefile run properly.
950         * Version 3.72.12.
952         * main.c (handle_non_switch_argument): New function, broken out of
953         decode_switches.
954         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
955         When getopt_long returns EOF, break the loop and handle remaining args
956         with a simple second loop.
958         * remake.c (remake_file): Set update_status to 2 instead of 1 for
959         no rule to make.  Mention parent (dependent) in error message.
960         (update_file_1): Handle FILE->update_status == 2 in -d printout.
961         * job.c (start_job_command, reap_children): Set update_status to 2
962         instead of 1 for failed commands.
964 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
966         * job.c (search_path): Function removed (was already #if 0'd out).
967         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
969 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
971         * configure.bat: Write @CPPFLAGS@ translation.
973 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
975         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
976         to not skip the elt immediately preceding `l(...'.
978 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
980         * Version 3.72.11.
982         * read.c (find_char_unquote): Make second arg a string of stop
983         chars instead of a single stop char.  Stop when any char in the
984         string is hit.  All callers changed.
985         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
986         instead of using two calls.  If the match is not a ; but a #,
987         return zero.
988         * misc.c: Changed find_char_unquote callers here too.
990         * Version 3.72.10.
992         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
993         __MSDOS__.
995         * GNUmakefile (globfiles): Add glob/configure.bat.
996         (distfiles): Add configh.dos, configure.bat.
998 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1000         Fixes for MS-DOS from DJ Delorie.
1001         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
1002         as separator in "C:\...".
1003         * configh.dos (STDC_HEADERS): Define only if undefined.
1004         (HAVE_SYS_PARAM_H): Don't define this.
1005         (HAVE_STRERROR): Define this.
1006         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
1008         * Version 3.72.9.
1010         * main.c (decode_switches): Reset optind to 1 instead of 0.
1012 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
1014         * main.c (decode_switches): If non-option arg is "-", ignore it.
1016 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1018         * Version 3.72.8.
1020 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1022         * Version 3.72.7.
1024 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1026         * main.c (main): Pass missing arg to tmpnam.
1028         * configure.in: Check for strsignal.
1029         * job.c (child_error): Use strsignal.
1030         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
1032         * misc.c (strerror): Fix swapped args in sprintf.
1034 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1036         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
1038 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1040         * main.c (print_version): Add 95 to copyright years.
1042         * Version 3.72.6.
1044         * job.c (start_job_command): Remember to call notice_finished_file
1045         under -n when not recursing.  To do this, consolidate that code
1046         under the empty command case and goto there for the -n case.
1048 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1050         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
1051         declare it int.
1053 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1055         * read.c (read_makefile): For bogus line starting with tab, ignore
1056         it if blank after removing comments.
1058         * main.c: Cast results of `alloca' to `char *'.
1059         * expand.c: Likewise.
1061 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1063         * Version 3.72.5.
1065         * configure.in: Check for mktemp.
1066         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
1068         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
1069         (_SC_OPEN_MAX)'.
1070         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
1071         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
1072         using sysconf.
1074 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1076         * remake.c (update_file_1): When !MUST_MAKE, don't set
1077         FILE->update_status to zero before calling notice_finished_file.
1078         (notice_finished_file): Touch only when FILE->update_status is zero.
1079         (remake_file): Set FILE->update_status to zero after not calling
1080         execute_file_command and deciding to touch instead.
1082 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1084         * main.c (debug_signal_handler): New function; toggles debug_flag.
1085         (main): Handle SIGUSR1 with that.
1087 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1089         * compatMakefile (realclean): Remove Info files.
1091 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1093         * Version 3.72.4.
1095         * job.c (start_job_command): Save and restore environ around vfork
1096         call.
1097         (search_path): Function #if 0'd out.
1098         (exec_command): Use execvp instead of search_path.
1100         * expand.c (variable_expand): Rewrote computed variable name and
1101         substitution reference handling to be simpler.  First expand the
1102         entire text between the parens if it contains any $s, then examine
1103         the result of that for subtitution references and do no further
1104         expansion while parsing them.
1106         * job.c (construct_command_argv_internal): Handle " quoting too,
1107         when no backslash, $ or ` characters appear inside the quotes.
1109         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
1110         defined, just use int.
1112 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1114         * default.c (default_variables) [__hpux]: Remove special
1115         definition of ARFLAGS.  Existence of the `f' flag is not
1116         consistent across HPUX versions; and one might be using GNU ar
1117         anyway.
1119         * compatMakefile (clean): Don't remove Info files.
1121         * compatMakefile (check): Remove gratuitous target declaration.
1123 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1125         * compatMakefile (ETAGS, CTAGS): Don't use -t.
1127         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
1129         * main.c (decode_switches): For --help, print usage to stdout.
1131 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1133         * Version 3.72.3.
1135         * remake.c (update_file_1): Do set_command_state (FILE,
1136         cs_not_started) only if old state was deps_running.
1138 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1140         * job.c (start_waiting_job): Use set_command_state.
1142         * build.template (CPPFLAGS): New variable.
1143         (prefix, exec_prefix): Set from @...@.
1144         (compilation loop): Pass $CPPFLAGS to compiler.
1146         * GNUmakefile (build.sh.in): Make it executable.
1148         * GNUmakefile (globfiles): Add configure.in, configure.
1150         * Version 3.72.2.
1152         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
1154         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
1156         * configure.in: Don't check for ranlib.
1158 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1160         * remake.c (notice_finished_file): Only mark also_make's as
1161         updated if really ran cmds.
1163 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1165         * configure.in: Put dnls before random whitespace.
1167 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1169         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
1170         (RANLIB): Variable removed.
1171         (prefix, exec_prefix): Set these from @...@.
1172         (.c.o): Use $(CPPFLAGS).
1173         (glob/libglob.a): Don't pass down variables to sub-make.
1174         glob/Makefile should be configured properly by configure.
1175         (distclean): Remove config.log and config.cache (autoconf stuff).
1177 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1179         * acconfig.h: Add #undef HAVE_UNION_WAIT.
1180         * configure.in: Converted to Autoconf v2.
1181         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
1182         of DIRENT, SYSDIR, NDIR.
1183         * build.sh.in (prefix, exec_prefix): Set these from @...@.
1184         (CPPFLAGS): New variable, set from @CPPFLAGS@.
1185         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
1186         * install.sh: File renamed to install-sh.
1188         * main.c (define_makeflags): When no flags, set WORDS to zero.
1190 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1192         * Version 3.72.1.
1194         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
1195         empty.
1197 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1199         * Version 3.72.
1201 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1203         * Version 3.71.5.
1205         * job.c (start_job_command): When ARGV is nil, only set
1206         update_state and call notice_finished_file if job_next_command
1207         returns zero.
1209         * job.c (start_job_command): Call notice_finished_file for empty
1210         command line.
1212 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1214         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
1215         COMMANDS_NOERROR.
1217 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1219         * Version 3.71.4.
1221 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1223         * file.c (snap_deps): Set command_flags bits in all :: entries.
1225 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1227         * make.h (posix_pedantic): Declare it.
1228         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
1229         snap_deps.
1230         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
1231         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
1232         command_flags and don't set -i.  Likewise .SILENT.
1233         * job.c (start_job_command): In FLAGS initialization, OR in
1234         CHILD->file->command_flags.
1235         * file.h (struct file): New member `command_flags'.
1237 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1239         * main.c (switches): Bump flag values for --no-print-directory and
1240         --warn-undefined-variables, so neither is 1 (which indicates a
1241         nonoption argument).
1243 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1245         * main.c (main): Add missing code in .IGNORE test.
1247 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1249         * variable.c (define_automatic_variables): Define +D and +F.
1251 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1253         * main.c (main): Define hidden automatic variable with command
1254         vars, and MAKEOVERRIDES to a reference to that.
1255         (define_makeflags): If posix_pedantic, write a reference to that
1256         instead.
1258 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1260         * main.c (posix_pedantic): New variable.
1261         (main): Set posix_pedantic if .POSIX is a target.
1262         Fix .IGNORE and .SILENT checks to require is_target.
1264         * commands.c (set_file_variables): Define new automatic variable
1265         $+, like $^ but before calling uniquize_deps.
1267         * job.c (reap_children): Call delete_child_targets for non-signal
1268         error if .DELETE_ON_ERROR is a target.
1270 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1272         * Version 3.71.3.
1274 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1276         * job.c (reap_children): Don't change C->file->command_state when
1277         dying.  Test it only after calling start_job_command for a new
1278         command line.  When no more cmds, just set C->file->update_status.
1279         (start_job_command): When the last line is empty or under -n, set
1280         C->file->update_status.
1281         (start_waiting_job): Grok cs_not_started after start_job_command
1282         as success.
1283         (new_job): Set C->file->update_status when there are no cmds.
1284         (job_next_command): When out of lines, don't set
1285         CHILD->file->update_status or CHILD->file->command_state.
1287         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
1288         if nonzero, also double $s.
1289         (main): Define MAKEOVERRIDES from command_variables here.
1290         (define_makeflags): Don't use command_variables here; instead write a
1291         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
1293         * dir.c [__MSDOS__]: Fixed typo.
1295         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
1297 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1299         * remake.c: Include <assert.h> and use assert instead of printfs
1300         and abort.
1302         * main.c (decode_switches): Loop until optind hits ARGC, not just
1303         until getopt_long returns EOF.  Initialize C to zero before loop;
1304         in loop if C is EOF, set optarg from ARGV[optind++], else call
1305         getopt_long.
1306         (decode_env_switches): Use variable_expand instead of
1307         allocated_variable_expand.  Allocate a fresh buffer to copy split
1308         words into; scan characters by hand to break words and
1309         debackslashify.
1310         (shell_quote): New function.
1311         (define_makeflags): Allocate doubled space for switch args, and command
1312         variable names and values; use shell_quote to quote those things.
1314 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1316         * Version 3.71.2.
1318         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
1320         * main.c (decode_switches): The non-option return from getopt is
1321         1, not 0.
1322         (command_variables): New type and variable.
1323         (decode_switches, decode_env_switches): After making a variable
1324         definition, record the struct variable pointer in the
1325         command_variables chain.
1326         (define_makeflags): If ALL, write variable definitions for
1327         command_variables.
1329         * main.c (other_args): Variable removed.
1330         (goals, lastgoal): New static variables (moved from auto in main).
1331         (main): Don't process OTHER_ARGS at all.
1332         Don't set variable MAKEOVERRIDES at all; define MAKE to just
1333         $(MAKE_COMMAND).
1334         (init_switches): Prepend a - {return in order} instead of a +
1335         {require order}.
1336         (decode_switches): Don't set OTHER_ARGS at all.
1337         Grok '\0' return from getopt_long as non-option argument; try
1338         variable definition and (if !ENV) enter goal targets here.
1339         (decode_env_switches): Use allocated_variable_expand to store value.
1340         Use find_next_token to simplify word-splitting loop.  Don't
1341         prepend a dash to uninterpreted value.  Instead, if split into
1342         only one word, try variable definition and failing that prepend a
1343         dash to the word and pass it to decode_switches as a single arg.
1345 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1347         * remake.c (notice_finished_file): Only recheck modtimes if
1348         FILE->command_state was cs_running on entry (meaning the commands
1349         actually just ran).
1350         (update_file_1): Whenever we set FILE->update_status, call
1351         notice_finished_file instead of just set_command_state.
1352         * job.c (start_job_command): Whenever we set
1353         CHILD->file->update_status, call notice_finished_file instead of
1354         just set_command_state.
1356 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
1358         * default.c: Add missing ".
1360         * job.c: Changed all assignments of command_state members to calls
1361         to set_command_state.
1362         * remake.c: Likewise.
1363         * file.c (set_command_state): New function.
1364         * file.h: Declare set_command_state.
1366         * main.c (init_switches): Put a + first in options.
1368 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1370         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1371         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
1372         * main.c (directory_before_chdir): New variable, moved out of main
1373         (was local).
1374         (main) [__MSDOS__]: Look for \ or : to delimit last component of
1375         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
1376         (die): Change back to `directory_before_chdir' before dying.
1377         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
1378         [__MSDOS__] and not.
1379         * job.c [__MSDOS__]: Include <process.h>.
1380         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
1381         dos_batch_file): New variables.
1382         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
1383         (unblock_sigs) [__MSDOS__]: Do nothing.
1384         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
1385         (load_too_high) [__MSDOS__]: Always return true.
1386         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
1387         Use PATH_SEPARATOR_CHAR instead of ':'.
1388         (construct_command_argv_internal) [__MSDOS__]: Wholly different
1389         values for sh_chars and sh_cmds.  Wholly new code to handle shell
1390         scripts.
1391         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
1392         implementation.
1393         * dir.c [__MSDOS__] (dosify): New function.
1394         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
1395         process the result instead of FILENAME itself.
1396         (file_impossible_p) [__MSDOS__]: Likewise.
1397         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
1398         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
1399         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
1400         `bison -y', and LEX to `flex'.
1401         * configure.bat, configh.dos: New files.
1402         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
1403         intermediates and exit.
1405         * commands.c (set_file_variables): Add parens in length
1406         computation in .SUFFIXES dep loop to quiet compiler warning.  From
1407         Jim Meyering.
1409         * read.c (read_makefile): Free FILENAME if we allocated it.  From
1410         Jim Meyering.
1412 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1414         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
1415         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
1416         * read.c (construct_include_path): Use safe_stat in place of stat.
1417         * job.c (search_path): Use safe_stat in place of stat.
1418         * dir.c (find_directory): Use safe_stat in place of stat.
1419         * commands.c (delete_target): Use safe_stat in place of stat.
1420         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
1421         * remake.c (name_mtime): Use safe_stat in place of stat.
1422         (touch_file) [EINTR]: Do EINTR looping around fstat.
1424 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1426         * read.c (read_makefile): Check for a shell command first, and
1427         then strip leading tabs before further checking if it's not a
1428         shell command line.
1430         * make.h [__arm]: Undefine POSIX.
1431         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
1432         functions that return int.
1434         * job.c (construct_command_argv_internal): After swallowing a
1435         backslash-newline combination, if INSTRING is set goto string_char
1436         (new label) for normal INSTRING handling code.
1438 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1440         * configure.in: Don't check for sys_siglist and _sys_siglist with
1441         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
1443 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1445         * Version 3.71.1 released.
1447         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
1448         _POSIX_VERSION for these declarations.
1450         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
1451         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
1453 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1455         * Version 3.71 released.
1457         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
1458         and [HAVE_SETGID].  Every system has those, and configure doesn't
1459         check for them.
1461         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
1463         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
1464         getloadavg.c.
1465         (loadavg.c): Link or copy it from getloadavg.c.
1466         (distclean): Remove loadavg.c.
1468 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1470         * Version 3.70.4.
1472         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
1473         and HAVE_SETEGID.
1475         * default.c (default_terminal_rules): In SCCS rules, put
1476         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
1477         only before the file name.
1478         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
1480 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1482         * job.c (construct_command_argv_internal): Swallow
1483         backslash-newline combinations inside '' strings too.
1485 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1487         * read.c (do_define): Call collapse_continuations on each line
1488         before all else.
1490 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1492         * job.c (construct_command_argv_internal): Notice newline inside
1493         '' string when RESTP is non-null.
1495 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1497         * Version 3.70.3.
1499         * remake.c (update_goal_chain): Reset FILE to G->file after the
1500         double-colon loop so it is never null for following code.
1502         * read.c (read_makefile): Fix `override define' parsing to skip
1503         whitespace after `define' properly.
1505         * compatMakefile (srcdir): Define as @srcdir@; don't reference
1506         $(VPATH).
1507         (glob/Makefile): New target.
1509 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1511         * Version 3.70.2.
1513         * misc.c (remove_comments): Use find_char_unquote.
1514         * make.h (find_char_unquote): Declare it.
1515         * read.c (find_char_unquote): New function, generalized from
1516         find_percent.
1517         (find_percent, find_semicolon, parse_file_seq): Use that.
1519 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1521         * implicit.c (pattern_search): Always allocate new storage for
1522         FILE->stem.  It is not safe to store STEM's address because it
1523         might be auto storage.
1525         * configure.in: Check for seteuid and setegid.
1526         * misc.c [HAVE_SETEUID]: Declare seteuid.
1527         [HAVE_SETEGID]: Declare setegid.
1528         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
1529         [HAVE_SETEGID]: Use setegid.
1531         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
1532         to preserve whether it's 2 for error or 1 for -q trigger.  When
1533         STATUS gets nonzero and -q is set, always stop immediately.
1534         * main.c (main, decode_switches): Die with 2 for errors.
1535         (main): Accept 2 return from update_goal_chain and die with that.
1536         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
1537         answer.
1538         * job.c (reap_children): Die with 2 for error.
1539         (start_job_command): Set update_status to 2 for error.  Set it to
1540         1 when we would run a command and question_flag is set.
1542         * read.c (read_makefile): Don't mark makefiles as precious.  Just
1543         like other targets, they can be left inconsistent and in need of
1544         remaking by aborted commands.
1546         * read.c (read_makefile): Write no error msg for -include file.
1548 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1550         * commands.c (fatal_error_signal): Don't unblock signals.
1552         * file.h (struct file): Change member `double_colon' from flag to
1553         `struct file *'.
1554         * read.c (record_files): Set double_colon pointer instead of flag.
1555         * main.c (main): When disqualifying makefiles for updating, use
1556         double_colon pointer to find all entries for a file.
1557         * file.c (enter_file): If there is already a double-colon entry
1558         for the file, set NEW->double_colon to that pointer.
1559         (file_hash_enter): Use FILE->double_colon to find all entries to
1560         set name.
1561         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
1562         (update_file): Use FILE->double_colon pointer to find all entries.
1563         (f_mtime): Likewise.
1564         (notice_finished_file): Propagate mtime change to all entries.
1566         * variable.c (try_variable_definition): Return after abort.
1568 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1570         * read.c (read_makefile): Remove unused variable.
1571         (parse_file_seq): When removing an elt that is just `)', properly
1572         fix up the previous elt's next pointer.
1574 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
1576         * configure.in: Do AC_SET_MAKE.
1577         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
1579 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1581         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
1582         the search string is the empty string, find a match at the end of
1583         each word (using end_of_token in place of sindex).
1585         * misc.c (end_of_token): Don't treat backslashes specially; you
1586         can no longer escape blanks with backslashes in export, unexport,
1587         and vpath.  This was never documented anyway.
1589 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1591         * read.c (read_makefile): Variable name for `define' is not just
1592         first token; use whole rest of line and strip trailing blanks.
1594 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1596         * Version 3.70.1.
1598         * read.c (read_makefile): Add -d msg stating args.
1600         * read.c (read_makefile): Use isspace to skip over leading
1601         whitespace, and explicitly avoid skipping over tabs.  Don't want
1602         to skip just spaces though; formfeeds et al should be skipped.
1604         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
1606         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
1607         sizeof ar_name for max length to compare.
1609         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
1610         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
1612         * main.c (main): Call user_access after setting `program', in case
1613         it needs to use it in an error message.
1615         * read.c (read_makefile): Ignore an empty line starting with a tab.
1617 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1619         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
1620         AC_COMPILE_CHECK that is now its contents.
1622 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1624         * make.h: #undef strerror after #include <string.h>.
1625         [! ANSI_STRING]: Declare strerror.
1627 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1629         * misc.c (strerror): #undef any macro before function definition.
1631 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1633         * variable.c (try_variable_definition): Calculate BEG before loop
1634         to strip blanks by decrementing END.  Don't decr END to before BEG.
1636         * read.c (read_makefile): Skip over leading space characters, but
1637         not tabs, after removing continuations and comments (it used to
1638         use isspace).
1640 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1642         * variable.c (define_automatic_variables): In $(@D) et al, use
1643         patsubst to remove trailing slash.
1645         * commands.c (delete_target): New function, broken out of
1646         delete_child_targets.  Check for archive members and give special msg.
1647         (delete_child_targets): Use delete_target.
1649 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1651         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
1652         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
1654 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1656         * GNUmakefile (tarfiles): Omit make-doc.
1657         (make-$(version).tar): Include make.info*.
1659 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1661         * compatMakefile (configure, config.h.in): Comment out rules.
1663 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1665         * compatMakefile (binprefix, manprefix): New variables.
1666         (instname): Variable removed.
1667         (install): Use $({bin,man}prefix)make in place of $(instname).
1668         File targets likewised renamed.
1670 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1672         * Version 3.70 released.
1674 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1676         * Version 3.69.3.
1678         * read.c (parse_file_seq): Inside multi-word archive ref
1679         translation loop, check NEW1==0 at end and break out of the loop.
1681         * GNUmakefile (make-$(version).tar): Distribute install.sh.
1682         * install.sh: New file.
1684         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
1685         cmds outside subshell parens, to avoid "command not found" msgs
1686         from the shell.
1688 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1690         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
1691         Redirect output & error from get to /dev/null.
1692         Fix reversed sense of test.
1694 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1696         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
1697         braces inside if condition command; some shells lose.
1699 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1701         * Version 3.69.2.
1703         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
1704         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
1706         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
1708 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1710         * main.c (main): Cast result of pointer arith to unsigned int
1711         before passing to define_variable for envars.  Matters when
1712         sizeof(unsigned)!=sizeof(ptrdiff_t).
1714 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1716         * configure.in: Add new check for SCCS_GET_MINUS_G.
1717         * config.h.in: Add #undef SCCS_GET_MINUS_G.
1718         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
1719         place of `-G $@' in SCCS commands.
1720         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
1721         to "-G$@".
1723         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
1724         (so it goes in config.status), rather than afterward.
1726         * ar.c (ar_member_date): Don't call enter_file on the archive file
1727         if it doesn't exist (by file_exists_p).
1729         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
1730         with `$$dir/make.info' in install-info invocation (oops).
1732         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
1733         we do not unlink and free PATH.
1735         * file.c (print_file_data_base): Fix inverted calculation for
1736         average files per hash bucket.
1738         * read.c (readline): When we see a NUL, give only a warning and
1739         synthesize a newline to terminate the building line (used to
1740         fatal).  Move fgets call into the loop condition, and after the
1741         loop test ferror (used to test !feof in the loop).
1743 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1745         * configure.in: Check for strerror in AC_HAVE_FUNCS.
1747 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1749         Differentiate different flavors of missing makefile error msgs,
1750         removing gratuitous `fopen: ' and giving caller for included makefiles.
1751         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
1752         (perror_with_name, pfatal_with_name): Use strerror instead of
1753         replicating its functionality.
1754         * read.c (read_makefile): Return int instead of void.
1755         (read_all_makefiles, read_makefile): Change callers to notice zero
1756         return and give error msg.
1758 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1760         * Version 3.69.1.
1762         * default.c: Put `-G $@' before $< in SCCS cmds.
1764 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1766         * read.c (read_makefile): After trying a variable defn, notice if
1767         the line begins with a tab, and diagnose an error.
1769 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1771         * Version 3.69.
1773 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1775         * Version 3.68.10.
1777         * implicit.c (try_implicit_rule): Look for a normal rule before an
1778         archive rule.
1780 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1782         * function.c (expand_function: `sort'): Double NWORDS when it
1783         overflows, instead of adding five.
1785         * compatMakefile (clean): Remove loadavg.
1787 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1789         * Version 3.68.9.
1791         * file.h (NEW_MTIME): Define new macro.
1792         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
1793         current time returned from system.  Removed variable NOW.
1794         * remake.c (notice_finished_file): Use NEW_MTIME in place of
1795         current time here too.
1797 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1799         * Version 3.68.8.
1801         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1802         cmds and !DEPS_CHANGED unless also !NOEXIST.
1804 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1806         * read.c (parse_file_seq): When converting multi-word archive
1807         refs, ignore a word beginning with a '('.
1809 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1811         * configure.in: Check for sys/timeb.h.
1812         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1814 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1816         * Version 3.68.7.
1818         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
1819         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
1820         TARGNAME to initialize PERCENTS[0].
1822 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1824         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1825         Remove AC_USG; it is no longer used.
1827         * file.c (print_file): New function, broken out of
1828         print_file_data_base.
1829         (print_file_data_base): Call it.
1830         * rule.c (print_rule): New function, broken out of
1831         print_rule_data_base.
1832         (print_rule_data_base): Call it.
1834 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1836         * default.c (install_default_suffix_rules): New function, broken
1837         out of install_default_implicit_rules.
1838         (install_default_implicit_rules): Move suffix rule code there.
1839         * make.h: Declare install_default_suffix_rules.
1840         * main.c (main): Call install_default_suffix_rules before reading
1841         makefiles.  Move convert_to_pattern call before
1842         install_default_implicit_rules.
1844         * job.h (struct child): Make `pid' member type `pid_t' instead of
1845         `int'.
1847         * compatMakefile (RANLIB): New variable, set by configure.
1848         (glob/libglob.a): Pass RANLIB value down to submake.
1850         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1851         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1852         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1853         defined but NOFILES_MAX is, define it to be that.
1855 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1857         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1858         is distributed.
1860 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1862         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1864 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1866         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1867         is another symbol for | in some shells.
1868         * main.c (main): Add it to CMD_DEFS quoting list as well.
1870 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1872         * job.c (construct_command_argv_internal): Remove '=' from
1873         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1874         first word without an unquoted '='.
1876         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1878 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1880         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1882         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1884         * commands.c (delete_child_targets): Don't delete phony files.
1886         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1887         see a `+' at the beginning of the command line.
1889 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1891         * Version 3.68.6.
1893 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1895         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1897 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1899         * expand.c (variable_expand): Fatal on an unterminated reference.
1901 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1903         * Version 3.68.5.
1905         * variable.c (define_automatic_variables): Define new o_default
1906         variable `MAKE_VERSION' from version_string and remote_description.
1908         * make.h (version_string, remote_description): Declare these here.
1909         * main.c: Don't declare version_string.
1910         (print_version): Don't declare remote_description.
1912 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1914         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1915         before restoring the old pointer.
1917 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1919         * compatMakefile ($(objs)): Depend on config.h.
1921         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1923         * configure.in: Touch stamp-config after AC_OUTPUT.
1925 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1927         * Version 3.68.4.
1929 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1931         * make.h: Include <config.h> instead of "config.h".
1933 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1935         * main.c (main): Make all variables interned from ENVP be v_export.
1936         * variable.c (try_variable_definition): In v_default case, don't
1937         check for an o_file variable that `getenv' finds.
1939         * job.c (reap_children): New local variable ANY_LOCAL; set it
1940         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1942         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1944         * function.c (expand_function): #if 0 out freeing of ENVP since it
1945         is environ.
1947 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1949         * Version 3.68.3.
1951         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1952         * job.c (reap_children): Scan the chain for remote children and
1953         never call remote_status if there are none.
1955         * function.c (expand_function: `shell'): #if 0 out calling
1956         target_environment; just set ENVP to environ instead.
1958         * job.c (reap_children): Check for negative return from
1959         remote_status and fatal for it.
1960         When blocking local child wait returns 0, then try a blocking call
1961         to remote_status.
1963 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1965         * compatMakefile (clean): Delete make.info* and make.dvi here.
1966         (distclean): Not here.
1968         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1969         compilers that don't like enum values used as ints.
1971 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1973         * compatMakefile (loadavg): Add $(LOADLIBES).
1975 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1977         * Version 3.68.2.
1979         * compatMakefile (loadavg, check-loadavg): New targets.
1980         (check): Depend on check-loadavg.
1982         * compatMakefile (glob/libglob.a): Depend on config.h.
1984         * misc.c (log_access): Write to stderr instead of stdout.
1986 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1988         * Version 3.68.1.
1990 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1992         * configure.in (SYS_SIGLIST_DECLARED): In test program include
1993         <unistd.h> #ifdef HAVE_UNISTD_H.
1995         * compatMakefile (.PHONY): Put after `all' et al.
1997         * configure.in: Add AC_IRIX_SUN.
1999 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2001         * Version 3.68.
2003 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2005         * Version 3.67.8.
2007 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2009         * Version 3.67.7.
2011         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
2012         Run install-info script if present.
2014 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2016         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
2018         * configure.in: Add AC_STAT_MACROS_BROKEN.
2020 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2022         * Version 3.67.6.
2024         * read.c (read_makefile): Recognize directive `-include', like
2025         `include' but sets RM_DONTCARE flag.
2027         * variable.c (target_environment): If FILE is nil, use
2028         current_variable_set_list in place of FILE->variables.
2029         * function.c (expand_function: `shell'): Get an environment for
2030         the child from target_environment instead of using environ.
2032         * dep.h: Declare read_all_makefiles here.
2033         (RM_*): Define new enum constants.
2034         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
2035         Treat it as a bit mask containing RM_*.
2036         (read_all_makefiles): For default makefiles, set D->changed to
2037         RM_DONTCARE instead of 1.
2038         * main.c: Don't declare read_all_makefiles here.
2039         (main): Check `changed' member of read_makefiles elts for RM_*
2040         flags instead of specific integer values.
2042 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2044         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
2046 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2048         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
2049         as well as VPATH.
2050         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
2051         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
2053         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
2054         PERCENTS, whose storage is not consumed by create_pattern_rule.
2056         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
2058 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2060         * Version 3.67.5.
2062         * rule.c (max_pattern_targets): New variable.
2063         (count_implicit_rule_limits): Compute its value.
2064         * rule.h: Declare it.
2065         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
2066         times bigger.  Move adding new TRYRULES elt inside the inner
2067         targets loop, so each matching target gets its own elt in MATCHES
2068         and CHECKED_LASTSLASH.
2070         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
2071         instead of just `file' in error msg.
2073 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2075         * job.c (construct_command_argv): Turn off
2076         --warn-undefined-variables around expansion of SHELL and IFS.
2077         * read.c (tilde_expand): Likewise for HOME.
2078         (read_all_makefiles): Likewise for MAKEFILES.
2079         * vpath.c (build_vpath_lists): Likewise for VPATH.
2081         * main.c (warn_undefined_variables_flag): New flag variable.
2082         (switches): Add --warn-undefined-variables.
2083         * make.h (warn_undefined_variables_flag): Declare it.
2084         * expand.c (warn_undefined): New function.
2085         (reference_variable): Call it if the variable is undefined.
2086         (variable_expand): In substitution ref, call warn_undefined if the
2087         variable is undefined.
2089         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
2090         `%.tex: %.w %.ch' rules.
2091         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
2092         (default_suffixes): Add `.ch'.
2094 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2096         * default.c (default_suffixes): Replace `.cweb' with `.w'.
2097         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
2098         and `.w.tex'.
2100 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2102         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
2104 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2106         * Version 3.67.4.
2108         * read.c (multi_glob): Don't free OLD and OLD->name in the
2109         FOUND!=0 fork.  Use new block-local variable F instead of
2110         clobbering OLD.
2112         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
2113         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
2114         contains no metacharacters.
2116 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2118         * ar.c (ar_glob{_match,_alphacompare}): New function.
2120         * dep.h [! NO_ARCHIVES]: Declare it.
2121         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
2123         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
2124         multi_glob (which doesn't take a 3rd arg).
2125         * rule.c (install_pattern_rule): Likewise.
2126         * default.c (set_default_suffixes): Here too.
2127         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
2129         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
2130         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
2132 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2134         * compatMakefile (installdirs): Actually pass directory names.
2135         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
2136         if it fails, echo a warning msg, but don't make the rule fail.
2138         * read.c (tilde_expand): New function, broken out of tilde_expand.
2139         (multi_glob): Call it.
2140         (construct_include_path): Expand ~ in directory names.
2141         * dep.h: Declare tilde_expand.
2142         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
2143         (main): Expand ~ in -C args.
2144         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
2146 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2148         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
2150         * main.c (main): Put result of alloca in temporary variable with
2151         simple assignment, to make SGI compiler happy.
2153 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2155         * Version 3.67.3.
2157         * main.c (main): Before re-execing, remove intermediate files, and
2158         print the data base under -p.  Sexier debugging message.
2160         * implicit.c (pattern_search): Allocate an extra copy of the name
2161         of a winning intermediate file when putting it in FOUND_FILES.
2163 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2165         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
2166         multi_glob (which doesn't take a 3rd arg).
2168         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
2169         chars within D_NAMLEN that are NULs.
2171         * main.c (decode_switches): Don't savestring ARGV[0] to put it
2172         into `other_args'.
2173         For string switch, don't savestring `optarg'.
2174         (main): Don't free elts of makefiles->list that are "-".
2175         Use alloca'd rather than savestring'd storage for elts of
2176         makefiles->list that are temporary file names.
2177         * read.c (read_all_makefiles): Don't free *MAKEFILES.
2178         * file.c (enter_file): Don't strip `./'s.
2179         * main.c (enter_command_line_file): New function.
2180         (main): Use it in place of enter_file for command-line goals from
2181         other_files, and for old_files and new_files.
2183 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2185         * Version 3.67.2.
2187         * compatMakefile (.SUFFIXES): Add .info.
2188         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
2189         else in $srcdir.  Use basename to remove dir name from installed name.
2191 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2193         * implicit.c (pattern_search): When interning FOUND_FILES, try
2194         lookup_file first; if found, free the storage for our copy of the name.
2196 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2198         * Version 3.67.1.
2200         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
2201         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
2203 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2205         * rule.c (convert_suffix_rule): New function.
2206         (convert_to_pattern): Use it instead of doing all the work here
2207         several times.
2208         For target suffix `.a', generate both the archive magic rule and
2209         the normal rule.
2211         * compatMakefile (distclean): Remove stamp-config.
2213 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2215         * Version 3.67.
2217         * file.c (remove_intermediates): Don't write extra space after `rm'.
2219         * main.c (struct command_switch.type): Remove `usage_and_exit'.
2220         (print_usage_flag): New variable.
2221         (switches: --help): Make type `flag', to set print_usage_flag.
2222         (init_switches): Remove `usage_and_exit' case.
2223         (decode_switches): Likewise.
2224         (decode_switches): Print usage if print_usage_flag is set.
2225         When printing usage, die with status of BAD.
2226         (main): Die with 0 if print_version_flag.
2228 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2230         * Version 3.66.
2232 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2234         * compatMakefile (installdirs): New target.
2235         (install): Depend on it.
2237 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2239         * Version 3.65.2.
2241 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2243         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
2244         set LASTPATH to PATH, not NEXT.
2246         * dir.c (read_dirstream): Break out of loop after incrementing
2247         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
2248         dereference DS->contents->files[DIRFILE_BUCKETS].
2250         * read.c (read_makefile): Clear no_targets after reading a
2251         targetful rule line.
2253         * main.c (main): If print_version_flag is set, exit after printing
2254         the version.
2255         (switches): Change --version docstring to say it exits.
2257         * make.h [butterfly]: #undef POSIX.
2259 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2261         * Version 3.65.1.
2263         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
2264         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
2266         * function.c (handle_function): Use fatal instead of
2267         makefile_fatal when reading_filename is nil.
2269         * configure.in: Add AC_GETGROUPS_T.
2270         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
2272 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2274         * Version 3.65.
2276 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2278         * function.c (handle_function): Fatal for unmatched paren.
2280 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2282         * Version 3.64.3.
2284         * commands.c (handling_fatal_signal): New variable.
2285         (fatal_error_signal): Set it.
2286         * job.c (reap_children): Avoid nonreentrant operations if that is set.
2287         * make.h: Declare handling_fatal_signal.
2289         * expand.c (reference_variable): New function, snippet of code
2290         broken out of simple-reference case of variable_expand.
2291         (variable_expand): Use it for simple refs.
2292         (variable_expand): When checking for a computed variable name,
2293         notice a colon that comes before the final CLOSEPAREN.  Expand
2294         only up to the colon, and then replace the pending text with a
2295         copy containing the expanded name and fall through to subst ref
2296         handling.
2297         (variable_expand): Don't bother expanding the name if a colon
2298         appears before the first $.
2299         (expand_argument): Use alloca instead of savestring.
2300         (variable_expand): For subst ref, expand both sides of = before
2301         passing to [pat]subst_expand.  Use find_percent instead of lindex
2302         to check the lhs for a %.
2304 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2306         * Version 3.64.2.
2308 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2310         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
2312         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
2313         not to multi_glob.
2315 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2317         * Version 3.64.1.
2319         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
2320         we read the member name in any of the fashions that allow it to be
2321         arbitrarily long.  Pass its negation to FUNCTION.
2322         (describe_member): Take TRUNCATED from ar_scan and print it.
2323         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
2324         the first sizeof (struct ar_hdr.ar_name) chars.
2325         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
2326         * ar.c (ar_member_date_1): Likewise.
2328 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2330         * job.c (reap_children): Before calling start_job_command to start
2331         the next command line, reset C->remote by calling start_remote_job_p.
2333 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2335         * arscan.c (ar_scan): New local var NAMEMAP.
2336         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
2337         flag IS_NAMEMAP.  When extracting the member name, always put a
2338         null at its end first.  If the name is "//" or "/ARFILENAMES", set
2339         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
2340         like " /N", get full name from NAMEMAP+N.
2341         Else if NAME looks like "#1/N", read N chars from the
2342         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
2343         the elt's data into alloca'd NAMEMAP.
2344         (ar_name_equal): #if 0 truncating code.
2346         * make.h: Don't declare vfork at all.  It returns int anyway,
2347         unless <unistd.h> declared it; and we conflicted with some systems.
2349         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
2350         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
2351         define it to something like "-no-print-directory".
2352         Use %g format instead of %f for floating-valued things.
2354 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2356         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
2357         to change remote-%.dep to remote-stub.dep.
2359 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2361         * Version 3.64.
2363 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2365         * compatMakefile (install): Remove - prefix from chgrp+chmod.
2367         * Version 3.63.8.
2369 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2371         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
2372         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
2373         else to "get".
2374         * default.c (default_variables): Set GET to macro SCCS_GET.
2376         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
2377         if nonzero.  I hope this is the last time this argument is added
2378         or removed.
2379         (read_makefile): Pass it 1 when parsing include file names.
2380         Pass it 1 when parsing target file names.
2381         Pass it 1 when parsing static pattern target pattern names.
2382         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
2383         * default.c (set_default_suffixes): Pass it 1 when parsing
2384         default_suffixes.
2385         * function.c (string_glob): Pass it 0 here.
2387 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2389         * misc.c (log_access): New function.
2390         ({init,user,make,child}_access): Call it.
2391         (child_access): Abort if !access_inited.
2393         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
2394         single-letter option.
2395         (init_switches, decode_switches, define_makeflags): An option with
2396         no single-letter version is no longer indicated by a value of -1;
2397         instead a value that is !isalnum.
2398         (init_switches): Don't put such switches into the string, only
2399         into the long_option table.
2401         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
2403         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
2404         bsdcc defined WIF* to use union wait.
2406         * main.c (struct command_switch): Change member `c' to type int.
2407         (switches): Make const.
2408         (decode_switches): Use `const struct command_switch *'.
2409         (define_makeflags): Likewise.
2411         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
2413 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2415         * Version 3.63.7.
2417         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
2418         Removed AC_MEMORY_H.
2419         * make.h [USG, NeXT]: Don't test these.
2420         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
2421         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
2422         [! ANSI_STRING]: Put decls of bcopy et al here.
2423         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
2424         [HAVE_SIGSETMASK]: Test this rather than USG.
2425         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
2426         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
2427         It doesn't hurt to do both if they are both defined, and testing
2428         USG is useless.
2429         * dir.c: Rationalize directory header conditionals.
2430         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
2432         * default.c (default_suffixes): Add `.txinfo'.
2433         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
2435         * variable.c (try_variable_definition): Replace RECURSIVE flag
2436         with enum FLAVOR, which can be simple, recursive, or append.
2437         Recognize += as append flavor.  Set new variable VALUE in a switch
2438         on FLAVOR.  For append flavor, prepend the variable's old value.
2439         If the variable was previously defined recursive, set FLAVOR to
2440         recursive; if it was defined simple, expand the new value before
2441         appending it to the old value.  Pass RECURSIVE flag to
2442         define_variable iff FLAVOR == recursive.
2444         * variable.c (try_variable_definition): Use alloca and bcopy for
2445         NAME, instead of savestring.  Might as well use stack storage
2446         since we free it immediately anyway.
2448 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2450         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
2452         * main.c (define_makeflags): Rename `struct flag' member `switch'
2453         to `cs', which is not a reserved word.
2455 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2457         * job.c (new_job): Call start_waiting_jobs first thing.
2458         (start_waiting_job): Changed return type from void to int.
2459         Return 0 when putting the child on the waiting_jobs chain.
2460         (start_waiting_jobs): Don't check load and job_slots here.
2461         Always take a job off the chain and call start_waiting_job on it;
2462         give up and return when start_waiting_job returns zero.
2464         * main.c (define_makeflags: struct flag): Change member `char c' to
2465         `struct command_switch *switch'.
2466         (ADD_FLAG): Set that to CS instead of CS->c.
2467         If CS->c is -1, increment FLAGSLEN for the long name.
2468         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
2469         the long name instead.
2471         * compatMakefile (stamp-config): New target of old config.h rule.
2472         Touch stamp-config after running config.status.
2473         (config.h): Just depend on stamp-config, and have empty commands.
2475 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2477         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
2479         * configure.in (AC_HAVE_FUNCS): Check for psignal.
2481 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2483         * main.c (long_option_aliases): Remove "new"; it is already an
2484         unambiguous prefix of "new-file".
2486 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2488         * Version 3.63.6.
2490 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2492         * vpath.c (selective_vpath_search): When adding the
2493         name-within-directory at the end of NAME, and we don't add a
2494         slash, don't copy FILENAME in one char too far into NAME.
2496         * variable.c (define_automatic_variables): Find default_shell's
2497         length with strlen, not numerology.
2499 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2501         * main.c (define_makeflags): Add the elts of a string option in
2502         reverse order, so they come out right when reversed again.
2504 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2506         * compatMakefile (make.info): Use `-o make.info'.
2508 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2510         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
2511         reflect new use.
2512         (objs): Replace remote.o with remote-$(REMOTE).o.
2513         (srcs): Replace remote.c with remote-$(REMOTE).c.
2514         (remote.o): Rule removed.
2516         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
2517         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
2518         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
2519         * build.template (REMOTE): New var; set to @REMOTE@.
2520         (objs): Add remote-${REMOTE}.o.
2522 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2524         * Version 3.63.5.
2526         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
2527         "Rejecting impossible" -d msg.
2529         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
2530         mod'd values there; never mod {OLD,NEW}HASH.
2532 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2534         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
2536         * compatMakefile (VPATH): Set this to @srcdir@.
2537         (srcdir): Set this to $(VPATH).
2539         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
2540         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
2541         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
2543         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
2545         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
2547 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2549         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
2550         as the sed delimiter char.
2552 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2554         * Version 3.63.4.
2556         * rule.h (struct rule): Removed `subdir' member.
2557         * rule.c (new_pattern_rule): No need to clear it.
2558         (count_implicit_rule_limits): Set the `changed' flag in each dep
2559         that refers to a nonexistent directory.  No longer set rule-global
2560         `subdir' flag with that information.
2561         (print_rule_data_base): Don't record info on `subdir' flags.
2563         * implicit.c (pattern_search): Check the DEP->changed flag rather
2564         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
2565         if it is set, the file might exist even though the DEP->changed
2566         flag is set.
2568         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
2569         name arg to dir_file_exists_p to check for existence of directory.
2571         * implicit.c (pattern_search): Inside dep-finding loop, set
2572         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
2573         rather than computing it anew.
2575         * commands.c (set_file_variables): Must alloca space for PERCENT
2576         and copy it, to avoid leaving the trailing `)' in the value.
2578         * misc.c (remove_comments): Fixed backslash-checking loop
2579         condition to allow it to look at the first char on the line.
2580         P2 >= LINE, not P2 > LINE.
2582         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
2583         $@, rm $@.old and mv $@ to $@.old.
2585         * variable.c (try_variable_definition): Take new args FILENAME and
2586         LINENO.  Fatal if the variable name is empty.
2587         * read.c (read_makefile): Change callers.
2588         * main.c (main): Likewise.
2590         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
2591         that configure will replace with the group owning /dev/kmem.
2593 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2595         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
2596         selective_vpath_search.
2597         (selective_vpath_search): Take second arg MTIME_PTR.
2598         If the dir cache thinks a file exists, stat it to make sure, and
2599         put the modtime in *MTIME_PTR.
2600         * remake.c (library_search): Take second arg MTIME_PTR.
2601         When we find a match, record its mtime there.
2602         Pass MTIME_PTR through to vpath_search to do same.
2603         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
2604         store it in FILE->last_mtime if set nonzero.
2605         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
2607         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
2608         so globbing looks somewhere it will find things.
2610         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
2611         not `$(srcdir)/make.info*'; no need to use basename.
2613 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2615         * Version 3.63.3.
2617         * compatMakefile (install): Add missing ;\s.
2619         Make -, @, and + prefixes on a pre-expanded command line affect
2620         all lines in the expansion, not just the first.
2621         * commands.h (struct commands): Replace `lines_recurse' member
2622         with `lines_flags'.
2623         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
2624         that flag byte.
2625         * commands.c (chop_commands): Set `lines_flags' instead of
2626         `lines_recurse'.  Record not only + but also @ and - prefixes.
2627         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
2628         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
2629         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
2630         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
2631         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
2632         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
2634         * remake.c (update_goal_chain): Set G->file to its prev after
2635         checking for G being finished, since that check needs to examine
2636         G->file.
2638         * configure.in (union wait check) [HAVE_WAITPID]: Try using
2639         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
2640         don't work together, we should not use union wait.
2642         * Version 3.63.2.
2644         * remake.c (update_goal_chain): When G->file->updated, move
2645         G->file to its prev.  We aren't finished until G->file is nil.
2647 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2649         * main.c (starting_directory): New global variable.
2650         (main): Set it to cwd after doing -Cs.
2651         (log_working_directory): Use it, rather than computing each time.
2652         * make.h: Declare it.
2654         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
2656         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
2657         ARGV, rather than LEN words plus one byte.
2659 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2661         * compatMakefile ($(bindir)/$(instname)): Put - before
2662         install_setgid command line, so its failure won't be an error.
2663         (infodir): New variable.
2664         (install): Depend on $(infodir)/$(instname).info.
2665         ($(infodir)/$(instname).info): New target.
2667         * read.c (read_makefile): If FILENAMES is nil when we see a line
2668         starting with a tab, don't treat it as a command.  Just fall
2669         through, rather than giving an error.
2671         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
2672         command line, don't clear it before continuing.  We want
2673         subsequent command lines to be ignored as well.
2675         * job.c (new_job): Before expanding each command line, collapse
2676         backslash-newline combinations that are inside var or fn references.
2678 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2680         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
2682         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
2684         * job.c [POSIX] (unblock_sigs): Made global.
2685         [!POSIX] (unblock_sigs): Move defns to job.h.
2686         * job.h [POSIX] (unblock_sigs): Declare.
2688 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2690         * read.c (read_makefile): In vpath parsing, after finding the
2691         pattern token, take entire rest of line as the search path, not
2692         just the next token.
2694         * compatMakefile (remote.o): Depend on remote-*.c.
2696 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2698         * commands.c (set_file_variables): Don't define any F or D versions.
2699         * variable.c (define_automatic_variables): Define them here as
2700         recursively-expanded variables that use the dir and notdir funcs.
2702         * variable.c (target_environment): In v_default case, don't export
2703         o_default or o_automatic variables.
2705         * configure.in (union wait check): Remove ` and ' inside C code;
2706         they confuse the shell script.
2708 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2710         * Version 3.63.1.
2712         * vpath.c (construct_vpath_list): When skipping further processing
2713         of an elt that is ".", don't also skip the code that pushes P past
2714         the next separator.
2716         * compatMakefile (distclean): Don't remove make-*.
2718         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
2719         defined.  If one cannot use WEXITSTATUS with a `union wait'
2720         argument, we don't want to believe the system has `union wait' at all.
2722         * remake.c (update_file): Do nothing to print "up to date" msgs.
2723         (update_goal_chain): Do it here instead.
2724         Use the `changed' flag of each goal's `struct dep' to keep track
2725         of whether files_remade (now commands_started) changed around a
2726         call to update_file for that goal.
2727         When a goal is finished, and its file's update_status is zero (i.e.,
2728         success or nothing done), test the `changed' flag and give an "up
2729         to date" msg iff it is clear.
2730         * make.h (files_remade): Renamed to commands_started.
2731         * remake.c: Changed defn.
2732         (update_goal_chain): Changed uses.
2733         * job.c (start_job_command): Increment commands_started here.
2734         (reap_children): Not here.
2736         * remake.c (update_goal_chain): Don't do anything with files'
2737         `prev' members.  update_file now completely handles this.
2739         * variable.c (target_environment): Don't expand recursive
2740         variables if they came from the environment.
2742         * main.c (define_makeflags): For flags with omitted optional args,
2743         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
2744         so stored cannot have more flags appended to the same word.
2746 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2748         * variable.c (print_variable_set): In vars/bucket calculation,
2749         don't spuriously multiply by 100.
2751         * Version 3.63.
2753         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
2754         Don't define if already defined.
2756         * remake.c (update_file): Don't keep track of the command_state before
2757         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
2758         and don't test it to decide to print the "is up to date" msg.
2759         Testing for files_remade having changed should always be sufficient.
2760         The old method lost when we are called in the goal chain run on a
2761         makefile, because the makefile's command_state is already
2762         `cs_finished' from the makefile chain run.
2764         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
2766         * configure.in: Rewrote wait checking.
2767         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
2768         Use AC_HAVE_FUNCS to check for waitpid and wait3.
2769         Use a compile check to test just for `union wait'.
2770         * job.c: Rewrote conditionals accordingly.
2771         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
2772         [HAVE_WAIT3]: Likewise.
2773         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
2775         * configure.in: Set CFLAGS and LDFLAGS before all checks.
2777         * dir.c: Add static forward decls of {open,read}_dirstream.
2779 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2781         * Version 3.62.31.
2783         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
2785         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
2786         * build.template (CFLAGS, LDFLAGS): Same here.
2787         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
2788         Set them to -g if not defined in the environment.
2790         * remake.c (library_search): Use LIBNAME consistently, setting it
2791         only once, to be the passed name sans `-l'.
2792         Pass new var FILE to be modified by vpath_search.
2794 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2796         * Version 3.62.30.
2798         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
2799         job_slots.
2801         * configure.in: Add AC_CONST for the sake of getopt.
2803         * read.c (read_makefile): Continue after parsing `override'
2804         directive, rather than falling through to lossage.
2805         Check for EOL or blank after "override define".
2807         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2809 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2811         * Version 3.62.29.
2813         * main.c (define_makeflags): After writing everything into
2814         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2815         just wrote " -".  Always terminate the string at *P.
2817         * remake.c (library_search): When constructing names in std dirs,
2818         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2819         buffer we are writing into!).
2821 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2823         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2824         define" when IGNORING is true.
2826         * compatMakefile (distclean): Remove config.status and build.sh.
2828 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2830         * Version 3.62.28.
2832         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2833         (char *).
2835         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2837         * variable.c (define_automatic_variables): Override SHELL value for
2838         origin o_env_override as well as o_env.
2840         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
2841         add the names of the glob objects (w/subdir) to %objs%.
2842         * build.template (globobjs): Removed.
2843         Take basename of $objs before linking.
2845 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2847         * Version 3.62.27.
2849         * configure.in (AC_OUTPUT): Also edit build.sh.
2850         * build.template: New file.
2851         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2852         (make-$(version).tar.Z): Depend on build.sh.in.
2854         * main.c (die): Call print_data_base if -p.
2855         (main): Don't call it here.
2857         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2858         into -DHAVE_CONFIG_H.
2860 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2862         * Version 3.62.26.
2864         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2865         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2866         * compatMakefile (install_setgid): New var, set by configure.
2867         (install): Install setgid $(group) only if $(install_setgid) is true.
2869 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2871         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2872         message saying that load limits are not supported.
2874         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2875         not try to use PATH's next link after freeing PATH.
2877         * main.c (define_makeflags): Rewritten; now handles string-valued
2878         option, and has no arbitrary limits.
2879         (switches): Set `toenv' flag for -I and -v.
2881         * main.c (decode_env_switches): Cast return value of alloca to char *.
2883         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2884         setre[gu]id in place of set[gu]id.
2886 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2888         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2889         origin o_default.
2891         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2892         Testing STDC_HEADERS should be sufficient.
2894         * job.h: Declare start_waiting_jobs.
2896         * read.c (read_makefile): Add missing parens in if stmt that find
2897         conditional directives.
2899         * main.c (main): Declare init_dir.
2900         * implicit.c (pattern_search): Always use two % specs in a
2901         DEBUGP2, and always pass two non-nil args.
2902         Cast field width args to int.
2903         Add missing parens in !RULE->subdir if stmt.
2904         * function.c (expand_function, patsubst_expand): Add parens around
2905         assignments inside `while' stmts.
2906         * commands.c (print_commands): Cast field width args to int.
2908         * read.c (do_define): Cast return value of alloca to (char *).
2910         * main.c (init_switches): New function, broken out of decode_switches.
2911         (decode_switches): Take new arg ENV.  If set, ignore non-option
2912         args; print no error msgs; ignore options with clear `env' flags.
2913         (decode_env_switches): Rewritten to chop envar value into words
2914         and pass them to decode_switches.
2915         (switches): Set `env' flag for -I and -v.
2917         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2919 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2921         * Version 3.62.25.
2923         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2924         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2925         we don't need these anyway.
2927         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2928         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2929         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2930         but its set[gu]id functions aren't; its setre[gu]id functions work.
2932         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2934         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2936         * configure.in: Call AC_PROG_CC.
2937         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2939         * compatMakefile: Add .NOEXPORT magic target.
2941 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2943         * main.c (print_version): Updated copyright to include 93.
2945 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2947         * make.h [_AIX]: Don't declare alloca.
2949 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2951         * Version 3.62.24.
2953         * compatMakefile (objs): Add signame.o.
2954         (srcs): Add signame.[ch].
2956         * compatMakefile (srcs): Add config.h.in.
2957         (remote.o): Add -I. before -I$(srcdir).
2959 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2961         * Version 3.62.23.
2963         * read.c (readline): Fatal when LEN==0, indicating a line starting
2964         with a NUL.
2965         (readline): Take new arg LINENO, for use in error msg.
2966         (read_makefile, do_define): Pass it.
2968         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2969         (.c.o): Add -I. before -I$(srcdir).
2971 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2973         * read.c (read_makefile): Accept and ignore a rule with no targets.
2975         * compatMakefile (ALLOCA_SRC): New variable.
2976         (srcs): Include its value.
2978         * read.c (struct conditional): Renamed member `max_ignoring' to
2979         `allocated'; added new member `seen_else'.
2980         (conditional_line): Initialize seen_else flag when starting an `if...';
2981         set it when we see an `else'; fatal if set when we see `else'.
2982         (read_makefile): Fatal "missing `endif'" if there are any pending
2983         conditionals, not just if we are still ignoring.
2985 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2987         * compatMakefile (manext): Set to 1, not l.
2988         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
2990         * file.c (file_hash_enter): Don't call uniquize_deps here.
2991         * read.c (record_files): Likewise.
2992         * implicit.c (pattern_search): Likewise.
2993         * commands.c (set_file_variables): Call it only here.
2995         * default.c (default_variables) [__convex__]: FC=fc.
2997         * variable.c (target_environment): Expand the values of recursively
2998         expanded variables when putting them into the environment.
2999         * expand.c (recursively_expand): Made global.
3000         * make.h (recursively_expand): Declare it.
3002         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
3003         when a dep's command_state is cs_running or cs_deps_running.
3005         * read.c (read_makefile): Changed error msg for spurious cmds to
3006         not say "first target".
3008 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3010         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
3011         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
3012         * compatMakefile (config.h, configure, config.h.in): New rules.
3013         (defines): Removed @DEFS@.
3015 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3017         * compatMakefile (realclean): Just depend on distclean; no cmds.
3018         (distclean): Do what realclean did before; also remove Makefile and
3019         config.h; don't remove configure.
3020         (info, dvi): New targets; depend on make.{info,dvi}.
3021         (doc): Removed target.
3022         (MAKEINFO, TEXI2DVI): New vars.
3023         (make.info, make.dvi): Use them instead of explicit cmds.
3025 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3027         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
3029 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3031         * main.c (long_option_aliases): Add --new-file alias for -W.
3033         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
3034         to CXXFLAGS.
3036         * read.c (do_define): Expand the variable name before using it.
3038         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
3039         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
3041         * remake.c (library_search): Search for libNAME.a in cwd; look in
3042         vpath before looking in standard dirs, not after.
3043         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
3045 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3047         * default.c (default_pattern_rules, default_terminal_rules): Added
3048         brackets around initializers.
3050         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
3051         (try_variable_definition): Expand the name before defining the var.
3053         * job.c (init_siglist): Removed function.
3054         Removed decl of `sys_siglist'.
3055         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
3056         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
3057         only under these conditions.
3058         * main.c (main): Don't declare init_siglist.
3059         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
3061 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3063         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
3064         nil; instead just set it to MOREDEPS.
3066 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3068         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
3069         loop that sets MAXELEM.
3071 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3073         * Version 3.62.22.
3075 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3077         * job.c (start_job_command): Under -n, increment files_remade after
3078         processing (i.e., printing) all command lines.
3080 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3082         * read.c (record_files): Append new deps if this rule has no
3083         commands; prepend them to existing deps if this rule has no commands.
3085         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
3087         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
3088         (read_makefile): Changed callers.
3089         * function.c (string_glob): Likewise.
3090         * rule.c (install_pattern_rule): Likewise.
3092 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3094         * remake.c (files_remade): Made global.
3095         (notice_finished_file): Don't increment files_remade here; this
3096         function gets called in many situations where no remaking was in
3097         fact done.
3098         * job.c (reap_children): Do it here instead, when we know that
3099         actual commands have been run for the file.
3100         * make.h (files_remade): Declare it.
3102 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3104         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
3105         separate elts in the search path.
3107         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
3108         The search path can contain spaces now.
3110 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3112         * compatMakefile (check): New target; no-op.
3114         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
3115         testing for OLDHASH==0 but before using the value.
3116         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
3117         to file_hash_enter.
3119         * file.c (rename_file): Notice when OLDFILE->cmds came from
3120         default.c, and don't try to print ->filename in that case.
3122 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3124         * remake.c (update_file): Don't process F->also_make here.
3125         (notice_finished_file): Don't process FILE->also_make if no attempt
3126         to update FILE was actually made.
3127         Fixed to call f_mtime directly to refresh their modtimes.
3129 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3131         * read.c (find_percent): Don't increment P again after skipping
3132         an escaped %.
3134         * expand.c (variable_expand): In call to patsubst_expand, don't
3135         find `%'s ourselves; let that function do it.
3137         * read.c (read_makefile: record_waiting_files): Don't call
3138         record_files if FILENAMES is nil.
3139         (read_makefile): All alternatives in the parsing, except for rule
3140         lines, fall through to the end of the loop.  At the end of the
3141         loop, do record_waiting_files so we notice later spurious cmds.
3143 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3145         * variable.c (define_automatic_variables): Free old value of SHELL
3146         before replacing it.
3148 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3150         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
3152         * dir.c (open_dirstream): Cast return value to __ptr_t.
3154         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
3156         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
3157         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
3158         Define as (get_path_max ()).
3159         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
3160         [! PATH_MAX] (get_path_max): Declare fn.
3161         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
3163 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3165         * Version 3.62.21.
3167         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
3168         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
3169         SYS_SIGLIST_DECLARED.
3171         * dir.c (file_impossible): When initializing DIR->contents, set
3172         DIR->contents->dirstream to nil.
3174         * compatMakefile (GLOB): Define new variable.
3175         (objs): Use it, rather than glob/libglob.a explicitly.
3177         * read.c (parse_file_seq): When stripping "./", handle cases like
3178         ".///foo" and "./////".
3179         * file.c (lookup_file, enter_file): Likewise.
3181 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3183         * dir.c (struct dirstream, {open,read}_dirstream): New
3184         data type and functions to read a directory sequentially.
3185         (init_dir): New function to hook it into glob.
3186         * main.c (main): Call init_dir.
3188         * compatMakefile (objs): Added glob/libglob.a.
3189         * configure.in: Remove code to test for glob.
3191 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3193         * read.c (record_files): Generalized test for NAME pointing
3194         somewhere into F->name.
3196         * variable.c (define_variable_in_set): Free old value when replacing.
3198         * read.c (do_define): Free the linebuffer before returning.
3199         (record_files): When clearing .SUFFIXES deps, free their data.
3200         (multi_glob): Free OLD and its data when replacing it with results
3201         of glob run.
3203         * commands.c (set_file_variables): Use alloca in place of xmalloc
3204         for temp space for $^, $?, et al.
3206         * dir.c (struct directory): New member `contents' replaces `files'
3207         and `dirstream'.
3208         (struct directory_contents): New type.
3209         (directories_contents): New hash table.
3210         (dir_struct_file_exists_p): Take a struct directory_contents.
3211         (dir_file_exists_p): Pass it the `contents' member of the dir found.
3212         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
3213         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
3214         (dir_file_exists_p, find_directory): Change all callers.
3215         (file_impossible): Use DIR->contents, initializing it if nil.
3216         (print_dir_data_base): Use DIR->contents, and print out device and
3217         inode numbers with each directory.
3219         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
3220         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
3221         (DIRFILE_BUCKETS): Decrease to 107.
3222         (find_directory): Allocate and zero a multiple of
3223         sizeof (struct dirfile *), not of sizeof (struct dirfile).
3224         (dir_struct_file_exists_p): New function, nearly all code from
3225         dir_file_exists_p.
3226         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
3227         * vpath.c (selective_vpath_search): Remove redundant
3228         dir_file_exists_p call.
3230         * configure.in: Comment out glob check; always use our code.
3232 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3234         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
3235         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
3236         do have it.
3238 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3240         * main.c (main): Don't do -w automatically if -s.
3242 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3244         * main.c (printed_version): Move variable inside print_version.
3245         (print_version): Return immediately if printed_version is set.
3246         (die): Don't test printed_version here.
3247         (decode_switches): Under -v, do print_version before giving usage.
3248         (DESCRIPTION_COLUMN): New macro.
3249         (decode_switches): Use it when printing the usage message.
3250         Leave at least two spaces between options and their descriptions.
3252 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3254         * Version 3.62.20.
3256 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3258         * read.c (read_makefile): Save errno value from trying to open
3259         FILENAME, and restore it before erring; otherwise we get the errno
3260         value from the last elt of the search path.
3262 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3264         * main.c (long_option_aliases): Add --stop for -S.
3266         * read.c (word1eq): Do strncmp before dereferencing someplace that
3267         may be out in space.
3269 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3271         * remake.c (notice_finished_file): If all the command lines were
3272         recursive, don't do the touching.
3274         * job.c (start_job_command): Don't check for + here.
3275         * commands.c (chop_commands): Do it here instead.
3277         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
3279 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3281         * compatMakefile (objs): Include $(ALLOCA).
3283         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
3285 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3287         * read.c (default_include_directories): Add INCLUDEDIR first.
3288         * compatMakefile (includedir): Define.
3289         (defines): Add -D for INCLUDEDIR="$(includedir)".
3291         * read.c (read_makefile): Grok multiple files in `include';
3292         globbing too.
3294         * remake.c (library_search): New function.
3295         (library_file_mtime): Remove function.
3296         (f_mtime): Use library_search instead of library_file_mtime.
3297         * compatMakefile (libdir): Define.
3298         (defines): Add -D for LIBDIR="$(libdir)".
3299         * make.texinfo (Libraries/Search): Document change.
3301         * file.c (rename_file): Fix file_hash_enter call with missing arg.
3303 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3305         * Version 3.62.19.
3307         * main.c (main): Set command_state to cs_finished for temp files
3308         made for stdin makefiles.
3310         * main.c (decode_switches): Don't tell getopt to return non-option
3311         args in order.
3312         Ignore an argument of `-'.
3314 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3316         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
3317         the command line and go to the next.
3318         (notice_finished_file): Under -t, touch FILE.
3319         * remake.c (remake_file): Don't touch it here.
3321 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3323         * function.c (pattern_matches): Use temporary for strlen (WORD)
3324         instead of two function calls.
3326         * compatMakefile (LOAD_AVG): Remove variable and comments.
3328 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3330         * make.texinfo (Running): Node renamed to `make Invocation'.
3332 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3334         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
3335         NAMELEN != MEMLEN.
3337 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3339         * Version 3.62.18.
3341         * main.c: Don't #include <time.h>; make.h already does.
3343 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3345         * implicit.c (pattern_search): Fixed copying of suffix when building
3346         also_make elts.
3348         * function.c (expand_function: `shell'): Make sure BUFFER is
3349         null-terminated before replacing newlines.
3351         * compatMakefile (mandir): Use man$(manext), not always manl.
3353 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3355         * rule.c (new_pattern_rule): Not static.
3356         * rule.h: Declare it.
3358         * file.c (file_hash_enter): New function, most code from rename_file.
3359         (rename_file): Call it.
3360         * file.h (file_hash_enter): Declare it.
3362         * dep.h: Doc fix.
3364 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3366         * main.c (decode_switches): Handle usage_and_exit when building
3367         long options vector.
3369         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
3370         (default_variables): Define CHECKOUT,v (hairy).
3372         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
3373         sys_siglist to _sys_siglist.
3375 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3377         * NEWS: Add header and tail copyright info like Emacs NEWS.
3379         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
3380         bcopy if already #define'd.
3381         [STDC_HEADERS] (qsort, abort, exit): Declare here.
3382         [! __GNU_LIBRARY__ && !POSIX]: Not here.
3384         * make.h [_AIX]: #pragma alloca first thing.
3386         * job.c (start_waiting_job): Set the command_state to cs_running
3387         when we queue a job on waiting_jobs.
3389 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3391         * variable.c (define_automatic_variables): Use "" instead of nil
3392         for empty value.
3394 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3396         * Version 3.62.17.
3398         * main.c (struct command_switch.type): Add alternative usage_and_exit.
3399         (command_switches): Add -h/--help.
3401 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3403         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
3404         * README.template: Mention NEWS.
3405         * CHANGES: Renamed to NEWS.
3407         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
3409 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3411         * main.c (main): Set -o files' command_states to cs_finished.
3413         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
3414         when tossing a rule.
3416         * main.c (main): Use alloca only in simple local var assignment,
3417         for braindead SGI compiler.
3419         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
3420         inconsistent with the number computed when listing them.
3422 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3424         * commands.c (set_file_variables): For $? and $^ elts that are archive
3425         member refs, use member name only.
3427 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3429         * variable.h (struct variable.export): Add new alternative v_ifset.
3430         * variable.c (target_environment): Check for it.
3431         (define_automatic_variables): Set it for MAKEFILES.
3433 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3435         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
3436         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
3437         (distclean, mostlyclean): New targets.
3439 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3441         * Version 3.62.16.
3443         * compatMakefile (config.status): Remove rule.
3445         * job.c (start_waiting_job): Free C after using C->file, not before.
3447 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3449         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
3450         HAVE_* instead of #ifndef *_MISSING.
3451         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
3453 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3455         * main.c (main): makelevel>0 or -C implies -w.
3457 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3459         * file.c, job.c, function.c: Don't #include <errno.h>.
3460         make.h: Do it here instead.
3461         * arscan.c (ar_member_touch): Don't declare errno.
3463 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3465         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
3467         * remake.c (update_file): If commands or deps are running after
3468         update_file_1 returns, break out of the :: rule (->prev) loop and
3469         just return.
3471         * job.c (job_next_command): New function; code from start_job.
3472         (start_job_command): Renamed from start_job.  Call job_next_command
3473         and recurse for empty command lines and -n.
3474         (start_waiting_job): Call start_job_command, not start_job.
3475         (new_job): Call job_next_command to prime the child structure, and
3476         then call start_waiting_job.
3477         (reap_children): Use job_next_command and start_job_command.
3478         (start_waiting_job): Call start_remote_job_p here, and store its
3479         result in C->remote.  If zero, check the load average and
3480         maybe put C on waiting_jobs.
3481         (start_job_command): Test CHILD->remote rather than calling
3482         start_remote_job_p.  Don't do load avg checking at all here.
3484         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
3485         SIGSEGV, SIGFPE or SIGTRAP.
3487         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
3488         configure will set it in glob/Makefile.
3490 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3492         * dir.c [DIRENT] (direct): Don't define to dirent.
3493         [! DIRENT] (direct): Define to dirent.
3494         (dir_file_exists_p): Use struct dirent instead of struct direct.
3496         * make.h (getcwd): No space between macro and ( for args!
3498         * job.c (start_job): Don't put the job on waiting_jobs if
3499         job_slots_used==0.
3501         * make.texinfo (Missing): Shortened title.
3503 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3505         * file.c (remove_intermediates): Print "rm" commands under -n.
3507 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3509         * Version 3.62.15.
3511 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3513         * arscan.c [M_UNIX]: #undef M_XENIX.
3515 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3517         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
3519 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3521         * compatMakefile (getloadavg.o): Removed special rule.
3522         (CFLAGS): Don't include $(defines).
3523         (.c.o): Define suffix rule.
3524         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
3525         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
3527         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
3529         * make.h (max): Removed.
3530         * expand.c (variable_buffer_output): Don't use it.
3532         * compatMakefile (INSTALL): Define.
3533         (Makefile): New rule to make from Makefile.in.
3534         (srcdir): Define.
3535         (VPATH): Define.
3536         (getloadavg.o, remote.o): Use autoconf $foo< hack.
3538         * commands.c (fatal_error_signal): Removed return.
3540 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3542         * Version 3.62.14.
3544         * make.texinfo (Summary): New node.
3545         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
3547         * variable.c (max): Moved to make.h.
3549         * compatMakefile (objs, srcs): Added ar & arscan.
3551         * job.c (start_waiting_job): New function, 2nd half of new_job.
3552         (new_job): Call it.
3553         (start_waiting_jobs): New function.
3554         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
3555         of the main loop.
3556         * compatMakefile (objs, srcs): Removed load, added getloadavg.
3558 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3560         * job.c (load_too_high): New function.  Uses getloadavg.
3561         (waiting_jobs): New variable.
3562         (start_job): Don't call wait_to_start_job.  Instead, if
3563         load_too_high returns nonzero, add the child to the
3564         `waiting_jobs' chain and return without starting the job.
3566 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3568         * expand.c (variable_buffer_output): Made global again.
3569         * variable.h: And declare it.
3571         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
3572         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
3573         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
3574         for a slash in the archive at run time.
3575         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
3576         cope with trailing-slash and non-trailing-slash archives.
3578         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
3579         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
3581         * load.c (load_average) [sgi]: Use sysmp call.
3583         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
3584         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
3586         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
3587         (vfork, VFORK_NAME): Don't define.
3588         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
3590         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
3591         the each file.  Rearranged PATH_MAX hacking.
3592         * job.c: Rearranged NGROUPS_MAX hacking.
3594         * remake.c (fstat, time): Don't declare.
3596         * compatMakefile (defines): Value is @DEFS@.
3597         (LOADLIBES): Value is @LIBS@.
3598         (extras): Value is @LIBOBJS@.
3599         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
3600         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
3602         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
3604         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
3605         (getcwd): Just declare if present.  If not, declare as a macro
3606         using getwd, and declare getwd.
3607         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
3608         * main.c (main, log_working_directory): Use getcwd instead of getwd.
3610         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
3612         * make.h (SIGHANDLER, SIGNAL): Removed.
3613         (RETSIGTYPE): Define if not #define'd.
3614         * main.c (main): Use signal in place of SIGNAL.
3616         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
3618         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
3619         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
3621         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
3622         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
3624         * job.c (child_handler), commands.c (fatal_error_signal): Return
3625         RETSIGTYPE instead of int.
3626         * main.c (main): Declare fatal_error_signal and child_handler here
3627         to return RETSIGTYPE; removed top-level decl of former.
3629         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
3630         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
3632 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3634         * job.c [HAVE_WAITPID]: Test this instead of USG.
3635         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
3636         (GID_T): Don't #define.
3637         (search_path): Use gid_t instead of GID_T.
3638         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
3639         these individually instead of USG for all.
3640         * make.h (ctime): Don't declare.  #include time.h instead.
3641         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
3642         _POSIX_VERSION.
3643         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
3644         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
3646         * arscan.c: Removed #ifdef mess about string.h et al.
3647         Just #include make.h instead.
3648         * make.h (fstat, atol): Declare.
3650         * commands.c (fatal_error_signal): Don't use sigmask to check for
3651         propagated signals; use ||s instead.
3652         (PROPAGATED_SIGNAL_MASK): Removed.
3653         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
3655         * variable.c (variable_buffer, variable_buffer_length,
3656         initialize_variable_output, variable_output): Moved to expand.c;
3657         made all static.
3658         (struct output_state, save_variable_output,
3659         restore_variable_output): Removed.
3660         * expand.c (initialize_variable_output): Put a NUL at the beginning
3661         of the new buffer after allocating it.
3662         (allocated_variable_expand_for_file): Don't use
3663         {save,restore}_variable_output.  Do it by hand instead, keeping
3664         state on the stack instead of malloc'ing it.
3665         (allocated_variable_expand): Removed.
3666         * variable.h (allocated_variable_expand): Define here as macro.
3667         (variable_buffer_output, initialize_variable_output,
3668         save_variable_output, restore_variable_output): Removed decls.
3670         * read.c (conditional_line): For an if cmd, if any elt of the
3671         conditionals stack is ignoring, just push a new level that ignores
3672         and return 1; don't evaluate the condition.
3674 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3676         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
3678         * job.c (getdtablesize): Don't declare or #define if already #define'd.
3680 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3682         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
3683         export_all_variables.
3684         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
3686 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3688         * Version 3.62.13.
3690         * commands.c (set_file_variables): Calculate length for ^D and ?D
3691         individually, making sure to give them at least enough space for "./".
3693         * make.h [CRAY]: #define signal to bsdsignal.
3695         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
3696         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
3698         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
3699         wasn't defined by <ar.h>.
3701 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3703         * Version 3.62.12.
3705 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3707         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
3708         pattern_rules.
3710 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3712         * main.c (decode_switches): Initialize all the long_option elt members.
3714 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3716         * make.texinfo (Text Functions): Correct filter-out description.
3718 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3720         * compatMakefile (realclean): Don't remove backup files.
3722         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
3724 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3726         * Version 3.62.11.
3728 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3730         * job.c (reap_children): Don't die if wait returns EINTR.
3732 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3734         * job.c (reap_children): Always run the next command for a
3735         successful target.  If we are going to die, we don't want to leave
3736         the target partially made.
3738 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3740         * job.c (construct_command_argv_internal): After loop, if we only
3741         have one word, check it for being a shell command.
3743         * main.c (decode_switches): Allocate ARGC slots in other_args to
3744         begin with, so we never need to worry about growing it.
3745         If we get a non-option arg and POSIXLY_CORRECT is in the
3746         environment, break out of the loop.  After the loop, add all remaining
3747         args to other_args list.
3749         * main.c (decode_switches): For positive_int and floating switches
3750         when optarg is nil, use next arg if it looks right (start with a
3751         digit, or maybe decimal point for floating).
3753         * variable.c (define_automatic_variables): Always set SHELL to
3754         default if it comes from the environment.  Set its export bit.
3755         * make.texinfo (Environment): Document change.
3757 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3759         * Version 3.62.10.
3761         * compatMakefile (tags, TAGS): Use vars for cmds.
3762         (ETAGS, CTAGS): Define.
3764         * main.c (decode_switches): If a switches elt has a nil long_name,
3765         make the long option name elt be "".
3766         Fixed loop to not ignore all the options.
3768         * make.texinfo (Option Summary): Added long options.
3770         * main.c (switches): Changed -m's description to "-b".
3771         (decode_switches): When printing the usage message, don't print
3772         switches whose descriptions start with -.
3773         When constructing the list of names for switch -C, search the
3774         switches vector for switches whose descriptions are "-C".
3776         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
3777         Call -I --include-dir, not --include-path.
3778         (long_option_aliases): Added --new == -W, --assume-new == -W,
3779         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
3780         --makefile == -f.
3782         * main.c (switches): Removed bogus "silent" elt.
3783         (long_option_aliases): Define new var.
3784         (decode_switches): Add long_option_aliases onto the end of the long
3785         options vector created for getopt_long.
3786         Look through long_option_aliases for extra names to list
3787         in usage message.
3789 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3791         * main.c (log_working_directory): Fixed to properly not print the
3792         leaving message when we haven't printed the entering message.
3794 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3796         * main.c (struct command_switch): Added elts `long_name',
3797         `description', and `argdesc'.
3798         (switches): Added initializers for new members.
3799         (decode_switches): Rewritten to use getopt_long.
3800         * compatMakefile (GETOPT, GETOPT_SRC): Define.
3801         (objs, srcs): Include them.
3803         * job.c (child_died): Renamed to dead_children; made static.
3804         (child_handler): Increment dead_children instead of setting child_died.
3805         (reap_children): Decrement dead_children instead of clearing
3806         child_died.  The point of all this is to avoid printing "waiting
3807         for unfinished jobs" when we don't actually need to block.
3808         This happened when multiple SIGCHLDs before reap_children was called.
3810         * job.c (reap_children): If ERR is set, so we don't call start_job
3811         on the child being reaped, instead set its command_state to
3812         cs_finished.
3813         (reap_children, child_handler, new_job): I added several
3814         debugging printf's while fixing this.  I left them in if (debug_flag)
3815         because they may be useful for debugging this stuff again.
3817 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3819         * read.c (read_makefile): v_export is not 1.
3821 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3823         * Version 3.62.9.
3825         * variable.c (export_all_variables): New variable.
3826         (target_environment): Export variables whose `export' member is
3827         v_default if export_all_variables is set and their names are benign.
3828         * variable.h: Declare export_all_variables.
3829         * read.c (read_makefile): If export or unexport is given with no
3830         args, set or clear export_all_variables, respectively.
3832         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3833         so it isn't duplicated when we add it at the end.
3835 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3837         * Version 3.62.8.
3839         * variable.h (struct variable): Added new member `export'.
3840         * variable.c (define_variable_in_set): Initialize it to v_default.
3841         (target_environment): Don't check for .NOEXPORT.
3842         Export variables whose `export' member is v_default and that would
3843         have been exported under .NOEXPORT, and variables whose `export'
3844         member is v_export.
3845         (try_variable_definition): Return the variable defined.
3846         * variable.h (try_variable_definition): Changed decl.
3847         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3849 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3851         * main.c (main) [POSIX]: Reversed args to sigaddset.
3853 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3855         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3856         (start_job): Block signals before forking.
3857         (new_job): Unblock signals after putting the new child on the chain.
3858         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3859         int fatal_signal_mask.
3861         * load.c [sgi] (LDAV_CVT): Define.
3863 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3865         * Version 3.62.7.
3867         * load.c (load_average) [sgi]: Clear the high bit of the address
3868         from the symbol table before looking it up in kmem.
3870         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3871         (remake_file): No longer needed in message here.
3873         * main.c (die): Call reap_children with BLOCK==1.
3875 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3877         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3879 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3881         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3882         not to head of chain.  Extract next ptr before we might do
3883         freerule, and use that for next iteration.
3884         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3886 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3888         * job.c (child_error): Removed extra %s from error msg format.
3890         * Version 3.62.6.
3892         * job.c (reap_children): Don't start later commands in a sequence
3893         if ERR is nonzero.
3895         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3897         * job.c (reap_children): New function; work that used to be done in
3898         child_handler.
3899         (child_died): New global var.
3900         (child_handler): Now just sets child_died.
3901         (wait_for_children): Removed.
3902         (unknown_children_possible, block_signals, unblock_signals,
3903         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3904         (child_execute_job): Removed call to unblock_signals.
3905         (new_job): Removed calls to push_signals_blocked_p and
3906         pop_signals_blocked_p.
3907         * job.h: Declare reap_children, not wait_for_children.
3908         * commands.c (fatal_error_signal), job.c (new_job),
3909         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3910         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3911         Changed wait_for_children calls to reap_children.
3912         Some needed to be loops to wait for all children to die.
3913         * commands.c (fatal_error_signal), main.c (main,
3914         log_working_directory), function.c (expand_function): Removed calls
3915         to push_signals_blocked_p and pop_signals_blocked_p.
3916         * job.h: Removed decls.
3918         * job.h: Added copyright notice.
3920 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3922         * job.c (child_error): No *** for ignored error.
3924 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3926         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3927         avoid compiler warnings.
3929         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3930         blank.
3932 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3934         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3935         avoid compiler warnings.
3937         * remake.c (notice_finished_file): Run file_mtime on the also_make
3938         files, so vpath_search can happen.
3940         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3941         (alpha-files): Include test suite tar file.
3943 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3945         * Version 3.62.5.
3947 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3949         * remake.c (update_file, update_file_1): Do check_renamed on elts
3950         of dep chains when traversing them.  Something unrelated might have
3951         renamed one of the files the dep chain points to.
3953         * file.c (rename_file): If FILE has been renamed, follow its
3954         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3955         ones loses because they are not in the hash table, so the removal
3956         code loops infinitely.
3958         * read.c (read_all_makefiles): Clobber null terminator into
3959         MAKEFILES expansion, so string passed to read_makefile is properly
3960         terminated.
3962 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3964         * commands.c (set_file_variables): $* for archive member with
3965         explicit cmds is stem of member, not of whole `lib(member)'.
3967 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3969         * Version 3.62.4.
3971 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3973         * rule.c (new_pattern_rule): Rules are identical only if all their
3974         targets match (regardless of order).
3976 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3978         * remake.c (remake_file): Changed error "no way to make" to "no
3979         rule to make".  Fiat Hugh.
3981         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
3982         behavior.
3984         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
3985         target.
3987 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3989         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
3990         environment to pass to child.
3991         * job.c (start_job): Pass it.
3993 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3995         * file.c (enter_file): Also strip ./s here, to get command-line
3996         target names.
3998         * remote-cstms.c: Add comment telling people to leave me alone.
4000         * compatMakefile (manpage install): Remove target before copying.
4002 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4004         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
4005         Added paragraph describing $? incompatibility with Unix and POSIX.2.
4007 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
4009         * function.c (expand_function: `shell'): Don't declare fork or pipe.
4010         Use vfork instead of fork.
4012 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4014         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
4015         intermediate files.
4017         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
4019 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4021         * Version 3.62.3.
4023 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4025         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
4027 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4029         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
4031         * read.c (record_files): Pass arg for %s in error msg.
4033         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
4034         call.
4036 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4038         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
4040 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4042         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
4044 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4046         * Version 3.62.2.
4048 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4050         * job.c (construct_command_argv_internal): Correctly ignore
4051         whitespace after backslash-NL.
4053 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4055         * compatMakefile: Ignore errors from chgrp and chmod when installing.
4057 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4059         * main.c (main): When setting MAKELEVEL in the env to re-exec,
4060         allocate space so as not to clobber past the end of the old string.
4062         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
4063         * compatMakefile (defines): Document HAVE_ALLOCA_H.
4065 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4067         * make.h [VFORK_MISSING]: Use fork instead.
4068         * compatMakefile (defines): Document same.
4070         * job.c (construct_command_argv_internal): Don't create an empty
4071         arg if backslash-NL is at beginning of word.
4073 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4075         * main.c [DGUX]: Call setvbuf as for USGr3.
4077         * job.c (construct_command_argv_internal): Notice correctly that
4078         backslash-NL is the end of the arg (because it is replaced with a
4079         space).
4081 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4083         * job.c (construct_command_argv_internal): If SHELL is nil, set it
4084         to default_shell before proceeding.
4086         * make.h [sgi]: No alloca.h, after all.
4088 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4090         * read.c (multi_glob): Cons up the chain of the results of glob
4091         from back to front, so it comes out in forward order.
4093         * job.c (construct_command_argv_internal): Don't eat char following
4094         backslash-NL.
4096 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4098         * Version 3.62.1.
4100         * default.c (default_variables) [ultrix]: GET=get, like USG.
4102         * job.c (construct_command_argv_internal): Remove tabs following
4103         backslash-NL combos in the input line, so they don't show up when
4104         that line is printed.
4106         * read.c (read_makefile): Don't collapse_continuations the line on
4107         input; do it on the copy we do remove_comments on.
4108         For rule lines, collapse_continuations the line after chopping
4109         ";cmds" off the end, so we don't eat conts in the cmds.
4110         Give error for ";cmds" with no rule.
4111         * job.c (construct_command_argv_internal): Eat backslash-NL combos
4112         when constructing the line to recurse on for slow, too.
4114 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4116         * file.c (enter_file): Don't strip leading `./'s.
4117         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
4118         * default.c (set_default_suffixes), function.c (string_glob),
4119         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
4121         * default.c (default_variables) [_IBMR2]: FC=xlf
4123         * job.c (construct_command_argv_internal): Turn backslash-NL and
4124         following whitespace into a single space, rather than just eating
4125         the backslash.
4127         * make.texinfo (Copying): @include gpl.texinfo, rather than
4128         duplicating its contents.
4130 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4132         * job.c (construct_command_argv_internal): Make sure not to bother
4133         processing an empty line.
4135         * Version 3.62.0.
4137         * job.c (construct_command_argv_internal): Always recurse for slow;
4138         simple case didn't handle finding newlines.
4140 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4142         * job.c (construct_command_argv_internal): Set RESTP properly when
4143         slow; don't \ify past a newline.
4145 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4147         * make.h [sgi]: #include <alloca.h>.
4151 See ChangeLog.1 for earlier changes.