* texinfo.tex (\acronym): New Texinfo command.
[make.git] / ChangeLog
blobf773f3c75a0c6c0d4e5632aeaf8e5b7b471aa80d
1 Fri Sep 19 09:20:49 1997  Paul D. Smith  <psmith@baynetworks.com>
3         * Makefile.am: Add loadavg files to clean rules.
5         * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
6         * Makefile.ami (distclean): Ditto.
7         * SMakefile (distclean): Ditto.
9         * main.c (main): Arg count should be int, not char!  Major braino.
11 Tue Sep 16 10:18:22 1997  Paul D. Smith  <psmith@baynetworks.com>
13         * Version 3.76 released.
15 Tue Sep  2 10:07:39 1997  Paul D. Smith  <psmith@baynetworks.com>
17         * function.c (expand_function): When processing $(shell...)
18         translate a CRLF (\r\n) sequence as well as a newline (\n) to a
19         space.  Also remove an ending \r\n sequence.
20         * make.texinfo (Shell Function): Document it.
22 Fri Aug 29 12:59:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
24         * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
25         paths which contain single character entries like `.' are not
26         handled correctly.
28         * README.W32: Document path handling issues on Windows systems.
30 Fri Aug 29 02:01:27 1997  Paul D. Smith  <psmith@baynetworks.com>
32         * Version 3.75.93.
34 Thu Aug 28 19:39:06 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
36         * job.c (exec_command): [WINDOWS32] If exec_command() is invoked
37         from main() to re-exec make, the call to execvp() would
38         incorrectly return control to parent shell before the exec'ed
39         command could run to completion. I believe this is a feature of
40         the way that execvp() is implemented on top of WIN32 APIs. To
41         alleviate the problem, use the supplied process launch function in
42         the sub_proc library and suspend the parent process until the
43         child process has run.  When the child exits, exit the parent make
44         with the exit code of the child make.
46 Thu Aug 28 17:04:47 1997  Paul D. Smith  <psmith@baynetworks.com>
48         * Makefile.DOS.template (distdir): Fix a line that got wrapped in
49         email.
51         * Makefile.am (loadavg): Give the necessary cmdline options when
52         linking loadavg.
54         * configure.in: Check for pstat_getdynamic for getloadvg on HP.
56         * job.c (start_job_command): [VMS,_AMIGA] Don't perform empty
57         command optimization on these systems; it doesn't make sense.
59 Wed Aug 27 17:09:32 1997  Paul D. Smith  <psmith@baynetworks.com>
61         * Version 3.75.92
63 Tue Aug 26 11:59:15 1997  Paul D. Smith  <psmith@baynetworks.com>
65         * main.c (print_version): Add '97 to copyright years.
67         * read.c (do_define): Check the length of the array before looking
68         at a particular offset.
70         * job.c (construct_command_argv_internal): Examine the last byte
71         of the previous arg, not the byte after that.
73 Sat Aug 23 1997  Eli Zaretskii  <eliz@is.elta.co.il>
75         * Makefile.DOS.template: New file (converted to Makefile.DOS in
76         the distribution).
78         * configure.bat: Rewrite to use Makefile.DOS instead of editing
79         Makefile.in.  Add support for building from outside of the source
80         directory.  Fail if the environment block is too small.
82         * configh.dos: Use <sys/config.h>.
84         * README.DOS: Update instructions.
86 Fri Aug 22 1997  Eli Zaretskii  <eliz@is.elta.co.il>
88         * job.c (start_job_command): [__MSDOS__] Don't test for "/bin/sh"
89         literally, use value of unixy_shell instead.
91         * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
92         time_t is unsigned.
94 Sat Aug 16 00:56:15 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
96         * vmsify.c (vmsify, case 11): After translating `..' elements, set
97         nstate to N_OPEN if there are still more elements to process.
98         (vmsify, case 2): After translating `foo/bar' up to the slash,
99         set nstate to N_OPEN, not N_DOT.
101 Fri Aug  8 15:18:09 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
103         * dir.c (vmsstat_dir): Leave name unmodified on exit.
104         * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
105         * vpath.c: Fix comments to refer to path separator, not colon.
106         (selective_vpath_search): Avoid Unixy slash handling for VMS.
108 Thu Aug  7 22:24:03 1997  John W. Eaton  <jwe@bevo.che.wisc.edu>
110         * ar.c: [VMS] Don't declare ar_member_touch.
111         Delete VMS version of ar_member_date.
112         Enable non-VMS versions of ar_member_date and ar_member_date_1 for
113         VMS too.
114         * arscan.c (VMS_get_member_info): New function.
115         (ar_scan): Provide version for VMS systems.
116         (ar_name_equal): Simply compare name and mem on VMS systems.
117         Don't define ar_member_pos or ar_member_touch on VMS systems.
119         * config.h-vms (pid_t, uid_t): Don't define.
121         * remake.c: Delete declaration of vms_stat.
122         (name_mtime): Don't call vms_stat.
123         (f_mtime): [VMS] Funky time value manipulation no longer necessary.
125         * file.c (print_file): [VMS] Use ctime, not cvt_time.
127         * make.h: [VMS] Don't define POSIX.
129         * makefile.com (filelist): Include ar and arscan.
130         Also include them in the link commands.
131         Don't define NO_ARCHIVES in cc command.
133         * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
134         (defines): Delete NO_ARCHIVES from list.
136         * remake.c (f_mtime): Only check to see if intermediate file is
137         out of date if it also exists (i.e., mtime != (time_t) -1).
139         * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
141 Fri Jun 20 23:02:07 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
143         * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
144         (#!/bin/sh) in script files correctly.
145         Fixed a couple of memory leaks.
146         Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
147         files with extensions are preferred over files without extensions.
148         Added search for files with .cmd extension too.
149         * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
151 Mon Aug 18 09:41:08 1997  Paul D. Smith  <psmith@baynetworks.com>
153         * Version 3.75.91
155 Fri Aug 15 13:50:54 1997  Paul D. Smith  <psmith@baynetworks.com>
157         * read.c (do_define): Remember to count the newline after the endef.
159 Thu Aug 14 23:14:37 1997  Paul D. Smith  <psmith@baynetworks.com>
161         * many: Rewrote builds to use Automake 1.2.
163         * AUTHORS: New file.
164         * maintMakefile: Contains maintainer-only make snippets.
165         * GNUmakefile: This now only runs the initial auto* tools.
166         * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
167         automatically by automake).
168         * compatMakefile: Removed (not needed anymore).
169         * README,build.sh.in: Removed (built from templates).
170         * config.h.in,Makefile.in: Removed (built by tools).
172 Wed Aug 13 02:22:08 1997  Paul D. Smith  <psmith@baynetworks.com>
174         * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
175         * README,README.DOS: Ditto.
177         * remake.c (update_file_1,f_mtime): Fix GPATH handling.
178         * vpath.c (gpath_search): Ditto.
180         * file.c (rename_file): New function: rehash, but also rename to
181         the hashname.
182         * filedef.h: Declare it.
184         * variable.c (merge_variable_set_lists): Remove free() of variable
185         set; since various files can share variable sets we don't want to
186         free them here.
188 Tue Aug 12 10:51:54 1997  Paul D. Smith  <psmith@baynetworks.com>
190         * configure.in: Require autoconf 2.12
192         * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
193         more stylistically correct "cd subdir && $(MAKE)".
195         * main.c: Global variable `clock_skew_detected' defined.
196         (main): Print final warning if it's set.
197         * make.h: Declare it.
198         * remake.c (f_mtime): Test and set it.
200         * job.c (start_job_command): Add special optimizations for
201         "do-nothing" rules, containing just the shell no-op ":".  This is
202         useful for timestamp files and can make a real difference if you
203         have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
205         * configure.in,Makefile.in: Rewrote to use the new autoconf
206         program_transform_name macro.
208         * function.c (function_strip): Strip newlines as well as spaces
209         and TABs.
211 Fri Jun  6 23:41:04 1997  Rob Tulloh <rob_tulloh@tivoli.com>
213         * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
214         even seconds when stored, so if the date check fails on WINDOWS32
215          systems, see if this "off-by-one" error is the problem.
217         * General: If your TZ environment variable is not set correctly
218         then all your timestamps will be off by hours.  So, set it!
220 Mon Apr  7 02:06:22 1997  Paul D. Smith  <psmith@baynetworks.com>
222         * Version 3.75.1
224         * compatMakefile (objs): Define & use the $(GLOB) variable so
225         that it's removed correctly from build.sh.in when it's built.
227         * configure.in: On Solaris we can use the kstat_*() functions to
228         get load averages without needing special permissions.  Add a
229         check for -lkstat to see if we have it.
231         * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
232         the test to enable kstat_open(), etc. processing.
234 Fri Apr  4 20:21:18 1997  Eli Zaretskii  <eliz@is.elta.co.il>
236         * <lots>: Fixes to work in the DJGPP DOS environment.
238 Mon Mar 31 02:42:52 1997  Paul D. Smith  <psmith@baynetworks.com>
240         * function.c (expand_function): Added new function $(wordlist).
242         * make.texinfo (Filename Functions): Document $(wordlist) function.
244         * vpath.c (build_vpath_lists): Construct the GPATH variable
245         information in the same manner we used to construct VPATH.
246         (gpath_search): New function to search GPATH.
248         * make.h: Declare the new function.
250         * remake.c (update_file_1): Call it, and keep VPATH if it's found.
252         * make.texinfo (Search Algorithm): Document GPATH variable.
254 Sun Mar 30 20:57:16 1997  Paul D. Smith  <psmith@baynetworks.com>
256         * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
257         variable to contain the user options passed in on the cmd line.
259         * make.texinfo (Goals): Document MAKECMDGOALS variable.
261         * remake.c (f_mtime): Print a warning if we detect a clock skew
262         error, rather than failing.
264         * main.c (main): If we rebuild any makefiles and need to re-exec,
265         add "-o<mkfile>" options for each makefile rebuilt to avoid
266         infinite looping.
268 Fri Mar 28 15:26:05 1997  Paul D. Smith  <psmith@baynetworks.com>
270         * job.c (construct_command_argv_internal): Track whether the last
271         arg in the cmd string was empty or not (Roland).
272         (construct_command_argv_internal): If the shell line is empty,
273         don't do anything (Roland).
275         * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
276         the latest changes from the GLIBC version of glob (Ulrich Drepper).
278         * getloadavg.c,make-stds.texi: New version (Roland).
280         * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
282 Mon Mar 24 15:33:34 1997  Rob Tulloh  <rob_tulloh@tivoli.com>
284         * README.W32: Describe preliminary FAT support.
286         * build_w32.bat: Use a variable for the final exe name.
288         * dir.c (find_directory): W32: Find the filesystem type.
289         (dir_contents_file_exists_p): W32: for FAT filesystems, always
290         rehash since FAT doesn't change directory mtime on change.
292         * main.c (handle_runtime_exceptions): W32: Add an
293         UnhandledExceptionFilter so that when make bombs due to ^C or a
294         bug, it won't cause a GUI requestor to pop up unless debug is
295         turned on.
296         (main): Call it.
298 Mon Mar 24 00:57:34 1997  Paul D. Smith  <psmith@baynetworks.com>
300         * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
301         Check for memmove() function.
303         * make.h (bcopy): If memmove() available, define bcopy() to use it.
304         Otherwise just use bcopy().  Don't use memcpy(); it's not guaranteed
305         to handle overlapping moves.
307         * read.c (read_makefile): Fix some uninitialized memory reads
308         (reported by Purify).
310         * job.c (construct_command_argv_internal): Use bcopy() not
311         strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
313         * Makefile.in: Change install-info option ``--infodir'' to
314         ``--info-dir'' for use with new texinfo.
316         * function.c (expand_function): $(basename) and $(suffix) should
317         only search for suffixes as far back as the last directory (e.g.,
318         only the final filename in the path).
320 Sun Mar 23 00:13:05 1997  Paul D. Smith  <psmith@baynetworks.com>
322         * make.texinfo: Add @dircategory/@direntry information.
323         (Top): Remove previous reference to (dir) (from RMS).
324         (Static Usage): Add "all:" rule to example.
325         (Automatic Dependencies): fix .d file creation example.
327         * Install VPATH+ patch:
329         * filedef.h (struct file): Add in hname field to store the hashed
330         filename, and a flag to remember if we're using the vpath filename
331         or not.  Renamed a few functions for more clarity.
333         * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
334         in the hash table based on their "hash name".  We can change this
335         while keeping the original target in "name".
336         (rehash_file): Renamed from "rename_file" to be more accurate.
337         Changes the hash name, but not the target name.
339         * remake.c (update_file_1): Modify -d output for more detailed
340         VPATH info.  If we don't need to rebuild, use the VPATH name.
341         (f_mtime): Don't search for vpath if we're ignoring it.  Call
342         renamed function rehash_file.  Call name_mtime instead of
343         file_mtime, to avoid infinite recursion since the file wasn't
344         actually renamed.
346         * implicit.c (pattern_search): if we find an implicit file in
347         VPATH, save the original name not the VPATH name.
349         * make.texinfo (Directory Search): Add a section on the new VPATH
350         functionality.
352 Sun Dec  1 18:36:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
354         * dir.c (file_exists_p, file_impossible, file_impossible_p): If
355         dirname is empty replace it by the name of the root directory.
356         Note that this doesn't work (yet) for W32, Amiga, or VMS.
358 Tue Oct 08 13:57:03 1996  Rob Tulloh  <tulloh@tivoli.com>
360         * main.c (main): W32 bug fix for PATH vars.
362 Tue Sep 17 1996  Paul Eggert  <eggert@twinsun.com>
364         * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
365         32-bit quantity.
367         * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
368         INTEGER_TYPE_MINIMUM): New macros.
370 Tue Aug 27 01:06:34 1996  Roland McGrath  <roland@baalperazim.frob.com>
372         * Version 3.75 released.
374         * main.c (print_version): Print out bug-reporting address.
376 Mon Aug 26 19:55:47 1996  Roland McGrath  <roland@baalperazim.frob.com>
378         * main.c (print_data_base): Don't declare ctime; headers do it for us
379         already.
381 Sun Jul 28 15:37:09 1996  Rob Tulloh (tulloh@tivoli.com)
383         * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
384         real function. This was done so that VPATH could contain
385         white space separated pathnames. Please note that directory
386         paths (in VPATH/vpath context) containing white space are not
387         supported (just as they are not under Unix). See README.W32
388         for suggestions.
390         * w32/include/pathstuff.h: Added prototype for the new
391         function convert_vpath_to_w32. Deleted macro for same.
393         * README.W32: Added some notes about why I chose not to try
394         and support pathnames which contain white space and some
395         workaround suggestions.
397 Thu Jul 25 19:53:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
399         * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
401         * Version 3.74.7.
403         * main.c (define_makeflags): Back up P to point at null terminator
404         when killing final space and dash before setting MFLAGS.
406         From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
407         * dir.c [__MSDOS__] [DJGPP > 1]: Include <libc/dosio.h> and defin
408         `__opendir_flags' initialized to 0.
409         [__MSDOS__] (dosify) [DJGPP > 1]: Return name unchanged if _USE_LFN.
410         (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
411         __opendir_flags to __OPENDIR_PRESERVE_CASE.
413         * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
415         * GNUmakefile (w32files): Add NMakefile.
417         * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
419 Sat Jul 20 12:32:10 1996  Klaus Kämpf (kkaempf@progis.de)
421         * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
422         modtime check.
423         * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
425 Sat Jul 20 05:29:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
427         * configure.in: Require autoconf 2.10 or later.
429 Fri Jul 19 16:57:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
431         * Version 3.74.6.
433         * GNUmakefile (w32files): New variable.
434         (distfiles): Add it.
435         * w32: Updated by Rob Tulloh.
437         * makefile.vms (LOADLIBES): Fix typo.
439 Sun Jul 14 12:59:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
441         * job.c (construct_command_argv_internal): Fix up #else, #endifs.
443         * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
445         * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
447         * Version 3.74.5.
449         * main.c (main): Exit with status 2 when update_goal_chain returns 2.
451 Sat Jun 22 14:56:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
453         * configure.in: Don't check for _sys_siglist.
454         * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
455         no strsignal or sys_siglist.
457         * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
458         same as `ifeq (a, b)'.
460         * job.c (reap_children): Don't call die if handling_fatal_signal.
462         * file.c (file_hash_enter): Allow renaming :: to : when latter is
463         non-target, or : to :: when former is non-target.
465         * job.c (start_job_command): Call block_sigs.
466         (block_sigs): New function, broken out of start_job_command.
467         (reap_children): Block fatal signals around removing dead child from
468         chain and adjusting job_slots_used.
469         * job.h: Declare block_sigs.
471         * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
472         * main.c (main): Call remote_setup.
473         (die): Call remote_cleanup.
475         * job.c (reap_children): Quiescent value of shell_function_pid is
476         zero, not -1.
478         * main.c (print_version): Add 96 to copyright years.
480 Sat Jun 15 20:30:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
482         * read.c (find_char_unquote): Avoid calling strlen on every call
483         just to throw away the value most of the time.
485 Sun Jun  2 12:24:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
487         * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
488         no '=', regardless of ARGC.
489         (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
490         word is short option, regardless of WORDS.
492 Wed May 22 17:24:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
494         * makefile.vms: Set LOADLIBES.
495         * makefile.com (link_using_library): Fix typo.
497 Wed May 15 17:37:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
499         * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
500         long.
502 Wed May 15 10:14:14 CDT 1996  Rob Tulloh  <tulloh@tivoli.com>
504         * dir.c: W32 does not support inode. For now, fully qualified
505         pathname along with st_mtime will be keys for files.
506         Fixed problem where vpath can be confused when files
507         are added to a directory after the directory has already been
508         read in. The code now attempts to reread the directory if it
509         discovers that the datestamp on the directory has changed since
510         it was cached by make. This problem only seems to occur on W32
511         right now so it is lumped under port #ifdef WINDOWS32.
513         * function.c: W32: call subproc library (CreateProcess()) instead of
514         fork/exec.
516         * job.c: W32: Added the code to do fork/exec/waitpid style processing
517         on W32 systems via calls to subproc library.
519         * main.c: W32: Several things added here. First, there is code
520         for dealing with PATH and SHELL defaults. Make tries to figure
521         out if the user has %PATH% set in the environment and sets it to
522         %Path% if it is not set already. Make also looks to see if sh.exe
523         is anywhere to be found. Code path through job.c will change
524         based on existence of a working Bourne shell. The checking for
525         default shell is done twice: once before makefiles are read in
526         and again after. Fall back to MSDOS style execution mode if no sh.exe
527         is found. Also added some debug support that allows user to pause make
528         with -D switch and attach a debugger. This is especially useful for
529         debugging recursive calls to make where problems appear only in the
530         sub-make.
532         * make.h: W32: A few macros and header files for W32 support.
534         * misc.c: W32: Added a function end_of_token_w32() to assist
535         in parsing code in read.c.
537         * read.c: W32: Fixes similar to MSDOS which allow colon to
538         appear in filenames. Use of colon in filenames would otherwise
539         confuse make.
541         * remake.c: W32: Added include of io.h to eliminate compiler
542         warnings. Added some code to default LIBDIR if it is not set
543         on W32.
545         * variable.c: W32: Added support for detecting Path/PATH
546         and converting them to semicolon separated lists for make's
547         internal use. New function sync_Path_environment()
548         which is called in job.c and function.c before creating a new
549         process. Caller must set Path in environment since we don't
550         have fork() to do this for us.
552         * vpath.c: W32: Added detection for filenames containing
553         forward or backward slashes.
555         * NMakefile: W32: Visual C compatible makefile for use with nmake.
556         Use this to build GNU make the first time on Windows NT or Windows 95.
558         * README.W32: W32: Contains some helpful notes.
560         * build_w32.bat: W32: If you don't like nmake, use this the first
561         time you build GNU make on Windows NT or Windows 95.
563         * config.h.W32: W32 version of config.h
565         * subproc.bat: W32: A bat file used to build the
566         subproc library from the top-level NMakefile. Needed because
567         WIndows 95 (nmake) doesn't allow you to cd in a make rule.
569         * w32/include/dirent.h
570         * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
572         * w32/include/pathstuff.h: W32: used by files needed functions
573         defined in pathstuff.c (prototypes).
575         * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
577         * w32/include/w32err.h: W32: prototypes for w32err.c.
579         * w32/pathstuff.c: W32: File and Path/Path conversion functions.
581         * w32/subproc/build.bat: W32: build script for subproc library
582         if you don't wish to use nmake.
584         * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
585         with nmake. Used to build subproc library.
587         * w32/subproc/misc.c: W32: subproc library support code
588         * w32/subproc/proc.h: W32: subproc library support code
589         * w32/subproc/sub_proc.c: W32: subproc library source code
590         * w32/subproc/w32err.c: W32: subproc library support code
592 Mon May 13 14:37:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
594         * Version 3.74.4.
596         * GNUmakefile (vmsfiles): Fix typo.
598         * GNUmakefile (amigafiles): Add amiga.h.
600 Sun May 12 19:19:43 1996  Aaron Digulla   <digulla@fh-konstanz.de>
602         * dir.c: New function: amigafy() to fold filenames
603         Changes HASH() to HASHI() to fold filenames on Amiga.
604         Stringcompares use strieq() instead of streq()
605         The current directory on Amiga is "" instead of "."
606         * file.c: Likewise.
608         * amiga.c: New function wildcard_expansion(). Allows to use
609         Amiga wildcards with $(wildcard )
611         * amiga.h: New file. Prototypes for amiga.c
613         * function.c: Use special function wildcard_expansion() for
614         $(wildcard ) to allow Amiga wildcards
615         The current directory on Amiga is "" instead of "."
617         * job.c: No Pipes on Amiga, too
618         (load_too_high) Neither on Amiga
619         ENV variable on Amiga are in a special directory and are not
620         passed as third argument to main().
622         * job.h: No envp on Amiga
624         * make.h: Added HASHI(). This is the same as HASH() but converts
625         it's second parameter to lowercase on Amiga to fold filenames.
627         * main.c: (main), variable.c Changed handling of ENV-vars. Make
628         stores now the names of the variables only and reads their contents
629         when they are accessed to reflect that these variables are really
630         global (ie. they CAN change WHILE make runs !) This handling is
631         made in lookup_variable()
633         * Makefile.ami: renamed file.h to filedep.h
634         Updated dependencies
636         * read.c: "find_semicolon" is declared as static but never defined.
637         No difference between Makefile and makefile on Amiga; added
638         SMakefile to *default_makefiles[].
639         (read_makefile) SAS/C want's two_colon and pattern_percent be set
640         before use.
641         The current directory on Amiga is "" instead of "."
642         Strange #endif moved.
644         * README.Amiga: updated feature list
646         * SMakefile: Updated dependencies
648         * variable.c: Handling of ENV variable happens inside lookup_variable()
650 Sat May 11 17:58:32 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
652         * variable.c (try_variable_definition): Count parens in lhs variable
653         refs to avoid seeing =/:=/+= inside a ref.
655 Thu May  9 13:54:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
657         * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
658         conditional.
660         * main.c (main): Use unsigned for fread return.
662         * read.c (parse_file_seq): Use `int' for char arg to avoid widening
663         conflict issues.
664         * dep.h: Fix prototype.
666         * function.c (expand_function) [_AMIGA]: Fix some typos.
667         (patsubst_expand): Make len vars unsigned.
669         * GNUmakefile (globfiles): Add AmigaDOS support files.
670         (distfiles): Add $(amigafiles).
671         (amigafiles): New variable.
673 Thu Nov  7 10:18:16 1995  Aaron Digulla   <digulla@fh-konstanz.de>
675         * Added Amiga support in commands.c, dir.c, function.c,
676         job.c, main.c, make.h, read.c, remake.c
677         * commands.c: Amiga has neither SIGHUP nor SIGQUIT
678         * dir.c: Amiga has filenames with Upper- and Lowercase,
679         but "FileName" is the same as "filename". Added strieq()
680         which is use to compare filenames. This is like streq()
681         on all other systems. Also there is no such thing as
682         "." under AmigaDOS.
683         * function.c: On Amiga, the environment is not passed as envp,
684         there are no pipes and Amiga can't fork. Use my own function
685         to create a new child.
686         * job.c: default_shell is "" (The system automatically chooses
687         a shell for me). Have to use the same workaround as MSDOS for
688         running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
689         known on Amiga. Cloned code to run children from MSDOS. Own
690         version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
691         * main.c: Force stack to 20000 bytes. Read environment from ENV:
692         device. On Amiga, exec_command() does return, so I exit()
693         afterwards.
694         * make.h: Added strieq() to compare filenames.
695         * read.c: Amiga needs special extension to have passwd. Only
696         one include-dir. "Makefile" and "makefile" are the same.
697         Added "SMakefile".  Added special code to handle device names (xxx:)
698         and "./" in rules.
699         * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
700         instead of "lib%s.a".
701         * main.c, rule.c, variable.c: Avoid floats at all costs.
702         * vpath.c: Get rid of as many alloca()s as possible.
704 Thu May  9 13:20:43 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
706         * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
708 Wed Mar 20 09:52:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
710         * GNUmakefile (vmsfiles): New variable.
711         (distfiles): Include $(vmsfiles).
713 Tue Mar 19 20:21:34 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
715         Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
716         * make.h (PARAMS): New macro.
717         * config.h-vms: New file.
718         * makefile.com: New file.
719         * makefile.vms: New file.
720         * readme.vms: New file.
721         * vmsdir.h: New file.
722         * vmsfunctions.c: New file.
723         * vmsify.c: New file.
724         * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
725         * ar.c: Added prototypes and changes for VMS.
726         * commands.c: Likewise.
727         * commands.h: Likewise.
728         * default.c: Likewise.
729         * dep.h: Likewise.
730         * dir.c: Likewise.
731         * expand.c: Likewise.
732         * file.c: Likewise.
733         * function.c: Likewise.
734         * implicit.c: Likewise.
735         * job.c: Likewise.
736         * job.h: Likewise.
737         * main.c: Likewise.
738         * make.h: Likewise.
739         * misc.c: Likewise.
740         * read.c: Likewise.
741         * remake.c: Likewise.
742         * remote-stub.c: Likewise.
743         * rule.c: Likewise.
744         * rule.h: Likewise.
745         * variable.c: Likewise.
746         * variable.h: Likewise.
747         * vpath.c: Likewise.
748         * compatMakefile (srcs): Rename file.h to filedef.h.
750 Sat Aug 19 23:11:00 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
752         * remake.c (check_dep): For a secondary file, try implicit and
753         default rules if appropriate.
755 Wed Aug  2 04:29:42 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
757         * remake.c (check_dep): If an intermediate file exists,
758         do consider its actual date.
760 Sun Jul 30 00:49:53 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
762         * file.h (struct file): New field `secondary'.
763         * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
764         (remove_intermediates): Don't delete .SECONDARY files.
766 Sat Mar  2 16:26:52 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
768         * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
770 Fri Mar  1 12:04:47 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
772         * Version 3.74.3.
774         * remake.c (f_mtime): Move future modtime check before FILE is
775         clobbered by :: loop.
777         * dir.c: Use canonical code from autoconf manual for dirent include.
778         [_D_NAMLEN]: Redefine NAMLEN using this.
779         (dir_contents_file_exists_p): Use NAMLEN macro.
780         (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
782         * compatMakefile (objs): Add missing backslash.
784 Wed Feb 28 03:56:20 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
786         * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
787         (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
789         * remake.c (f_mtime): Check for future timestamps; give error and mark
790         file as "failed to update".
792 Fri Jan 12 18:09:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
794         * job.c: Don't declare unblock_sigs; job.h already does.
796 Sat Jan  6 16:24:44 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
798         * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
800         * job.c (NGROUPS_MAX): Don't try to define this macro.
802 Fri Dec 22 18:44:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
804         * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
805         (objs, srcs): Include their values here instead of references.
807 Thu Dec 14 06:21:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
809         * Version 3.74.2.
811         * job.c (reap_children): Call unblock_sigs after start_job_command.
813 Thu Dec 14 07:22:03 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
815         * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
816         Avoid & before function names to silence bogus sunos4 compiler.
818         * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
820 Tue Dec 12 00:48:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
822         * Version 3.74.1.
824         * dir.c (read_dirstream): Fix braino: fill in the buffer when not
825         reallocating it!
827 Mon Dec 11 22:26:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
829         * misc.c (collapse_continuations): Fix skipping of trailing \s so
830         it can never dereference before the beginning of the array.
832         * read.c (find_semicolon): Function removed.
833         (read_makefile): Don't use find_semicolon or remove_comments for
834         rule lines.  Use find_char_unquote directly and handle quoted comments
835         properly.
837         * default.c: Remove all [M_XENIX] code.
839         * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
840         (D_NAMLEN): Macro removed.
841         (FAKE_DIR_ENTRY): New macro.
842         (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
843         D_NAMLEN.
844         (read_dirstream): Return a struct dirent * for new glob interface.
845         (init_dir): Function removed.
846         (dir_setup_glob): New function.
847         * main.c (main): Don't call init_dir.
848         * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
849         GLOB_ALTDIRFUNC flag.
851         * misc.c (safe_stat): Function removed.
852         * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
853         safe_stat.
855 Sat Nov 25 20:35:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
857         * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
859         * main.c (log_working_directory): Made global.
860         Print entering msg only once.
861         * make.h (log_working_directory): Declare it.
862         * misc.c (message): Take new arg PREFIX.  Print "make: " only if
863         nonzero.  Call log_working_directory.
864         * remake.c: Pass new arg in `message' calls.
865         * job.c (start_job_command): Pass new arg to `message'; fix
866         inverted test in that call.
868 Tue Nov 21 19:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
870         * job.c (start_job_command): Use `message' to print the command,
871         and call it with null if the command is silent.
872         * remake.c (touch_file): Use message instead of printf.
874 Tue Oct 10 14:59:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
876         * main.c (enter_command_line_file): Barf if NAME is "".
878 Sat Sep  9 06:33:20 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
880         * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
882 Thu Aug 17 15:08:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
884         * configure.in: Don't check for getdtablesize.
885         * job.c (getdtablesize): Remove decls and macros.
887 Thu Aug 10 19:10:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
889         * main.c (define_makeflags): Omit command line variable
890         definitions from MFLAGS value.
892         * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
893         indicating a valid, but empty, archive.
895 Mon Aug  7 15:40:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
897         * dir.c (file_impossible_p): Correctly reset FILENAME to name
898         within directory before hash search.
900         * job.c (child_error): Do nothing if IGNORED under -s.
902         * job.c (exec_command): Correctly use ARGV[0] for script name when
903         running shell directly.
905 Tue Aug  1 14:39:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
907         * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
908         dup'ing from them.  Don't try to close all excess descriptors;
909         getdtablesize might return a huge value.  Any open descriptors in
910         the parent should have FD_CLOEXEC set.
911         (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
913 Tue Jun 20 03:47:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
915         * read.c (read_all_makefiles): Properly append default makefiles
916         to the end of the `read_makefiles' chain.
918 Fri May 19 16:36:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
920         * Version 3.74 released.
922 Wed May 10 17:43:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
924         * Version 3.73.3.
926 Tue May  9 17:15:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
928         * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
929         install-info cmd.
931 Wed May  3 15:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
933         * file.c (print_file): Grok update_status of 1 for -q.
935 Thu Apr 27 12:39:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
937         * Version 3.73.2.
939 Wed Apr 26 17:15:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
941         * file.c (remove_intermediates): Fix inverted test to bail under
942         -n for signal case.  Bail under -q or -t.
943         Skip files with update_status==-1.
945         * job.c (job_next_command): Skip empty lines.
946         (new_job): Don't test the return of job_next_command.
947         Just let start_waiting_job handle the case of empty commands.
949 Wed Apr 19 03:25:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
951         * function.c [__MSDOS__]: Include <fcntl.h>.  From DJ Delorie.
953         * Version 3.73.1.
955 Sat Apr  8 14:53:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
957         * remake.c (notice_finished_file): Set FILE->update_status to zero
958         if it's -1.
960 Wed Apr  5 00:20:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
962         * Version 3.73 released.
964 Tue Mar 28 13:25:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
966         * main.c (main): Fixed braino in assert.
968         * Version 3.72.13.
970 Mon Mar 27 05:29:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
972         * main.c: Avoid string in assert expression.  Some systems are broken.
974 Fri Mar 24 00:32:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
976         * main.c (main): Handle 1 and 2 returns from update_goal_chain
977         makefile run properly.
979         * Version 3.72.12.
981         * main.c (handle_non_switch_argument): New function, broken out of
982         decode_switches.
983         (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
984         When getopt_long returns EOF, break the loop and handle remaining args
985         with a simple second loop.
987         * remake.c (remake_file): Set update_status to 2 instead of 1 for
988         no rule to make.  Mention parent (dependent) in error message.
989         (update_file_1): Handle FILE->update_status == 2 in -d printout.
990         * job.c (start_job_command, reap_children): Set update_status to 2
991         instead of 1 for failed commands.
993 Tue Mar 21 16:23:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
995         * job.c (search_path): Function removed (was already #if 0'd out).
996         * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
998 Fri Mar 17 15:57:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1000         * configure.bat: Write @CPPFLAGS@ translation.
1002 Mon Mar 13 00:45:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1004         * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
1005         to not skip the elt immediately preceding `l(...'.
1007 Fri Mar 10 13:56:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1009         * Version 3.72.11.
1011         * read.c (find_char_unquote): Make second arg a string of stop
1012         chars instead of a single stop char.  Stop when any char in the
1013         string is hit.  All callers changed.
1014         (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
1015         instead of using two calls.  If the match is not a ; but a #,
1016         return zero.
1017         * misc.c: Changed find_char_unquote callers here too.
1019         * Version 3.72.10.
1021         * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
1022         __MSDOS__.
1024         * GNUmakefile (globfiles): Add glob/configure.bat.
1025         (distfiles): Add configh.dos, configure.bat.
1027 Wed Mar  8 13:10:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1029         Fixes for MS-DOS from DJ Delorie.
1030         * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
1031         as separator in "C:\...".
1032         * configh.dos (STDC_HEADERS): Define only if undefined.
1033         (HAVE_SYS_PARAM_H): Don't define this.
1034         (HAVE_STRERROR): Define this.
1035         * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
1037         * Version 3.72.9.
1039         * main.c (decode_switches): Reset optind to 1 instead of 0.
1041 Tue Mar  7 17:31:06 1995  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
1043         * main.c (decode_switches): If non-option arg is "-", ignore it.
1045 Mon Mar  6 23:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1047         * Version 3.72.8.
1049 Wed Feb 22 21:26:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1051         * Version 3.72.7.
1053 Tue Feb 21 22:10:43 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1055         * main.c (main): Pass missing arg to tmpnam.
1057         * configure.in: Check for strsignal.
1058         * job.c (child_error): Use strsignal.
1059         * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
1061         * misc.c (strerror): Fix swapped args in sprintf.
1063 Mon Feb 13 11:50:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1065         * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
1067 Fri Feb 10 18:44:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1069         * main.c (print_version): Add 95 to copyright years.
1071         * Version 3.72.6.
1073         * job.c (start_job_command): Remember to call notice_finished_file
1074         under -n when not recursing.  To do this, consolidate that code
1075         under the empty command case and goto there for the -n case.
1077 Tue Feb  7 13:36:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1079         * make.h [! STDC_HEADERS]: Don't declare qsort.  Sun headers
1080         declare it int.
1082 Mon Feb  6 17:37:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1084         * read.c (read_makefile): For bogus line starting with tab, ignore
1085         it if blank after removing comments.
1087         * main.c: Cast results of `alloca' to `char *'.
1088         * expand.c: Likewise.
1090 Sun Feb  5 18:35:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1092         * Version 3.72.5.
1094         * configure.in: Check for mktemp.
1095         * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
1097         * configure.in (make_cv_sysconf_open_max): New check for `sysconf
1098         (_SC_OPEN_MAX)'.
1099         * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
1100         * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
1101         using sysconf.
1103 Fri Jan 27 04:42:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1105         * remake.c (update_file_1): When !MUST_MAKE, don't set
1106         FILE->update_status to zero before calling notice_finished_file.
1107         (notice_finished_file): Touch only when FILE->update_status is zero.
1108         (remake_file): Set FILE->update_status to zero after not calling
1109         execute_file_command and deciding to touch instead.
1111 Thu Jan 26 01:29:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1113         * main.c (debug_signal_handler): New function; toggles debug_flag.
1114         (main): Handle SIGUSR1 with that.
1116 Mon Jan 16 15:46:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1118         * compatMakefile (realclean): Remove Info files.
1120 Sun Jan 15 08:23:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1122         * Version 3.72.4.
1124         * job.c (start_job_command): Save and restore environ around vfork
1125         call.
1126         (search_path): Function #if 0'd out.
1127         (exec_command): Use execvp instead of search_path.
1129         * expand.c (variable_expand): Rewrote computed variable name and
1130         substitution reference handling to be simpler.  First expand the
1131         entire text between the parens if it contains any $s, then examine
1132         the result of that for subtitution references and do no further
1133         expansion while parsing them.
1135         * job.c (construct_command_argv_internal): Handle " quoting too,
1136         when no backslash, $ or ` characters appear inside the quotes.
1138         * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
1139         defined, just use int.
1141 Tue Jan 10 06:27:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1143         * default.c (default_variables) [__hpux]: Remove special
1144         definition of ARFLAGS.  Existence of the `f' flag is not
1145         consistent across HPUX versions; and one might be using GNU ar
1146         anyway.
1148         * compatMakefile (clean): Don't remove Info files.
1150         * compatMakefile (check): Remove gratuitous target declaration.
1152 Sat Jan  7 11:38:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1154         * compatMakefile (ETAGS, CTAGS): Don't use -t.
1156         * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
1158         * main.c (decode_switches): For --help, print usage to stdout.
1160 Mon Dec  5 12:42:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1162         * Version 3.72.3.
1164         * remake.c (update_file_1): Do set_command_state (FILE,
1165         cs_not_started) only if old state was deps_running.
1167 Mon Nov 28 14:24:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1169         * job.c (start_waiting_job): Use set_command_state.
1171         * build.template (CPPFLAGS): New variable.
1172         (prefix, exec_prefix): Set from @...@.
1173         (compilation loop): Pass $CPPFLAGS to compiler.
1175         * GNUmakefile (build.sh.in): Make it executable.
1177         * GNUmakefile (globfiles): Add configure.in, configure.
1179         * Version 3.72.2.
1181         * configure.in (AC_OUTPUT): Don't write glob/Makefile.
1183         * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
1185         * configure.in: Don't check for ranlib.
1187 Tue Nov 22 22:42:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1189         * remake.c (notice_finished_file): Only mark also_make's as
1190         updated if really ran cmds.
1192 Tue Nov 15 06:32:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1194         * configure.in: Put dnls before random whitespace.
1196 Sun Nov 13 05:02:25 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1198         * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
1199         (RANLIB): Variable removed.
1200         (prefix, exec_prefix): Set these from @...@.
1201         (.c.o): Use $(CPPFLAGS).
1202         (glob/libglob.a): Don't pass down variables to sub-make.
1203         glob/Makefile should be configured properly by configure.
1204         (distclean): Remove config.log and config.cache (autoconf stuff).
1206 Mon Nov  7 13:58:06 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1208         * acconfig.h: Add #undef HAVE_UNION_WAIT.
1209         * configure.in: Converted to Autoconf v2.
1210         * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
1211         of DIRENT, SYSDIR, NDIR.
1212         * build.sh.in (prefix, exec_prefix): Set these from @...@.
1213         (CPPFLAGS): New variable, set from @CPPFLAGS@.
1214         (compiling loop): Pass $CPPFLAGS before $CFLAGS.
1215         * install.sh: File renamed to install-sh.
1217         * main.c (define_makeflags): When no flags, set WORDS to zero.
1219 Sun Nov  6 18:34:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1221         * Version 3.72.1.
1223         * main.c (define_makeflags): Terminate properly when FLAGSTRING is
1224         empty.
1226 Fri Nov  4 16:02:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1228         * Version 3.72.
1230 Tue Nov  1 01:18:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1232         * Version 3.71.5.
1234         * job.c (start_job_command): When ARGV is nil, only set
1235         update_state and call notice_finished_file if job_next_command
1236         returns zero.
1238         * job.c (start_job_command): Call notice_finished_file for empty
1239         command line.
1241 Thu Oct 27 02:02:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1243         * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
1244         COMMANDS_NOERROR.
1246 Wed Oct 26 02:14:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1248         * Version 3.71.4.
1250 Tue Oct 25 22:49:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1252         * file.c (snap_deps): Set command_flags bits in all :: entries.
1254 Mon Oct 24 18:47:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1256         * make.h (posix_pedantic): Declare it.
1257         * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
1258         snap_deps.
1259         * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
1260         of in main.  If .IGNORE has deps, OR COMMANDS_NOERROR into their
1261         command_flags and don't set -i.  Likewise .SILENT.
1262         * job.c (start_job_command): In FLAGS initialization, OR in
1263         CHILD->file->command_flags.
1264         * file.h (struct file): New member `command_flags'.
1266 Sun Oct 16 01:01:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1268         * main.c (switches): Bump flag values for --no-print-directory and
1269         --warn-undefined-variables, so neither is 1 (which indicates a
1270         nonoption argument).
1272 Sat Oct 15 23:39:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1274         * main.c (main): Add missing code in .IGNORE test.
1276 Mon Oct 10 04:09:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1278         * variable.c (define_automatic_variables): Define +D and +F.
1280 Sat Oct  1 04:07:48 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1282         * main.c (main): Define hidden automatic variable with command
1283         vars, and MAKEOVERRIDES to a reference to that.
1284         (define_makeflags): If posix_pedantic, write a reference to that
1285         instead.
1287 Thu Sep 29 00:14:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1289         * main.c (posix_pedantic): New variable.
1290         (main): Set posix_pedantic if .POSIX is a target.
1291         Fix .IGNORE and .SILENT checks to require is_target.
1293         * commands.c (set_file_variables): Define new automatic variable
1294         $+, like $^ but before calling uniquize_deps.
1296         * job.c (reap_children): Call delete_child_targets for non-signal
1297         error if .DELETE_ON_ERROR is a target.
1299 Tue Sep 27 01:57:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1301         * Version 3.71.3.
1303 Mon Sep 26 18:16:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1305         * job.c (reap_children): Don't change C->file->command_state when
1306         dying.  Test it only after calling start_job_command for a new
1307         command line.  When no more cmds, just set C->file->update_status.
1308         (start_job_command): When the last line is empty or under -n, set
1309         C->file->update_status.
1310         (start_waiting_job): Grok cs_not_started after start_job_command
1311         as success.
1312         (new_job): Set C->file->update_status when there are no cmds.
1313         (job_next_command): When out of lines, don't set
1314         CHILD->file->update_status or CHILD->file->command_state.
1316         * main.c (quote_as_word): Renamed from shell_quote.  Take new arg;
1317         if nonzero, also double $s.
1318         (main): Define MAKEOVERRIDES from command_variables here.
1319         (define_makeflags): Don't use command_variables here; instead write a
1320         reference $(MAKEOVERRIDES) in MAKEFLAGS.  Make vars recursive.
1322         * dir.c [__MSDOS__]: Fixed typo.
1324         * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
1326 Sat Sep 10 03:01:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1328         * remake.c: Include <assert.h> and use assert instead of printfs
1329         and abort.
1331         * main.c (decode_switches): Loop until optind hits ARGC, not just
1332         until getopt_long returns EOF.  Initialize C to zero before loop;
1333         in loop if C is EOF, set optarg from ARGV[optind++], else call
1334         getopt_long.
1335         (decode_env_switches): Use variable_expand instead of
1336         allocated_variable_expand.  Allocate a fresh buffer to copy split
1337         words into; scan characters by hand to break words and
1338         debackslashify.
1339         (shell_quote): New function.
1340         (define_makeflags): Allocate doubled space for switch args, and command
1341         variable names and values; use shell_quote to quote those things.
1343 Fri Sep  9 01:37:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1345         * Version 3.71.2.
1347         * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
1349         * main.c (decode_switches): The non-option return from getopt is
1350         1, not 0.
1351         (command_variables): New type and variable.
1352         (decode_switches, decode_env_switches): After making a variable
1353         definition, record the struct variable pointer in the
1354         command_variables chain.
1355         (define_makeflags): If ALL, write variable definitions for
1356         command_variables.
1358         * main.c (other_args): Variable removed.
1359         (goals, lastgoal): New static variables (moved from auto in main).
1360         (main): Don't process OTHER_ARGS at all.
1361         Don't set variable MAKEOVERRIDES at all; define MAKE to just
1362         $(MAKE_COMMAND).
1363         (init_switches): Prepend a - {return in order} instead of a +
1364         {require order}.
1365         (decode_switches): Don't set OTHER_ARGS at all.
1366         Grok '\0' return from getopt_long as non-option argument; try
1367         variable definition and (if !ENV) enter goal targets here.
1368         (decode_env_switches): Use allocated_variable_expand to store value.
1369         Use find_next_token to simplify word-splitting loop.  Don't
1370         prepend a dash to uninterpreted value.  Instead, if split into
1371         only one word, try variable definition and failing that prepend a
1372         dash to the word and pass it to decode_switches as a single arg.
1374 Wed Sep  7 03:02:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1376         * remake.c (notice_finished_file): Only recheck modtimes if
1377         FILE->command_state was cs_running on entry (meaning the commands
1378         actually just ran).
1379         (update_file_1): Whenever we set FILE->update_status, call
1380         notice_finished_file instead of just set_command_state.
1381         * job.c (start_job_command): Whenever we set
1382         CHILD->file->update_status, call notice_finished_file instead of
1383         just set_command_state.
1385 Tue Sep  6 19:13:54 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
1387         * default.c: Add missing ".
1389         * job.c: Changed all assignments of command_state members to calls
1390         to set_command_state.
1391         * remake.c: Likewise.
1392         * file.c (set_command_state): New function.
1393         * file.h: Declare set_command_state.
1395         * main.c (init_switches): Put a + first in options.
1397 Mon Jul 25 18:07:46 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1399         Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
1400         * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
1401         * main.c (directory_before_chdir): New variable, moved out of main
1402         (was local).
1403         (main) [__MSDOS__]: Look for \ or : to delimit last component of
1404         PROGRAM.  Don't frob ARGV[0] before setting MAKE_COMMAND variable.
1405         (die): Change back to `directory_before_chdir' before dying.
1406         * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
1407         [__MSDOS__] and not.
1408         * job.c [__MSDOS__]: Include <process.h>.
1409         [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
1410         dos_batch_file): New variables.
1411         (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
1412         (unblock_sigs) [__MSDOS__]: Do nothing.
1413         (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
1414         (load_too_high) [__MSDOS__]: Always return true.
1415         (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
1416         Use PATH_SEPARATOR_CHAR instead of ':'.
1417         (construct_command_argv_internal) [__MSDOS__]: Wholly different
1418         values for sh_chars and sh_cmds.  Wholly new code to handle shell
1419         scripts.
1420         * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
1421         implementation.
1422         * dir.c [__MSDOS__] (dosify): New function.
1423         (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
1424         process the result instead of FILENAME itself.
1425         (file_impossible_p) [__MSDOS__]: Likewise.
1426         * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
1427         (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
1428         (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
1429         `bison -y', and LEX to `flex'.
1430         * configure.bat, configh.dos: New files.
1431         * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
1432         intermediates and exit.
1434         * commands.c (set_file_variables): Add parens in length
1435         computation in .SUFFIXES dep loop to quiet compiler warning.  From
1436         Jim Meyering.
1438         * read.c (read_makefile): Free FILENAME if we allocated it.  From
1439         Jim Meyering.
1441 Mon Jul  4 17:47:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1443         * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
1444         * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
1445         * read.c (construct_include_path): Use safe_stat in place of stat.
1446         * job.c (search_path): Use safe_stat in place of stat.
1447         * dir.c (find_directory): Use safe_stat in place of stat.
1448         * commands.c (delete_target): Use safe_stat in place of stat.
1449         * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
1450         * remake.c (name_mtime): Use safe_stat in place of stat.
1451         (touch_file) [EINTR]: Do EINTR looping around fstat.
1453 Fri Jun 24 05:40:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1455         * read.c (read_makefile): Check for a shell command first, and
1456         then strip leading tabs before further checking if it's not a
1457         shell command line.
1459         * make.h [__arm]: Undefine POSIX.
1460         [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
1461         functions that return int.
1463         * job.c (construct_command_argv_internal): After swallowing a
1464         backslash-newline combination, if INSTRING is set goto string_char
1465         (new label) for normal INSTRING handling code.
1467 Sat Jun  4 01:11:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1469         * configure.in: Don't check for sys_siglist and _sys_siglist with
1470         AC_HAVE_FUNCS.  Instead use two AC_COMPILE_CHECKs.
1472 Mon May 23 18:20:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1474         * Version 3.71.1 released.
1476         * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
1477         _POSIX_VERSION for these declarations.
1479         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
1480         around #undefs of HAVE_SETREUID and HAVE_SETREGID.
1482 Sat May 21 16:26:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1484         * Version 3.71 released.
1486         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
1487         and [HAVE_SETGID].  Every system has those, and configure doesn't
1488         check for them.
1490         * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
1492         * compatMakefile (loadavg): Depend on and use loadavg.c instead of
1493         getloadavg.c.
1494         (loadavg.c): Link or copy it from getloadavg.c.
1495         (distclean): Remove loadavg.c.
1497 Mon May 16 22:59:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1499         * Version 3.70.4.
1501         * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
1502         and HAVE_SETEGID.
1504         * default.c (default_terminal_rules): In SCCS rules, put
1505         $(SCCS_OUTPUT_OPTION) before $<.  On some systems -G is grokked
1506         only before the file name.
1507         * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
1509 Tue May 10 16:27:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1511         * job.c (construct_command_argv_internal): Swallow
1512         backslash-newline combinations inside '' strings too.
1514 Thu May  5 04:15:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1516         * read.c (do_define): Call collapse_continuations on each line
1517         before all else.
1519 Mon Apr 25 19:32:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1521         * job.c (construct_command_argv_internal): Notice newline inside
1522         '' string when RESTP is non-null.
1524 Fri Apr 22 17:33:30 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1526         * Version 3.70.3.
1528         * remake.c (update_goal_chain): Reset FILE to G->file after the
1529         double-colon loop so it is never null for following code.
1531         * read.c (read_makefile): Fix `override define' parsing to skip
1532         whitespace after `define' properly.
1534         * compatMakefile (srcdir): Define as @srcdir@; don't reference
1535         $(VPATH).
1536         (glob/Makefile): New target.
1538 Thu Apr 21 16:16:55 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1540         * Version 3.70.2.
1542         * misc.c (remove_comments): Use find_char_unquote.
1543         * make.h (find_char_unquote): Declare it.
1544         * read.c (find_char_unquote): New function, generalized from
1545         find_percent.
1546         (find_percent, find_semicolon, parse_file_seq): Use that.
1548 Wed Apr 20 18:42:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1550         * implicit.c (pattern_search): Always allocate new storage for
1551         FILE->stem.  It is not safe to store STEM's address because it
1552         might be auto storage.
1554         * configure.in: Check for seteuid and setegid.
1555         * misc.c [HAVE_SETEUID]: Declare seteuid.
1556         [HAVE_SETEGID]: Declare setegid.
1557         (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
1558         [HAVE_SETEGID]: Use setegid.
1560         * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
1561         to preserve whether it's 2 for error or 1 for -q trigger.  When
1562         STATUS gets nonzero and -q is set, always stop immediately.
1563         * main.c (main, decode_switches): Die with 2 for errors.
1564         (main): Accept 2 return from update_goal_chain and die with that.
1565         * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
1566         answer.
1567         * job.c (reap_children): Die with 2 for error.
1568         (start_job_command): Set update_status to 2 for error.  Set it to
1569         1 when we would run a command and question_flag is set.
1571         * read.c (read_makefile): Don't mark makefiles as precious.  Just
1572         like other targets, they can be left inconsistent and in need of
1573         remaking by aborted commands.
1575         * read.c (read_makefile): Write no error msg for -include file.
1577 Tue Apr  5 05:22:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1579         * commands.c (fatal_error_signal): Don't unblock signals.
1581         * file.h (struct file): Change member `double_colon' from flag to
1582         `struct file *'.
1583         * read.c (record_files): Set double_colon pointer instead of flag.
1584         * main.c (main): When disqualifying makefiles for updating, use
1585         double_colon pointer to find all entries for a file.
1586         * file.c (enter_file): If there is already a double-colon entry
1587         for the file, set NEW->double_colon to that pointer.
1588         (file_hash_enter): Use FILE->double_colon to find all entries to
1589         set name.
1590         * remake.c (update_goal_chain): Do inner loop on double-colon entries.
1591         (update_file): Use FILE->double_colon pointer to find all entries.
1592         (f_mtime): Likewise.
1593         (notice_finished_file): Propagate mtime change to all entries.
1595         * variable.c (try_variable_definition): Return after abort.
1597 Fri Apr  1 18:44:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1599         * read.c (read_makefile): Remove unused variable.
1600         (parse_file_seq): When removing an elt that is just `)', properly
1601         fix up the previous elt's next pointer.
1603 Mon Mar 28 18:31:49 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
1605         * configure.in: Do AC_SET_MAKE.
1606         * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
1608 Fri Mar  4 00:02:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1610         * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
1611         the search string is the empty string, find a match at the end of
1612         each word (using end_of_token in place of sindex).
1614         * misc.c (end_of_token): Don't treat backslashes specially; you
1615         can no longer escape blanks with backslashes in export, unexport,
1616         and vpath.  This was never documented anyway.
1618 Thu Mar  3 23:53:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1620         * read.c (read_makefile): Variable name for `define' is not just
1621         first token; use whole rest of line and strip trailing blanks.
1623 Wed Feb 16 16:03:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1625         * Version 3.70.1.
1627         * read.c (read_makefile): Add -d msg stating args.
1629         * read.c (read_makefile): Use isspace to skip over leading
1630         whitespace, and explicitly avoid skipping over tabs.  Don't want
1631         to skip just spaces though; formfeeds et al should be skipped.
1633         * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
1635         * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
1636         sizeof ar_name for max length to compare.
1638         * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
1639         #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
1641         * main.c (main): Call user_access after setting `program', in case
1642         it needs to use it in an error message.
1644         * read.c (read_makefile): Ignore an empty line starting with a tab.
1646 Thu Feb 10 21:45:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1648         * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
1649         AC_COMPILE_CHECK that is now its contents.
1651 Fri Feb  4 16:28:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1653         * make.h: #undef strerror after #include <string.h>.
1654         [! ANSI_STRING]: Declare strerror.
1656 Thu Feb  3 02:21:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1658         * misc.c (strerror): #undef any macro before function definition.
1660 Mon Jan 31 19:07:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1662         * variable.c (try_variable_definition): Calculate BEG before loop
1663         to strip blanks by decrementing END.  Don't decr END to before BEG.
1665         * read.c (read_makefile): Skip over leading space characters, but
1666         not tabs, after removing continuations and comments (it used to
1667         use isspace).
1669 Tue Jan 25 16:45:05 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1671         * variable.c (define_automatic_variables): In $(@D) et al, use
1672         patsubst to remove trailing slash.
1674         * commands.c (delete_target): New function, broken out of
1675         delete_child_targets.  Check for archive members and give special msg.
1676         (delete_child_targets): Use delete_target.
1678 Mon Jan 17 17:03:22 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1680         * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
1681         texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
1683 Tue Jan 11 19:29:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1685         * GNUmakefile (tarfiles): Omit make-doc.
1686         (make-$(version).tar): Include make.info*.
1688 Fri Jan  7 16:27:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1690         * compatMakefile (configure, config.h.in): Comment out rules.
1692 Thu Jan  6 18:08:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1694         * compatMakefile (binprefix, manprefix): New variables.
1695         (instname): Variable removed.
1696         (install): Use $({bin,man}prefix)make in place of $(instname).
1697         File targets likewised renamed.
1699 Mon Jan  3 17:50:25 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1701         * Version 3.70 released.
1703 Thu Dec 23 14:46:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1705         * Version 3.69.3.
1707         * read.c (parse_file_seq): Inside multi-word archive ref
1708         translation loop, check NEW1==0 at end and break out of the loop.
1710         * GNUmakefile (make-$(version).tar): Distribute install.sh.
1711         * install.sh: New file.
1713         * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
1714         cmds outside subshell parens, to avoid "command not found" msgs
1715         from the shell.
1717 Wed Dec 22 17:00:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1719         * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
1720         Redirect output & error from get to /dev/null.
1721         Fix reversed sense of test.
1723 Fri Dec 17 15:31:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1725         * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
1726         braces inside if condition command; some shells lose.
1728 Thu Dec 16 15:10:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1730         * Version 3.69.2.
1732         * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
1733         (PORTAR) [M_XENIX]: Define to 0 instead of 1.
1735         * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
1737 Wed Dec 15 17:47:48 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1739         * main.c (main): Cast result of pointer arith to unsigned int
1740         before passing to define_variable for envars.  Matters when
1741         sizeof(unsigned)!=sizeof(ptrdiff_t).
1743 Tue Dec 14 14:21:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1745         * configure.in: Add new check for SCCS_GET_MINUS_G.
1746         * config.h.in: Add #undef SCCS_GET_MINUS_G.
1747         * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
1748         place of `-G $@' in SCCS commands.
1749         (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
1750         to "-G$@".
1752         * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
1753         (so it goes in config.status), rather than afterward.
1755         * ar.c (ar_member_date): Don't call enter_file on the archive file
1756         if it doesn't exist (by file_exists_p).
1758         * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
1759         with `$$dir/make.info' in install-info invocation (oops).
1761         * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
1762         we do not unlink and free PATH.
1764         * file.c (print_file_data_base): Fix inverted calculation for
1765         average files per hash bucket.
1767         * read.c (readline): When we see a NUL, give only a warning and
1768         synthesize a newline to terminate the building line (used to
1769         fatal).  Move fgets call into the loop condition, and after the
1770         loop test ferror (used to test !feof in the loop).
1772 Fri Dec  3 16:40:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1774         * configure.in: Check for strerror in AC_HAVE_FUNCS.
1776 Thu Dec  2 15:37:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1778         Differentiate different flavors of missing makefile error msgs,
1779         removing gratuitous `fopen: ' and giving caller for included makefiles.
1780         * misc.c [! HAVE_STRERROR]: Define our own strerror here.
1781         (perror_with_name, pfatal_with_name): Use strerror instead of
1782         replicating its functionality.
1783         * read.c (read_makefile): Return int instead of void.
1784         (read_all_makefiles, read_makefile): Change callers to notice zero
1785         return and give error msg.
1787 Thu Nov 11 11:47:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1789         * Version 3.69.1.
1791         * default.c: Put `-G $@' before $< in SCCS cmds.
1793 Wed Nov 10 06:06:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1795         * read.c (read_makefile): After trying a variable defn, notice if
1796         the line begins with a tab, and diagnose an error.
1798 Sun Nov  7 08:07:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1800         * Version 3.69.
1802 Wed Nov  3 06:54:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1804         * Version 3.68.10.
1806         * implicit.c (try_implicit_rule): Look for a normal rule before an
1807         archive rule.
1809 Fri Oct 29 16:45:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1811         * function.c (expand_function: `sort'): Double NWORDS when it
1812         overflows, instead of adding five.
1814         * compatMakefile (clean): Remove loadavg.
1816 Wed Oct 27 17:58:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1818         * Version 3.68.9.
1820         * file.h (NEW_MTIME): Define new macro.
1821         * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
1822         current time returned from system.  Removed variable NOW.
1823         * remake.c (notice_finished_file): Use NEW_MTIME in place of
1824         current time here too.
1826 Tue Oct 26 19:45:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1828         * Version 3.68.8.
1830         * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
1831         cmds and !DEPS_CHANGED unless also !NOEXIST.
1833 Mon Oct 25 15:25:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1835         * read.c (parse_file_seq): When converting multi-word archive
1836         refs, ignore a word beginning with a '('.
1838 Fri Oct 22 02:53:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1840         * configure.in: Check for sys/timeb.h.
1841         * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
1843 Thu Oct 21 16:48:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1845         * Version 3.68.7.
1847         * rule.c (convert_suffix_rule): New local TARGPERCENT.  Set it to
1848         TARGNAME+1 for "(%.o)", to TARGNAME for "%.?".  Use it in place of
1849         TARGNAME to initialize PERCENTS[0].
1851 Mon Oct 18 06:49:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1853         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1854         Remove AC_USG; it is no longer used.
1856         * file.c (print_file): New function, broken out of
1857         print_file_data_base.
1858         (print_file_data_base): Call it.
1859         * rule.c (print_rule): New function, broken out of
1860         print_rule_data_base.
1861         (print_rule_data_base): Call it.
1863 Thu Oct 14 14:54:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1865         * default.c (install_default_suffix_rules): New function, broken
1866         out of install_default_implicit_rules.
1867         (install_default_implicit_rules): Move suffix rule code there.
1868         * make.h: Declare install_default_suffix_rules.
1869         * main.c (main): Call install_default_suffix_rules before reading
1870         makefiles.  Move convert_to_pattern call before
1871         install_default_implicit_rules.
1873         * job.h (struct child): Make `pid' member type `pid_t' instead of
1874         `int'.
1876         * compatMakefile (RANLIB): New variable, set by configure.
1877         (glob/libglob.a): Pass RANLIB value down to submake.
1879         Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
1880         * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
1881         * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
1882         defined but NOFILES_MAX is, define it to be that.
1884 Mon Oct 11 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1886         * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
1887         is distributed.
1889 Sun Oct  3 15:15:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1891         * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
1893 Tue Sep 28 14:18:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1895         * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
1896         is another symbol for | in some shells.
1897         * main.c (main): Add it to CMD_DEFS quoting list as well.
1899 Mon Sep 20 18:05:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1901         * job.c (construct_command_argv_internal): Remove '=' from
1902         SH_CHARS.  Only punt on '=' if it is unquoted in a word before the
1903         first word without an unquoted '='.
1905         * main.c (define_makeflags): Set v_export for MAKEFLAGS.
1907 Fri Sep 17 00:37:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1909         * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
1911         * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
1913         * commands.c (delete_child_targets): Don't delete phony files.
1915         * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
1916         see a `+' at the beginning of the command line.
1918 Thu Sep  9 17:57:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1920         * Version 3.68.6.
1922 Wed Sep  8 20:14:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1924         * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
1926 Mon Aug 30 12:31:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1928         * expand.c (variable_expand): Fatal on an unterminated reference.
1930 Thu Aug 19 16:27:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1932         * Version 3.68.5.
1934         * variable.c (define_automatic_variables): Define new o_default
1935         variable `MAKE_VERSION' from version_string and remote_description.
1937         * make.h (version_string, remote_description): Declare these here.
1938         * main.c: Don't declare version_string.
1939         (print_version): Don't declare remote_description.
1941 Wed Aug 18 15:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1943         * read.c (read_makefile): Free space pointed to by CONDITIONALS
1944         before restoring the old pointer.
1946 Mon Aug 16 17:33:36 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1948         * compatMakefile ($(objs)): Depend on config.h.
1950         * GNUmakefile (build.sh.in): Depend on compatMakefile.
1952         * configure.in: Touch stamp-config after AC_OUTPUT.
1954 Fri Aug 13 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1956         * Version 3.68.4.
1958 Thu Aug 12 17:18:57 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1960         * make.h: Include <config.h> instead of "config.h".
1962 Wed Aug 11 02:35:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1964         * main.c (main): Make all variables interned from ENVP be v_export.
1965         * variable.c (try_variable_definition): In v_default case, don't
1966         check for an o_file variable that `getenv' finds.
1968         * job.c (reap_children): New local variable ANY_LOCAL; set it
1969         while setting ANY_REMOTE.  If !ANY_LOCAL, don't wait for local kids.
1971         * main.c (main): Don't call decode_env_switches on MFLAGS.  DOC THIS.
1973         * function.c (expand_function): #if 0 out freeing of ENVP since it
1974         is environ.
1976 Mon Aug  9 17:37:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1978         * Version 3.68.3.
1980         * remote-stub.c (remote_status): Set errno to ECHILD before return.
1981         * job.c (reap_children): Scan the chain for remote children and
1982         never call remote_status if there are none.
1984         * function.c (expand_function: `shell'): #if 0 out calling
1985         target_environment; just set ENVP to environ instead.
1987         * job.c (reap_children): Check for negative return from
1988         remote_status and fatal for it.
1989         When blocking local child wait returns 0, then try a blocking call
1990         to remote_status.
1992 Tue Aug  3 00:19:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1994         * compatMakefile (clean): Delete make.info* and make.dvi here.
1995         (distclean): Not here.
1997         * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
1998         compilers that don't like enum values used as ints.
2000 Mon Aug  2 16:46:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2002         * compatMakefile (loadavg): Add $(LOADLIBES).
2004 Sun Aug  1 16:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2006         * Version 3.68.2.
2008         * compatMakefile (loadavg, check-loadavg): New targets.
2009         (check): Depend on check-loadavg.
2011         * compatMakefile (glob/libglob.a): Depend on config.h.
2013         * misc.c (log_access): Write to stderr instead of stdout.
2015 Fri Jul 30 00:07:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2017         * Version 3.68.1.
2019 Thu Jul 29 23:26:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2021         * configure.in (SYS_SIGLIST_DECLARED): In test program include
2022         <unistd.h> #ifdef HAVE_UNISTD_H.
2024         * compatMakefile (.PHONY): Put after `all' et al.
2026         * configure.in: Add AC_IRIX_SUN.
2028 Wed Jul 28 17:41:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2030         * Version 3.68.
2032 Mon Jul 26 14:36:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2034         * Version 3.67.8.
2036 Sun Jul 25 22:09:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2038         * Version 3.67.7.
2040         * compatMakefile ($(infodir)/make.info): Don't use $(instname).
2041         Run install-info script if present.
2043 Fri Jul 23 16:03:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2045         * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
2047         * configure.in: Add AC_STAT_MACROS_BROKEN.
2049 Wed Jul 14 18:48:11 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2051         * Version 3.67.6.
2053         * read.c (read_makefile): Recognize directive `-include', like
2054         `include' but sets RM_DONTCARE flag.
2056         * variable.c (target_environment): If FILE is nil, use
2057         current_variable_set_list in place of FILE->variables.
2058         * function.c (expand_function: `shell'): Get an environment for
2059         the child from target_environment instead of using environ.
2061         * dep.h: Declare read_all_makefiles here.
2062         (RM_*): Define new enum constants.
2063         * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
2064         Treat it as a bit mask containing RM_*.
2065         (read_all_makefiles): For default makefiles, set D->changed to
2066         RM_DONTCARE instead of 1.
2067         * main.c: Don't declare read_all_makefiles here.
2068         (main): Check `changed' member of read_makefiles elts for RM_*
2069         flags instead of specific integer values.
2071 Mon Jul 12 22:42:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2073         * make.h [sequent && i386]: #undef POSIX.  From trost@cse.ogi.edu.
2075 Thu Jul  8 19:51:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2077         * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
2078         as well as VPATH.
2079         (build_vpath_lists): Empty `vpaths' around construct_vpath_list
2080         call for $(VPATH).  Expand $(strip $(VPATH)), not just $(VPATH).
2082         * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
2083         PERCENTS, whose storage is not consumed by create_pattern_rule.
2085         * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
2087 Wed Jun 30 18:11:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2089         * Version 3.67.5.
2091         * rule.c (max_pattern_targets): New variable.
2092         (count_implicit_rule_limits): Compute its value.
2093         * rule.h: Declare it.
2094         * implicit.c (pattern_search): Make TRYRULES max_target_patterns
2095         times bigger.  Move adding new TRYRULES elt inside the inner
2096         targets loop, so each matching target gets its own elt in MATCHES
2097         and CHECKED_LASTSLASH.
2099         * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
2100         instead of just `file' in error msg.
2102 Fri Jun 25 14:55:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2104         * job.c (construct_command_argv): Turn off
2105         --warn-undefined-variables around expansion of SHELL and IFS.
2106         * read.c (tilde_expand): Likewise for HOME.
2107         (read_all_makefiles): Likewise for MAKEFILES.
2108         * vpath.c (build_vpath_lists): Likewise for VPATH.
2110         * main.c (warn_undefined_variables_flag): New flag variable.
2111         (switches): Add --warn-undefined-variables.
2112         * make.h (warn_undefined_variables_flag): Declare it.
2113         * expand.c (warn_undefined): New function.
2114         (reference_variable): Call it if the variable is undefined.
2115         (variable_expand): In substitution ref, call warn_undefined if the
2116         variable is undefined.
2118         * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
2119         `%.tex: %.w %.ch' rules.
2120         (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
2121         (default_suffixes): Add `.ch'.
2123 Mon Jun 21 17:55:39 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2125         * default.c (default_suffixes): Replace `.cweb' with `.w'.
2126         (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
2127         and `.w.tex'.
2129 Fri Jun 11 14:42:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2131         * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
2133 Thu Jun 10 18:14:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2135         * Version 3.67.4.
2137         * read.c (multi_glob): Don't free OLD and OLD->name in the
2138         FOUND!=0 fork.  Use new block-local variable F instead of
2139         clobbering OLD.
2141         * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
2142         (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
2143         contains no metacharacters.
2145 Wed Jun  9 16:25:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2147         * ar.c (ar_glob{_match,_alphacompare}): New function.
2149         * dep.h [! NO_ARCHIVES]: Declare it.
2150         * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
2152         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
2153         multi_glob (which doesn't take a 3rd arg).
2154         * rule.c (install_pattern_rule): Likewise.
2155         * default.c (set_default_suffixes): Here too.
2156         * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
2158         * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
2159         loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
2161 Mon Jun  7 19:26:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2163         * compatMakefile (installdirs): Actually pass directory names.
2164         ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
2165         if it fails, echo a warning msg, but don't make the rule fail.
2167         * read.c (tilde_expand): New function, broken out of tilde_expand.
2168         (multi_glob): Call it.
2169         (construct_include_path): Expand ~ in directory names.
2170         * dep.h: Declare tilde_expand.
2171         * main.c (enter_command_line_file): Expand ~ at the start of NAME.
2172         (main): Expand ~ in -C args.
2173         * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
2175 Fri Jun  4 13:34:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2177         * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
2179         * main.c (main): Put result of alloca in temporary variable with
2180         simple assignment, to make SGI compiler happy.
2182 Thu Jun  3 20:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2184         * Version 3.67.3.
2186         * main.c (main): Before re-execing, remove intermediate files, and
2187         print the data base under -p.  Sexier debugging message.
2189         * implicit.c (pattern_search): Allocate an extra copy of the name
2190         of a winning intermediate file when putting it in FOUND_FILES.
2192 Wed Jun  2 16:38:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2194         * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
2195         multi_glob (which doesn't take a 3rd arg).
2197         * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
2198         chars within D_NAMLEN that are NULs.
2200         * main.c (decode_switches): Don't savestring ARGV[0] to put it
2201         into `other_args'.
2202         For string switch, don't savestring `optarg'.
2203         (main): Don't free elts of makefiles->list that are "-".
2204         Use alloca'd rather than savestring'd storage for elts of
2205         makefiles->list that are temporary file names.
2206         * read.c (read_all_makefiles): Don't free *MAKEFILES.
2207         * file.c (enter_file): Don't strip `./'s.
2208         * main.c (enter_command_line_file): New function.
2209         (main): Use it in place of enter_file for command-line goals from
2210         other_files, and for old_files and new_files.
2212 Mon May 31 18:41:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2214         * Version 3.67.2.
2216         * compatMakefile (.SUFFIXES): Add .info.
2217         ($(infodir)/$(instname).info): Find make.info* in cwd if there,
2218         else in $srcdir.  Use basename to remove dir name from installed name.
2220 Thu May 27 17:35:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2222         * implicit.c (pattern_search): When interning FOUND_FILES, try
2223         lookup_file first; if found, free the storage for our copy of the name.
2225 Wed May 26 14:31:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2227         * Version 3.67.1.
2229         * main.c (decode_switches): In usage msg, write `--switch=ARG' or
2230         `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
2232 Mon May 24 16:17:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2234         * rule.c (convert_suffix_rule): New function.
2235         (convert_to_pattern): Use it instead of doing all the work here
2236         several times.
2237         For target suffix `.a', generate both the archive magic rule and
2238         the normal rule.
2240         * compatMakefile (distclean): Remove stamp-config.
2242 Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2244         * Version 3.67.
2246         * file.c (remove_intermediates): Don't write extra space after `rm'.
2248         * main.c (struct command_switch.type): Remove `usage_and_exit'.
2249         (print_usage_flag): New variable.
2250         (switches: --help): Make type `flag', to set print_usage_flag.
2251         (init_switches): Remove `usage_and_exit' case.
2252         (decode_switches): Likewise.
2253         (decode_switches): Print usage if print_usage_flag is set.
2254         When printing usage, die with status of BAD.
2255         (main): Die with 0 if print_version_flag.
2257 Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2259         * Version 3.66.
2261 Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2263         * compatMakefile (installdirs): New target.
2264         (install): Depend on it.
2266 Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2268         * Version 3.65.2.
2270 Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2272         * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
2273         set LASTPATH to PATH, not NEXT.
2275         * dir.c (read_dirstream): Break out of loop after incrementing
2276         DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
2277         dereference DS->contents->files[DIRFILE_BUCKETS].
2279         * read.c (read_makefile): Clear no_targets after reading a
2280         targetful rule line.
2282         * main.c (main): If print_version_flag is set, exit after printing
2283         the version.
2284         (switches): Change --version docstring to say it exits.
2286         * make.h [butterfly]: #undef POSIX.
2288 Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2290         * Version 3.65.1.
2292         * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
2293         [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
2295         * function.c (handle_function): Use fatal instead of
2296         makefile_fatal when reading_filename is nil.
2298         * configure.in: Add AC_GETGROUPS_T.
2299         * job.c (search_path): Use GETGROUPS_T in place of gid_t.
2301 Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2303         * Version 3.65.
2305 Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2307         * function.c (handle_function): Fatal for unmatched paren.
2309 Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2311         * Version 3.64.3.
2313         * commands.c (handling_fatal_signal): New variable.
2314         (fatal_error_signal): Set it.
2315         * job.c (reap_children): Avoid nonreentrant operations if that is set.
2316         * make.h: Declare handling_fatal_signal.
2318         * expand.c (reference_variable): New function, snippet of code
2319         broken out of simple-reference case of variable_expand.
2320         (variable_expand): Use it for simple refs.
2321         (variable_expand): When checking for a computed variable name,
2322         notice a colon that comes before the final CLOSEPAREN.  Expand
2323         only up to the colon, and then replace the pending text with a
2324         copy containing the expanded name and fall through to subst ref
2325         handling.
2326         (variable_expand): Don't bother expanding the name if a colon
2327         appears before the first $.
2328         (expand_argument): Use alloca instead of savestring.
2329         (variable_expand): For subst ref, expand both sides of = before
2330         passing to [pat]subst_expand.  Use find_percent instead of lindex
2331         to check the lhs for a %.
2333 Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2335         * Version 3.64.2.
2337 Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2339         * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
2341         * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
2342         not to multi_glob.
2344 Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2346         * Version 3.64.1.
2348         * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
2349         we read the member name in any of the fashions that allow it to be
2350         arbitrarily long.  Pass its negation to FUNCTION.
2351         (describe_member): Take TRUNCATED from ar_scan and print it.
2352         (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
2353         the first sizeof (struct ar_hdr.ar_name) chars.
2354         (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
2355         * ar.c (ar_member_date_1): Likewise.
2357 Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2359         * job.c (reap_children): Before calling start_job_command to start
2360         the next command line, reset C->remote by calling start_remote_job_p.
2362 Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2364         * arscan.c (ar_scan): New local var NAMEMAP.
2365         In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
2366         flag IS_NAMEMAP.  When extracting the member name, always put a
2367         null at its end first.  If the name is "//" or "/ARFILENAMES", set
2368         IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
2369         like " /N", get full name from NAMEMAP+N.
2370         Else if NAME looks like "#1/N", read N chars from the
2371         elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
2372         the elt's data into alloca'd NAMEMAP.
2373         (ar_name_equal): #if 0 truncating code.
2375         * make.h: Don't declare vfork at all.  It returns int anyway,
2376         unless <unistd.h> declared it; and we conflicted with some systems.
2378         * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
2379         MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
2380         define it to something like "-no-print-directory".
2381         Use %g format instead of %f for floating-valued things.
2383 Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2385         * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
2386         to change remote-%.dep to remote-stub.dep.
2388 Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2390         * Version 3.64.
2392 Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2394         * compatMakefile (install): Remove - prefix from chgrp+chmod.
2396         * Version 3.63.8.
2398 Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2400         * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
2401         * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
2402         else to "get".
2403         * default.c (default_variables): Set GET to macro SCCS_GET.
2405         * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
2406         if nonzero.  I hope this is the last time this argument is added
2407         or removed.
2408         (read_makefile): Pass it 1 when parsing include file names.
2409         Pass it 1 when parsing target file names.
2410         Pass it 1 when parsing static pattern target pattern names.
2411         * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
2412         * default.c (set_default_suffixes): Pass it 1 when parsing
2413         default_suffixes.
2414         * function.c (string_glob): Pass it 0 here.
2416 Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2418         * misc.c (log_access): New function.
2419         ({init,user,make,child}_access): Call it.
2420         (child_access): Abort if !access_inited.
2422         * main.c (switches: --no-print-directory): Use 1 instead of -1 for
2423         single-letter option.
2424         (init_switches, decode_switches, define_makeflags): An option with
2425         no single-letter version is no longer indicated by a value of -1;
2426         instead a value that is !isalnum.
2427         (init_switches): Don't put such switches into the string, only
2428         into the long_option table.
2430         * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
2432         * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
2433         bsdcc defined WIF* to use union wait.
2435         * main.c (struct command_switch): Change member `c' to type int.
2436         (switches): Make const.
2437         (decode_switches): Use `const struct command_switch *'.
2438         (define_makeflags): Likewise.
2440         * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
2442 Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2444         * Version 3.63.7.
2446         * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
2447         Removed AC_MEMORY_H.
2448         * make.h [USG, NeXT]: Don't test these.
2449         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
2450         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
2451         [! ANSI_STRING]: Put decls of bcopy et al here.
2452         [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
2453         [HAVE_SIGSETMASK]: Test this rather than USG.
2454         [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
2455         * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
2456         It doesn't hurt to do both if they are both defined, and testing
2457         USG is useless.
2458         * dir.c: Rationalize directory header conditionals.
2459         * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
2461         * default.c (default_suffixes): Add `.txinfo'.
2462         (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
2464         * variable.c (try_variable_definition): Replace RECURSIVE flag
2465         with enum FLAVOR, which can be simple, recursive, or append.
2466         Recognize += as append flavor.  Set new variable VALUE in a switch
2467         on FLAVOR.  For append flavor, prepend the variable's old value.
2468         If the variable was previously defined recursive, set FLAVOR to
2469         recursive; if it was defined simple, expand the new value before
2470         appending it to the old value.  Pass RECURSIVE flag to
2471         define_variable iff FLAVOR == recursive.
2473         * variable.c (try_variable_definition): Use alloca and bcopy for
2474         NAME, instead of savestring.  Might as well use stack storage
2475         since we free it immediately anyway.
2477 Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2479         * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
2481         * main.c (define_makeflags): Rename `struct flag' member `switch'
2482         to `cs', which is not a reserved word.
2484 Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2486         * job.c (new_job): Call start_waiting_jobs first thing.
2487         (start_waiting_job): Changed return type from void to int.
2488         Return 0 when putting the child on the waiting_jobs chain.
2489         (start_waiting_jobs): Don't check load and job_slots here.
2490         Always take a job off the chain and call start_waiting_job on it;
2491         give up and return when start_waiting_job returns zero.
2493         * main.c (define_makeflags: struct flag): Change member `char c' to
2494         `struct command_switch *switch'.
2495         (ADD_FLAG): Set that to CS instead of CS->c.
2496         If CS->c is -1, increment FLAGSLEN for the long name.
2497         When writing out FLAGS, handle FLAGS->switch->c == -1 and write
2498         the long name instead.
2500         * compatMakefile (stamp-config): New target of old config.h rule.
2501         Touch stamp-config after running config.status.
2502         (config.h): Just depend on stamp-config, and have empty commands.
2504 Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2506         * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
2508         * configure.in (AC_HAVE_FUNCS): Check for psignal.
2510 Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2512         * main.c (long_option_aliases): Remove "new"; it is already an
2513         unambiguous prefix of "new-file".
2515 Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2517         * Version 3.63.6.
2519 Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2521         * vpath.c (selective_vpath_search): When adding the
2522         name-within-directory at the end of NAME, and we don't add a
2523         slash, don't copy FILENAME in one char too far into NAME.
2525         * variable.c (define_automatic_variables): Find default_shell's
2526         length with strlen, not numerology.
2528 Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2530         * main.c (define_makeflags): Add the elts of a string option in
2531         reverse order, so they come out right when reversed again.
2533 Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2535         * compatMakefile (make.info): Use `-o make.info'.
2537 Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2539         * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
2540         reflect new use.
2541         (objs): Replace remote.o with remote-$(REMOTE).o.
2542         (srcs): Replace remote.c with remote-$(REMOTE).c.
2543         (remote.o): Rule removed.
2545         * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
2546         Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
2547         * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
2548         * build.template (REMOTE): New var; set to @REMOTE@.
2549         (objs): Add remote-${REMOTE}.o.
2551 Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2553         * Version 3.63.5.
2555         * implicit.c (pattern_search): Fix "dependent"->"dependency" in
2556         "Rejecting impossible" -d msg.
2558         * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
2559         mod'd values there; never mod {OLD,NEW}HASH.
2561 Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2563         * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
2565         * compatMakefile (VPATH): Set this to @srcdir@.
2566         (srcdir): Set this to $(VPATH).
2568         * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
2569         a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
2570         instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
2572         * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
2574         * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
2576 Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2578         * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
2579         as the sed delimiter char.
2581 Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2583         * Version 3.63.4.
2585         * rule.h (struct rule): Removed `subdir' member.
2586         * rule.c (new_pattern_rule): No need to clear it.
2587         (count_implicit_rule_limits): Set the `changed' flag in each dep
2588         that refers to a nonexistent directory.  No longer set rule-global
2589         `subdir' flag with that information.
2590         (print_rule_data_base): Don't record info on `subdir' flags.
2592         * implicit.c (pattern_search): Check the DEP->changed flag rather
2593         than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
2594         if it is set, the file might exist even though the DEP->changed
2595         flag is set.
2597         * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
2598         name arg to dir_file_exists_p to check for existence of directory.
2600         * implicit.c (pattern_search): Inside dep-finding loop, set
2601         CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
2602         rather than computing it anew.
2604         * commands.c (set_file_variables): Must alloca space for PERCENT
2605         and copy it, to avoid leaving the trailing `)' in the value.
2607         * misc.c (remove_comments): Fixed backslash-checking loop
2608         condition to allow it to look at the first char on the line.
2609         P2 >= LINE, not P2 > LINE.
2611         * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
2612         $@, rm $@.old and mv $@ to $@.old.
2614         * variable.c (try_variable_definition): Take new args FILENAME and
2615         LINENO.  Fatal if the variable name is empty.
2616         * read.c (read_makefile): Change callers.
2617         * main.c (main): Likewise.
2619         * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
2620         that configure will replace with the group owning /dev/kmem.
2622 Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2624         * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
2625         selective_vpath_search.
2626         (selective_vpath_search): Take second arg MTIME_PTR.
2627         If the dir cache thinks a file exists, stat it to make sure, and
2628         put the modtime in *MTIME_PTR.
2629         * remake.c (library_search): Take second arg MTIME_PTR.
2630         When we find a match, record its mtime there.
2631         Pass MTIME_PTR through to vpath_search to do same.
2632         (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
2633         store it in FILE->last_mtime if set nonzero.
2634         * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
2636         * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
2637         so globbing looks somewhere it will find things.
2639         * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
2640         not `$(srcdir)/make.info*'; no need to use basename.
2642 Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2644         * Version 3.63.3.
2646         * compatMakefile (install): Add missing ;\s.
2648         Make -, @, and + prefixes on a pre-expanded command line affect
2649         all lines in the expansion, not just the first.
2650         * commands.h (struct commands): Replace `lines_recurse' member
2651         with `lines_flags'.
2652         (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
2653         that flag byte.
2654         * commands.c (chop_commands): Set `lines_flags' instead of
2655         `lines_recurse'.  Record not only + but also @ and - prefixes.
2656         * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
2657         in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
2658         * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
2659         var with FLAGS; initialize it to the appropriate `lines_flags' byte.
2660         Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
2661         Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
2663         * remake.c (update_goal_chain): Set G->file to its prev after
2664         checking for G being finished, since that check needs to examine
2665         G->file.
2667         * configure.in (union wait check) [HAVE_WAITPID]: Try using
2668         waitpid with a `union wait' STATUS arg.  If waitpid and union wait
2669         don't work together, we should not use union wait.
2671         * Version 3.63.2.
2673         * remake.c (update_goal_chain): When G->file->updated, move
2674         G->file to its prev.  We aren't finished until G->file is nil.
2676 Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2678         * main.c (starting_directory): New global variable.
2679         (main): Set it to cwd after doing -Cs.
2680         (log_working_directory): Use it, rather than computing each time.
2681         * make.h: Declare it.
2683         * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
2685         * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
2686         ARGV, rather than LEN words plus one byte.
2688 Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2690         * compatMakefile ($(bindir)/$(instname)): Put - before
2691         install_setgid command line, so its failure won't be an error.
2692         (infodir): New variable.
2693         (install): Depend on $(infodir)/$(instname).info.
2694         ($(infodir)/$(instname).info): New target.
2696         * read.c (read_makefile): If FILENAMES is nil when we see a line
2697         starting with a tab, don't treat it as a command.  Just fall
2698         through, rather than giving an error.
2700         * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
2701         command line, don't clear it before continuing.  We want
2702         subsequent command lines to be ignored as well.
2704         * job.c (new_job): Before expanding each command line, collapse
2705         backslash-newline combinations that are inside var or fn references.
2707 Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2709         * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
2711         * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
2713         * job.c [POSIX] (unblock_sigs): Made global.
2714         [!POSIX] (unblock_sigs): Move defns to job.h.
2715         * job.h [POSIX] (unblock_sigs): Declare.
2717 Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2719         * read.c (read_makefile): In vpath parsing, after finding the
2720         pattern token, take entire rest of line as the search path, not
2721         just the next token.
2723         * compatMakefile (remote.o): Depend on remote-*.c.
2725 Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2727         * commands.c (set_file_variables): Don't define any F or D versions.
2728         * variable.c (define_automatic_variables): Define them here as
2729         recursively-expanded variables that use the dir and notdir funcs.
2731         * variable.c (target_environment): In v_default case, don't export
2732         o_default or o_automatic variables.
2734         * configure.in (union wait check): Remove ` and ' inside C code;
2735         they confuse the shell script.
2737 Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2739         * Version 3.63.1.
2741         * vpath.c (construct_vpath_list): When skipping further processing
2742         of an elt that is ".", don't also skip the code that pushes P past
2743         the next separator.
2745         * compatMakefile (distclean): Don't remove make-*.
2747         * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
2748         defined.  If one cannot use WEXITSTATUS with a `union wait'
2749         argument, we don't want to believe the system has `union wait' at all.
2751         * remake.c (update_file): Do nothing to print "up to date" msgs.
2752         (update_goal_chain): Do it here instead.
2753         Use the `changed' flag of each goal's `struct dep' to keep track
2754         of whether files_remade (now commands_started) changed around a
2755         call to update_file for that goal.
2756         When a goal is finished, and its file's update_status is zero (i.e.,
2757         success or nothing done), test the `changed' flag and give an "up
2758         to date" msg iff it is clear.
2759         * make.h (files_remade): Renamed to commands_started.
2760         * remake.c: Changed defn.
2761         (update_goal_chain): Changed uses.
2762         * job.c (start_job_command): Increment commands_started here.
2763         (reap_children): Not here.
2765         * remake.c (update_goal_chain): Don't do anything with files'
2766         `prev' members.  update_file now completely handles this.
2768         * variable.c (target_environment): Don't expand recursive
2769         variables if they came from the environment.
2771         * main.c (define_makeflags): For flags with omitted optional args,
2772         store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
2773         so stored cannot have more flags appended to the same word.
2775 Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2777         * variable.c (print_variable_set): In vars/bucket calculation,
2778         don't spuriously multiply by 100.
2780         * Version 3.63.
2782         * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
2783         Don't define if already defined.
2785         * remake.c (update_file): Don't keep track of the command_state before
2786         calling update_file_1.  Remove local variable COMMANDS_FINISHED,
2787         and don't test it to decide to print the "is up to date" msg.
2788         Testing for files_remade having changed should always be sufficient.
2789         The old method lost when we are called in the goal chain run on a
2790         makefile, because the makefile's command_state is already
2791         `cs_finished' from the makefile chain run.
2793         * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
2795         * configure.in: Rewrote wait checking.
2796         Use AC_HAVE_HEADERS to check for <sys/wait.h>.
2797         Use AC_HAVE_FUNCS to check for waitpid and wait3.
2798         Use a compile check to test just for `union wait'.
2799         * job.c: Rewrote conditionals accordingly.
2800         [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
2801         [HAVE_WAIT3]: Likewise.
2802         [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
2804         * configure.in: Set CFLAGS and LDFLAGS before all checks.
2806         * dir.c: Add static forward decls of {open,read}_dirstream.
2808 Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2810         * Version 3.62.31.
2812         * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
2814         * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
2815         * build.template (CFLAGS, LDFLAGS): Same here.
2816         * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
2817         Set them to -g if not defined in the environment.
2819         * remake.c (library_search): Use LIBNAME consistently, setting it
2820         only once, to be the passed name sans `-l'.
2821         Pass new var FILE to be modified by vpath_search.
2823 Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2825         * Version 3.62.30.
2827         * job.c (start_waiting_jobs): Return when job_slots_used is equal to
2828         job_slots.
2830         * configure.in: Add AC_CONST for the sake of getopt.
2832         * read.c (read_makefile): Continue after parsing `override'
2833         directive, rather than falling through to lossage.
2834         Check for EOL or blank after "override define".
2836         * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
2838 Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2840         * Version 3.62.29.
2842         * main.c (define_makeflags): After writing everything into
2843         FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
2844         just wrote " -".  Always terminate the string at *P.
2846         * remake.c (library_search): When constructing names in std dirs,
2847         use &(*LIB)[2] for the stem, not LIBNAME (which points at the
2848         buffer we are writing into!).
2850 Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2852         * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
2853         define" when IGNORING is true.
2855         * compatMakefile (distclean): Remove config.status and build.sh.
2857 Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2859         * Version 3.62.28.
2861         * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
2862         (char *).
2864         * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
2866         * variable.c (define_automatic_variables): Override SHELL value for
2867         origin o_env_override as well as o_env.
2869         * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
2870         add the names of the glob objects (w/subdir) to %objs%.
2871         * build.template (globobjs): Removed.
2872         Take basename of $objs before linking.
2874 Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2876         * Version 3.62.27.
2878         * configure.in (AC_OUTPUT): Also edit build.sh.
2879         * build.template: New file.
2880         * GNUmakefile (build.sh.in): New rule to create it from build.template.
2881         (make-$(version).tar.Z): Depend on build.sh.in.
2883         * main.c (die): Call print_data_base if -p.
2884         (main): Don't call it here.
2886         * compatMakefile (defines): Add @DEFS@.  configure should turn this
2887         into -DHAVE_CONFIG_H.
2889 Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2891         * Version 3.62.26.
2893         * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
2894         ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
2895         * compatMakefile (install_setgid): New var, set by configure.
2896         (install): Install setgid $(group) only if $(install_setgid) is true.
2898 Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2900         * job.c (load_too_high): If getloadavg fails with errno==0, give a
2901         message saying that load limits are not supported.
2903         * vpath.c (construct_vpath_list): Rewrote path deletion code to
2904         not try to use PATH's next link after freeing PATH.
2906         * main.c (define_makeflags): Rewritten; now handles string-valued
2907         option, and has no arbitrary limits.
2908         (switches): Set `toenv' flag for -I and -v.
2910         * main.c (decode_env_switches): Cast return value of alloca to char *.
2912         * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
2913         setre[gu]id in place of set[gu]id.
2915 Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2917         * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
2918         origin o_default.
2920         * make.h [POSIX]: Don't test this to use ANSI_STRING.
2921         Testing STDC_HEADERS should be sufficient.
2923         * job.h: Declare start_waiting_jobs.
2925         * read.c (read_makefile): Add missing parens in if stmt that find
2926         conditional directives.
2928         * main.c (main): Declare init_dir.
2929         * implicit.c (pattern_search): Always use two % specs in a
2930         DEBUGP2, and always pass two non-nil args.
2931         Cast field width args to int.
2932         Add missing parens in !RULE->subdir if stmt.
2933         * function.c (expand_function, patsubst_expand): Add parens around
2934         assignments inside `while' stmts.
2935         * commands.c (print_commands): Cast field width args to int.
2937         * read.c (do_define): Cast return value of alloca to (char *).
2939         * main.c (init_switches): New function, broken out of decode_switches.
2940         (decode_switches): Take new arg ENV.  If set, ignore non-option
2941         args; print no error msgs; ignore options with clear `env' flags.
2942         (decode_env_switches): Rewritten to chop envar value into words
2943         and pass them to decode_switches.
2944         (switches): Set `env' flag for -I and -v.
2946         * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
2948 Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2950         * Version 3.62.25.
2952         * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
2953         <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
2954         we don't need these anyway.
2956         * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
2957         * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
2958         #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
2959         but its set[gu]id functions aren't; its setre[gu]id functions work.
2961         * misc.c ({user,make,child}_access): Give name of caller in error msgs.
2963         * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
2965         * configure.in: Call AC_PROG_CC.
2966         * compatMakefile (CC): Define to @CC@ (autoconf magic).
2968         * compatMakefile: Add .NOEXPORT magic target.
2970 Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2972         * main.c (print_version): Updated copyright to include 93.
2974 Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2976         * make.h [_AIX]: Don't declare alloca.
2978 Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2980         * Version 3.62.24.
2982         * compatMakefile (objs): Add signame.o.
2983         (srcs): Add signame.[ch].
2985         * compatMakefile (srcs): Add config.h.in.
2986         (remote.o): Add -I. before -I$(srcdir).
2988 Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2990         * Version 3.62.23.
2992         * read.c (readline): Fatal when LEN==0, indicating a line starting
2993         with a NUL.
2994         (readline): Take new arg LINENO, for use in error msg.
2995         (read_makefile, do_define): Pass it.
2997         * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
2998         (.c.o): Add -I. before -I$(srcdir).
3000 Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3002         * read.c (read_makefile): Accept and ignore a rule with no targets.
3004         * compatMakefile (ALLOCA_SRC): New variable.
3005         (srcs): Include its value.
3007         * read.c (struct conditional): Renamed member `max_ignoring' to
3008         `allocated'; added new member `seen_else'.
3009         (conditional_line): Initialize seen_else flag when starting an `if...';
3010         set it when we see an `else'; fatal if set when we see `else'.
3011         (read_makefile): Fatal "missing `endif'" if there are any pending
3012         conditionals, not just if we are still ignoring.
3014 Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3016         * compatMakefile (manext): Set to 1, not l.
3017         ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
3019         * file.c (file_hash_enter): Don't call uniquize_deps here.
3020         * read.c (record_files): Likewise.
3021         * implicit.c (pattern_search): Likewise.
3022         * commands.c (set_file_variables): Call it only here.
3024         * default.c (default_variables) [__convex__]: FC=fc.
3026         * variable.c (target_environment): Expand the values of recursively
3027         expanded variables when putting them into the environment.
3028         * expand.c (recursively_expand): Made global.
3029         * make.h (recursively_expand): Declare it.
3031         * remake.c (check_dep): Set FILE->command_state to cs_deps_running
3032         when a dep's command_state is cs_running or cs_deps_running.
3034         * read.c (read_makefile): Changed error msg for spurious cmds to
3035         not say "first target".
3037 Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3039         * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
3040         * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
3041         * compatMakefile (config.h, configure, config.h.in): New rules.
3042         (defines): Removed @DEFS@.
3044 Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3046         * compatMakefile (realclean): Just depend on distclean; no cmds.
3047         (distclean): Do what realclean did before; also remove Makefile and
3048         config.h; don't remove configure.
3049         (info, dvi): New targets; depend on make.{info,dvi}.
3050         (doc): Removed target.
3051         (MAKEINFO, TEXI2DVI): New vars.
3052         (make.info, make.dvi): Use them instead of explicit cmds.
3054 Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3056         * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
3058 Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3060         * main.c (long_option_aliases): Add --new-file alias for -W.
3062         * default.c (default_variables): Change all C++ to CXX and C++FLAGS
3063         to CXXFLAGS.
3065         * read.c (do_define): Expand the variable name before using it.
3067         * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
3068         define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
3070         * remake.c (library_search): Search for libNAME.a in cwd; look in
3071         vpath before looking in standard dirs, not after.
3072         Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
3074 Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3076         * default.c (default_pattern_rules, default_terminal_rules): Added
3077         brackets around initializers.
3079         * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
3080         (try_variable_definition): Expand the name before defining the var.
3082         * job.c (init_siglist): Removed function.
3083         Removed decl of `sys_siglist'.
3084         * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
3085         [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
3086         only under these conditions.
3087         * main.c (main): Don't declare init_siglist.
3088         (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
3090 Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3092         * read.c (record_files): Don't try to append to FIRSTDEPS if it's
3093         nil; instead just set it to MOREDEPS.
3095 Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3097         * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
3098         loop that sets MAXELEM.
3100 Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3102         * Version 3.62.22.
3104 Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3106         * job.c (start_job_command): Under -n, increment files_remade after
3107         processing (i.e., printing) all command lines.
3109 Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3111         * read.c (record_files): Append new deps if this rule has no
3112         commands; prepend them to existing deps if this rule has no commands.
3114         * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
3116         * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
3117         (read_makefile): Changed callers.
3118         * function.c (string_glob): Likewise.
3119         * rule.c (install_pattern_rule): Likewise.
3121 Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3123         * remake.c (files_remade): Made global.
3124         (notice_finished_file): Don't increment files_remade here; this
3125         function gets called in many situations where no remaking was in
3126         fact done.
3127         * job.c (reap_children): Do it here instead, when we know that
3128         actual commands have been run for the file.
3129         * make.h (files_remade): Declare it.
3131 Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3133         * vpath.c (construct_vpath_list): Allow blanks as well as colons to
3134         separate elts in the search path.
3136         * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
3137         The search path can contain spaces now.
3139 Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3141         * compatMakefile (check): New target; no-op.
3143         * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
3144         testing for OLDHASH==0 but before using the value.
3145         (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
3146         to file_hash_enter.
3148         * file.c (rename_file): Notice when OLDFILE->cmds came from
3149         default.c, and don't try to print ->filename in that case.
3151 Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3153         * remake.c (update_file): Don't process F->also_make here.
3154         (notice_finished_file): Don't process FILE->also_make if no attempt
3155         to update FILE was actually made.
3156         Fixed to call f_mtime directly to refresh their modtimes.
3158 Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3160         * read.c (find_percent): Don't increment P again after skipping
3161         an escaped %.
3163         * expand.c (variable_expand): In call to patsubst_expand, don't
3164         find `%'s ourselves; let that function do it.
3166         * read.c (read_makefile: record_waiting_files): Don't call
3167         record_files if FILENAMES is nil.
3168         (read_makefile): All alternatives in the parsing, except for rule
3169         lines, fall through to the end of the loop.  At the end of the
3170         loop, do record_waiting_files so we notice later spurious cmds.
3172 Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3174         * variable.c (define_automatic_variables): Free old value of SHELL
3175         before replacing it.
3177 Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3179         * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
3181         * dir.c (open_dirstream): Cast return value to __ptr_t.
3183         * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
3185         * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
3186         (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
3187         Define as (get_path_max ()).
3188         [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
3189         [! PATH_MAX] (get_path_max): Declare fn.
3190         * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
3192 Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3194         * Version 3.62.21.
3196         * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
3197         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
3198         SYS_SIGLIST_DECLARED.
3200         * dir.c (file_impossible): When initializing DIR->contents, set
3201         DIR->contents->dirstream to nil.
3203         * compatMakefile (GLOB): Define new variable.
3204         (objs): Use it, rather than glob/libglob.a explicitly.
3206         * read.c (parse_file_seq): When stripping "./", handle cases like
3207         ".///foo" and "./////".
3208         * file.c (lookup_file, enter_file): Likewise.
3210 Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3212         * dir.c (struct dirstream, {open,read}_dirstream): New
3213         data type and functions to read a directory sequentially.
3214         (init_dir): New function to hook it into glob.
3215         * main.c (main): Call init_dir.
3217         * compatMakefile (objs): Added glob/libglob.a.
3218         * configure.in: Remove code to test for glob.
3220 Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3222         * read.c (record_files): Generalized test for NAME pointing
3223         somewhere into F->name.
3225         * variable.c (define_variable_in_set): Free old value when replacing.
3227         * read.c (do_define): Free the linebuffer before returning.
3228         (record_files): When clearing .SUFFIXES deps, free their data.
3229         (multi_glob): Free OLD and its data when replacing it with results
3230         of glob run.
3232         * commands.c (set_file_variables): Use alloca in place of xmalloc
3233         for temp space for $^, $?, et al.
3235         * dir.c (struct directory): New member `contents' replaces `files'
3236         and `dirstream'.
3237         (struct directory_contents): New type.
3238         (directories_contents): New hash table.
3239         (dir_struct_file_exists_p): Take a struct directory_contents.
3240         (dir_file_exists_p): Pass it the `contents' member of the dir found.
3241         (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
3242         made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
3243         (dir_file_exists_p, find_directory): Change all callers.
3244         (file_impossible): Use DIR->contents, initializing it if nil.
3245         (print_dir_data_base): Use DIR->contents, and print out device and
3246         inode numbers with each directory.
3248         * Changes for performance win from John Gilmore <gnu@cygnus.com>:
3249         * dir.c (DIRECTORY_BUCKETS): Increase to 199.
3250         (DIRFILE_BUCKETS): Decrease to 107.
3251         (find_directory): Allocate and zero a multiple of
3252         sizeof (struct dirfile *), not of sizeof (struct dirfile).
3253         (dir_struct_file_exists_p): New function, nearly all code from
3254         dir_file_exists_p.
3255         (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
3256         * vpath.c (selective_vpath_search): Remove redundant
3257         dir_file_exists_p call.
3259         * configure.in: Comment out glob check; always use our code.
3261 Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3263         * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
3264         HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
3265         do have it.
3267 Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3269         * main.c (main): Don't do -w automatically if -s.
3271 Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3273         * main.c (printed_version): Move variable inside print_version.
3274         (print_version): Return immediately if printed_version is set.
3275         (die): Don't test printed_version here.
3276         (decode_switches): Under -v, do print_version before giving usage.
3277         (DESCRIPTION_COLUMN): New macro.
3278         (decode_switches): Use it when printing the usage message.
3279         Leave at least two spaces between options and their descriptions.
3281 Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3283         * Version 3.62.20.
3285 Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3287         * read.c (read_makefile): Save errno value from trying to open
3288         FILENAME, and restore it before erring; otherwise we get the errno
3289         value from the last elt of the search path.
3291 Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3293         * main.c (long_option_aliases): Add --stop for -S.
3295         * read.c (word1eq): Do strncmp before dereferencing someplace that
3296         may be out in space.
3298 Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3300         * remake.c (notice_finished_file): If all the command lines were
3301         recursive, don't do the touching.
3303         * job.c (start_job_command): Don't check for + here.
3304         * commands.c (chop_commands): Do it here instead.
3306         * default.c (default_terminal_rules): Prepend + to cmds for RCS.
3308 Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3310         * compatMakefile (objs): Include $(ALLOCA).
3312         * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
3314 Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3316         * read.c (default_include_directories): Add INCLUDEDIR first.
3317         * compatMakefile (includedir): Define.
3318         (defines): Add -D for INCLUDEDIR="$(includedir)".
3320         * read.c (read_makefile): Grok multiple files in `include';
3321         globbing too.
3323         * remake.c (library_search): New function.
3324         (library_file_mtime): Remove function.
3325         (f_mtime): Use library_search instead of library_file_mtime.
3326         * compatMakefile (libdir): Define.
3327         (defines): Add -D for LIBDIR="$(libdir)".
3328         * make.texinfo (Libraries/Search): Document change.
3330         * file.c (rename_file): Fix file_hash_enter call with missing arg.
3332 Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3334         * Version 3.62.19.
3336         * main.c (main): Set command_state to cs_finished for temp files
3337         made for stdin makefiles.
3339         * main.c (decode_switches): Don't tell getopt to return non-option
3340         args in order.
3341         Ignore an argument of `-'.
3343 Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3345         * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
3346         the command line and go to the next.
3347         (notice_finished_file): Under -t, touch FILE.
3348         * remake.c (remake_file): Don't touch it here.
3350 Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3352         * function.c (pattern_matches): Use temporary for strlen (WORD)
3353         instead of two function calls.
3355         * compatMakefile (LOAD_AVG): Remove variable and comments.
3357 Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3359         * make.texinfo (Running): Node renamed to `make Invocation'.
3361 Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3363         * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
3364         NAMELEN != MEMLEN.
3366 Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3368         * Version 3.62.18.
3370         * main.c: Don't #include <time.h>; make.h already does.
3372 Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3374         * implicit.c (pattern_search): Fixed copying of suffix when building
3375         also_make elts.
3377         * function.c (expand_function: `shell'): Make sure BUFFER is
3378         null-terminated before replacing newlines.
3380         * compatMakefile (mandir): Use man$(manext), not always manl.
3382 Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3384         * rule.c (new_pattern_rule): Not static.
3385         * rule.h: Declare it.
3387         * file.c (file_hash_enter): New function, most code from rename_file.
3388         (rename_file): Call it.
3389         * file.h (file_hash_enter): Declare it.
3391         * dep.h: Doc fix.
3393 Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3395         * main.c (decode_switches): Handle usage_and_exit when building
3396         long options vector.
3398         * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
3399         (default_variables): Define CHECKOUT,v (hairy).
3401         * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
3402         sys_siglist to _sys_siglist.
3404 Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3406         * NEWS: Add header and tail copyright info like Emacs NEWS.
3408         * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
3409         bcopy if already #define'd.
3410         [STDC_HEADERS] (qsort, abort, exit): Declare here.
3411         [! __GNU_LIBRARY__ && !POSIX]: Not here.
3413         * make.h [_AIX]: #pragma alloca first thing.
3415         * job.c (start_waiting_job): Set the command_state to cs_running
3416         when we queue a job on waiting_jobs.
3418 Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3420         * variable.c (define_automatic_variables): Use "" instead of nil
3421         for empty value.
3423 Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3425         * Version 3.62.17.
3427         * main.c (struct command_switch.type): Add alternative usage_and_exit.
3428         (command_switches): Add -h/--help.
3430 Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3432         * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
3433         * README.template: Mention NEWS.
3434         * CHANGES: Renamed to NEWS.
3436         * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
3438 Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3440         * main.c (main): Set -o files' command_states to cs_finished.
3442         * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
3443         when tossing a rule.
3445         * main.c (main): Use alloca only in simple local var assignment,
3446         for braindead SGI compiler.
3448         * rule.c (print_rule_data_base): Barf if num_pattern_rules is
3449         inconsistent with the number computed when listing them.
3451 Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3453         * commands.c (set_file_variables): For $? and $^ elts that are archive
3454         member refs, use member name only.
3456 Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3458         * variable.h (struct variable.export): Add new alternative v_ifset.
3459         * variable.c (target_environment): Check for it.
3460         (define_automatic_variables): Set it for MAKEFILES.
3462 Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3464         * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
3465         (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
3466         (distclean, mostlyclean): New targets.
3468 Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3470         * Version 3.62.16.
3472         * compatMakefile (config.status): Remove rule.
3474         * job.c (start_waiting_job): Free C after using C->file, not before.
3476 Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3478         * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
3479         HAVE_* instead of #ifndef *_MISSING.
3480         * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
3482 Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3484         * main.c (main): makelevel>0 or -C implies -w.
3486 Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3488         * file.c, job.c, function.c: Don't #include <errno.h>.
3489         make.h: Do it here instead.
3490         * arscan.c (ar_member_touch): Don't declare errno.
3492 Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3494         * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
3496         * remake.c (update_file): If commands or deps are running after
3497         update_file_1 returns, break out of the :: rule (->prev) loop and
3498         just return.
3500         * job.c (job_next_command): New function; code from start_job.
3501         (start_job_command): Renamed from start_job.  Call job_next_command
3502         and recurse for empty command lines and -n.
3503         (start_waiting_job): Call start_job_command, not start_job.
3504         (new_job): Call job_next_command to prime the child structure, and
3505         then call start_waiting_job.
3506         (reap_children): Use job_next_command and start_job_command.
3507         (start_waiting_job): Call start_remote_job_p here, and store its
3508         result in C->remote.  If zero, check the load average and
3509         maybe put C on waiting_jobs.
3510         (start_job_command): Test CHILD->remote rather than calling
3511         start_remote_job_p.  Don't do load avg checking at all here.
3513         * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
3514         SIGSEGV, SIGFPE or SIGTRAP.
3516         * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
3517         configure will set it in glob/Makefile.
3519 Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3521         * dir.c [DIRENT] (direct): Don't define to dirent.
3522         [! DIRENT] (direct): Define to dirent.
3523         (dir_file_exists_p): Use struct dirent instead of struct direct.
3525         * make.h (getcwd): No space between macro and ( for args!
3527         * job.c (start_job): Don't put the job on waiting_jobs if
3528         job_slots_used==0.
3530         * make.texinfo (Missing): Shortened title.
3532 Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3534         * file.c (remove_intermediates): Print "rm" commands under -n.
3536 Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3538         * Version 3.62.15.
3540 Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3542         * arscan.c [M_UNIX]: #undef M_XENIX.
3544 Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3546         * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
3548 Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3550         * compatMakefile (getloadavg.o): Removed special rule.
3551         (CFLAGS): Don't include $(defines).
3552         (.c.o): Define suffix rule.
3553         (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
3554         (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
3556         * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
3558         * make.h (max): Removed.
3559         * expand.c (variable_buffer_output): Don't use it.
3561         * compatMakefile (INSTALL): Define.
3562         (Makefile): New rule to make from Makefile.in.
3563         (srcdir): Define.
3564         (VPATH): Define.
3565         (getloadavg.o, remote.o): Use autoconf $foo< hack.
3567         * commands.c (fatal_error_signal): Removed return.
3569 Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3571         * Version 3.62.14.
3573         * make.texinfo (Summary): New node.
3574         (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
3576         * variable.c (max): Moved to make.h.
3578         * compatMakefile (objs, srcs): Added ar & arscan.
3580         * job.c (start_waiting_job): New function, 2nd half of new_job.
3581         (new_job): Call it.
3582         (start_waiting_jobs): New function.
3583         * remake.c (update_goal_chain): Call start_waiting_jobs at the top
3584         of the main loop.
3585         * compatMakefile (objs, srcs): Removed load, added getloadavg.
3587 Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3589         * job.c (load_too_high): New function.  Uses getloadavg.
3590         (waiting_jobs): New variable.
3591         (start_job): Don't call wait_to_start_job.  Instead, if
3592         load_too_high returns nonzero, add the child to the
3593         `waiting_jobs' chain and return without starting the job.
3595 Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3597         * expand.c (variable_buffer_output): Made global again.
3598         * variable.h: And declare it.
3600         * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
3601         (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
3602         (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
3603         for a slash in the archive at run time.
3604         (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
3605         cope with trailing-slash and non-trailing-slash archives.
3607         * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
3608         [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
3610         * load.c (load_average) [sgi]: Use sysmp call.
3612         * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
3613         ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
3615         * make.h [HAVE_VFORK_H]: #include <vfork.h>.
3616         (vfork, VFORK_NAME): Don't define.
3617         * job.c (start_job): Use "vfork" in place of VFORK_NAME.
3619         * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
3620         the each file.  Rearranged PATH_MAX hacking.
3621         * job.c: Rearranged NGROUPS_MAX hacking.
3623         * remake.c (fstat, time): Don't declare.
3625         * compatMakefile (defines): Value is @DEFS@.
3626         (LOADLIBES): Value is @LIBS@.
3627         (extras): Value is @LIBOBJS@.
3628         (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
3629         * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
3631         * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
3633         * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
3634         (getcwd): Just declare if present.  If not, declare as a macro
3635         using getwd, and declare getwd.
3636         [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
3637         * main.c (main, log_working_directory): Use getcwd instead of getwd.
3639         * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
3641         * make.h (SIGHANDLER, SIGNAL): Removed.
3642         (RETSIGTYPE): Define if not #define'd.
3643         * main.c (main): Use signal in place of SIGNAL.
3645         * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
3647         * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
3648         [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
3650         * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
3651         [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
3653         * job.c (child_handler), commands.c (fatal_error_signal): Return
3654         RETSIGTYPE instead of int.
3655         * main.c (main): Declare fatal_error_signal and child_handler here
3656         to return RETSIGTYPE; removed top-level decl of former.
3658         * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
3659         main.c [SIGSETMASK_MISSING]: Test this instead of USG.
3661 Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3663         * job.c [HAVE_WAITPID]: Test this instead of USG.
3664         [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
3665         (GID_T): Don't #define.
3666         (search_path): Use gid_t instead of GID_T.
3667         [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
3668         these individually instead of USG for all.
3669         * make.h (ctime): Don't declare.  #include time.h instead.
3670         [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
3671         _POSIX_VERSION.
3672         * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
3673         * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
3675         * arscan.c: Removed #ifdef mess about string.h et al.
3676         Just #include make.h instead.
3677         * make.h (fstat, atol): Declare.
3679         * commands.c (fatal_error_signal): Don't use sigmask to check for
3680         propagated signals; use ||s instead.
3681         (PROPAGATED_SIGNAL_MASK): Removed.
3682         (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
3684         * variable.c (variable_buffer, variable_buffer_length,
3685         initialize_variable_output, variable_output): Moved to expand.c;
3686         made all static.
3687         (struct output_state, save_variable_output,
3688         restore_variable_output): Removed.
3689         * expand.c (initialize_variable_output): Put a NUL at the beginning
3690         of the new buffer after allocating it.
3691         (allocated_variable_expand_for_file): Don't use
3692         {save,restore}_variable_output.  Do it by hand instead, keeping
3693         state on the stack instead of malloc'ing it.
3694         (allocated_variable_expand): Removed.
3695         * variable.h (allocated_variable_expand): Define here as macro.
3696         (variable_buffer_output, initialize_variable_output,
3697         save_variable_output, restore_variable_output): Removed decls.
3699         * read.c (conditional_line): For an if cmd, if any elt of the
3700         conditionals stack is ignoring, just push a new level that ignores
3701         and return 1; don't evaluate the condition.
3703 Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3705         * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
3707         * job.c (getdtablesize): Don't declare or #define if already #define'd.
3709 Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3711         * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
3712         export_all_variables.
3713         * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
3715 Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3717         * Version 3.62.13.
3719         * commands.c (set_file_variables): Calculate length for ^D and ?D
3720         individually, making sure to give them at least enough space for "./".
3722         * make.h [CRAY]: #define signal to bsdsignal.
3724         * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
3725         CF77PPFLAGS, CF77PP, CFT, CF, and FC.
3727         * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
3728         wasn't defined by <ar.h>.
3730 Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3732         * Version 3.62.12.
3734 Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3736         * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
3737         pattern_rules.
3739 Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3741         * main.c (decode_switches): Initialize all the long_option elt members.
3743 Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3745         * make.texinfo (Text Functions): Correct filter-out description.
3747 Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3749         * compatMakefile (realclean): Don't remove backup files.
3751         * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
3753 Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3755         * Version 3.62.11.
3757 Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3759         * job.c (reap_children): Don't die if wait returns EINTR.
3761 Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3763         * job.c (reap_children): Always run the next command for a
3764         successful target.  If we are going to die, we don't want to leave
3765         the target partially made.
3767 Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3769         * job.c (construct_command_argv_internal): After loop, if we only
3770         have one word, check it for being a shell command.
3772         * main.c (decode_switches): Allocate ARGC slots in other_args to
3773         begin with, so we never need to worry about growing it.
3774         If we get a non-option arg and POSIXLY_CORRECT is in the
3775         environment, break out of the loop.  After the loop, add all remaining
3776         args to other_args list.
3778         * main.c (decode_switches): For positive_int and floating switches
3779         when optarg is nil, use next arg if it looks right (start with a
3780         digit, or maybe decimal point for floating).
3782         * variable.c (define_automatic_variables): Always set SHELL to
3783         default if it comes from the environment.  Set its export bit.
3784         * make.texinfo (Environment): Document change.
3786 Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3788         * Version 3.62.10.
3790         * compatMakefile (tags, TAGS): Use vars for cmds.
3791         (ETAGS, CTAGS): Define.
3793         * main.c (decode_switches): If a switches elt has a nil long_name,
3794         make the long option name elt be "".
3795         Fixed loop to not ignore all the options.
3797         * make.texinfo (Option Summary): Added long options.
3799         * main.c (switches): Changed -m's description to "-b".
3800         (decode_switches): When printing the usage message, don't print
3801         switches whose descriptions start with -.
3802         When constructing the list of names for switch -C, search the
3803         switches vector for switches whose descriptions are "-C".
3805         * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
3806         Call -I --include-dir, not --include-path.
3807         (long_option_aliases): Added --new == -W, --assume-new == -W,
3808         --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
3809         --makefile == -f.
3811         * main.c (switches): Removed bogus "silent" elt.
3812         (long_option_aliases): Define new var.
3813         (decode_switches): Add long_option_aliases onto the end of the long
3814         options vector created for getopt_long.
3815         Look through long_option_aliases for extra names to list
3816         in usage message.
3818 Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3820         * main.c (log_working_directory): Fixed to properly not print the
3821         leaving message when we haven't printed the entering message.
3823 Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3825         * main.c (struct command_switch): Added elts `long_name',
3826         `description', and `argdesc'.
3827         (switches): Added initializers for new members.
3828         (decode_switches): Rewritten to use getopt_long.
3829         * compatMakefile (GETOPT, GETOPT_SRC): Define.
3830         (objs, srcs): Include them.
3832         * job.c (child_died): Renamed to dead_children; made static.
3833         (child_handler): Increment dead_children instead of setting child_died.
3834         (reap_children): Decrement dead_children instead of clearing
3835         child_died.  The point of all this is to avoid printing "waiting
3836         for unfinished jobs" when we don't actually need to block.
3837         This happened when multiple SIGCHLDs before reap_children was called.
3839         * job.c (reap_children): If ERR is set, so we don't call start_job
3840         on the child being reaped, instead set its command_state to
3841         cs_finished.
3842         (reap_children, child_handler, new_job): I added several
3843         debugging printf's while fixing this.  I left them in if (debug_flag)
3844         because they may be useful for debugging this stuff again.
3846 Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3848         * read.c (read_makefile): v_export is not 1.
3850 Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3852         * Version 3.62.9.
3854         * variable.c (export_all_variables): New variable.
3855         (target_environment): Export variables whose `export' member is
3856         v_default if export_all_variables is set and their names are benign.
3857         * variable.h: Declare export_all_variables.
3858         * read.c (read_makefile): If export or unexport is given with no
3859         args, set or clear export_all_variables, respectively.
3861         * variable.c (target_environment): Exclude MAKELEVEL in the loop,
3862         so it isn't duplicated when we add it at the end.
3864 Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3866         * Version 3.62.8.
3868         * variable.h (struct variable): Added new member `export'.
3869         * variable.c (define_variable_in_set): Initialize it to v_default.
3870         (target_environment): Don't check for .NOEXPORT.
3871         Export variables whose `export' member is v_default and that would
3872         have been exported under .NOEXPORT, and variables whose `export'
3873         member is v_export.
3874         (try_variable_definition): Return the variable defined.
3875         * variable.h (try_variable_definition): Changed decl.
3876         * read.c (read_makefile): Recognize `export' and `unexport' directives.
3878 Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3880         * main.c (main) [POSIX]: Reversed args to sigaddset.
3882 Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3884         * job.c [POSIX || !USG] (unblock_sigs): New fn.
3885         (start_job): Block signals before forking.
3886         (new_job): Unblock signals after putting the new child on the chain.
3887         * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
3888         int fatal_signal_mask.
3890         * load.c [sgi] (LDAV_CVT): Define.
3892 Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3894         * Version 3.62.7.
3896         * load.c (load_average) [sgi]: Clear the high bit of the address
3897         from the symbol table before looking it up in kmem.
3899         * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
3900         (remake_file): No longer needed in message here.
3902         * main.c (die): Call reap_children with BLOCK==1.
3904 Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3906         * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
3908 Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3910         * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
3911         not to head of chain.  Extract next ptr before we might do
3912         freerule, and use that for next iteration.
3913         (freerule): Still do next ptr frobbing if LASTRULE is nil.
3915 Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3917         * job.c (child_error): Removed extra %s from error msg format.
3919         * Version 3.62.6.
3921         * job.c (reap_children): Don't start later commands in a sequence
3922         if ERR is nonzero.
3924         * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
3926         * job.c (reap_children): New function; work that used to be done in
3927         child_handler.
3928         (child_died): New global var.
3929         (child_handler): Now just sets child_died.
3930         (wait_for_children): Removed.
3931         (unknown_children_possible, block_signals, unblock_signals,
3932         push_signals_blocked_p, pop_signals_blocked_p): Removed.
3933         (child_execute_job): Removed call to unblock_signals.
3934         (new_job): Removed calls to push_signals_blocked_p and
3935         pop_signals_blocked_p.
3936         * job.h: Declare reap_children, not wait_for_children.
3937         * commands.c (fatal_error_signal), job.c (new_job),
3938         load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
3939         remake.c (update_goal_chain), function.c (expand_function: `shell'):
3940         Changed wait_for_children calls to reap_children.
3941         Some needed to be loops to wait for all children to die.
3942         * commands.c (fatal_error_signal), main.c (main,
3943         log_working_directory), function.c (expand_function): Removed calls
3944         to push_signals_blocked_p and pop_signals_blocked_p.
3945         * job.h: Removed decls.
3947         * job.h: Added copyright notice.
3949 Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3951         * job.c (child_error): No *** for ignored error.
3953 Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3955         * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
3956         avoid compiler warnings.
3958         * read.c (parse_file_seq): Don't remove ./ when it is followed by a
3959         blank.
3961 Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3963         * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
3964         avoid compiler warnings.
3966         * remake.c (notice_finished_file): Run file_mtime on the also_make
3967         files, so vpath_search can happen.
3969         * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
3970         (alpha-files): Include test suite tar file.
3972 Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3974         * Version 3.62.5.
3976 Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3978         * remake.c (update_file, update_file_1): Do check_renamed on elts
3979         of dep chains when traversing them.  Something unrelated might have
3980         renamed one of the files the dep chain points to.
3982         * file.c (rename_file): If FILE has been renamed, follow its
3983         `renamed' ptr, so we get to the final real FILE.  Using the renamed
3984         ones loses because they are not in the hash table, so the removal
3985         code loops infinitely.
3987         * read.c (read_all_makefiles): Clobber null terminator into
3988         MAKEFILES expansion, so string passed to read_makefile is properly
3989         terminated.
3991 Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3993         * commands.c (set_file_variables): $* for archive member with
3994         explicit cmds is stem of member, not of whole `lib(member)'.
3996 Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3998         * Version 3.62.4.
4000 Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4002         * rule.c (new_pattern_rule): Rules are identical only if all their
4003         targets match (regardless of order).
4005 Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4007         * remake.c (remake_file): Changed error "no way to make" to "no
4008         rule to make".  Fiat Hugh.
4010         * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
4011         behavior.
4013         * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
4014         target.
4016 Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4018         * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
4019         environment to pass to child.
4020         * job.c (start_job): Pass it.
4022 Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4024         * file.c (enter_file): Also strip ./s here, to get command-line
4025         target names.
4027         * remote-cstms.c: Add comment telling people to leave me alone.
4029         * compatMakefile (manpage install): Remove target before copying.
4031 Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4033         * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
4034         Added paragraph describing $? incompatibility with Unix and POSIX.2.
4036 Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
4038         * function.c (expand_function: `shell'): Don't declare fork or pipe.
4039         Use vfork instead of fork.
4041 Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4043         * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
4044         intermediate files.
4046         * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
4048 Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4050         * Version 3.62.3.
4052 Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4054         * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
4056 Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4058         * read.c (read_makefile): Correctly handle define & endef in ifdefs.
4060         * read.c (record_files): Pass arg for %s in error msg.
4062         * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
4063         call.
4065 Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4067         * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
4069 Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4071         * read.c (read_makefile): Check for extraneous `endef' when ignoring.
4073 Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4075         * Version 3.62.2.
4077 Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4079         * job.c (construct_command_argv_internal): Correctly ignore
4080         whitespace after backslash-NL.
4082 Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4084         * compatMakefile: Ignore errors from chgrp and chmod when installing.
4086 Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4088         * main.c (main): When setting MAKELEVEL in the env to re-exec,
4089         allocate space so as not to clobber past the end of the old string.
4091         * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
4092         * compatMakefile (defines): Document HAVE_ALLOCA_H.
4094 Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4096         * make.h [VFORK_MISSING]: Use fork instead.
4097         * compatMakefile (defines): Document same.
4099         * job.c (construct_command_argv_internal): Don't create an empty
4100         arg if backslash-NL is at beginning of word.
4102 Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4104         * main.c [DGUX]: Call setvbuf as for USGr3.
4106         * job.c (construct_command_argv_internal): Notice correctly that
4107         backslash-NL is the end of the arg (because it is replaced with a
4108         space).
4110 Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4112         * job.c (construct_command_argv_internal): If SHELL is nil, set it
4113         to default_shell before proceeding.
4115         * make.h [sgi]: No alloca.h, after all.
4117 Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4119         * read.c (multi_glob): Cons up the chain of the results of glob
4120         from back to front, so it comes out in forward order.
4122         * job.c (construct_command_argv_internal): Don't eat char following
4123         backslash-NL.
4125 Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4127         * Version 3.62.1.
4129         * default.c (default_variables) [ultrix]: GET=get, like USG.
4131         * job.c (construct_command_argv_internal): Remove tabs following
4132         backslash-NL combos in the input line, so they don't show up when
4133         that line is printed.
4135         * read.c (read_makefile): Don't collapse_continuations the line on
4136         input; do it on the copy we do remove_comments on.
4137         For rule lines, collapse_continuations the line after chopping
4138         ";cmds" off the end, so we don't eat conts in the cmds.
4139         Give error for ";cmds" with no rule.
4140         * job.c (construct_command_argv_internal): Eat backslash-NL combos
4141         when constructing the line to recurse on for slow, too.
4143 Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
4145         * file.c (enter_file): Don't strip leading `./'s.
4146         * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
4147         * default.c (set_default_suffixes), function.c (string_glob),
4148         read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
4150         * default.c (default_variables) [_IBMR2]: FC=xlf
4152         * job.c (construct_command_argv_internal): Turn backslash-NL and
4153         following whitespace into a single space, rather than just eating
4154         the backslash.
4156         * make.texinfo (Copying): @include gpl.texinfo, rather than
4157         duplicating its contents.
4159 Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4161         * job.c (construct_command_argv_internal): Make sure not to bother
4162         processing an empty line.
4164         * Version 3.62.0.
4166         * job.c (construct_command_argv_internal): Always recurse for slow;
4167         simple case didn't handle finding newlines.
4169 Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
4171         * job.c (construct_command_argv_internal): Set RESTP properly when
4172         slow; don't \ify past a newline.
4174 Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4176         * make.h [sgi]: #include <alloca.h>.
4180 See ChangeLog.1 for earlier changes.