1 2000-01-11 Paul D. Smith <psmith@gnu.org>
3 Resolve PR/xxxx: don't automatically evaluate the $(call ...)
4 function's arguments. While we're here, clean up argument passing
5 protocol to always use simple nul-terminated strings, instead of
6 sometimes using offset pointers to mark the end of arguments.
7 This change also fixes PR/1517.
8 Both PR's by Damien GIBOU <damien.gibou@st.com>.
10 * function.c (struct function_table_entry): Remove the negative
11 required_args hack; put in explicit min and max # of arguments.
12 (function_table): Add in the max value. Turn off the expand bit
14 (expand_builtin_function): Test against minimum_args instead of
15 the obsolete required_args.
16 (handle_function): Rewrite this. We don't try to be fancy and
17 pass one style of arguments to expanded functions and another
18 style to non-expanded functions: pass pointers to nul-terminated
19 strings to all functions.
20 (func_call): Rewrite this. If we are invoking a builtin function
21 and it's supposed to have its arguments expanded, do that (since
22 it's not done by handle_function for $(call ...) anymore). For
23 non-builtins, just add the variables as before but mark them as
24 recursive so they'll be expanded later, as needed.
25 (func_if): All arguments are vanilla nul-terminated strings:
26 remove trickery with "argv[1]-1".
27 (func_foreach): Ditto.
29 * expand.c (expand_argument): If the second arg is NULL, expand
30 the entire first argument.
32 * job.c (new_job): Zero the child struct. This change was just
33 made to keep some heap checking software happy, not because there
34 was an actual bug (the important memory was being cleared properly).
36 1999-12-15 Paul D. Smith <psmith@gnu.org>
38 * variable.c (print_variable): Print the variable with += if the
41 * implicit.c (pattern_search): Remove the extra check of the
42 implicit flag added on 8/24/1998. This causes problems and the
43 reason for the change was better resolved by the change made to
44 check_deps() on 8/26/1998. This fixes PR/1423.
46 1999-12-08 Paul D. Smith <psmith@gnu.org>
48 * dir.c (dir_setup_glob): On 64 bit ReliantUNIX (5.44 and above)
49 in LFS mode, stat() is actually a macro for stat64(). Assignment
50 doesn't work in that case. So, stat is a macro, make a local
51 wrapper function to invoke it.
52 (local_stat): Wrapper function, if needed.
53 Reported by Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>.
55 1999-12-02 Paul D. Smith <psmith@gnu.org>
57 * remake.c (update_file): Move the considered test outside the
58 double-colon loop, _but_ make sure we test the double_colon target
59 not the "current" target. If we stop early because one
60 double-colon target is running, mark all the rest considered and
61 try to start their prerequisites (so they're marked considered).
62 Fix for PR/1476 suggested by Tim Magill <tim.magill@telops.gte.com>.
64 1999-11-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
66 * function.c (windows32_openpipe, func_shell): Correct Windows32
67 problem where $(shell nosuchfile) would incorrectly exit make. The
68 fix is to print the error and let make continue.
69 Reported by David Masterson <David.Masterson@kla-tencor.com>.
71 * w32/subproc/misc.c (arr2envblk): Memory leak fix.
73 1999-11-21 Paul D. Smith <psmith@gnu.org>
75 Rework GNU make debugging to provide different levels of output.
78 * debug.h: New file. Define various debugging levels and macros.
79 * function.c, implicit.c, job.c, main.c, misc.c, read.c, remake.c
80 * remote-cstms.c, vmsfunctions.c: Replace all code depending on
81 debug_flag with invocations of debugging macros.
82 * make.h: Remove debug_flag and DEBUGPR, add db_level.
84 1999-11-18 Paul Eggert <eggert@twinsun.com>
86 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a problem
87 with the QNX 4.25 shell, which doesn't propagate exit status of
88 failed commands inside shell assignments.
90 1999-11-17 Paul D. Smith <psmith@gnu.org>
92 * function.c (func_if): Find the end of the arg list by testing
93 the next item for NULL; any other test is not correct.
94 Reported by Graham Reed <grahamr@algorithmics.com> (PR/1429).
96 Fix += when used in a target-specific variable context.
98 * variable.h: New bitfield APPEND set if we have a +=
99 target-specific variable.
101 * variable.c (try_variable_definition): Add an argument to specify
102 if we're trying a target-specific variable. If we are and it's an
103 append style, don't append it, record it as normal recursive, but
104 set the APPEND flag so it'll be expanded later.
105 * main.c (handle_non_switch_argument): Use new
106 try_variable_definition() signature.
107 * read.c (read_makefile,record_target_var): Ditto.
109 * expand.c (allocated_variable_append): New function: like
110 allocated_variable_expand(), but we expand the same variable name
111 in the context of the ``next'' variable set, then we append this
113 (recursively_expand): Invoke it, if the APPEND bit is set.
115 1999-11-10 Paul D. Smith <psmith@gnu.org>
117 * file.c (snap_deps): If the .NOTPARALLEL target is defined, turn
118 off parallel builds for this make only (still allow submakes to be
120 * main.c: New variable, ``not_parallel''.
121 * make.h: Add an extern for it.
122 * job.c (new_job): Test NOT_PARALLEL as well as JOB_SLOTS.
123 * NEWS: Add info on .NOTPARALLEL.
124 * make.texinfo (Special Targets): Document it.
126 * configure.in (GLOBDIR): Set to "glob" if we need to build the
128 * Makefile.am (SUBDIRS): Use the GLOBDIR variable instead of
129 "glob" so we don't try to build glob if we don't need to (if we
130 have GLIBC glob). Reported by Lars Hecking <lhecking@nmrc.ucc.ie>.
132 * main.c (main): Don't put "***" in the clock skew warning
133 message. Reported by karl@gnu.org.
135 * make.h: Remove unneeded signal setup.
137 * signame.c: Remove extraneous #includes; some versions of Ultrix
138 don't protect against multiple inclusions and it causes compile
139 errors. Reported by Simon Burge <simonb@thistledown.com.au>.
141 1999-10-15 Paul D. Smith <psmith@gnu.org>
143 * main.c (quote_for_env): Rename from quote_as_word().
145 * make.h, *.c: Prefer strchr() and strrchr() in the code
146 rather than index() and rindex(). Define strchr/strrchr in terms
147 of index/rindex if the former aren't supported.
149 * default.c (CHECKOUT,v): Replace the fancy, complicated
150 patsubst/filter expression with a simple $(if ...) expression.
152 * main.c (print_usage): Add the bug reporting mailing address to
153 the --help output, as per the GNU coding standards.
154 Reported by Paul Eggert <eggert@twinsun.com>.
156 * README.customs: Installed information on running Customs-ized
157 GNU make and setuid root, collected by Ted Stern <stern@tera.com>.
159 * read.c (read_all_makefiles): PR/1394: Mark the end of the next
160 token in the MAKEFILES value string _before_ we dup it.
162 1999-10-13 Paul D. Smith <psmith@gnu.org>
164 * configure.in (make_cv_sys_gnu_glob): We used to add the -Iglob
165 flag to CPPFLAGS, but that loses if the user specifies his own
166 CPPFLAGS; this one gets added _after_ his and if he happens to
167 have an old or broken glob.h--boom. Instead, put it in GLOBINC
170 * Makefile.am (INCLUDES): Add @GLOBINC@ to the INCLUDES macro;
171 these things get on the compile line well before the user's
174 1999-10-12 Paul D. Smith <psmith@gnu.org>
176 * remake.c (notice_finished_file): If we get here and -n is set,
177 see if all the command lines are marked recursive. If so, then we
178 ran every command there is, so check the mtime on this file just
179 like we would normally. If not, we assume the command we didn't
180 run would updates the target and set mtime of the target to "very new".
182 * job.c (start_job_command): Update lines_flags in the file's cmds
183 structure with any per-line tokens we found (`@', `-', `+').
185 1999-10-08 Paul D. Smith <psmith@gnu.org>
187 * variable.c (initialize_file_variables): Always recurse to
188 initialize the parent's file variables: the parent might not have
189 any rules to run so it might not have been initialized before
190 this--we need this to set up the chain properly for
191 target-specific variables.
193 1999-09-29 Paul Eggert <eggert@twinsun.com>
195 * main.c (quote_as_word): Always quote for decode_env_switches
196 instead of for the shell, so that arguments with strange
197 characters are are passed to submakes correctly. Remove
198 double_dollars arg; we always double dollars now. All callers
200 (decode_env_switches): Don't run off the end of an environment
201 variable whose contents ends in a unescaped backslash.
203 1999-09-23 Paul D. Smith <psmith@gnu.org>
205 * commands.c, function.c, job.c, read.c: Cast arguments to
206 ctype.h functions/macros to _unsigned_ char for portability.
208 * remake.c, function.c: Compiler warning fixes: the second
209 argument to find_next_token() should be an _unsigned_ int*.
210 Reported by Han-Wen Nienhuys <hanwen@cs.uu.nl>.
212 1999-09-23 Paul D. Smith <psmith@gnu.org>
214 * Version 3.78.1 released.
216 * make.texinfo: Update version/date stamp.
218 * main.c (main): Argh. For some reason we were closing _all_ the
219 jobserver pipes before we re-exec'd due to changed makefiles.
220 This means that any re-exec got a "jobserver unavailable" error :-/.
221 I can't believe we didn't notice this before.
223 1999-09-22 Paul D. Smith <psmith@gnu.org>
225 * Version 3.78 released.
227 * main.c (main): Only fail on multiple --jobserver-fds options if
228 they aren't all the same. Some makefiles use things like
229 $(MAKE) $(MFLAGS) which will cause multiple, identical copies of
230 --jobserver-fds to show up.
232 1999-09-16 Paul D. Smith <psmith@gnu.org>
234 * main.c (define_makeflags): Zero out FLAGSTRING to avoid
235 uninitialized memory reads when checking *p != '-' in the loop.
237 1999-09-15 Paul D. Smith <psmith@gnu.org>
239 * Version 3.77.97 released.
241 * configure.in (MAKE_HOST): AC_SUBST this so it will go into the
243 * Makefile.am (check-local): Print a success banner if the check
245 (check-regression): A bit of fine-tuning.
247 1999-09-15 Eli Zaretskii <eliz@is.elta.co.il>
249 * README.DOS.template: Document requirements for the test suite.
250 * Makefile.DOS.template: Updates to allow the test suite to run
253 * main.c (main): Handle it if argv[0] isn't an absolute path.
255 1999-09-13 Paul D. Smith <psmith@gnu.org>
257 * Version 3.77.96 released.
259 * Makefile.am (loadavg): Use CPPFLAGS, etc. to make sure we get
260 all the right #defines to compile.
261 (check-regression): Look for the regression test suite in the make
262 package itself. If we're building remotely, use symlinks to make
264 (dist-hook): Put the test suite into the tar file.
266 * configure.in: Look for perl for the test suite.
268 1999-09-10 Paul Eggert <eggert@twinsun.com>
270 * acinclude.m4 (AC_SYS_LARGEFILE_FLAGS): If on HP-UX 10.20 or
271 later, and using GCC, define __STDC_EXT__; this works around a
274 1999-09-08 Paul D. Smith <psmith@gnu.org>
276 * main.c (print_version): Ugh. GLIBC's configure tries to check
277 make version strings and is too aggressive with their matching
278 expressions. I've struck a deal with them to leave the version
279 output as-is for 3.78, and they'll change their configure checks
280 so that I can change this back in the future.
282 1999-09-07 Eli Zaretskii <eliz@is.elta.co.il>
284 * job.c (construct_command_argv_internal) [__MSDOS__]: Add "echo"
285 and "unset" to the list of builtin shell commands.
287 * configh.DOS.template (MAKE_HOST): Define to "i386-pc-msdosdjgpp"
288 which is the canonical name of the DJGPP host.
290 1999-09-05 Paul D. Smith <psmith@gnu.org>
292 * Version 3.77.95 released.
294 * make.texinfo (Make Errors): Document some new jobserver error
297 1999-09-04 Eli Zaretskii <eliz@is.elta.co.il>
299 * make.texinfo (Make Errors): Document the hint about 8 spaces
301 (Call Function, Quick Reference): Use @code{$(1)}, not @var.
303 * main.c (main) [__MSDOS__]: Say "on this platform" instead of "on
304 MS-DOS", since the MSDOS version could run on Windows.
306 1999-09-03 Paul D. Smith <psmith@gnu.org>
308 * remake.c (notice_finished_file): Always set mtime_before_update
309 if it's not been set, not just if we ran some rules. Otherwise we
310 may have a situation where a target's prerequisite was rebuilt but
311 not changed, so this target's rules weren't run, then
312 update_goal_chain() sees mtime_before_update != last_mtime and
313 thinks that the top-level target changed when it really didn't.
314 This can cause an infinite loop when remaking makefiles.
315 (update_goal_chain): If we get back to the top and we don't know
316 what the goal's last_mtime was, find it now. We need to know so
317 we can compare it to mtime_before_update later (this is only
318 crucial when remaking makefiles--should we only do it then?)
320 1999-09-02 Paul D. Smith <psmith@gnu.org>
322 * read.c (read_makefile): If "override" appears as the first
323 prerequisite, look further to ensure this is really a
324 target-specific variable definition, and not just some
325 prerequisite named "override".
327 1999-09-01 Paul D. Smith <psmith@gnu.org>
329 * function.c (IS_PATHSEP) [WINDOWS32]: Allow backslash separators
331 * read.c (record_files) [WINDOWS32]: Allow backslash separators
333 * implicit.c (pattern_search) [WINDOWS32]: Allow backslash
334 separators for W32 platforms.
336 * configure.in (MAKE_HOST): Define it to be the canonical build
337 host info, now that we need AC_CANONICAL_HOST anyway (for large
339 * version.c (make_host): Define a variable to MAKE_HOST so we're
340 sure to get it from the local config.h.
341 * main.c (print_version): Use it in the version information.
342 * config.ami.template: Add MAKE_HOST.
343 * configh.dos.template: Ditto.
344 * config.h.W32.template: Ditto.
345 * config.h-vms.template: Ditto.
347 * main.c (main): Close the jobserver file descriptors if we need
348 to re-exec ourselves.
349 Also print more reasonable error if users force -jN for submakes.
350 This may be common for a while until people use the jobserver
351 feature. If it happens, we ignore the existing jobserver stuff
352 and use whatever they specified on the commandline.
353 (define_makeflags): Fixed a long-standing bug: if a long name
354 only option comes immediately after a single letter option with no
355 argument, then the option string is constructed incorrectly. For
356 example, with -w and --jobserver-fds you get "-w-jobserver-fds..."
357 instead of "-w --jobserver-fds..."; add in an extra " -".
359 * make.texinfo (Phony Targets): Add another example of using
360 .PHONY with subdirectories/recursive make.
362 1999-08-30 Paul D. Smith <psmith@gnu.org>
364 * README.W32.template: Renamed from README.W32 so it's
365 autogenerated during the dist. A few minor modifications.
367 * configure.in: Check for kstat_open before AC_FUNC_GETLOADAVG
368 since the latter needs to know whether the former exists to give
371 1999-08-26 Rob Tulloh <rob_tulloh@dev.tivoli.com>
373 * NMakefile [WINDOWS32]: Now more robust. If you change a file
374 under w32/subproc, the make.exe will be relinked. Also added some
375 tests to make sure erase commands won't fail when executed in a
376 pristine build environment.
378 * w32/subproc/sub_proc.c [WINDOWS32]: Added support for
379 HAVE_CYGWIN_SHELL. If you are using the Cygwin B20.1 release, it
380 is now possible to have have native support for this shell without
381 having to rely on klutzy BATCH_MODE_ONLY_SHELL.
383 * config.h.W32 [WINDOWS32]: Added HAVE_CYGWIN_SHELL macro which
384 users can define if they want to build make to use this shell.
386 * README.W32 [WINDOWS32]: Added informaton about
387 HAVE_CYGWIN_SHELL. Cleaned up text a bit to make it more current.
389 1999-08-26 Paul Eggert <eggert@twinsun.com>
391 Support large files in AIX, HP-UX, and IRIX.
393 * acinclude.m4 (AC_LFS): Remove. Superseded by AC_SYS_LARGEFILE.
394 (AC_SYS_LARGEFILE_FLAGS, AC_SYS_LARGEFILE_SPACE_APPEND,
395 AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): New macros.
396 (jm_AC_TYPE_UINTMAX_T): Check for busted compilers that can't
397 shift or divide unsigned long long.
398 (AM_PROG_CC_STDC): New macro; a temporary workaround of a bug in
401 * configure.in (AC_CANONICAL_HOST): Add; required by new
403 (AC_SYS_LARGEFILE): Renamed from AC_LFS.
404 (AM_PROG_CC_STDC): Add.
406 * config.guess, config.sub: New files, needed for AC_CANONICAL_HOST.
408 1999-08-25 Paul Eggert <eggert@twinsun.com>
410 * make.h (CHAR_MAX): New macro.
411 * main.c (struct command_switch): c is now int,
412 so that it can store values greater than CHAR_MAX.
413 (switches): Replace small numbers N with CHAR_MAX+N-1,
414 to avoid problems with non-ASCII character sets.
415 (short_option): New macro.
416 (init_switches, print_usage, define_makeflags): Use it instead of
419 1999-08-25 Paul D. Smith <psmith@gnu.org>
421 * Version 3.77.94 released.
423 * main.c (main) [__MSDOS__]: If the user uses -j, warn that it's
424 not supported and reset it.
426 * make.h (ISDIGIT): Obtained this from the textutils distribution.
427 * main.c (decode_switches): Use it.
428 * function.c (is_numeric): Use it.
430 * main.c (struct command_switch): Store the switch char in an
431 unsigned char to shut up GCC about using it with ctype.h macros.
432 Besides, it _is_ always unsigned.
434 1999-08-24 Paul D. Smith <psmith@gnu.org>
436 * make.texinfo: Change "dependency" to "prerequisite" and
437 "dependencies" to "prerequisites". Various other cleanups related
438 to the terminology change.
439 * file.c: Change debugging and error messages to use
440 "prerequisite" instead of "dependency".
445 1999-08-23 Paul D. Smith <psmith@gnu.org>
447 * remake.c (update_file): Move the considered check into the
448 double-colon rule loop, so we consider double-colon rules
449 individually (otherwise after the first is pruned, the rest won't
452 * README.template: Minor changes.
454 Remove the debugging features of the jobserver, so it no longer
455 writes distinct tokens to the pipe. Thus, we don't need to store
456 the token we get. A side effect of this is to remove a potential
457 "unavailable token" situation: make-1 invokes make-2 with its
458 special token and make-3 with a normal token; make-2 completes.
459 Now we're waiting for make-3 but using 2 tokens; our special token
460 is idle. In the new version we don't have special tokens per se,
461 we merely decide if we already have a child or not. If we don't,
462 we don't need a token. If we do, we have to get one to run the
463 next child. Similar for putting tokens back: if we're cleaning up
464 the last child, we don't put a token back. Otherwise, we do.
466 * main.c: Add a new, internal flag --jobserver-fds instead of
467 overloading the meaning of -j. Remove job_slots_str and add the
468 stringlist jobserver_fds.
469 (struct command_switch): We don't need the int_string type.
470 (switches[]): Add a new option for --jobserver-fds and remove
471 conditions around -j. Make the description for the former 0 so it
472 doesn't print during "make --help".
473 (main): Rework jobserver parsing. If we got --jobserver-fds
474 make sure it's valid. We only get one and job_slots must be 0.
475 If we're the toplevel make (-jN without --jobserver-fds) create
476 the pipe and write generic tokens.
477 Create the stringlist struct for the submakes.
478 Clean up the stringlist where necessary.
479 (init_switches): Remove int_string handling.
480 (print_usage): Don't print internal flags (description ptr is 0).
481 (decode_switches): Remove int_string handling.
482 (define_makeflags): Remove int_string handling.
484 * job.c: Remove my_job_token flag and all references to the
485 child->job_token field.
486 (free_job_token): Remove this and merge it into free_child().
487 (reap_children): Rework the "reaped a child" logic slightly.
488 Don't call defunct free_job_token anymore. Always call
489 free_child, even if we're dying.
490 (free_child): If we're not freeing the only child, put a token
491 back in the pipe. Then, if we're dying, don't bother to free.
492 (new_job): If we are using the jobserver, loop checking to see if
493 a) there are no children or b) we get a token from the pipe.
495 * job.h (struct child): Remove the job_token field.
497 1999-08-20 Paul D. Smith <psmith@gnu.org>
499 * variable.c (try_variable_definition): Allocate for variable
500 expansion in f_append with a simple variable: if we're looking at
501 target-specific variables we don't want to trash the buffer.
502 Noticed by Reiner Beninga <Reiner.Beninga@mchp.siemens.de>.
504 1999-08-16 Eli Zaretskii <eliz@is.elta.co.il>
506 * main.c (main) [__MSDOS__]: Mirror any backslashes in argv[0], to
507 avoid problems in shell commands that use backslashes as escape
510 1999-08-16 Paul D. Smith <psmith@gnu.org>
512 * Version 3.77.93 released.
514 1999-08-13 Paul D. Smith <psmith@gnu.org
516 * function.c (func_if): New function $(if ...) based on the
517 original by Han-Wen but reworked quite a bit.
518 (function_table): Add it.
519 * NEWS: Introduce it.
520 * make.texinfo (If Function): Document it.
522 * job.c (free_job_token): Check for EINTR when writing tokens to
525 1999-08-12 Paul D. Smith <psmith@gnu.org>
527 Another jobserver algorithm change. We conveniently forgot that
528 the blocking bit is shared by all users of the pipe, it's not a
529 per-process setting. Since we have many make processes all
530 sharing the pipe we can't use the blocking bit as a signal handler
531 flag. Instead, we'll dup the pipe's read FD and have the SIGCHLD
532 handler close the dup'd FD. This will cause the read() to fail
533 with EBADF the next time we invoke it, so we know we need to reap
534 children. We then re-dup and reap.
536 * main.c (main): Define the job_rfd variable to hold the dup'd FD.
537 Actually dup the read side of the pipe. Don't bother setting the
538 blocking bit on the file descriptor.
539 * make.h: Declare the job_rfd variable.
540 * job.c (child_handler): If the dup'd jobserver pipe is open,
541 close it and assign -1 to job_rfd to notify the main program that
543 (start_job_command): Close the dup'd FD before exec'ing children.
544 Since we open and close this thing so often it doesn't seem
545 worth it to use the close-on-exec bit.
546 (new_job): Remove code for testing/setting the blocking bit.
547 Instead of EAGAIN, test for EBADF. If the dup'd FD has been
548 closed, re-dup it before we reap children.
550 * function.c (func_shell): Be a little more accurate about the
551 length of the error string to allocate.
553 * expand.c (variable_expand_for_file): If there's no filenm info
554 (say, from a builtin command) then reset reading_file to 0.
556 1999-08-09 Paul D. Smith <psmith@gnu.org>
558 * maintMakefile: Use g in sed (s///g) to replace >1 variable per
561 * Makefile.DOS.template [__MSDOS__]: Fix mostlyclean-aminfo to
562 remove the right files.
564 1999-08-01 Eli Zaretskii <eliz@is.elta.co.il>
566 * function.c (msdos_openpipe) [__MSDOS__]: *Really* return a FILE
569 1999-08-01 Paul D. Smith <psmith@gnu.org>
571 New jobserver algorithm to avoid a possible hole where we could
572 miss SIGCHLDs and get into a deadlock. The original algorithm was
573 suggested by Roland McGrath with a nice refinement by Paul Eggert.
574 Many thanks as well to Tim Magill and Howard Chu, who also
575 provided many viable ideas and critiques. We all had a fun week
576 dreaming up interesting ways to use and abuse UNIX syscalls :).
578 Previously we could miss a SIGCHLD if it happened after we reaped
579 the children but before we re-entered the blocking read. If this
580 happened to all makes and/or all children, make would never wake
583 We avoid this by having the SIGCHLD handler reset the blocking bit
584 on the jobserver pipe read FD (normally read does block in this
585 algorithm). Now if the handler is called between the time we reap
586 and the time we read(), and there are no tokens available, the
587 read will merely return with EAGAIN instead of blocking.
589 * main.c (main): Set the blocking bit explicitly here.
590 * job.c (child_handler): If we have a jobserver pipe, set the
591 non-blocking bit for it.
592 (start_waiting_job): Move the token stuff back to new_job; if we
593 do it here then we're not controlling the number of remote jobs
595 (new_job): Move the check for job slots to _after_ we've created a
596 child structure. If the read returns without getting a token, set
597 the blocking bit then try to reap_children.
599 * make.h (EINTR_SET): Define to test errno if EINTR is available,
600 or 0 otherwise. Just some code cleanup.
601 * arscan.c (ar_member_touch): Use it.
602 * function.c (func_shell): Use it.
603 * job.c (reap_children): Use it.
604 * remake.c (touch_file): Use it.
606 1999-07-28 Paul D. Smith <psmith@gnu.org>
608 * make.h: Define _() and N_() macros as passthrough to initiate
610 * <all>: Add _()/N_() around translatable strings.
612 1999-07-27 Paul D. Smith <psmith@gnu.org>
614 * read.c: Make sure make.h comes before other headers.
616 1999-07-26 Paul D. Smith <psmith@gnu.org>
618 * make.texinfo (Quick Reference): Update with the new features.
620 1999-07-25 Eli Zaretskii <eliz@is.elta.co.il>
622 * remake.c [__MSDOS__]: Don't include variables.h, it's already
625 * function.c (msdos_openpipe) [__MSDOS__]: Return FILE ptr.
626 (func_shell) [__MSDOS__]: Fix the argument list.
628 * Makefile.DOS.template: Update from Makefile.in.
630 * README.DOS.template: Configure command fixed.
632 * configh.dos.template: Update to provide definitions for
633 uintmax_t, fd_set_size_t, and HAVE_SELECT.
635 1999-07-24 Paul D. Smith <psmith@gnu.org>
637 * Version 3.77.91 released.
639 * configure.in: Changes to the boostrapping code: if build.sh.in
640 doesn't exist configure spits an error and generates an empty
641 build.sh file which causes make to be confused.
642 * maintMakefile: Don't build README early.
644 1999-07-23 Paul D. Smith <psmith@gnu.org>
646 * job.c (my_job_token): This variable controls whether we've
647 handed our personal token to a subprocess or not. Note we could
648 probably infer this from the value of job_slots_used, but it's
649 clearer to just keep it separately. Job_slots_used isn't really
650 relevant when running the job server.
651 (free_job_token): New function: free a job token. If we don't
652 have one, no-op. If we have the personal token, reclaim it. If
653 we have another token, write it back to the pipe.
654 (reap_children): Call free_job_token.
655 (free_child): Call free_job_token.
656 (start_job_command): Remove duplicate test for '+' in the command.
657 If we don't appear to be running a recursive make, close the
658 jobserver filedescriptors.
659 (start_waiting_job): If our personal token is available, use that
660 instead of going to the server pipe.
661 (*): Add the token value to many debugging statements, and print
662 the child target name in addition to the ptr hex value.
663 Change the default "no token" value from '\0' to '-' so it looks
664 better in the output.
666 * main.c (main): Install the child_handler with sigaction()
667 instead of signal() if we have it. On SysV systems, signal() uses
668 SysV semantics which are a pain. But sigaction() always does what
670 (main): If we got job server FDs from the environment, test them
671 to see if they're open. If not, the parent make closed them
672 because it didn't think we were a submake. Print a warning and
673 suggestion to use "+" on the submake invocation, and hard-set to
674 -j1 for this instance of make.
675 (main): Change the algorithm for assigning slots to be more
676 robust. Previously make checked to see if it thought a subprocess
677 was a submake and if so, didn't give it a token. Since make's
678 don't consume tokens we could spawn many of makes fighting for a
679 small number of tokens. Plus this is unreliable because submakes
680 might not be recognized by the parent (see above) then all the
681 tokens could be used up by unrecognized makes, and no one could
682 run. Now every make consumes a token from its parent. However,
683 the make can also use this token to spawn a child. If the make
684 wants more than one, it goes to the jobserver pipe. Thus there
685 will never be more than N makes running for -jN, and N*2 processes
686 (N makes and their N children). Every make can always run at
687 least one job, and we'll never deadlock. (Note the closing of the
688 pipe for non-submakes also solves this, but this is still a better
689 algorithm.) So! Only put N-1 tokens into the pipe, since the
690 topmost make keeps one for itself.
692 * configure.in: Find sigaction. Disable job server support unless
693 the system provides it, in addition to either waitpid() or
696 1999-07-22 Rob Tulloh <rob_tulloh@dev.tivoli.com>
698 * arscan.c (ar_member_touch) [WINDOWS32]: The ar_date field is a
699 string on Windows, not a timestamp.
701 1999-07-21 Paul D. Smith <psmith@gnu.org>
703 * Version 3.77.90 released.
705 * Makefile.am (AUTOMAKE_OPTIONS): Require automake 1.4.
707 * function.c: Rearrange so we don't need to predeclare the
708 function_table array; K&R C compilers don't like that.
710 * acinclude.m4 (AC_FUNC_SELECT): Ouch; this requires an ANSI C
711 compiler! Change to work with K&R compilers as well.
713 * configure.in (AC_OUTPUT): Put build.sh back. I don't know how I
714 thought it would work this way :-/. We'll have to think of
716 * Makefile.am: Remove rule to create build.sh.
718 * default.c (default_suffix_rules): Rearrange the default command
719 lines to conform to POSIX rules (put the filename argument $<
720 _after_ the OUTPUT_OPTION, not before it).
722 * various: Changed !strncmp() calls to strneq() macros.
724 * misc.c (sindex): Make slightly more efficient.
726 * dir.c (file_impossible): Change savestring(X,strlen(X)) to xstrdup().
727 * implicit.c (pattern_search): Ditto.
728 * main.c (enter_command_line_file): Ditto.
730 * misc.c (copy_dep_chain): Ditto.
731 * read.c (read_makefile): Ditto.
732 (parse_file_seq): Ditto.
733 (tilde_expand): Ditto.
735 * rule.c (install_pattern_rule): Ditto.
736 * variable.c (define_variable_in_set): Ditto.
737 (define_automatic_variables): Ditto.
738 * vpath.c (construct_vpath_list): Ditto.
740 * misc.c (xrealloc): Some reallocs are non-standard: work around
741 them in xrealloc by calling malloc if PTR is NULL.
742 * main.c (main): Call xrealloc() directly instead of testing for
745 * function.c (func_sort): Don't try to free NULL; some older,
746 non-standard versions of free() don't like it.
748 * configure.in (--enable-dmalloc): Install some support for using
749 dmalloc (http://www.dmalloc.com/) with make. Use --enable-dmalloc
750 with configure to enable it.
752 * function.c (function_table_entry): Whoops! The function.c
753 rewrite breaks backward compatibility: all text to a function is
754 broken into arguments, and extras are ignored. So $(sort a,b,c)
755 returns "a"! Etc. Ouch. Fix it by making a positive value in
756 the REQUIRED_ARGS field mean exactly that many arguments to the
757 function; any "extras" are considered part of the last argument as
758 before. A negative value means at least that many, but may be
759 more: in this case all text is broken on commas.
760 (handle_function): Stop when we've seen REQUIRED_ARGS args, if >0.
761 (expand_builtin_function): Compare number of args to the absolute
762 value of REQUIRED_ARGS.
764 1999-07-20 Paul D. Smith <psmith@gnu.org>
766 * job.c (start_job_command): Ensure that the state of the target
767 is cs_running. It might not be if we skipped all the lines due to
770 * commands.c (execute_file_commands): If we discover that the
771 command script is empty and succeed early, set cs_running so the
772 modtime of the target is still rechecked.
774 * rule.c (freerule): Free the dependency list for the rule.
776 * implicit.c (pattern_search): When turning an intermediate file
777 into a real target, keep the also_make list.
778 Free the dep->name if we didn't use it during enter_file().
780 1999-07-16 Paul D. Smith <psmith@gnu.org>
782 * read.c (read_makefile): Don't allocate the commands buffer until
783 we're sure we found a makefile and won't return early (mem leak).
785 * job.c (start_job_command): Broken #ifdef test: look for F_SETFD,
786 not FD_SETFD. Close-on-exec isn't getting set on the bad_stdin
787 file descriptor and it's leaking :-/.
788 * getloadavg.c (getloadavg): Ditto.
790 1999-07-15 Paul D. Smith <psmith@gnu.org>
792 * read.c (read_makefile): Fix some potential memory stomps parsing
793 `define' directives where no variable name is given.
795 * function.c (func_call): Rename from func_apply. Various code
796 cleanup and tightening.
797 (function_table): Add "call" as a valid builtin function.
799 * make.texinfo (Call Function): Document it.
803 1999-07-09 Eli Zaretskii <eliz@is.elta.co.il>
805 * variable.c (try_variable_definition) [__MSDOS__, WINDOWS32]:
806 Treat "override SHELL=" the same as just "SHELL=".
808 1999-07-09 Paul D. Smith <psmith@gnu.org>
810 * job.c (start_waiting_job): Don't get a second job token if we
811 already have one; if we're waiting on the load to go down
812 start_waiting_job() might get called twice on the same file.
814 * filedef.h (struct file): Add new field, mtime_before_update.
815 When notice_finished_file runs it assigns the cached last_mtime to
817 * remake.c (update_goal_chain): Notice that a file wasn't updated
818 by asking if it changed (g->changed) and comparing the current
819 cached time (last_mtime) with the previous one, stored in
820 mtime_before_update. The previous check ("did last_mtime changed
821 during the run of update_file?") fails for parallel builds because
822 last_mtime is set during reap_children, before update_file is run.
823 This causes update_goal_chain to always return -1 (nothing
824 rebuilt) when running parallel (-jN). This is OK during "normal"
825 builds since our caller (main) treats these cases identically in
826 that case, but if when rebuilding makefiles the difference is very
827 important, as it controls whether we re-exec or not.
828 * file.c (file_hash_enter): Copy the mtime_before_update field.
829 (snap_deps): Initialize mtime_before_update to -1.
830 * main.c (main): Initialize mtime_before_update on old (-o) and
833 1999-07-08 Paul D. Smith <psmith@gnu.org>
835 * main.c (switches): Define a new switch -R (or
836 --no-builtin-variables). This option disables the defining of all
837 the GNU make builtin variables.
838 (main): If -R was given, force -r as well.
839 * default.c (define_default_variables): Test the new flag.
840 * make.h: Declare global flag.
841 * make.texinfo (Options Summary): Document the new option.
842 (Implicit Variables): Ditto.
844 1999-07-06 Paul D. Smith <psmith@gnu.org>
846 * make.texinfo (Options Summary): Correct examples in
847 --print-data-base option summary (problem reported by David Morse
848 <morse@nichimen.com>).
850 * arscan.c: Add support for archives in Windows (VC++). Frank
851 Libbrecht <frankl@abzx.belgium.hp.com> provided info on how to do
853 * NMakefile.template (CFLAGS_any): Remove NO_ARCHIVES from the
855 * build_w32.bat: Ditto.
857 * remake.c (no_rule_error): Fix -include/sinclude so it doesn't
858 give errors if you try to -include the same file twice.
859 (updating_makefiles): New variable: we need to know this info in
860 no_rule_error() so we know whether to print an error or not.
861 (update_file_1): Unconditionally call no_rule_error(), don't try
862 to play games with the dontcare flag.
864 1999-06-14 Paul D. Smith <psmith@gnu.org>
866 * make.texinfo (Remaking Makefiles): Add a description of how to
867 prevent implicit rule searches for makefiles.
869 * make.1: Remove statement that make continues processing when -v
872 1999-06-14 Paul D. Smith <psmith@gnu.org>
874 * read.c (read_makefile): Cast -1 arguments to
875 variable_expand_string() to long. Alexandre Sauve
876 <Alexandre.SAUVE@ifp.fr> reports that without casts, this breaks
877 on a NEC SUPER-UX SX-4 system (and it's wrong without a cast
878 anyway). Of course, (a) I'd really love to start using function
879 prototypes, and (b) there's a whole slew of issues related to int
880 vs. long and signed vs. unsigned in the length handling of
881 variable buffers, etc. Gross. Needs a complete mucking-out.
882 * expand.c (variable_expand): Ditto.
884 * acinclude.m4 (AC_FUNC_SELECT): Slight enhancement for AIX 3.2 by
885 Lars Hecking <lhecking@nmrc.ucc.ie>.
887 * read.c (get_next_mword): Allow colons to be escaped in target
888 names: fix for regression failure.
890 1999-04-26 Paul D. Smith <psmith@gnu.org>
892 * main.c (main): Reset read_makefiles to empty after processing so
893 we get the right error message.
895 1999-04-25 Paul D. Smith <psmith@gnu.org>
897 * make.texinfo: Updates to @dircategory and @direntry suggested by
898 Karl Berry <karl@cs.umb.edu>.
900 1999-04-23 Eli Zaretskii <eliz@is.elta.co.il>
902 * job.c (start_job_command) [__MSDOS__]: Call unblock_sigs before
903 turning off dos_command_running, so child's signals produce the
906 * commands.c (fatal_error_signal) [__MSDOS__]: Use EXIT_FAILURE
909 1999-04-18 Eli Zaretskii <eliz@is.elta.co.il>
911 * configh.dos.template: Update to recognize that version 2.02 of
912 DJGPP contains sys_siglist stuff.
914 1999-04-14 Paul D. Smith <psmith@gnu.org>
916 * make.texinfo (Options/Recursion): Document the job server.
919 1999-04-13 Paul D. Smith <psmith@gnu.org>
921 Implement a new "job server" feature; the implementation was
922 suggested by Howard Chu <hyc@highlandsun.com>.
924 * configure.in (job-server): New disable option for job server
925 support--it's enabled by default. If it works well this will go
928 * NEWS: Summarize the new feature.
930 * acconfig.h: New definition MAKE_JOBSERVER if job server support
932 * config.h-vms.template: Undef MAKE_JOBSERVER for this port.
933 * config.h.W32.template: Ditto.
934 * config.ami.template: Ditto.
936 * main.c (struct command_switch): Add a new type: int_string.
937 (switches[]) Use int_string for -j if MAKE_JOBSERVER.
938 (init_switches): Initialize the new int_string switch type.
939 (print_usage): New function, extracted from decode_switches().
940 (decode_switches): Call it. Decode the new int_string switch type.
941 (define_makeflags): Add new int_string switch data to MAKEFLAGS.
942 (job_fds[]) Array to contain the pipe file descriptors.
943 (main): Parse the job_slots_str option results. If necessary,
944 create the pipe and seed it with tokens. Set the non-blocking bit
945 for the read fd. Enable the signal handler for SIGCHLD even if we
946 have a non-hanging wait; it's needed to interrupt the select() in
947 job.c:start_waiting_job().
949 * make.h: Declare job_fds[].
951 * job.h (struct child): Add job_token field to store the token for
954 * job.c (reap_children): When a child is fully reaped, release the
955 token back into the pipe.
956 (free_child): If the child to be freed still has a token, put it
958 (new_job): Initialize the job_token member.
959 (start_waiting_job): For local jobs, if we're using the pipe, get
960 a token before we check the load, etc. We do this by performing a
961 non-blocking read in a loop. If the read fails, no token is
962 available. Do a select on the fd to wait for a token. We need to
963 re-enable the signal handler for SIGCHLD even if we have a
964 non-hanging waitpid() or wait3(), so that the signal will
965 interrupt the select() and we can wake up to reap children.
966 (child_handler): Re-enable the signal handler. The count is still
967 kept although it's not needed or used unless you don't have
968 waitpid() or wait3().
970 1999-04-10 Paul D. Smith <psmith@gnu.org>
972 * main.c (main): Reset the considered bit on all the makefiles if
973 something failed to update; we need to examine them again if they
974 appear as normal targets in order to get the proper error message.
976 1999-04-09 Paul D. Smith <psmith@gnu.org>
978 Performance enhancement from Tim Magill <tim.magill@telops.gte.com>.
980 * remake.c (update_file): If you have large numbers of
981 dependencies and you run in parallel, make can spend considerable
982 time each pass through the graph looking at branches it has
983 already seen. Since we only reap_children() when starting a pass,
984 not in the middle, if a branch has been seen already in that pass
985 nothing interesting can happen until the next pass. So, we toggle
986 a bit saying whether we've seen this target in this pass or not.
987 (update_goal_chain): Initially set the global considered toggle to
988 1, since all targets initialize their boolean to 0. At the end of
989 each pass, toggle the global considered variable.
990 * filedef.h (struct file): Per-file considered toggle bit.
991 * file.c: New global toggle variable considered.
993 1999-04-05 Paul D. Smith <psmith@gnu.org>
995 * arscan.c (ar_scan): Added support for ARFZMAG (compressed
996 archives?) for Digital UNIX C++. Information provided by
997 Patrick E. Krogel <pekrogel@mtu.edu>.
998 (ar_member_touch): Ditto.
1000 1999-04-03 Paul D. Smith <psmith@gnu.org>
1002 * remake.c (f_mtime): If: a) we found a file and b) we didn't
1003 create it and c) it's not marked as an implicit target and d) it
1004 is marked as an intermediate target, then it was so marked due to
1005 an .INTERMEDIATE special target, but it already existed in the
1006 directory. In this case, unset the intermediate flag so we won't
1007 delete it when make is done. It feels like it would be cleaner to
1008 put this check in update_file_1() but I worry it'll get missed...
1010 1999-04-01 Paul D. Smith <psmith@gnu.org>
1012 * job.c (construct_command_argv_internal): Use bcopy() to copy
1013 overlapping strings, rather than strcpy(). ISO C says the latter
1014 is undefined. Found this in a bug report from 1996! Ouch!
1016 1999-03-31 Paul D. Smith <psmith@gnu.org>
1018 * read.c (readline): Ignore carriage returns at the end of the
1019 line, to allow Windows-y CRLF line terminators.
1021 1999-03-30 Paul D. Smith <psmith@gnu.org>
1023 * configure.in: Don't put build.sh here, since build.sh.in doesn't
1024 exist initially. This cause autoreconf and automake to fail when
1025 run on a clean CVS checkout. Instead, we create build.sh in the
1026 Makefile (see below).
1028 * Makefile.am: Remove BUILT_SOURCES; this is no longer relevant.
1029 Put those files directly into EXTRA_DIST so they're distributed.
1030 Create a local build rule to create build.sh.
1031 Create a local maintainer-clean rule to delete all the funky
1034 * maintMakefile: Makefile.in depends on README, since automake
1035 fails if it doesn't exist. Also don't remove glob/Makefile.in
1036 here, as it causes problems.
1038 1999-03-26 Paul D. Smith <psmith@gnu.org>
1040 * configure.in: Substitute GLOBLIB if we need the link the
1041 glob/libglob.a library.
1042 * Makefile.am (make_LDADD): Use the subst variable GLOBLIB so we
1043 don't link the local libglob.a at all if we don't need it.
1044 * build.template: Don't compile glob/*.o unless we want globlib.
1045 * maintMakefile (build.sh.in): Substitute the glob/*.o files
1048 1999-03-25 Paul D. Smith <psmith@gnu.org>
1050 * make.texinfo: Various typos and additions, pointed out by James
1051 G. Sack <jsack@dornfeld.com>.
1053 1999-03-22 Paul D. Smith <psmith@gnu.org>
1055 * make.texinfo (Functions): Add a new section documenting the new
1056 $(error ...) and $(warning ...) functions. Also updated copyright
1058 * NEWS: Updated for the new functions.
1059 * function.c (func_error): Implement the new $(error ...) and
1060 $(warning ...) functions.
1061 (function_table): Insert new functions into the table.
1062 (func_firstword): Don't call find_next_token() with argv[0]
1063 itself, since that function modifies the pointer.
1064 * function.c: Cleanups and slight changes to the new method of
1067 1999-03-20 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1069 * function.c: Rewrite to use one C function per make function,
1070 instead of a huge switch statement. Also allows some cleanup of
1071 multi-architecture issues, and a cleaner API which makes things
1072 like func_apply() simple.
1074 * function.c (func_apply): Initial implementation. Expand either
1075 a builtin function or a make variable in the context of some
1076 arguments, provided as $1, $2, ... $N.
1078 1999-03-19 Eli Zaretskii <eliz@is.elta.co.il>
1079 1999-03-19 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1081 * job.c (construct_command_argv_internal): Don't treat _all_
1082 backslashes as escapes, only those which really escape a special
1083 character. This allows most normal "\" directory separators to be
1086 1999-03-05 Paul D. Smith <psmith@gnu.org>
1088 * configure.in: Check for a system strdup().
1089 * misc.c (xstrdup): Created. Suggestion by Han-Wen Nienhuys
1091 * make.h: Prototype xstrdup().
1092 * remake.c (library_search): Use it.
1093 * main.c (main): Use it.
1094 (find_and_set_default_shell): Use it.
1095 * job.c (construct_command_argv_internal): Use it.
1096 * dir.c (find_directory): Use it.
1098 * Makefile.am, configure.in: Use AC_SUBST_FILE to insert the
1099 maintMakefile instead of "include", to avoid automake 1.4
1102 1999-03-04 Paul D. Smith <psmith@gnu.org>
1104 * amiga.c, amiga.h, ar.c, arscan.c, commands.c, commands.h,
1105 * default.c, dep.h, dir.c, expand.c, file.c, filedef.h, function.c,
1106 * implicit.c, job.c, job.h, main.c, make.h, misc.c, read.c, remake.c
1107 * remote-cstms.c, remote-stub.c, rule.h, variable.c, variable.h,
1108 * vpath.c, Makefile.ami, NMakefile.template, build.template,
1109 * makefile.vms: Updated FSF address in the copyright notice.
1111 * variable.c (try_variable_definition): If we see a conditional
1112 variable and we decide to set it, re-type it as recursive so it
1113 will be expanded properly later.
1115 1999-02-22 Paul D. Smith <psmith@gnu.org>
1117 * NEWS: Mention new .LIBPATTERNS feature.
1119 * make.texinfo (Libraries/Search): Describe the use and
1120 ramifications of the new .LIBPATTERNS variable.
1122 * remake.c (library_search): Instead of searching only for the
1123 hardcoded expansion "libX.a" for a library reference "-lX", we
1124 obtain a list of patterns from the .LIBPATTERNS variable and
1125 search those in order.
1127 * default.c: Added a new default variable .LIBPATTERNS. The
1128 default for UNIX is "lib%.so lib%.a". Amiga and DOS values are
1131 * read.c: Remove bogus HAVE_GLOB_H references; always include
1134 1999-02-21 Paul D. Smith <psmith@gnu.org>
1136 * function.c (expand_function): Set value to 0 to avoid freeing it.
1137 * variable.c (pop_variable_scope): Free the value of the variable.
1138 (try_variable_definition): For simple variables, use
1139 allocated_variable_expand() to avoid stomping on the variable
1140 buffer when we still need it for other things.
1142 * arscan.c: Modified to support AIX 4.3 big archives. The changes
1143 are based on information provided by Phil Adams
1144 <padams@austin.ibm.com>.
1146 1999-02-19 Paul D. Smith <psmith@gnu.org>
1148 * configure.in: Check to see if the GNU glob library is already
1149 installed on the system. If so, _don't_ add -I./glob to the
1150 compile line. Using the system glob code with the local headers
1152 Rewrite SCCS macros to use more autoconf facilities.
1154 * Makefile.am: Move -Iglob out of INCLUDES; it'll get added to
1155 CPPFLAGS by configure now.
1156 Automake 1.4 introduced its own "include" feature which conflicts
1157 with the maintMakefile stuff. A hack that seems to work is add a
1158 space before the include :-/.
1160 * build.template: Move -Iglob out of the compile line; it'll get
1161 added to CPPFLAGS by configure now.
1163 1999-02-16 Glenn D. Wolf <Glenn_Wolf@email.sps.mot.com>
1165 * arscan.c (ar_scan) [VMS]: Initialized VMS_member_date before
1166 calling lbr$get_index since if the archive is empty,
1167 VMS_get_member_info won't get called at all, and any leftover date
1168 will be used. This bug shows up if any member of any archive is
1169 made, followed by a dependency check on a different, empty
1172 1998-12-13 Martin Zinser <zinser@decus.decus.de>
1174 * config.h-vms [VMS]: Set _POSIX_C_SOURCE. Redefine the getopt
1175 functions so we don't use the broken VMS versions.
1176 * makefile.com [VMS]: Allow debugging.
1177 * dir.c (dir_setup_glob) [VMS]: Don't extern stat() on VMS.
1179 1998-11-30 Paul D. Smith <psmith@gnu.org>
1181 * signame.c (init_sig): Check the sizes of signals being set up to
1182 avoid array overwrites (if the system headers have problems).
1184 1998-11-17 Paul D. Smith <psmith@gnu.org>
1186 * read.c (record_files): Clean up some indentation.
1188 1998-11-08 Han-Wen Nienhuys <hanwen@cs.uu.nl>
1190 * rule.c (print_rule_data_base): Fix arguments to fatal() call.
1192 1998-10-13 Paul D. Smith <psmith@gnu.org>
1194 * job.c (start_job_command): If the command list resolves to no
1195 chars at all (e.g.: "foo:;$(empty)") then command_ptr is NULL;
1198 1998-10-12 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1200 * rule.c (print_rule_data_base): Ignore num_pattern_rules if it is
1203 1998-10-09 Paul D. Smith <psmith@gnu.org>
1205 * read.c (read_makefile): Allow non-empty lines to expand to the
1206 empty string after variable, etc., expansion, and be ignored.
1208 1998-09-21 Paul D. Smith <psmith@gnu.org>
1210 * job.c (construct_command_argv_internal): Only add COMMAND.COM
1211 "@echo off" line for non-UNIXy shells.
1213 1998-09-09 Paul D. Smith <psmith@gnu.org>
1215 * w32/subproc/sub_proc.c: Add in missing HAVE_MKS_SHELL tests.
1217 1998-09-04 Paul D. Smith <psmith@gnu.org>
1219 * read.c (read_makefile): If we hit the "missing separator" error,
1220 check for the common case of 8 spaces instead of a TAB and give an
1221 extra comment to help people out.
1223 1998-08-29 Paul Eggert <eggert@twinsun.com>
1225 * configure.in (AC_STRUCT_ST_MTIM_NSEC):
1226 Renamed from AC_STRUCT_ST_MTIM.
1228 * acinclude.m4 (AC_STRUCT_ST_MTIM_NSEC): Likewise.
1229 Port to UnixWare 2.1.2 and pedantic Solaris 2.6.
1231 * acconfig.h (ST_MTIM_NSEC):
1232 Renamed from HAVE_ST_MTIM, with a new meaning.
1234 * filedef.h (FILE_TIMESTAMP_FROM_S_AND_NS):
1235 Use new ST_MTIM_NSEC macro.
1237 1998-08-26 Paul D. Smith <psmith@gnu.org>
1239 * remake.c (check_dep): For any intermediate file, not just
1240 secondary ones, try implicit and default rules if no explicit
1241 rules are given. I'm not sure why this was restricted to
1242 secondary rules in the first place.
1244 1998-08-24 Paul D. Smith <psmith@gnu.org>
1246 * make.texinfo (Special Targets): Update documentation for
1247 .INTERMEDIATE: if used with no dependencies, then it does nothing;
1248 old docs said it marked all targets as intermediate, which it
1249 didn't... and which would be silly :).
1251 * implicit.c (pattern_search): If we find a dependency in our
1252 internal tables, make sure it's not marked intermediate before
1253 accepting it as a found_file[].
1255 1998-08-20 Paul D. Smith <psmith@gnu.org>
1257 * ar.c (ar_glob): Use existing alpha_compare() with qsort.
1258 (ar_glob_alphacompare): Remove it.
1260 Modify Paul Eggert's patch so we don't abandon older systems:
1262 * configure.in: Warn the user if neither waitpid() nor wait3() is
1265 * job.c (WAIT_NOHANG): Don't syntax error on ancient hosts.
1266 (child_handler, dead_children): Define these if WAIT_NOHANG is not
1268 (reap_children): Only track the dead_children count if no
1269 WAIT_NOHANG. Otherwise, it's a boolean.
1271 * main.c (main): Add back signal handler if no WAIT_NOHANG is
1272 available; only use default signal handler if it is.
1274 1998-08-20 Paul Eggert <eggert@twinsun.com>
1276 Install a more robust signal handling mechanism for systems which
1279 * job.c (WAIT_NOHANG): Define to a syntax error if our host
1280 is truly ancient; this should never happen.
1281 (child_handler, dead_children): Remove.
1282 (reap_children): Don't try to keep separate track of how many
1283 dead children we have, as this is too bug-prone.
1284 Just ask the OS instead.
1285 (vmsHandleChildTerm): Fix typo in error message; don't mention
1288 * main.c (main): Make sure we're not ignoring SIGCHLD/SIGCLD;
1289 do this early, before we could possibly create a subprocess.
1290 Just use the default behavior; don't have our own handler.
1292 1998-08-18 Eli Zaretskii <eliz@is.elta.co.il>
1294 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Add code to
1295 recognize library archive members when dealing with drive spec
1296 mess. Discovery and initial fix by George Racz <gracz@mincom.com>.
1298 1998-08-18 Paul D. Smith <psmith@gnu.org>
1300 * configure.in: Check for stdlib.h explicitly (some hosts have it
1301 but don't have STDC_HEADERS).
1302 * make.h: Use HAVE_STDLIB_H. Clean up some #defines.
1303 * config.ami: Re-compute based on new config.h.in contents.
1304 * config.h-vms: Ditto.
1305 * config.h.W32: Ditto.
1306 * configh.dos: Ditto.
1308 * dir.c (find_directory) [WINDOWS32]: Windows stat() fails if
1309 directory names end with `\' so strip it.
1311 1998-08-17 Paul D. Smith <psmith@gnu.org>
1313 * make.texinfo: Added copyright year to the printed copy. Removed
1314 the price from the manual. Change the top-level reference to
1315 running make to be "Invoking make" instead of "make Invocation",
1316 to comply with GNU doc standards.
1318 * make.h (__format__, __printf__): Added support for these in
1319 __attribute__ macro.
1320 (message, error, fatal): Use ... prototype form under __STDC__.
1321 Add __format__ attributes for printf-style functions.
1323 * configure.in (AC_FUNC_VPRINTF): Check for vprintf()/_doprnt().
1325 * misc.c (message, error, fatal): Add preprocessor stuff to enable
1326 creation of variable-argument functions with appropriate
1327 prototypes, that works with ANSI, pre-ANSI, varargs.h, stdarg.h,
1328 v*printf(), _doprnt(), or none of the above. Culled from GNU
1329 fileutils and slightly modified.
1330 (makefile_error, makefile_error): Removed (merged into error() and
1331 fatal(), respectively).
1332 * amiga.c: Use them.
1334 * arscan.c: Use them.
1335 * commands.c: Use them.
1336 * expand.c: Use them.
1338 * function.c: Use them.
1343 * remake.c: Use them.
1344 * remote-cstms.c: Use them.
1346 * variable.c: Use them.
1348 * make.h (struct floc): New structure to store file location
1350 * commands.h (struct commands): Use it.
1351 * variable.c (try_variable_definition): Use it.
1352 * commands.c: Use it.
1353 * default.c: Use it.
1355 * function.c: Use it.
1360 1998-08-16 Paul Eggert <eggert@twinsun.com>
1362 * filedef.h (FILE_TIMESTAMP_PRINT_LEN_BOUND): Add 10, for nanoseconds.
1364 1998-08-16 Paul Eggert <eggert@twinsun.com>
1366 * filedef.h (FLOOR_LOG2_SECONDS_PER_YEAR): New macro.
1367 (FILE_TIMESTAMP_PRINT_LEN_BOUND): Tighten bound, and try to
1368 make it easier to understand.
1370 1998-08-14 Paul D. Smith <psmith@gnu.org>
1372 * read.c (read_makefile): We've already unquoted any colon chars
1373 by the time we're done reading the targets, so arrange for
1374 parse_file_seq() on the target list to not do so again.
1376 1998-08-05 Paul D. Smith <psmith@gnu.org>
1378 * configure.in: Added glob/configure.in data. We'll have the glob
1379 code include the regular make config.h, rather than creating its
1382 * getloadavg.c (main): Change return type to int.
1384 1998-08-01 Paul Eggert <eggert@twinsun.com>
1386 * job.c (reap_children): Ignore unknown children.
1388 1998-07-31 Paul D. Smith <psmith@gnu.org>
1390 * make.h, filedef.h, dep.h, rule.h, commands.h, remake.c:
1391 Add prototypes for functions. Some prototypes needed to be moved
1392 in order to get #include order reasonable.
1394 1998-07-30 Paul D. Smith <psmith@gnu.org>
1396 * make.h: Added MIN/MAX.
1397 * filedef.h: Use them; remove FILE_TIMESTAMP_MIN.
1399 1998-07-30 Paul Eggert <eggert@twinsun.com>
1401 Add support for sub-second timestamp resolution on hosts that
1402 support it (just Solaris 2.6, so far).
1404 * acconfig.h (HAVE_ST_MTIM, uintmax_t): New undefs.
1405 * acinclude.m4 (jm_AC_HEADER_INTTYPES_H, AC_STRUCT_ST_MTIM,
1406 jm_AC_TYPE_UINTMAX_T): New defuns.
1407 * commands.c (delete_target): Convert file timestamp to
1408 seconds before comparing to archive timestamp. Extract mod
1409 time from struct stat using FILE_TIMESTAMP_STAT_MODTIME.
1410 * configure.in (C_STRUCT_ST_MTIM, jm_AC_TYPE_UINTMAX_T): Add.
1411 (AC_CHECK_LIB, AC_CHECK_FUNCS): Add clock_gettime.
1412 * file.c (snap_deps): Use FILE_TIMESTAMP, not time_t.
1413 (file_timestamp_now, file_timestamp_sprintf): New functions.
1414 (print_file): Print file timestamps as FILE_TIMESTAMP, not
1416 * filedef.h: Include <inttypes.h> if available and if HAVE_ST_MTIM.
1417 (FILE_TIMESTAMP, FILE_TIMESTAMP_STAT_MODTIME, FILE_TIMESTAMP_MIN,
1418 FILE_TIMESTAMPS_PER_S, FILE_TIMESTAMP_FROM_S_AND_NS,
1419 FILE_TIMESTAMP_DIV, FILE_TIMESTAMP_MOD, FILE_TIMESTAMP_S,
1420 FILE_TIMESTAMP_NS, FILE_TIMESTAMP_PRINT_LEN_BOUND): New macros.
1421 (file_timestamp_now, file_timestamp_sprintf): New decls.
1422 (struct file.last_mtime, f_mtime, file_mtime_1, NEW_MTIME):
1423 time_t -> FILE_TIMESTAMP.
1424 * implicit.c (pattern_search): Likewise.
1425 * vpath.c (vpath_search, selective_vpath_search): Likewise.
1426 * main.c (main): Likewise.
1427 * remake.c (check_dep, name_mtime, library_search, f_mtime): Likewise.
1428 (f_mtime): Use file_timestamp_now instead of `time'.
1429 Print file timestamp with file_timestamp_sprintf.
1430 * vpath.c (selective_vpath_search): Extract file time stamp from
1431 struct stat with FILE_TIMESTAMP_STAT_MODTIME.
1433 1998-07-28 Paul D. Smith <psmith@gnu.org>
1435 * Version 3.77 released.
1437 * dosbuild.bat: Change to DOS CRLF line terminators.
1439 * make-stds.texi: Update from latest version.
1441 * make.texinfo (Options Summary): Clarify that the -r option
1442 affects only rules, not builtin variables.
1444 1998-07-27 Paul D. Smith <psmith@gnu.org>
1446 * make.h: Make __attribute__ resolve to empty for non-GCC _and_
1449 * misc.c (log_access): Print UID/GID's as unsigned long int for
1450 maximum portability.
1452 * job.c (reap_children): Print PIDs as long int for maximum
1455 1998-07-24 Eli Zaretskii <eliz@is.elta.co.il>
1457 * Makefile.DOS (*_INSTALL, *_UNINSTALL): Replace `true' with `:'.
1459 1998-07-25 Paul D. Smith <psmith@gnu.org>
1461 * Version 3.76.94 released.
1463 1998-07-23 Paul D. Smith <psmith@gnu.org>
1465 * config.h.W32.template: Make sure all the #defines of macros here
1466 have a value (e.g., use ``#define HAVE_STRING_H 1'' instead of
1467 just ``#define HAVE_STRING_H''. Keeps the preprocessor happy in
1470 * make.h: Remove __attribute__((format...)) stuff; using it with
1471 un-prototyped functions causes older GCC's to fail.
1473 * Version 3.76.93 released.
1475 1998-07-22 Paul D. Smith <psmith@gnu.org>
1477 * file.c (print_file_data_base): Fix average calculation.
1479 1998-07-20 Paul D. Smith <psmith@gnu.org>
1481 * main.c (die): Postpone the chdir() until after
1482 remove_intermediates() so that intermediate targets with relative
1483 pathnames are removed properly.
1485 1998-07-17 Paul D. Smith <psmith@gnu.org>
1487 * filedef.h (struct file): New flag: did we print an error or not?
1489 * remake.c (no_rule_error): New function to print error messages,
1490 extraced from remake_file().
1492 * remake.c (remake_file): Invoke the new error print function.
1493 (update_file_1): Invoke the error print function if we see that we
1494 already tried this target and it failed, but that an error wasn't
1495 printed for it. This can happen if a file is included with
1496 -include or sinclude and couldn't be built, then later is also
1497 the dependency of another target. Without this change, make just
1500 1998-07-16 Paul D. Smith <psmith@gnu.org>
1502 * make.texinfo: Removed "beta" version designator.
1503 Updated ISBN for the next printing.
1505 1998-07-13 Paul Eggert <eggert@twinsun.com>
1507 * acinclude.m4: New AC_LFS macro to determine if special compiler
1508 flags are needed to allow access to large files (e.g., Solaris 2.6).
1509 * configure.in: Invoke it.
1511 1998-07-08 Eli Zaretskii <eliz@is.elta.co.il>
1513 * Makefile.DOS: track changes in Makefile.in.
1515 1998-07-07 Paul D. Smith <psmith@gnu.org>
1517 * remote-cstms.c (start_remote_job): Move gethostbyaddr() to the
1518 top so host is initialized early enough.
1520 * acinclude.m4: New file. Need some special autoconf macros to
1521 check for network libraries (-lsocket, -lnsl, etc.) when
1522 configuring Customs.
1524 * configure.in (make_try_customs): Invoke new network libs macro.
1526 1998-07-06 Paul D. Smith <psmith@gnu.org>
1528 * Version 3.76.92 released.
1530 * README.customs: Added to the distribution.
1532 * configure.in (make_try_customs): Rewrite to require an installed
1533 Customs library, rather than looking at the build directory.
1535 * Makefile.am (man_MANS): Install make.1.
1536 * make.1: Renamed from make.man.
1538 * make.texinfo (Bugs): New mailing list address for GNU make bug
1541 1998-07-02 Paul D. Smith <psmith@gnu.org>
1543 * Version 3.76.91 released.
1545 * default.c: Added default rule for new-style RCS master file
1546 storage; ``% :: RCS/%''.
1547 Added default rules for DOS-style C++ files with suffix ".cpp".
1548 They use the new LINK.cpp and COMPILE.cpp macros, which are set by
1549 default to be equal to LINK.cc and COMPILE.cc.
1551 1998-06-19 Eli Zaretskii <eliz@is.elta.co.il>
1553 * job.c (start_job_command): Reset execute_by_shell after an empty
1554 command was skipped.
1556 1998-06-09 Paul D. Smith <psmith@gnu.org>
1558 * main.c (main): Keep track of the temporary filename created when
1559 reading a makefile from stdin (-f-) and attempt to remove it
1560 as soon as we know we're not going to re-exec. If we are, add it
1561 to the exec'd make's cmd line with "-o" so the exec'd make doesn't
1562 try to rebuild it. We still have a hole: if make re-execs then
1563 the temporary file will never be removed. To fix this we'd need
1564 a brand new option that meant "really delete this".
1565 * AUTHORS, getopt.c, getopt1.c, getopt.h, main.c (print_version):
1566 Updated mailing addresses.
1568 1998-06-08 Paul D. Smith <psmith@gnu.org>
1570 * main.c (main): Andreas Luik <luik@isa.de> points out that the
1571 check for makefile :: rules with commands but no dependencies
1572 causing a loop terminates incorrectly.
1574 * maintMakefile: Make a template for README.DOS to update version
1577 1998-05-30 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1579 * remake.c (update_file_1): Don't free the memory for the
1580 dependency structure when dropping a circular dependency.
1582 1998-05-30 Eli Zaretskii <eliz@is.elta.co.il>
1584 * dir.c (file_exists_p, file_impossible_p, file_impossible)
1585 [__MSDOS__, WINDOWS32]: Retain trailing slash in "d:/", and make
1586 dirname of "d:foo" be "d:".
1588 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1590 * read.c (read_makefile): Avoid running past EOS when scanning
1591 file name after `include'.
1593 1998-05-26 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1595 * make.texinfo (Flavors): Correct description of conditional
1596 assignment, which is not equivalent to ifndef.
1597 (Setting): Likewise.
1599 1998-05-24 Paul D. Smith <psmith@gnu.org>
1601 * arscan.c (ar_name_equal): strncmp() might be implemented as a
1602 macro, so don't put preprocessor conditions inside the arguments
1605 1998-05-23 Eli Zaretskii <eliz@is.elta.co.il>
1607 * read.c (read_makefile) [__MSDOS__, WINDOWS32]: Skip colons in
1608 drive specs when parsing targets, target-specific variables and
1609 static pattern rules. A colon can only be part of drive spec if
1610 it is after the first letter in a token.
1612 1998-05-22 Eli Zaretskii <eliz@is.elta.co.il>
1614 * remake.c (f_mtime) [__MSDOS__]: Allow up to 3 sec of skew before
1615 yelling bloody murder.
1617 * dosbuild.bat: Use -DINCLUDEDIR= and -DLIBDIR= where appropriate.
1619 * read.c (parse_file_seq): Combine the special file-handling code
1620 for WINDOWS32 and __MSDOS__ into a single snippet.
1621 (get_next_mword) [__MSDOS__, WINDOWS32]: Allow a word to include a
1622 colon as part of a drive spec.
1624 * job.c (batch_mode_shell) [__MSDOS__]: Declare.
1626 1998-05-20 Paul D. Smith <psmith@gnu.org>
1628 * Version 3.76.90 released.
1630 1998-05-19 Paul D. Smith <psmith@gnu.org>
1632 * make.texinfo (Make Errors): Added a new appendix describing
1633 common errors make might generate and how to resolve them (or at
1634 least more information on what they mean).
1636 * maintMakefile (NMAKEFILES): Use the new automake 1.3 feature
1637 to create a dependency file to construct Makefile.DOS, SMakefile,
1639 (.dep_segment): Generate the dependency fragment file.
1641 1998-05-14 Paul D. Smith <psmith@gnu.org>
1643 * make.man: Minor changes.
1645 1998-05-13 Paul D. Smith <psmith@gnu.org>
1647 * function.c (pattern_matches,expand_function): Change variables
1648 and types named "word" to something else, to avoid compilation
1649 problems on Cray C90 Unicos.
1650 * variable.h: Modify the function prototype.
1652 1998-05-11 Rob Tulloh <rob_tulloh@tivoli.com>
1654 * job.c (construct_command_argv_internal) [WINDOWS32]: Turn off
1655 echo when using a batch file, and make sure the command ends in a
1658 1998-05-03 Paul D. Smith <psmith@gnu.org>
1660 * configure.in (make_try_customs): Add some customs flags if the
1661 user configures custom support.
1663 * job.c, remote-cstms.c: Merge in changes for custom library.
1665 * remote-stub.c: Add option to stub start_remote_job_p().
1667 1998-05-01 Paul D. Smith <psmith@gnu.org>
1669 * remake.c (f_mtime): Install VPATH+ handling for archives; use
1670 the hname field instead of the name field, and rehash when
1673 1998-04-30 Paul D. Smith <psmith@gnu.org>
1675 * rule.c (print_rule_data_base): Print out any pattern-specific
1676 variable values into the rules database.
1678 * variable.c (print_variable_set): Make this variable extern, to
1679 be called by print_rule_data_base() for pattern-specific variables.
1681 * make.texinfo (Pattern-specific): Document pattern-specific
1684 1998-04-29 Paul D. Smith <psmith@gnu.org>
1686 * expand.c (variable_expand_for_file): Make static; its only
1687 called internally. Look up this target in the list of
1688 pattern-specific variables and insert the variable set into the
1689 queue to be searched.
1691 * filedef.h (struct file): Add a new field to hold the
1692 previously-found pattern-specific variable reference. Add a new
1693 flag to remember whether we already searched for this file.
1695 * rule.h (struct pattern_var): New structure for storing
1696 pattern-specific variable values. Define new function prototypes.
1698 * rule.c: New variables pattern_vars and last_pattern_var for
1699 storage and handling of pattern-specific variable values.
1700 (create_pattern_var): Create a new pattern-specific variable value
1702 (lookup_pattern_var): Try to match a target to one of the
1703 pattern-specific variable values.
1705 1998-04-22 Paul D. Smith <psmith@gnu.org>
1707 * make.texinfo (Target-specific): Document target-specific
1710 1998-04-21 Paul D. Smith <psmith@gnu.org>
1712 * variable.c (define_variable_in_set): Made globally visible.
1713 (lookup_variable_in_set): New function: like lookup_variable but
1714 look only in a specific variable set.
1715 (target_environment): Use lookup_variable_in_set() to get the
1716 correct export rules for a target-specific variable.
1717 (create_new_variable_set): Create a new variable set, and just
1718 return it without installing it anywhere.
1719 (push_new_variable_scope): Reimplement in terms of
1720 create_new_variable_set.
1722 * read.c (record_target_var): Like record_files, but instead of
1723 files create a target-specific variable value for each of the
1724 listed targets. Invoked from read_makefile() when the target line
1725 turns out to be a target-specific variable assignment.
1727 1998-04-19 Paul D. Smith <psmith@gnu.org>
1729 * read.c (read_makefile): Rewrite the entire target parsing
1730 section to implement target-specific variables. In particular, we
1731 cannot expand the entire line as soon as it's read in, since we
1732 may want to evaluate parts of it with different variable contexts
1733 active. Instead, start expanding from the beginning until we find
1734 the `:' (or `::'), then determine what kind of line this is and
1735 continue appropriately.
1737 * read.c (get_next_mword): New function to parse a makefile line
1738 by "words", considering an entire variable or function as one
1739 word. Return the type read in, along with its starting position
1741 (enum make_word_type): The types of words that are recognized by
1744 * variable.h (struct variable): Add a flag to specify a per-target
1747 * expand.c: Make variable_buffer global. We need this during the
1748 new parsing of the makefile.
1749 (variable_expand_string): New function. Like variable_expand(),
1750 but start at a specific point in the buffer, not the beginning.
1751 (variable_expand): Rewrite to simply call variable_expand_string().
1753 1998-04-13 Paul D. Smith <psmith@gnu.org>
1755 * remake.c (update_goal_chain): Allow the rebuilding makefiles
1756 step to use parallel jobs. Not sure why this was disabled:
1757 hopefully we won't find out :-/.
1759 1998-04-11 Paul D. Smith <psmith@gnu.org>
1761 * main.c (main): Set the CURDIR makefile variable.
1762 * make.texinfo (Recursion): Document it.
1764 1998-03-17 Paul D. Smith <psmith@gnu.org>
1766 * misc.c (makefile_fatal): If FILE is nil, invoke plain fatal().
1767 * variable.c (try_variable_definition): Use new feature.
1769 1998-03-10 Paul D. Smith <psmith@gnu.org>
1771 * main.c (main): Don't pass included, rebuilt makefiles to
1772 re-exec'd makes with -o. Reopens a possible loop, but it caused
1775 1998-03-02 Paul D. Smith <psmith@gnu.org>
1777 * variable.c (try_variable_definition): Implement ?=.
1778 * make.texinfo (Setting): Document it.
1780 1998-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1782 * job.c (start_job_command): Reset execute_by_shell after an empty
1783 command, like ":", has been seen.
1785 Tue Oct 07 15:00:00 1997 Phil Brooks <phillip_brooks@hp.com>
1787 * make.h [WINDOWS32]: make case sensitivity configurable
1788 * dir.c [WINDOWS32]: make case sensitivity configurable
1789 * README.W32: Document case sensitivity
1790 * config.ami: Share case warping code with Windows
1792 Mon Oct 6 18:48:45 CDT 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1794 * w32/subproc/sub_proc.c: Added support for MKS toolkit shell
1795 (turn on HAVE_MKS_SHELL).
1796 * read.c [WINDOWS32]: Fixed a problem with multiple target rules
1797 reported by Gilbert Catipon (gcatipon@tibco.com). If multiple
1798 path tokens in a rule did not have drive letters, make would
1799 incorrectly concatenate the 2 tokens together.
1800 * main.c/variable.c [WINDOWS32]: changed SHELL detection code to
1801 follow what MSDOS did. In addition to watching for SHELL variable
1802 updates, make's main will attempt to default the value of SHELL
1803 before and after makefiles are parsed.
1804 * job.c/job.h [WINDOWS32]: The latest changes made to enable use
1805 of the GNUWIN32 shell from make could cause make to fail due to a
1806 concurrency condition between parent and child processes. Make
1807 now creates a batch file per job instead of trying to reuse the
1808 same singleton batch file.
1809 * job.c/job.h/function.c/config.h.W32 [WINDOWS32]: Renamed macro
1810 from HAVE_CYGNUS_GNUWIN32_TOOLS to BATCH_MODE_ONLY_SHELL. Reworked
1811 logic to reduce complexity. WINDOWS32 now uses the unixy_shell
1812 variable to detect Bourne-shell compatible environments. There is
1813 also a batch_mode_shell variable that determines whether not
1814 command lines should be executed via script files. A WINDOWS32
1815 system with no sh.exe installed would have unixy_shell set to
1816 FALSE and batch_mode_shell set to TRUE. If you have a unixy shell
1817 that does not behave well when invoking things via 'sh -c xxx',
1818 you may want to turn on BATCH_MODE_ONLY_SHELL and see if things
1820 * NMakefile: Added /D DEBUG to debug build flags so that unhandled
1821 exceptions could be debugged.
1823 Mon Oct 6 00:04:25 1997 Rob Tulloh <rob_tulloh@dev.tivoli.com>
1825 * main.c [WINDOWS32]: The function define_variable() does not
1826 handle NULL. Test before calling it to set Path.
1827 * main.c [WINDOWS32]: Search Path again after makefiles have been
1828 parsed to detect sh.exe.
1829 * job.c [WINDOWS32]: Added support for Cygnus GNU WIN32 tools.
1830 To use, turn on HAVE_CYGNUS_GNUWIN32_TOOLS in config.h.W32.
1831 * config.h.W32: Added HAVE_CYGNUS_GNUWIN32_TOOLS macro.
1833 Sun Oct 5 22:43:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1835 * glob/glob.c (glob_in_dir) [VMS]: Globbing shouldn't be
1837 * job.c (child_execute_job) [VMS]: Use a VMS .com file if the
1838 command contains a newline (e.g. from a define/enddef block).
1839 * vmsify.c (vmsify): Return relative pathnames wherever possible.
1840 * vmsify.c (vmsify): An input string like "../.." returns "[--]".
1842 Wed Oct 1 15:45:09 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1844 * NMakefile: Changed nmake to $(MAKE).
1845 * subproc.bat: Take the make command name from the command
1846 line. If no command name was given, default to nmake.
1847 * job.c [MSDOS, WINDOWS32]: Fix memory stomp: temporary file names
1848 are now always created in heap memory.
1849 * w32/subproc/sub_proc.c: New implementation of make_command_line()
1850 which is more compatible with different Bourne shell implementations.
1851 Deleted the now obsolete fix_command_line() function.
1852 * main.c [WINDOWS32]: Any arbitrary spelling of Path can be
1853 detected. Make will ensure that the special spelling `Path' is
1854 inserted into the environment when the path variable is propagated
1855 within itself and to make's children.
1856 * main.c [WINDOWS32]: Detection of sh.exe was occurring too
1857 soon. The 2nd check for the existence of sh.exe must come after
1858 the call to read_all_makefiles().
1860 Fri Sep 26 01:14:18 1997 <zinser@axp602.gsi.de>
1862 * makefile.com [VMS]: Fixed definition of sys.
1863 * readme.vms: Comments on what's changed lately.
1865 Fri Sep 26 01:14:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1867 * read.c (read_all_makefiles): Allow make to find files named
1868 "MAKEFILE" with no extension on VMS.
1869 * file.c (lookup_file): Lowercase filenames on VMS.
1871 1997-09-29 Paul D. Smith <psmith@baynetworks.com>
1873 * read.c (read_makefile): Reworked target detection again; the old
1874 version had an obscure quirk.
1876 Fri Sep 19 09:20:49 1997 Paul D. Smith <psmith@baynetworks.com>
1878 * Version 3.76.1 released.
1880 * Makefile.am: Add loadavg files to clean rules.
1882 * configure.in (AC_OUTPUT): Remove stamp-config; no longer needed.
1883 * Makefile.ami (distclean): Ditto.
1884 * SMakefile (distclean): Ditto.
1886 * main.c (main): Arg count should be int, not char! Major braino.
1888 Tue Sep 16 10:18:22 1997 Paul D. Smith <psmith@baynetworks.com>
1890 * Version 3.76 released.
1892 Tue Sep 2 10:07:39 1997 Paul D. Smith <psmith@baynetworks.com>
1894 * function.c (expand_function): When processing $(shell...)
1895 translate a CRLF (\r\n) sequence as well as a newline (\n) to a
1896 space. Also remove an ending \r\n sequence.
1897 * make.texinfo (Shell Function): Document it.
1899 Fri Aug 29 12:59:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1901 * w32/pathstuff.c (convert_Path_to_windows32): Fix problem where
1902 paths which contain single character entries like `.' are not
1905 * README.W32: Document path handling issues on Windows systems.
1907 Fri Aug 29 02:01:27 1997 Paul D. Smith <psmith@baynetworks.com>
1911 Thu Aug 28 19:39:06 1997 Rob Tulloh <rob_tulloh@tivoli.com>
1913 * job.c (exec_command) [WINDOWS32]: If exec_command() is invoked
1914 from main() to re-exec make, the call to execvp() would
1915 incorrectly return control to parent shell before the exec'ed
1916 command could run to completion. I believe this is a feature of
1917 the way that execvp() is implemented on top of WINDOWS32 APIs. To
1918 alleviate the problem, use the supplied process launch function in
1919 the sub_proc library and suspend the parent process until the
1920 child process has run. When the child exits, exit the parent make
1921 with the exit code of the child make.
1923 Thu Aug 28 17:04:47 1997 Paul D. Smith <psmith@baynetworks.com>
1925 * Makefile.DOS.template (distdir): Fix a line that got wrapped in
1928 * Makefile.am (loadavg): Give the necessary cmdline options when
1931 * configure.in: Check for pstat_getdynamic for getloadvg on HP.
1933 * job.c (start_job_command) [VMS, _AMIGA]: Don't perform empty
1934 command optimization on these systems; it doesn't make sense.
1936 Wed Aug 27 17:09:32 1997 Paul D. Smith <psmith@baynetworks.com>
1940 Tue Aug 26 11:59:15 1997 Paul D. Smith <psmith@baynetworks.com>
1942 * main.c (print_version): Add '97 to copyright years.
1944 * read.c (do_define): Check the length of the array before looking
1945 at a particular offset.
1947 * job.c (construct_command_argv_internal): Examine the last byte
1948 of the previous arg, not the byte after that.
1950 Sat Aug 23 1997 Eli Zaretskii <eliz@is.elta.co.il>
1952 * Makefile.DOS.template: New file (converted to Makefile.DOS in
1955 * configure.bat: Rewrite to use Makefile.DOS instead of editing
1956 Makefile.in. Add support for building from outside of the source
1957 directory. Fail if the environment block is too small.
1959 * configh.dos: Use <sys/config.h>.
1961 * README.DOS: Update instructions.
1963 Fri Aug 22 1997 Eli Zaretskii <eliz@is.elta.co.il>
1965 * job.c (start_job_command) [__MSDOS__]: Don't test for "/bin/sh"
1966 literally, use value of unixy_shell instead.
1968 * filedef.h (NEW_MTIME): Use 1 less than maximum possible value if
1971 Sat Aug 16 00:56:15 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1973 * vmsify.c (vmsify, case 11): After translating `..' elements, set
1974 nstate to N_OPEN if there are still more elements to process.
1975 (vmsify, case 2): After translating `foo/bar' up to the slash,
1976 set nstate to N_OPEN, not N_DOT.
1978 Fri Aug 8 15:18:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1980 * dir.c (vmsstat_dir): Leave name unmodified on exit.
1981 * make.h (PATH_SEPARATOR_CHAR): Set to comma for VMS.
1982 * vpath.c: Fix comments to refer to path separator, not colon.
1983 (selective_vpath_search): Avoid Unixy slash handling for VMS.
1985 Thu Aug 7 22:24:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu>
1987 * ar.c [VMS]: Don't declare ar_member_touch.
1988 Delete VMS version of ar_member_date.
1989 Enable non-VMS versions of ar_member_date and ar_member_date_1 for
1991 * arscan.c (VMS_get_member_info): New function.
1992 (ar_scan): Provide version for VMS systems.
1993 (ar_name_equal): Simply compare name and mem on VMS systems.
1994 Don't define ar_member_pos or ar_member_touch on VMS systems.
1996 * config.h-vms (pid_t, uid_t): Don't define.
1998 * remake.c: Delete declaration of vms_stat.
1999 (name_mtime): Don't call vms_stat.
2000 (f_mtime) [VMS]: Funky time value manipulation no longer necessary.
2002 * file.c (print_file): [VMS] Use ctime, not cvt_time.
2004 * make.h [VMS]: Don't define POSIX.
2006 * makefile.com (filelist): Include ar and arscan.
2007 Also include them in the link commands.
2008 Don't define NO_ARCHIVES in cc command.
2010 * makefile.vms (ARCHIVES, ARCHIVES_SRC): Uncomment.
2011 (defines): Delete NO_ARCHIVES from list.
2013 * remake.c (f_mtime): Only check to see if intermediate file is
2014 out of date if it also exists (i.e., mtime != (time_t) -1).
2016 * vmsdir.h (u_long, u_short): Skip typedefs if using DEC C.
2018 Fri Jun 20 23:02:07 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2020 * w32/subproc/sub_proc.c: Get W32 sub_proc to handle shebang
2021 (#!/bin/sh) in script files correctly.
2022 Fixed a couple of memory leaks.
2023 Fixed search order in find_file() (w32/subproc/sub_proc.c) so that
2024 files with extensions are preferred over files without extensions.
2025 Added search for files with .cmd extension too.
2026 * w32/subproc/misc.c (arr2envblk): Fixed memory leak.
2028 Mon Aug 18 09:41:08 1997 Paul D. Smith <psmith@baynetworks.com>
2032 Fri Aug 15 13:50:54 1997 Paul D. Smith <psmith@baynetworks.com>
2034 * read.c (do_define): Remember to count the newline after the endef.
2036 Thu Aug 14 23:14:37 1997 Paul D. Smith <psmith@baynetworks.com>
2038 * many: Rewrote builds to use Automake 1.2.
2040 * AUTHORS: New file.
2041 * maintMakefile: Contains maintainer-only make snippets.
2042 * GNUmakefile: This now only runs the initial auto* tools.
2043 * COPYING,texinfo.tex,mkinstalldirs,install-sh: Removed (obtained
2044 automatically by automake).
2045 * compatMakefile: Removed (not needed anymore).
2046 * README,build.sh.in: Removed (built from templates).
2047 * config.h.in,Makefile.in: Removed (built by tools).
2049 Wed Aug 13 02:22:08 1997 Paul D. Smith <psmith@baynetworks.com>
2051 * make.texinfo: Updates for DOS/Windows information (Eli Zaretskii)
2052 * README,README.DOS: Ditto.
2054 * remake.c (update_file_1,f_mtime): Fix GPATH handling.
2055 * vpath.c (gpath_search): Ditto.
2057 * file.c (rename_file): New function: rehash, but also rename to
2059 * filedef.h: Declare it.
2061 * variable.c (merge_variable_set_lists): Remove free() of variable
2062 set; since various files can share variable sets we don't want to
2065 Tue Aug 12 10:51:54 1997 Paul D. Smith <psmith@baynetworks.com>
2067 * configure.in: Require autoconf 2.12
2069 * make.texinfo: Replace all "cd subdir; $(MAKE)" examples with a
2070 more stylistically correct "cd subdir && $(MAKE)".
2072 * main.c: Global variable `clock_skew_detected' defined.
2073 (main): Print final warning if it's set.
2074 * make.h: Declare it.
2075 * remake.c (f_mtime): Test and set it.
2077 * job.c (start_job_command): Add special optimizations for
2078 "do-nothing" rules, containing just the shell no-op ":". This is
2079 useful for timestamp files and can make a real difference if you
2080 have a lot of them (requested by Fergus Henderson <fjh@cs.mu.oz.au>).
2082 * configure.in,Makefile.in: Rewrote to use the new autoconf
2083 program_transform_name macro.
2085 * function.c (function_strip): Strip newlines as well as spaces
2088 Fri Jun 6 23:41:04 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2090 * remake.c (f_mtime): Datestamps on FAT-based files are rounded to
2091 even seconds when stored, so if the date check fails on WINDOWS32
2092 systems, see if this "off-by-one" error is the problem.
2094 * General: If your TZ environment variable is not set correctly
2095 then all your timestamps will be off by hours. So, set it!
2097 Mon Apr 7 02:06:22 1997 Paul D. Smith <psmith@baynetworks.com>
2101 * compatMakefile (objs): Define & use the $(GLOB) variable so
2102 that it's removed correctly from build.sh.in when it's built.
2104 * configure.in: On Solaris we can use the kstat_*() functions to
2105 get load averages without needing special permissions. Add a
2106 check for -lkstat to see if we have it.
2108 * getloadavg.c (getloadavg): Use HAVE_LIBKSTAT instead of SUN5 as
2109 the test to enable kstat_open(), etc. processing.
2111 Fri Apr 4 20:21:18 1997 Eli Zaretskii <eliz@is.elta.co.il>
2113 * <lots>: Fixes to work in the DJGPP DOS environment.
2115 Mon Mar 31 02:42:52 1997 Paul D. Smith <psmith@baynetworks.com>
2117 * function.c (expand_function): Added new function $(wordlist).
2119 * make.texinfo (Filename Functions): Document $(wordlist) function.
2121 * vpath.c (build_vpath_lists): Construct the GPATH variable
2122 information in the same manner we used to construct VPATH.
2123 (gpath_search): New function to search GPATH.
2125 * make.h: Declare the new function.
2127 * remake.c (update_file_1): Call it, and keep VPATH if it's found.
2129 * make.texinfo (Search Algorithm): Document GPATH variable.
2131 Sun Mar 30 20:57:16 1997 Paul D. Smith <psmith@baynetworks.com>
2133 * main.c (handle_non_switch_argument): Defined the MAKECMDGOALS
2134 variable to contain the user options passed in on the cmd line.
2136 * make.texinfo (Goals): Document MAKECMDGOALS variable.
2138 * remake.c (f_mtime): Print a warning if we detect a clock skew
2139 error, rather than failing.
2141 * main.c (main): If we rebuild any makefiles and need to re-exec,
2142 add "-o<mkfile>" options for each makefile rebuilt to avoid
2145 Fri Mar 28 15:26:05 1997 Paul D. Smith <psmith@baynetworks.com>
2147 * job.c (construct_command_argv_internal): Track whether the last
2148 arg in the cmd string was empty or not (Roland).
2149 (construct_command_argv_internal): If the shell line is empty,
2150 don't do anything (Roland).
2152 * glob/glob.h,glob/glob.c,glob/fnmatch.c,glob/fnmatch.h: Install
2153 the latest changes from the GLIBC version of glob (Ulrich Drepper).
2155 * getloadavg.c,make-stds.texi: New version (Roland).
2157 * (ALL): Changed WIN32 to W32 or WINDOWS32 (RMS).
2159 Mon Mar 24 15:33:34 1997 Rob Tulloh <rob_tulloh@tivoli.com>
2161 * README.W32: Describe preliminary FAT support.
2163 * build_w32.bat: Use a variable for the final exe name.
2165 * dir.c (find_directory): W32: Find the filesystem type.
2166 (dir_contents_file_exists_p): W32: for FAT filesystems, always
2167 rehash since FAT doesn't change directory mtime on change.
2169 * main.c (handle_runtime_exceptions): W32: Add an
2170 UnhandledExceptionFilter so that when make bombs due to ^C or a
2171 bug, it won't cause a GUI requestor to pop up unless debug is
2175 Mon Mar 24 00:57:34 1997 Paul D. Smith <psmith@baynetworks.com>
2177 * configure.in, config.h.in, config.ami, config.h-vms, config.h.w32:
2178 Check for memmove() function.
2180 * make.h (bcopy): If memmove() available, define bcopy() to use it.
2181 Otherwise just use bcopy(). Don't use memcpy(); it's not guaranteed
2182 to handle overlapping moves.
2184 * read.c (read_makefile): Fix some uninitialized memory reads
2185 (reported by Purify).
2187 * job.c (construct_command_argv_internal): Use bcopy() not
2188 strcpy(); strcpy() isn't guaranteed to handle overlapping moves.
2190 * Makefile.in: Change install-info option ``--infodir'' to
2191 ``--info-dir'' for use with new texinfo.
2193 * function.c (expand_function): $(basename) and $(suffix) should
2194 only search for suffixes as far back as the last directory (e.g.,
2195 only the final filename in the path).
2197 Sun Mar 23 00:13:05 1997 Paul D. Smith <psmith@baynetworks.com>
2199 * make.texinfo: Add @dircategory/@direntry information.
2200 (Top): Remove previous reference to (dir) (from RMS).
2201 (Static Usage): Add "all:" rule to example.
2202 (Automatic Dependencies): fix .d file creation example.
2204 * Install VPATH+ patch:
2206 * filedef.h (struct file): Add in hname field to store the hashed
2207 filename, and a flag to remember if we're using the vpath filename
2208 or not. Renamed a few functions for more clarity.
2210 * file.c (lookup_file,enter_file,file_hash_enter): Store filenames
2211 in the hash table based on their "hash name". We can change this
2212 while keeping the original target in "name".
2213 (rehash_file): Renamed from "rename_file" to be more accurate.
2214 Changes the hash name, but not the target name.
2216 * remake.c (update_file_1): Modify -d output for more detailed
2217 VPATH info. If we don't need to rebuild, use the VPATH name.
2218 (f_mtime): Don't search for vpath if we're ignoring it. Call
2219 renamed function rehash_file. Call name_mtime instead of
2220 file_mtime, to avoid infinite recursion since the file wasn't
2223 * implicit.c (pattern_search): if we find an implicit file in
2224 VPATH, save the original name not the VPATH name.
2226 * make.texinfo (Directory Search): Add a section on the new VPATH
2229 Sun Dec 1 18:36:04 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2231 * dir.c (file_exists_p, file_impossible, file_impossible_p): If
2232 dirname is empty replace it by the name of the root directory.
2233 Note that this doesn't work (yet) for W32, Amiga, or VMS.
2235 Tue Oct 08 13:57:03 1996 Rob Tulloh <tulloh@tivoli.com>
2237 * main.c (main): W32 bug fix for PATH vars.
2239 Tue Sep 17 1996 Paul Eggert <eggert@twinsun.com>
2241 * filedef.h (NEW_MTIME): Don't assume that time_t is a signed
2244 * make.h: (CHAR_BIT, INTEGER_TYPE_SIGNED, INTEGER_TYPE_MAXIMUM,
2245 INTEGER_TYPE_MINIMUM): New macros.
2247 Tue Aug 27 01:06:34 1996 Roland McGrath <roland@baalperazim.frob.com>
2249 * Version 3.75 released.
2251 * main.c (print_version): Print out bug-reporting address.
2253 Mon Aug 26 19:55:47 1996 Roland McGrath <roland@baalperazim.frob.com>
2255 * main.c (print_data_base): Don't declare ctime; headers do it for us
2258 Sun Jul 28 15:37:09 1996 Rob Tulloh (tulloh@tivoli.com)
2260 * w32/pathstuff.c: Turned convert_vpath_to_w32() into a
2261 real function. This was done so that VPATH could contain
2262 white space separated pathnames. Please note that directory
2263 paths (in VPATH/vpath context) containing white space are not
2264 supported (just as they are not under Unix). See README.W32
2267 * w32/include/pathstuff.h: Added prototype for the new
2268 function convert_vpath_to_w32. Deleted macro for same.
2270 * README.W32: Added some notes about why I chose not to try
2271 and support pathnames which contain white space and some
2272 workaround suggestions.
2274 Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2276 * GNUmakefile (mkdep-nolib): Use -MM option unconditionally.
2280 * main.c (define_makeflags): Back up P to point at null terminator
2281 when killing final space and dash before setting MFLAGS.
2283 From Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>:
2284 * dir.c [__MSDOS__ && DJGPP > 1]: Include <libc/dosio.h> and defin
2285 `__opendir_flags' initialized to 0.
2286 (dosify) [__MSDOS__ && DJGPP > 1]: Return name unchanged if _USE_LFN.
2287 (find_directory) [__MSDOS__ && DJGPP > 1]: If _USE_LGN, set
2288 __opendir_flags to __OPENDIR_PRESERVE_CASE.
2290 * vmsfunctions.c (vms_stat): `sys$dassgn (DevChan);' added by kkaempf.
2292 * GNUmakefile (w32files): Add NMakefile.
2294 * NMakefile (LDFLAGS_debug): Value fixed by tulloh.
2296 Sat Jul 20 12:32:10 1996 Klaus Kämpf (kkaempf@progis.de)
2298 * remake.c (f_mtime) [VMS]: Add missing `if' conditional for future
2300 * config.h-vms, makefile.vms, readme.vms, vmsify.c: Update address.
2302 Sat Jul 20 05:29:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2304 * configure.in: Require autoconf 2.10 or later.
2306 Fri Jul 19 16:57:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2310 * GNUmakefile (w32files): New variable.
2311 (distfiles): Add it.
2312 * w32: Updated by Rob Tulloh.
2314 * makefile.vms (LOADLIBES): Fix typo.
2316 Sun Jul 14 12:59:27 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2318 * job.c (construct_command_argv_internal): Fix up #else, #endifs.
2320 * configh.dos: Define HAVE_DIRENT_H instead of DIRENT.
2322 * remake.c (f_mtime): Don't compare MTIME to NOW if MTIME == -1.
2326 * main.c (main): Exit with status 2 when update_goal_chain returns 2.
2328 Sat Jun 22 14:56:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2330 * configure.in: Don't check for _sys_siglist.
2331 * make.h [HAVE__SYS_SIGLIST]: Don't test this; just punt if there is
2332 no strsignal or sys_siglist.
2334 * read.c (conditional_line): Strip ws in `ifeq (a , b)' so it is the
2335 same as `ifeq (a, b)'.
2337 * job.c (reap_children): Don't call die if handling_fatal_signal.
2339 * file.c (file_hash_enter): Allow renaming :: to : when latter is
2340 non-target, or : to :: when former is non-target.
2342 * job.c (start_job_command): Call block_sigs.
2343 (block_sigs): New function, broken out of start_job_command.
2344 (reap_children): Block fatal signals around removing dead child from
2345 chain and adjusting job_slots_used.
2346 * job.h: Declare block_sigs.
2348 * remote-stub.c (remote_setup, remote_cleanup): New (empty) functions.
2349 * main.c (main): Call remote_setup.
2350 (die): Call remote_cleanup.
2352 * job.c (reap_children): Quiescent value of shell_function_pid is
2355 * main.c (print_version): Add 96 to copyright years.
2357 Sat Jun 15 20:30:01 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2359 * read.c (find_char_unquote): Avoid calling strlen on every call
2360 just to throw away the value most of the time.
2362 Sun Jun 2 12:24:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2364 * main.c (decode_env_switches): Prepend '-' to ARGV[1] if it contains
2365 no '=', regardless of ARGC.
2366 (define_makeflags): Elide leading '-' from MAKEFLAGS value if first
2367 word is short option, regardless of WORDS.
2369 Wed May 22 17:24:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2371 * makefile.vms: Set LOADLIBES.
2372 * makefile.com (link_using_library): Fix typo.
2374 Wed May 15 17:37:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2376 * dir.c (print_dir_data_base): Use %ld dev and ino and cast them to
2379 Wed May 15 10:14:14 CDT 1996 Rob Tulloh <tulloh@tivoli.com>
2381 * dir.c: W32 does not support inode. For now, fully qualified
2382 pathname along with st_mtime will be keys for files.
2383 Fixed problem where vpath can be confused when files
2384 are added to a directory after the directory has already been
2385 read in. The code now attempts to reread the directory if it
2386 discovers that the datestamp on the directory has changed since
2387 it was cached by make. This problem only seems to occur on W32
2388 right now so it is lumped under port #ifdef WINDOWS32.
2390 * function.c: W32: call subproc library (CreateProcess()) instead of
2393 * job.c: W32: Added the code to do fork/exec/waitpid style processing
2394 on W32 systems via calls to subproc library.
2396 * main.c: W32: Several things added here. First, there is code
2397 for dealing with PATH and SHELL defaults. Make tries to figure
2398 out if the user has %PATH% set in the environment and sets it to
2399 %Path% if it is not set already. Make also looks to see if sh.exe
2400 is anywhere to be found. Code path through job.c will change
2401 based on existence of a working Bourne shell. The checking for
2402 default shell is done twice: once before makefiles are read in
2403 and again after. Fall back to MSDOS style execution mode if no sh.exe
2404 is found. Also added some debug support that allows user to pause make
2405 with -D switch and attach a debugger. This is especially useful for
2406 debugging recursive calls to make where problems appear only in the
2409 * make.h: W32: A few macros and header files for W32 support.
2411 * misc.c: W32: Added a function end_of_token_w32() to assist
2412 in parsing code in read.c.
2414 * read.c: W32: Fixes similar to MSDOS which allow colon to
2415 appear in filenames. Use of colon in filenames would otherwise
2418 * remake.c: W32: Added include of io.h to eliminate compiler
2419 warnings. Added some code to default LIBDIR if it is not set
2422 * variable.c: W32: Added support for detecting Path/PATH
2423 and converting them to semicolon separated lists for make's
2424 internal use. New function sync_Path_environment()
2425 which is called in job.c and function.c before creating a new
2426 process. Caller must set Path in environment since we don't
2427 have fork() to do this for us.
2429 * vpath.c: W32: Added detection for filenames containing
2430 forward or backward slashes.
2432 * NMakefile: W32: Visual C compatible makefile for use with nmake.
2433 Use this to build GNU make the first time on Windows NT or Windows 95.
2435 * README.W32: W32: Contains some helpful notes.
2437 * build_w32.bat: W32: If you don't like nmake, use this the first
2438 time you build GNU make on Windows NT or Windows 95.
2440 * config.h.W32: W32 version of config.h
2442 * subproc.bat: W32: A bat file used to build the
2443 subproc library from the top-level NMakefile. Needed because
2444 WIndows 95 (nmake) doesn't allow you to cd in a make rule.
2446 * w32/include/dirent.h
2447 * w32/compat/dirent.c: W32: opendir, readdir, closedir, etc.
2449 * w32/include/pathstuff.h: W32: used by files needed functions
2450 defined in pathstuff.c (prototypes).
2452 * w32/include/sub_proc.h: W32: prototypes for subproc.lib functions.
2454 * w32/include/w32err.h: W32: prototypes for w32err.c.
2456 * w32/pathstuff.c: W32: File and Path/Path conversion functions.
2458 * w32/subproc/build.bat: W32: build script for subproc library
2459 if you don't wish to use nmake.
2461 * w32/subproc/NMakefile: W32: Visual C compatible makefile for use
2462 with nmake. Used to build subproc library.
2464 * w32/subproc/misc.c: W32: subproc library support code
2465 * w32/subproc/proc.h: W32: subproc library support code
2466 * w32/subproc/sub_proc.c: W32: subproc library source code
2467 * w32/subproc/w32err.c: W32: subproc library support code
2469 Mon May 13 14:37:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2473 * GNUmakefile (vmsfiles): Fix typo.
2475 * GNUmakefile (amigafiles): Add amiga.h.
2477 Sun May 12 19:19:43 1996 Aaron Digulla <digulla@fh-konstanz.de>
2479 * dir.c: New function: amigafy() to fold filenames
2480 Changes HASH() to HASHI() to fold filenames on Amiga.
2481 Stringcompares use strieq() instead of streq()
2482 The current directory on Amiga is "" instead of "."
2485 * amiga.c: New function wildcard_expansion(). Allows to use
2486 Amiga wildcards with $(wildcard )
2488 * amiga.h: New file. Prototypes for amiga.c
2490 * function.c: Use special function wildcard_expansion() for
2491 $(wildcard ) to allow Amiga wildcards
2492 The current directory on Amiga is "" instead of "."
2494 * job.c: No Pipes on Amiga, too
2495 (load_too_high) Neither on Amiga
2496 ENV variable on Amiga are in a special directory and are not
2497 passed as third argument to main().
2499 * job.h: No envp on Amiga
2501 * make.h: Added HASHI(). This is the same as HASH() but converts
2502 it's second parameter to lowercase on Amiga to fold filenames.
2504 * main.c: (main), variable.c Changed handling of ENV-vars. Make
2505 stores now the names of the variables only and reads their contents
2506 when they are accessed to reflect that these variables are really
2507 global (ie. they CAN change WHILE make runs !) This handling is
2508 made in lookup_variable()
2510 * Makefile.ami: renamed file.h to filedep.h
2511 Updated dependencies
2513 * read.c: "find_semicolon" is declared as static but never defined.
2514 No difference between Makefile and makefile on Amiga; added
2515 SMakefile to *default_makefiles[].
2516 (read_makefile) SAS/C want's two_colon and pattern_percent be set
2518 The current directory on Amiga is "" instead of "."
2519 Strange #endif moved.
2521 * README.Amiga: updated feature list
2523 * SMakefile: Updated dependencies
2525 * variable.c: Handling of ENV variable happens inside lookup_variable()
2527 Sat May 11 17:58:32 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2529 * variable.c (try_variable_definition): Count parens in lhs variable
2530 refs to avoid seeing =/:=/+= inside a ref.
2532 Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2534 * commands.c (fatal_error_signal) [SIGQUIT]: Make SIGQUIT check
2537 * main.c (main): Use unsigned for fread return.
2539 * read.c (parse_file_seq): Use `int' for char arg to avoid widening
2541 * dep.h: Fix prototype.
2543 * function.c (expand_function) [_AMIGA]: Fix some typos.
2544 (patsubst_expand): Make len vars unsigned.
2546 * GNUmakefile (globfiles): Add AmigaDOS support files.
2547 (distfiles): Add $(amigafiles).
2548 (amigafiles): New variable.
2550 Thu Nov 7 10:18:16 1995 Aaron Digulla <digulla@fh-konstanz.de>
2552 * Added Amiga support in commands.c, dir.c, function.c,
2553 job.c, main.c, make.h, read.c, remake.c
2554 * commands.c: Amiga has neither SIGHUP nor SIGQUIT
2555 * dir.c: Amiga has filenames with Upper- and Lowercase,
2556 but "FileName" is the same as "filename". Added strieq()
2557 which is use to compare filenames. This is like streq()
2558 on all other systems. Also there is no such thing as
2560 * function.c: On Amiga, the environment is not passed as envp,
2561 there are no pipes and Amiga can't fork. Use my own function
2562 to create a new child.
2563 * job.c: default_shell is "" (The system automatically chooses
2564 a shell for me). Have to use the same workaround as MSDOS for
2565 running batch commands. Added HAVE_SYS_PARAM_H. NOFILE isn't
2566 known on Amiga. Cloned code to run children from MSDOS. Own
2567 version of sh_chars[] and sh_cmds[]. No dup2() or dup() on Amiga.
2568 * main.c: Force stack to 20000 bytes. Read environment from ENV:
2569 device. On Amiga, exec_command() does return, so I exit()
2571 * make.h: Added strieq() to compare filenames.
2572 * read.c: Amiga needs special extension to have passwd. Only
2573 one include-dir. "Makefile" and "makefile" are the same.
2574 Added "SMakefile". Added special code to handle device names (xxx:)
2576 * remake.c: Only one lib-dir. Amiga link-libs are named "%s.lib"
2577 instead of "lib%s.a".
2578 * main.c, rule.c, variable.c: Avoid floats at all costs.
2579 * vpath.c: Get rid of as many alloca()s as possible.
2581 Thu May 9 13:20:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2583 * read.c (read_makefile): Grok `sinclude' as alias for `-include'.
2585 Wed Mar 20 09:52:27 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2587 * GNUmakefile (vmsfiles): New variable.
2588 (distfiles): Include $(vmsfiles).
2590 Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2592 Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>.
2593 * make.h (PARAMS): New macro.
2594 * config.h-vms: New file.
2595 * makefile.com: New file.
2596 * makefile.vms: New file.
2597 * readme.vms: New file.
2598 * vmsdir.h: New file.
2599 * vmsfunctions.c: New file.
2600 * vmsify.c: New file.
2601 * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr.
2602 * ar.c: Added prototypes and changes for VMS.
2603 * commands.c: Likewise.
2604 * commands.h: Likewise.
2605 * default.c: Likewise.
2608 * expand.c: Likewise.
2610 * function.c: Likewise.
2611 * implicit.c: Likewise.
2618 * remake.c: Likewise.
2619 * remote-stub.c: Likewise.
2622 * variable.c: Likewise.
2623 * variable.h: Likewise.
2624 * vpath.c: Likewise.
2625 * compatMakefile (srcs): Rename file.h to filedef.h.
2627 Sat Aug 19 23:11:00 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2629 * remake.c (check_dep): For a secondary file, try implicit and
2630 default rules if appropriate.
2632 Wed Aug 2 04:29:42 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2634 * remake.c (check_dep): If an intermediate file exists,
2635 do consider its actual date.
2637 Sun Jul 30 00:49:53 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
2639 * file.h (struct file): New field `secondary'.
2640 * file.c (snap_deps): Check for .INTERMEDIATE and .SECONDARY.
2641 (remove_intermediates): Don't delete .SECONDARY files.
2643 Sat Mar 2 16:26:52 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2645 * compatMakefile (srcs): Add getopt.h; prepend $(srcdir)/ to getopt*.
2647 Fri Mar 1 12:04:47 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2651 * remake.c (f_mtime): Move future modtime check before FILE is
2652 clobbered by :: loop.
2654 * dir.c: Use canonical code from autoconf manual for dirent include.
2655 [_D_NAMLEN]: Redefine NAMLEN using this.
2656 (dir_contents_file_exists_p): Use NAMLEN macro.
2657 (read_dirstream) [_DIRENT_HAVE_D_NAMLEN]: Only set d_namlen #if this.
2659 * compatMakefile (objs): Add missing backslash.
2661 Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>
2663 * default.c (default_terminal_rules): Remove + prefix from RCS cmds.
2664 (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
2666 * remake.c (f_mtime): Check for future timestamps; give error and mark
2667 file as "failed to update".
2669 Fri Jan 12 18:09:36 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2671 * job.c: Don't declare unblock_sigs; job.h already does.
2673 Sat Jan 6 16:24:44 1996 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2675 * acconfig.h (HAVE_SYSCONF_OPEN_MAX): #undef removed.
2677 * job.c (NGROUPS_MAX): Don't try to define this macro.
2679 Fri Dec 22 18:44:44 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2681 * compatMakefile (GETOPT, GETOPT_SRC, GLOB): Variables removed.
2682 (objs, srcs): Include their values here instead of references.
2684 Thu Dec 14 06:21:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2688 * job.c (reap_children): Call unblock_sigs after start_job_command.
2690 Thu Dec 14 07:22:03 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
2692 * dir.c (dir_setup_glob): Don't use lstat; glob never calls it anyway.
2693 Avoid & before function names to silence bogus sunos4 compiler.
2695 * configure.in: Remove check for `sysconf (_SC_OPEN_MAX)'.
2697 Tue Dec 12 00:48:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2701 * dir.c (read_dirstream): Fix braino: fill in the buffer when not
2704 Mon Dec 11 22:26:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2706 * misc.c (collapse_continuations): Fix skipping of trailing \s so
2707 it can never dereference before the beginning of the array.
2709 * read.c (find_semicolon): Function removed.
2710 (read_makefile): Don't use find_semicolon or remove_comments for
2711 rule lines. Use find_char_unquote directly and handle quoted comments
2714 * default.c: Remove all [M_XENIX] code.
2716 * dir.c [HAVE_D_NAMLEN]: Define this for __GNU_LIBRARY__ > 1.
2717 (D_NAMLEN): Macro removed.
2718 (FAKE_DIR_ENTRY): New macro.
2719 (dir_contents_file_exists_p): Test HAVE_D_NAMLEN instead of using
2721 (read_dirstream): Return a struct dirent * for new glob interface.
2722 (init_dir): Function removed.
2723 (dir_setup_glob): New function.
2724 * main.c (main): Don't call init_dir.
2725 * read.c (multi_glob): Call dir_setup_glob on our glob_t and use
2726 GLOB_ALTDIRFUNC flag.
2728 * misc.c (safe_stat): Function removed.
2729 * read.c, commands.c, remake.c, vpath.c: Use plain stat instead of
2732 Sat Nov 25 20:35:18 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2734 * job.c [HAVE_UNION_WAIT]: Include sys/wait.h.
2736 * main.c (log_working_directory): Made global.
2737 Print entering msg only once.
2738 * make.h (log_working_directory): Declare it.
2739 * misc.c (message): Take new arg PREFIX. Print "make: " only if
2740 nonzero. Call log_working_directory.
2741 * remake.c: Pass new arg in `message' calls.
2742 * job.c (start_job_command): Pass new arg to `message'; fix
2743 inverted test in that call.
2745 Tue Nov 21 19:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2747 * job.c (start_job_command): Use `message' to print the command,
2748 and call it with null if the command is silent.
2749 * remake.c (touch_file): Use message instead of printf.
2751 Tue Oct 10 14:59:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2753 * main.c (enter_command_line_file): Barf if NAME is "".
2755 Sat Sep 9 06:33:20 1995 Roland McGrath <roland@whiz-bang.gnu.ai.mit.edu>
2757 * commands.c (delete_target): Ignore unlink failure if it is ENOENT.
2759 Thu Aug 17 15:08:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2761 * configure.in: Don't check for getdtablesize.
2762 * job.c (getdtablesize): Remove decls and macros.
2764 Thu Aug 10 19:10:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2766 * main.c (define_makeflags): Omit command line variable
2767 definitions from MFLAGS value.
2769 * arscan.c (ar_scan) [AIAMAG]: Check for zero MEMBER_OFFSET,
2770 indicating a valid, but empty, archive.
2772 Mon Aug 7 15:40:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2774 * dir.c (file_impossible_p): Correctly reset FILENAME to name
2775 within directory before hash search.
2777 * job.c (child_error): Do nothing if IGNORED under -s.
2779 * job.c (exec_command): Correctly use ARGV[0] for script name when
2780 running shell directly.
2782 Tue Aug 1 14:39:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2784 * job.c (child_execute_job): Close STDIN_FD and STDOUT_FD after
2785 dup'ing from them. Don't try to close all excess descriptors;
2786 getdtablesize might return a huge value. Any open descriptors in
2787 the parent should have FD_CLOEXEC set.
2788 (start_job_command): Set FD_CLOEXEC flag on BAD_STDIN descriptor.
2790 Tue Jun 20 03:47:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2792 * read.c (read_all_makefiles): Properly append default makefiles
2793 to the end of the `read_makefiles' chain.
2795 Fri May 19 16:36:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2797 * Version 3.74 released.
2799 Wed May 10 17:43:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2803 Tue May 9 17:15:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2805 * compatMakefile ($(infodir)/make.info): Make sure $$dir is set in
2808 Wed May 3 15:56:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2810 * file.c (print_file): Grok update_status of 1 for -q.
2812 Thu Apr 27 12:39:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2816 Wed Apr 26 17:15:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2818 * file.c (remove_intermediates): Fix inverted test to bail under
2819 -n for signal case. Bail under -q or -t.
2820 Skip files with update_status==-1.
2822 * job.c (job_next_command): Skip empty lines.
2823 (new_job): Don't test the return of job_next_command.
2824 Just let start_waiting_job handle the case of empty commands.
2826 Wed Apr 19 03:25:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2828 * function.c [__MSDOS__]: Include <fcntl.h>. From DJ Delorie.
2832 Sat Apr 8 14:53:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2834 * remake.c (notice_finished_file): Set FILE->update_status to zero
2837 Wed Apr 5 00:20:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2839 * Version 3.73 released.
2841 Tue Mar 28 13:25:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2843 * main.c (main): Fixed braino in assert.
2847 Mon Mar 27 05:29:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2849 * main.c: Avoid string in assert expression. Some systems are broken.
2851 Fri Mar 24 00:32:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2853 * main.c (main): Handle 1 and 2 returns from update_goal_chain
2854 makefile run properly.
2858 * main.c (handle_non_switch_argument): New function, broken out of
2860 (decode_switches): Set optind to 0 to reinitialize getopt, not to 1.
2861 When getopt_long returns EOF, break the loop and handle remaining args
2862 with a simple second loop.
2864 * remake.c (remake_file): Set update_status to 2 instead of 1 for
2865 no rule to make. Mention parent (dependent) in error message.
2866 (update_file_1): Handle FILE->update_status == 2 in -d printout.
2867 * job.c (start_job_command, reap_children): Set update_status to 2
2868 instead of 1 for failed commands.
2870 Tue Mar 21 16:23:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2872 * job.c (search_path): Function removed (was already #if 0'd out).
2873 * configure.in: Remove AC_TYPE_GETGROUPS; nothing needs it any more.
2875 Fri Mar 17 15:57:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2877 * configure.bat: Write @CPPFLAGS@ translation.
2879 Mon Mar 13 00:45:59 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2881 * read.c (parse_file_seq): Rearranged `l(a b)' -> `l(a) l(b)' loop
2882 to not skip the elt immediately preceding `l(...'.
2884 Fri Mar 10 13:56:49 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2888 * read.c (find_char_unquote): Make second arg a string of stop
2889 chars instead of a single stop char. Stop when any char in the
2890 string is hit. All callers changed.
2891 (find_semicolon): Pass stop chars "#;" to one find_char_unquote call,
2892 instead of using two calls. If the match is not a ; but a #,
2894 * misc.c: Changed find_char_unquote callers here too.
2898 * read.c (read_makefile, parse_file_seq): Fix typo __MS_DOS__ ->
2901 * GNUmakefile (globfiles): Add glob/configure.bat.
2902 (distfiles): Add configh.dos, configure.bat.
2904 Wed Mar 8 13:10:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2906 Fixes for MS-DOS from DJ Delorie.
2907 * read.c (read_makefile, parse_file_seq) [__MS_DOS__]: Don't see :
2908 as separator in "C:\...".
2909 * configh.dos (STDC_HEADERS): Define only if undefined.
2910 (HAVE_SYS_PARAM_H): Don't define this.
2911 (HAVE_STRERROR): Define this.
2912 * job.c (construct_command_argv_internal) [__MSDOS__]: Fix typos.
2916 * main.c (decode_switches): Reset optind to 1 instead of 0.
2918 Tue Mar 7 17:31:06 1995 Roland McGrath <roland@geech.gnu.ai.mit.edu>
2920 * main.c (decode_switches): If non-option arg is "-", ignore it.
2922 Mon Mar 6 23:57:38 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2926 Wed Feb 22 21:26:36 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2930 Tue Feb 21 22:10:43 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2932 * main.c (main): Pass missing arg to tmpnam.
2934 * configure.in: Check for strsignal.
2935 * job.c (child_error): Use strsignal.
2936 * main.c (main): Don't call signame_init #ifdef HAVE_STRSIGNAL.
2938 * misc.c (strerror): Fix swapped args in sprintf.
2940 Mon Feb 13 11:50:08 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2942 * configure.in (CFLAGS, LDFLAGS): Don't set these variables.
2944 Fri Feb 10 18:44:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2946 * main.c (print_version): Add 95 to copyright years.
2950 * job.c (start_job_command): Remember to call notice_finished_file
2951 under -n when not recursing. To do this, consolidate that code
2952 under the empty command case and goto there for the -n case.
2954 Tue Feb 7 13:36:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2956 * make.h [! STDC_HEADERS]: Don't declare qsort. Sun headers
2959 Mon Feb 6 17:37:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2961 * read.c (read_makefile): For bogus line starting with tab, ignore
2962 it if blank after removing comments.
2964 * main.c: Cast results of `alloca' to `char *'.
2965 * expand.c: Likewise.
2967 Sun Feb 5 18:35:46 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2971 * configure.in: Check for mktemp.
2972 * main.c (main) [! HAVE_MKTEMP]: Use tmpnam instead of mktemp.
2974 * configure.in (make_cv_sysconf_open_max): New check for `sysconf
2976 * acconfig.h: Added #undef HAVE_SYSCONF_OPEN_MAX.
2977 * job.c [HAVE_SYSCONF_OPEN_MAX] (getdtablesize): Define as macro
2980 Fri Jan 27 04:42:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2982 * remake.c (update_file_1): When !MUST_MAKE, don't set
2983 FILE->update_status to zero before calling notice_finished_file.
2984 (notice_finished_file): Touch only when FILE->update_status is zero.
2985 (remake_file): Set FILE->update_status to zero after not calling
2986 execute_file_command and deciding to touch instead.
2988 Thu Jan 26 01:29:32 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2990 * main.c (debug_signal_handler): New function; toggles debug_flag.
2991 (main): Handle SIGUSR1 with that.
2993 Mon Jan 16 15:46:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2995 * compatMakefile (realclean): Remove Info files.
2997 Sun Jan 15 08:23:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3001 * job.c (start_job_command): Save and restore environ around vfork
3003 (search_path): Function #if 0'd out.
3004 (exec_command): Use execvp instead of search_path.
3006 * expand.c (variable_expand): Rewrote computed variable name and
3007 substitution reference handling to be simpler. First expand the
3008 entire text between the parens if it contains any $s, then examine
3009 the result of that for subtitution references and do no further
3010 expansion while parsing them.
3012 * job.c (construct_command_argv_internal): Handle " quoting too,
3013 when no backslash, $ or ` characters appear inside the quotes.
3015 * configure.in (union wait check): If WEXITSTATUS and WTERMSIG are
3016 defined, just use int.
3018 Tue Jan 10 06:27:27 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3020 * default.c (default_variables) [__hpux]: Remove special
3021 definition of ARFLAGS. Existence of the `f' flag is not
3022 consistent across HPUX versions; and one might be using GNU ar
3025 * compatMakefile (clean): Don't remove Info files.
3027 * compatMakefile (check): Remove gratuitous target declaration.
3029 Sat Jan 7 11:38:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3031 * compatMakefile (ETAGS, CTAGS): Don't use -t.
3033 * arscan.c (ar_name_equal) [cray]: Subtract 1 like [__hpux].
3035 * main.c (decode_switches): For --help, print usage to stdout.
3037 Mon Dec 5 12:42:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3041 * remake.c (update_file_1): Do set_command_state (FILE,
3042 cs_not_started) only if old state was deps_running.
3044 Mon Nov 28 14:24:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3046 * job.c (start_waiting_job): Use set_command_state.
3048 * build.template (CPPFLAGS): New variable.
3049 (prefix, exec_prefix): Set from @...@.
3050 (compilation loop): Pass $CPPFLAGS to compiler.
3052 * GNUmakefile (build.sh.in): Make it executable.
3054 * GNUmakefile (globfiles): Add configure.in, configure.
3058 * configure.in (AC_OUTPUT): Don't write glob/Makefile.
3060 * configure.in (AC_CHECK_SYMBOL): Use AC_DEFINE_UNQUOTED.
3062 * configure.in: Don't check for ranlib.
3064 Tue Nov 22 22:42:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3066 * remake.c (notice_finished_file): Only mark also_make's as
3067 updated if really ran cmds.
3069 Tue Nov 15 06:32:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3071 * configure.in: Put dnls before random whitespace.
3073 Sun Nov 13 05:02:25 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3075 * compatMakefile (CPPFLAGS): New variable, set from @CPPFLAGS@.
3076 (RANLIB): Variable removed.
3077 (prefix, exec_prefix): Set these from @...@.
3078 (.c.o): Use $(CPPFLAGS).
3079 (glob/libglob.a): Don't pass down variables to sub-make.
3080 glob/Makefile should be configured properly by configure.
3081 (distclean): Remove config.log and config.cache (autoconf stuff).
3083 Mon Nov 7 13:58:06 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3085 * acconfig.h: Add #undef HAVE_UNION_WAIT.
3086 * configure.in: Converted to Autoconf v2.
3087 * dir.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H instead
3088 of DIRENT, SYSDIR, NDIR.
3089 * build.sh.in (prefix, exec_prefix): Set these from @...@.
3090 (CPPFLAGS): New variable, set from @CPPFLAGS@.
3091 (compiling loop): Pass $CPPFLAGS before $CFLAGS.
3092 * install.sh: File renamed to install-sh.
3094 * main.c (define_makeflags): When no flags, set WORDS to zero.
3096 Sun Nov 6 18:34:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3100 * main.c (define_makeflags): Terminate properly when FLAGSTRING is
3103 Fri Nov 4 16:02:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3107 Tue Nov 1 01:18:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3111 * job.c (start_job_command): When ARGV is nil, only set
3112 update_state and call notice_finished_file if job_next_command
3115 * job.c (start_job_command): Call notice_finished_file for empty
3118 Thu Oct 27 02:02:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3120 * file.c (snap_deps): Set COMMANDS_SILENT for .SILENT, not
3123 Wed Oct 26 02:14:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3127 Tue Oct 25 22:49:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3129 * file.c (snap_deps): Set command_flags bits in all :: entries.
3131 Mon Oct 24 18:47:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3133 * make.h (posix_pedantic): Declare it.
3134 * main.c (main): Move checks .IGNORE, .SILENT, .POSIX to
3136 * file.c (snap_deps): Check .IGNORE, .SILENT, .POSIX here instead
3137 of in main. If .IGNORE has deps, OR COMMANDS_NOERROR into their
3138 command_flags and don't set -i. Likewise .SILENT.
3139 * job.c (start_job_command): In FLAGS initialization, OR in
3140 CHILD->file->command_flags.
3141 * file.h (struct file): New member `command_flags'.
3143 Sun Oct 16 01:01:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3145 * main.c (switches): Bump flag values for --no-print-directory and
3146 --warn-undefined-variables, so neither is 1 (which indicates a
3147 nonoption argument).
3149 Sat Oct 15 23:39:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3151 * main.c (main): Add missing code in .IGNORE test.
3153 Mon Oct 10 04:09:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3155 * variable.c (define_automatic_variables): Define +D and +F.
3157 Sat Oct 1 04:07:48 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3159 * main.c (main): Define hidden automatic variable with command
3160 vars, and MAKEOVERRIDES to a reference to that.
3161 (define_makeflags): If posix_pedantic, write a reference to that
3164 Thu Sep 29 00:14:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3166 * main.c (posix_pedantic): New variable.
3167 (main): Set posix_pedantic if .POSIX is a target.
3168 Fix .IGNORE and .SILENT checks to require is_target.
3170 * commands.c (set_file_variables): Define new automatic variable
3171 $+, like $^ but before calling uniquize_deps.
3173 * job.c (reap_children): Call delete_child_targets for non-signal
3174 error if .DELETE_ON_ERROR is a target.
3176 Tue Sep 27 01:57:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3180 Mon Sep 26 18:16:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3182 * job.c (reap_children): Don't change C->file->command_state when
3183 dying. Test it only after calling start_job_command for a new
3184 command line. When no more cmds, just set C->file->update_status.
3185 (start_job_command): When the last line is empty or under -n, set
3186 C->file->update_status.
3187 (start_waiting_job): Grok cs_not_started after start_job_command
3189 (new_job): Set C->file->update_status when there are no cmds.
3190 (job_next_command): When out of lines, don't set
3191 CHILD->file->update_status or CHILD->file->command_state.
3193 * main.c (quote_as_word): Renamed from shell_quote. Take new arg;
3194 if nonzero, also double $s.
3195 (main): Define MAKEOVERRIDES from command_variables here.
3196 (define_makeflags): Don't use command_variables here; instead write a
3197 reference $(MAKEOVERRIDES) in MAKEFLAGS. Make vars recursive.
3199 * dir.c [__MSDOS__]: Fixed typo.
3201 * vpath.c (selective_vpath_search): Reset EXISTS when stat fails.
3203 Sat Sep 10 03:01:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3205 * remake.c: Include <assert.h> and use assert instead of printfs
3208 * main.c (decode_switches): Loop until optind hits ARGC, not just
3209 until getopt_long returns EOF. Initialize C to zero before loop;
3210 in loop if C is EOF, set optarg from ARGV[optind++], else call
3212 (decode_env_switches): Use variable_expand instead of
3213 allocated_variable_expand. Allocate a fresh buffer to copy split
3214 words into; scan characters by hand to break words and
3216 (shell_quote): New function.
3217 (define_makeflags): Allocate doubled space for switch args, and command
3218 variable names and values; use shell_quote to quote those things.
3220 Fri Sep 9 01:37:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3224 * acconfig.h: Add HAVE_SYS_SIGLIST and HAVE__SYS_SIGLIST.
3226 * main.c (decode_switches): The non-option return from getopt is
3228 (command_variables): New type and variable.
3229 (decode_switches, decode_env_switches): After making a variable
3230 definition, record the struct variable pointer in the
3231 command_variables chain.
3232 (define_makeflags): If ALL, write variable definitions for
3235 * main.c (other_args): Variable removed.
3236 (goals, lastgoal): New static variables (moved from auto in main).
3237 (main): Don't process OTHER_ARGS at all.
3238 Don't set variable MAKEOVERRIDES at all; define MAKE to just
3240 (init_switches): Prepend a - {return in order} instead of a +
3242 (decode_switches): Don't set OTHER_ARGS at all.
3243 Grok '\0' return from getopt_long as non-option argument; try
3244 variable definition and (if !ENV) enter goal targets here.
3245 (decode_env_switches): Use allocated_variable_expand to store value.
3246 Use find_next_token to simplify word-splitting loop. Don't
3247 prepend a dash to uninterpreted value. Instead, if split into
3248 only one word, try variable definition and failing that prepend a
3249 dash to the word and pass it to decode_switches as a single arg.
3251 Wed Sep 7 03:02:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3253 * remake.c (notice_finished_file): Only recheck modtimes if
3254 FILE->command_state was cs_running on entry (meaning the commands
3256 (update_file_1): Whenever we set FILE->update_status, call
3257 notice_finished_file instead of just set_command_state.
3258 * job.c (start_job_command): Whenever we set
3259 CHILD->file->update_status, call notice_finished_file instead of
3260 just set_command_state.
3262 Tue Sep 6 19:13:54 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
3264 * default.c: Add missing ".
3266 * job.c: Changed all assignments of command_state members to calls
3267 to set_command_state.
3268 * remake.c: Likewise.
3269 * file.c (set_command_state): New function.
3270 * file.h: Declare set_command_state.
3272 * main.c (init_switches): Put a + first in options.
3274 Mon Jul 25 18:07:46 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3276 Merge MSDOS/GO32 port from DJ Delorie <dj@ctron.com>.
3277 * vpath.c: Changed all uses of ':' to PATH_SEPARATOR_CHAR.
3278 * main.c (directory_before_chdir): New variable, moved out of main
3280 (main) [__MSDOS__]: Look for \ or : to delimit last component of
3281 PROGRAM. Don't frob ARGV[0] before setting MAKE_COMMAND variable.
3282 (die): Change back to `directory_before_chdir' before dying.
3283 * make.h (PATH_SEPARATOR_CHAR): New macro; differing defns for
3284 [__MSDOS__] and not.
3285 * job.c [__MSDOS__]: Include <process.h>.
3286 [__MSDOS__] (dos_pid, dos_status, dos_bname, dos_bename,
3287 dos_batch_file): New variables.
3288 (reap_children) [__MSDOS__]: Don't call wait; just examine those vars.
3289 (unblock_sigs) [__MSDOS__]: Do nothing.
3290 (start_job_command) [__MSDOS__]: Use spawnvpe instead of vfork & exec.
3291 (load_too_high) [__MSDOS__]: Always return true.
3292 (search_path) [__MSDOS__]: Check for : or / in FILE to punt.
3293 Use PATH_SEPARATOR_CHAR instead of ':'.
3294 (construct_command_argv_internal) [__MSDOS__]: Wholly different
3295 values for sh_chars and sh_cmds. Wholly new code to handle shell
3297 * function.c (expand_function: `shell') [__MSDOS__]: Wholly new
3299 * dir.c [__MSDOS__] (dosify): New function.
3300 (dir_contents_file_exists_p) [__MSDOS__]: Call it on FILENAME and
3301 process the result instead of FILENAME itself.
3302 (file_impossible_p) [__MSDOS__]: Likewise.
3303 * default.c [__MSDOS__]: Define GCC_IS_NATIVE.
3304 (default_suffix_rules) [__MSDOS__]: Use `y_tab.c' instead of `y.tab.c'.
3305 (default_variables) [GCC_IS_NATIVE]: Set CC and CXX to `gcc', YACC to
3306 `bison -y', and LEX to `flex'.
3307 * configure.bat, configh.dos: New files.
3308 * commands.c (fatal_error_signal) [__MSDOS__]: Just remove
3309 intermediates and exit.
3311 * commands.c (set_file_variables): Add parens in length
3312 computation in .SUFFIXES dep loop to quiet compiler warning. From
3315 * read.c (read_makefile): Free FILENAME if we allocated it. From
3318 Mon Jul 4 17:47:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3320 * misc.c (safe_stat): New function, EINTR-safe wrapper around stat.
3321 * vpath.c (selective_vpath_search): Use safe_stat in place of stat.
3322 * read.c (construct_include_path): Use safe_stat in place of stat.
3323 * job.c (search_path): Use safe_stat in place of stat.
3324 * dir.c (find_directory): Use safe_stat in place of stat.
3325 * commands.c (delete_target): Use safe_stat in place of stat.
3326 * arscan.c (ar_member_touch) [EINTR]: Do EINTR looping around fstat.
3327 * remake.c (name_mtime): Use safe_stat in place of stat.
3328 (touch_file) [EINTR]: Do EINTR looping around fstat.
3330 Fri Jun 24 05:40:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3332 * read.c (read_makefile): Check for a shell command first, and
3333 then strip leading tabs before further checking if it's not a
3336 * make.h [__arm]: Undefine POSIX.
3337 [!__GNU_LIBRARY__ && !POSIX && !_POSIX_VERSION]: Don't declare system
3338 functions that return int.
3340 * job.c (construct_command_argv_internal): After swallowing a
3341 backslash-newline combination, if INSTRING is set goto string_char
3342 (new label) for normal INSTRING handling code.
3344 Sat Jun 4 01:11:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3346 * configure.in: Don't check for sys_siglist and _sys_siglist with
3347 AC_HAVE_FUNCS. Instead use two AC_COMPILE_CHECKs.
3349 Mon May 23 18:20:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3351 * Version 3.71.1 released.
3353 * make.h [!__GNU_LIBRARY__ && !POSIX]: Also test #ifndef
3354 _POSIX_VERSION for these declarations.
3356 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Remove bogus #ifndefs
3357 around #undefs of HAVE_SETREUID and HAVE_SETREGID.
3359 Sat May 21 16:26:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3361 * Version 3.71 released.
3363 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Don't test [HAVE_SETUID]
3364 and [HAVE_SETGID]. Every system has those, and configure doesn't
3367 * make.h [_POSIX_VERSION]: Don't #define POSIX #ifdef ultrix.
3369 * compatMakefile (loadavg): Depend on and use loadavg.c instead of
3371 (loadavg.c): Link or copy it from getloadavg.c.
3372 (distclean): Remove loadavg.c.
3374 Mon May 16 22:59:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3378 * misc.c [GETLOADAVG_PRIVILEGED] [! POSIX]: Undefine HAVE_SETEUID
3381 * default.c (default_terminal_rules): In SCCS rules, put
3382 $(SCCS_OUTPUT_OPTION) before $<. On some systems -G is grokked
3383 only before the file name.
3384 * configure.in (SCCS_GET_MINUS_G check): Put -G flag before file name.
3386 Tue May 10 16:27:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3388 * job.c (construct_command_argv_internal): Swallow
3389 backslash-newline combinations inside '' strings too.
3391 Thu May 5 04:15:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3393 * read.c (do_define): Call collapse_continuations on each line
3396 Mon Apr 25 19:32:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3398 * job.c (construct_command_argv_internal): Notice newline inside
3399 '' string when RESTP is non-null.
3401 Fri Apr 22 17:33:30 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3405 * remake.c (update_goal_chain): Reset FILE to G->file after the
3406 double-colon loop so it is never null for following code.
3408 * read.c (read_makefile): Fix `override define' parsing to skip
3409 whitespace after `define' properly.
3411 * compatMakefile (srcdir): Define as @srcdir@; don't reference
3413 (glob/Makefile): New target.
3415 Thu Apr 21 16:16:55 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3419 * misc.c (remove_comments): Use find_char_unquote.
3420 * make.h (find_char_unquote): Declare it.
3421 * read.c (find_char_unquote): New function, generalized from
3423 (find_percent, find_semicolon, parse_file_seq): Use that.
3425 Wed Apr 20 18:42:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3427 * implicit.c (pattern_search): Always allocate new storage for
3428 FILE->stem. It is not safe to store STEM's address because it
3429 might be auto storage.
3431 * configure.in: Check for seteuid and setegid.
3432 * misc.c [HAVE_SETEUID]: Declare seteuid.
3433 [HAVE_SETEGID]: Declare setegid.
3434 (make_access, user_access) [HAVE_SETEUID]: Use seteuid.
3435 [HAVE_SETEGID]: Use setegid.
3437 * remake.c (update_goal_chain): Set STATUS to FILE->update_status,
3438 to preserve whether it's 2 for error or 1 for -q trigger. When
3439 STATUS gets nonzero and -q is set, always stop immediately.
3440 * main.c (main, decode_switches): Die with 2 for errors.
3441 (main): Accept 2 return from update_goal_chain and die with that.
3442 * misc.c (fatal, makefile_fatal): Die with 2; 1 is reserved for -q
3444 * job.c (reap_children): Die with 2 for error.
3445 (start_job_command): Set update_status to 2 for error. Set it to
3446 1 when we would run a command and question_flag is set.
3448 * read.c (read_makefile): Don't mark makefiles as precious. Just
3449 like other targets, they can be left inconsistent and in need of
3450 remaking by aborted commands.
3452 * read.c (read_makefile): Write no error msg for -include file.
3454 Tue Apr 5 05:22:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3456 * commands.c (fatal_error_signal): Don't unblock signals.
3458 * file.h (struct file): Change member `double_colon' from flag to
3460 * read.c (record_files): Set double_colon pointer instead of flag.
3461 * main.c (main): When disqualifying makefiles for updating, use
3462 double_colon pointer to find all entries for a file.
3463 * file.c (enter_file): If there is already a double-colon entry
3464 for the file, set NEW->double_colon to that pointer.
3465 (file_hash_enter): Use FILE->double_colon to find all entries to
3467 * remake.c (update_goal_chain): Do inner loop on double-colon entries.
3468 (update_file): Use FILE->double_colon pointer to find all entries.
3469 (f_mtime): Likewise.
3470 (notice_finished_file): Propagate mtime change to all entries.
3472 * variable.c (try_variable_definition): Return after abort.
3474 Fri Apr 1 18:44:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3476 * read.c (read_makefile): Remove unused variable.
3477 (parse_file_seq): When removing an elt that is just `)', properly
3478 fix up the previous elt's next pointer.
3480 Mon Mar 28 18:31:49 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
3482 * configure.in: Do AC_SET_MAKE.
3483 * GNUmakefile (Makefile.in): Edit MAKE assignment into @SET_MAKE@.
3485 Fri Mar 4 00:02:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3487 * function.c (subst_expand): If BY_WORD or SUFFIX_ONLY is set and
3488 the search string is the empty string, find a match at the end of
3489 each word (using end_of_token in place of sindex).
3491 * misc.c (end_of_token): Don't treat backslashes specially; you
3492 can no longer escape blanks with backslashes in export, unexport,
3493 and vpath. This was never documented anyway.
3495 Thu Mar 3 23:53:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3497 * read.c (read_makefile): Variable name for `define' is not just
3498 first token; use whole rest of line and strip trailing blanks.
3500 Wed Feb 16 16:03:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3504 * read.c (read_makefile): Add -d msg stating args.
3506 * read.c (read_makefile): Use isspace to skip over leading
3507 whitespace, and explicitly avoid skipping over tabs. Don't want
3508 to skip just spaces though; formfeeds et al should be skipped.
3510 * default.c (default_variables) [__hpux]: Add f in ARFLAGS.
3512 * arscan.c (ar_name_equal) [__hpux]: Subtract 2 instead of 1 from
3513 sizeof ar_name for max length to compare.
3515 * misc.c [GETLOADAVG_PRIVILEGED] [POSIX]: Undefine HAVE_SETREUID
3516 #ifdef HAVE_SETUID; likewise HAVE_SETREGID and HAVE_SETGID.
3518 * main.c (main): Call user_access after setting `program', in case
3519 it needs to use it in an error message.
3521 * read.c (read_makefile): Ignore an empty line starting with a tab.
3523 Thu Feb 10 21:45:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3525 * configure.in (AC_SYS_SIGLIST_DECLARED): Use this instead of
3526 AC_COMPILE_CHECK that is now its contents.
3528 Fri Feb 4 16:28:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3530 * make.h: #undef strerror after #include <string.h>.
3531 [! ANSI_STRING]: Declare strerror.
3533 Thu Feb 3 02:21:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3535 * misc.c (strerror): #undef any macro before function definition.
3537 Mon Jan 31 19:07:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3539 * variable.c (try_variable_definition): Calculate BEG before loop
3540 to strip blanks by decrementing END. Don't decr END to before BEG.
3542 * read.c (read_makefile): Skip over leading space characters, but
3543 not tabs, after removing continuations and comments (it used to
3546 Tue Jan 25 16:45:05 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3548 * variable.c (define_automatic_variables): In $(@D) et al, use
3549 patsubst to remove trailing slash.
3551 * commands.c (delete_target): New function, broken out of
3552 delete_child_targets. Check for archive members and give special msg.
3553 (delete_child_targets): Use delete_target.
3555 Mon Jan 17 17:03:22 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3557 * default.c (default_suffix_rules): Use $(TEXI2DVI_FLAGS) in
3558 texi2dvi rules. Use $(MAKEINFO_FLAGS) in makeinfo rules.
3560 Tue Jan 11 19:29:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3562 * GNUmakefile (tarfiles): Omit make-doc.
3563 (make-$(version).tar): Include make.info*.
3565 Fri Jan 7 16:27:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3567 * compatMakefile (configure, config.h.in): Comment out rules.
3569 Thu Jan 6 18:08:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3571 * compatMakefile (binprefix, manprefix): New variables.
3572 (instname): Variable removed.
3573 (install): Use $({bin,man}prefix)make in place of $(instname).
3574 File targets likewised renamed.
3576 Mon Jan 3 17:50:25 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3578 * Version 3.70 released.
3580 Thu Dec 23 14:46:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3584 * read.c (parse_file_seq): Inside multi-word archive ref
3585 translation loop, check NEW1==0 at end and break out of the loop.
3587 * GNUmakefile (make-$(version).tar): Distribute install.sh.
3588 * install.sh: New file.
3590 * configure.in (SCCS_GET_MINUS_G check): Put redirection for admin
3591 cmds outside subshell parens, to avoid "command not found" msgs
3594 Wed Dec 22 17:00:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3596 * configure.in (SCCS_GET_MINUS_G check): Put -G flag last in get cmd.
3597 Redirect output & error from get to /dev/null.
3598 Fix reversed sense of test.
3600 Fri Dec 17 15:31:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3602 * configure.in (SCCS_GET_MINUS_G check): Use parens instead of
3603 braces inside if condition command; some shells lose.
3605 Thu Dec 16 15:10:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3609 * arscan.c [M_UNIX]: Move #undef M_XENIX for PORTAR stuff.
3610 (PORTAR) [M_XENIX]: Define to 0 instead of 1.
3612 * main.c (define_makeflags): Only export MAKEFLAGS if !ALL.
3614 Wed Dec 15 17:47:48 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3616 * main.c (main): Cast result of pointer arith to unsigned int
3617 before passing to define_variable for envars. Matters when
3618 sizeof(unsigned)!=sizeof(ptrdiff_t).
3620 Tue Dec 14 14:21:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3622 * configure.in: Add new check for SCCS_GET_MINUS_G.
3623 * config.h.in: Add #undef SCCS_GET_MINUS_G.
3624 * default.c (default_terminal_rules): Use `$(SCCS_OUTPUT_OPTION)' in
3625 place of `-G $@' in SCCS commands.
3626 (default_variables) [SCCS_GET_MINUS_G]: Define SCCS_OUTPUT_OPTION
3629 * configure.in (AC_OUTPUT): Put touch stamp-config in second arg
3630 (so it goes in config.status), rather than afterward.
3632 * ar.c (ar_member_date): Don't call enter_file on the archive file
3633 if it doesn't exist (by file_exists_p).
3635 * compatMakefile ($(infodir)/make.info): Replace `$$d/foo.info'
3636 with `$$dir/make.info' in install-info invocation (oops).
3638 * vpath.c (construct_vpath_list): Only set LASTPATH set PATH when
3639 we do not unlink and free PATH.
3641 * file.c (print_file_data_base): Fix inverted calculation for
3642 average files per hash bucket.
3644 * read.c (readline): When we see a NUL, give only a warning and
3645 synthesize a newline to terminate the building line (used to
3646 fatal). Move fgets call into the loop condition, and after the
3647 loop test ferror (used to test !feof in the loop).
3649 Fri Dec 3 16:40:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3651 * configure.in: Check for strerror in AC_HAVE_FUNCS.
3653 Thu Dec 2 15:37:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3655 Differentiate different flavors of missing makefile error msgs,
3656 removing gratuitous `fopen: ' and giving caller for included makefiles.
3657 * misc.c [! HAVE_STRERROR]: Define our own strerror here.
3658 (perror_with_name, pfatal_with_name): Use strerror instead of
3659 replicating its functionality.
3660 * read.c (read_makefile): Return int instead of void.
3661 (read_all_makefiles, read_makefile): Change callers to notice zero
3662 return and give error msg.
3664 Thu Nov 11 11:47:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3668 * default.c: Put `-G $@' before $< in SCCS cmds.
3670 Wed Nov 10 06:06:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3672 * read.c (read_makefile): After trying a variable defn, notice if
3673 the line begins with a tab, and diagnose an error.
3675 Sun Nov 7 08:07:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3679 Wed Nov 3 06:54:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3683 * implicit.c (try_implicit_rule): Look for a normal rule before an
3686 Fri Oct 29 16:45:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3688 * function.c (expand_function: `sort'): Double NWORDS when it
3689 overflows, instead of adding five.
3691 * compatMakefile (clean): Remove loadavg.
3693 Wed Oct 27 17:58:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3697 * file.h (NEW_MTIME): Define new macro.
3698 * main.c (main): Set time of NEW_FILES to NEW_MTIME, not to
3699 current time returned from system. Removed variable NOW.
3700 * remake.c (notice_finished_file): Use NEW_MTIME in place of
3701 current time here too.
3703 Tue Oct 26 19:45:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3707 * remake.c (update_file_1): Don't clear MUST_MAKE when FILE has no
3708 cmds and !DEPS_CHANGED unless also !NOEXIST.
3710 Mon Oct 25 15:25:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3712 * read.c (parse_file_seq): When converting multi-word archive
3713 refs, ignore a word beginning with a '('.
3715 Fri Oct 22 02:53:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3717 * configure.in: Check for sys/timeb.h.
3718 * make.h [HAVE_SYS_TIMEB_H]: Test this before including it.
3720 Thu Oct 21 16:48:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3724 * rule.c (convert_suffix_rule): New local TARGPERCENT. Set it to
3725 TARGNAME+1 for "(%.o)", to TARGNAME for "%.?". Use it in place of
3726 TARGNAME to initialize PERCENTS[0].
3728 Mon Oct 18 06:49:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3730 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
3731 Remove AC_USG; it is no longer used.
3733 * file.c (print_file): New function, broken out of
3734 print_file_data_base.
3735 (print_file_data_base): Call it.
3736 * rule.c (print_rule): New function, broken out of
3737 print_rule_data_base.
3738 (print_rule_data_base): Call it.
3740 Thu Oct 14 14:54:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3742 * default.c (install_default_suffix_rules): New function, broken
3743 out of install_default_implicit_rules.
3744 (install_default_implicit_rules): Move suffix rule code there.
3745 * make.h: Declare install_default_suffix_rules.
3746 * main.c (main): Call install_default_suffix_rules before reading
3747 makefiles. Move convert_to_pattern call before
3748 install_default_implicit_rules.
3750 * job.h (struct child): Make `pid' member type `pid_t' instead of
3753 * compatMakefile (RANLIB): New variable, set by configure.
3754 (glob/libglob.a): Pass RANLIB value down to submake.
3756 Fixes for SCO 3.2 "devsys 4.2" from pss@tfn.com (Peter Salvitti).
3757 * make.h: Include <sys/timeb.h> before <time.h> for SCO lossage.
3758 * job.c [! getdtablesize] [! HAVE_GETDTABLESIZE]: If NOFILE is not
3759 defined but NOFILES_MAX is, define it to be that.
3761 Mon Oct 11 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3763 * GNUmakefile (make-$(version).tar): Depend on acconfig.h, so it
3766 Sun Oct 3 15:15:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3768 * default.c (default_terminal_rules): Add `-G $@' to SCCS get cmds.
3770 Tue Sep 28 14:18:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3772 * job.c (construct_command_argv_internal): Add ^ to SH_CHARS; it
3773 is another symbol for | in some shells.
3774 * main.c (main): Add it to CMD_DEFS quoting list as well.
3776 Mon Sep 20 18:05:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3778 * job.c (construct_command_argv_internal): Remove '=' from
3779 SH_CHARS. Only punt on '=' if it is unquoted in a word before the
3780 first word without an unquoted '='.
3782 * main.c (define_makeflags): Set v_export for MAKEFLAGS.
3784 Fri Sep 17 00:37:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3786 * remake.c (update_file_1): Use .DEFAULT cmds for phony targets.
3788 * make.h [_AIX && _POSIX_SOURCE]: Define POSIX.
3790 * commands.c (delete_child_targets): Don't delete phony files.
3792 * job.c (start_job_command): Set COMMANDS_RECURSE in FLAGS if we
3793 see a `+' at the beginning of the command line.
3795 Thu Sep 9 17:57:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3799 Wed Sep 8 20:14:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3801 * main.c (define_makeflags): Define MAKEFLAGS with o_file, not o_env.
3803 Mon Aug 30 12:31:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3805 * expand.c (variable_expand): Fatal on an unterminated reference.
3807 Thu Aug 19 16:27:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3811 * variable.c (define_automatic_variables): Define new o_default
3812 variable `MAKE_VERSION' from version_string and remote_description.
3814 * make.h (version_string, remote_description): Declare these here.
3815 * main.c: Don't declare version_string.
3816 (print_version): Don't declare remote_description.
3818 Wed Aug 18 15:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3820 * read.c (read_makefile): Free space pointed to by CONDITIONALS
3821 before restoring the old pointer.
3823 Mon Aug 16 17:33:36 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3825 * compatMakefile ($(objs)): Depend on config.h.
3827 * GNUmakefile (build.sh.in): Depend on compatMakefile.
3829 * configure.in: Touch stamp-config after AC_OUTPUT.
3831 Fri Aug 13 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3835 Thu Aug 12 17:18:57 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3837 * make.h: Include <config.h> instead of "config.h".
3839 Wed Aug 11 02:35:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3841 * main.c (main): Make all variables interned from ENVP be v_export.
3842 * variable.c (try_variable_definition): In v_default case, don't
3843 check for an o_file variable that `getenv' finds.
3845 * job.c (reap_children): New local variable ANY_LOCAL; set it
3846 while setting ANY_REMOTE. If !ANY_LOCAL, don't wait for local kids.
3848 * main.c (main): Don't call decode_env_switches on MFLAGS. DOC THIS.
3850 * function.c (expand_function): #if 0 out freeing of ENVP since it
3853 Mon Aug 9 17:37:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3857 * remote-stub.c (remote_status): Set errno to ECHILD before return.
3858 * job.c (reap_children): Scan the chain for remote children and
3859 never call remote_status if there are none.
3861 * function.c (expand_function: `shell'): #if 0 out calling
3862 target_environment; just set ENVP to environ instead.
3864 * job.c (reap_children): Check for negative return from
3865 remote_status and fatal for it.
3866 When blocking local child wait returns 0, then try a blocking call
3869 Tue Aug 3 00:19:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3871 * compatMakefile (clean): Delete make.info* and make.dvi here.
3872 (distclean): Not here.
3874 * dep.h (RM_*): Use #defines instead of enum to avoid lossage from
3875 compilers that don't like enum values used as ints.
3877 Mon Aug 2 16:46:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3879 * compatMakefile (loadavg): Add $(LOADLIBES).
3881 Sun Aug 1 16:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3885 * compatMakefile (loadavg, check-loadavg): New targets.
3886 (check): Depend on check-loadavg.
3888 * compatMakefile (glob/libglob.a): Depend on config.h.
3890 * misc.c (log_access): Write to stderr instead of stdout.
3892 Fri Jul 30 00:07:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3896 Thu Jul 29 23:26:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3898 * configure.in (SYS_SIGLIST_DECLARED): In test program include
3899 <unistd.h> #ifdef HAVE_UNISTD_H.
3901 * compatMakefile (.PHONY): Put after `all' et al.
3903 * configure.in: Add AC_IRIX_SUN.
3905 Wed Jul 28 17:41:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3909 Mon Jul 26 14:36:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3913 Sun Jul 25 22:09:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3917 * compatMakefile ($(infodir)/make.info): Don't use $(instname).
3918 Run install-info script if present.
3920 Fri Jul 23 16:03:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3922 * make.h [STAT_MACROS_BROKEN]: Test this instead of [uts].
3924 * configure.in: Add AC_STAT_MACROS_BROKEN.
3926 Wed Jul 14 18:48:11 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3930 * read.c (read_makefile): Recognize directive `-include', like
3931 `include' but sets RM_DONTCARE flag.
3933 * variable.c (target_environment): If FILE is nil, use
3934 current_variable_set_list in place of FILE->variables.
3935 * function.c (expand_function: `shell'): Get an environment for
3936 the child from target_environment instead of using environ.
3938 * dep.h: Declare read_all_makefiles here.
3939 (RM_*): Define new enum constants.
3940 * read.c (read_makefile): Second arg is FLAGS instead of TYPE.
3941 Treat it as a bit mask containing RM_*.
3942 (read_all_makefiles): For default makefiles, set D->changed to
3943 RM_DONTCARE instead of 1.
3944 * main.c: Don't declare read_all_makefiles here.
3945 (main): Check `changed' member of read_makefiles elts for RM_*
3946 flags instead of specific integer values.
3948 Mon Jul 12 22:42:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3950 * make.h [sequent && i386]: #undef POSIX. From trost@cse.ogi.edu.
3952 Thu Jul 8 19:51:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3954 * vpath.c (construct_vpath_list): If ELEM is zero 0, free PATTERN
3956 (build_vpath_lists): Empty `vpaths' around construct_vpath_list
3957 call for $(VPATH). Expand $(strip $(VPATH)), not just $(VPATH).
3959 * rule.c (convert_suffix_rule): Use alloca instead of xmalloc for
3960 PERCENTS, whose storage is not consumed by create_pattern_rule.
3962 * make.h [__mips && _SYSTYPE_SVR3]: #undef POSIX.
3964 Wed Jun 30 18:11:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3968 * rule.c (max_pattern_targets): New variable.
3969 (count_implicit_rule_limits): Compute its value.
3970 * rule.h: Declare it.
3971 * implicit.c (pattern_search): Make TRYRULES max_target_patterns
3972 times bigger. Move adding new TRYRULES elt inside the inner
3973 targets loop, so each matching target gets its own elt in MATCHES
3974 and CHECKED_LASTSLASH.
3976 * file.c (remove_intermediates): If SIG!=0 say `intermediate file'
3977 instead of just `file' in error msg.
3979 Fri Jun 25 14:55:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3981 * job.c (construct_command_argv): Turn off
3982 --warn-undefined-variables around expansion of SHELL and IFS.
3983 * read.c (tilde_expand): Likewise for HOME.
3984 (read_all_makefiles): Likewise for MAKEFILES.
3985 * vpath.c (build_vpath_lists): Likewise for VPATH.
3987 * main.c (warn_undefined_variables_flag): New flag variable.
3988 (switches): Add --warn-undefined-variables.
3989 * make.h (warn_undefined_variables_flag): Declare it.
3990 * expand.c (warn_undefined): New function.
3991 (reference_variable): Call it if the variable is undefined.
3992 (variable_expand): In substitution ref, call warn_undefined if the
3993 variable is undefined.
3995 * default.c (default_pattern_rules): Add `%.c: %.w %.ch' and
3996 `%.tex: %.w %.ch' rules.
3997 (default_suffix_rules: .w.c, .w.tex): Pass three args: $< - $@.
3998 (default_suffixes): Add `.ch'.
4000 Mon Jun 21 17:55:39 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4002 * default.c (default_suffixes): Replace `.cweb' with `.w'.
4003 (default_suffix_rules): Rename `.cweb.c' and `.cweb.tex' to `.w.c'
4006 Fri Jun 11 14:42:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4008 * compatMakefile ($(bindir)/$(instname)): Add missing backslash.
4010 Thu Jun 10 18:14:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4014 * read.c (multi_glob): Don't free OLD and OLD->name in the
4015 FOUND!=0 fork. Use new block-local variable F instead of
4018 * ar.c (glob_pattern_p): New function, snarfed from glob/glob.c.
4019 (ar_glob): Call it; return nil immediately if MEMBER_PATTERN
4020 contains no metacharacters.
4022 Wed Jun 9 16:25:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4024 * ar.c (ar_glob{_match,_alphacompare}): New function.
4026 * dep.h [! NO_ARCHIVES]: Declare it.
4027 * read.c (multi_glob) [! NO_ARCHIVES]: Use it on archive member elts.
4029 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4030 multi_glob (which doesn't take a 3rd arg).
4031 * rule.c (install_pattern_rule): Likewise.
4032 * default.c (set_default_suffixes): Here too.
4033 * function.c (string_glob): Don't pass gratuitous arg to multi_glob.
4035 * read.c (parse_file_seq) [! NO_ARCHIVES]: Add post-processing
4036 loop to translate archive refs "lib(a b)" into "lib(a) lib(b)".
4038 Mon Jun 7 19:26:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4040 * compatMakefile (installdirs): Actually pass directory names.
4041 ($(bindir)/$(instname)): Test chgrp&&chmod exit status with `if';
4042 if it fails, echo a warning msg, but don't make the rule fail.
4044 * read.c (tilde_expand): New function, broken out of tilde_expand.
4045 (multi_glob): Call it.
4046 (construct_include_path): Expand ~ in directory names.
4047 * dep.h: Declare tilde_expand.
4048 * main.c (enter_command_line_file): Expand ~ at the start of NAME.
4049 (main): Expand ~ in -C args.
4050 * read.c (read_makefile): Expand ~ in FILENAME unless TYPE==2.
4052 Fri Jun 4 13:34:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4054 * main.c (decode_env_switches): Use xmalloc instead of alloca for ARGS.
4056 * main.c (main): Put result of alloca in temporary variable with
4057 simple assignment, to make SGI compiler happy.
4059 Thu Jun 3 20:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4063 * main.c (main): Before re-execing, remove intermediate files, and
4064 print the data base under -p. Sexier debugging message.
4066 * implicit.c (pattern_search): Allocate an extra copy of the name
4067 of a winning intermediate file when putting it in FOUND_FILES.
4069 Wed Jun 2 16:38:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4071 * read.c (read_makefile): Pass flag (1) to parse_file_seq, not to
4072 multi_glob (which doesn't take a 3rd arg).
4074 * dir.c (dir_contents_file_exists_p): When reading dirents, ignore
4075 chars within D_NAMLEN that are NULs.
4077 * main.c (decode_switches): Don't savestring ARGV[0] to put it
4079 For string switch, don't savestring `optarg'.
4080 (main): Don't free elts of makefiles->list that are "-".
4081 Use alloca'd rather than savestring'd storage for elts of
4082 makefiles->list that are temporary file names.
4083 * read.c (read_all_makefiles): Don't free *MAKEFILES.
4084 * file.c (enter_file): Don't strip `./'s.
4085 * main.c (enter_command_line_file): New function.
4086 (main): Use it in place of enter_file for command-line goals from
4087 other_files, and for old_files and new_files.
4089 Mon May 31 18:41:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4093 * compatMakefile (.SUFFIXES): Add .info.
4094 ($(infodir)/$(instname).info): Find make.info* in cwd if there,
4095 else in $srcdir. Use basename to remove dir name from installed name.
4097 Thu May 27 17:35:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4099 * implicit.c (pattern_search): When interning FOUND_FILES, try
4100 lookup_file first; if found, free the storage for our copy of the name.
4102 Wed May 26 14:31:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4106 * main.c (decode_switches): In usage msg, write `--switch=ARG' or
4107 `--switch[=OPTARG]' rather than `--switch ARG' or `--switch [ARG]'.
4109 Mon May 24 16:17:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4111 * rule.c (convert_suffix_rule): New function.
4112 (convert_to_pattern): Use it instead of doing all the work here
4114 For target suffix `.a', generate both the archive magic rule and
4117 * compatMakefile (distclean): Remove stamp-config.
4119 Sat May 22 16:15:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4123 * file.c (remove_intermediates): Don't write extra space after `rm'.
4125 * main.c (struct command_switch.type): Remove `usage_and_exit'.
4126 (print_usage_flag): New variable.
4127 (switches: --help): Make type `flag', to set print_usage_flag.
4128 (init_switches): Remove `usage_and_exit' case.
4129 (decode_switches): Likewise.
4130 (decode_switches): Print usage if print_usage_flag is set.
4131 When printing usage, die with status of BAD.
4132 (main): Die with 0 if print_version_flag.
4134 Fri May 21 16:09:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4138 Wed May 19 21:30:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4140 * compatMakefile (installdirs): New target.
4141 (install): Depend on it.
4143 Sun May 16 20:15:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4147 Fri May 14 16:40:09 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4149 * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
4150 set LASTPATH to PATH, not NEXT.
4152 * dir.c (read_dirstream): Break out of loop after incrementing
4153 DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
4154 dereference DS->contents->files[DIRFILE_BUCKETS].
4156 * read.c (read_makefile): Clear no_targets after reading a
4157 targetful rule line.
4159 * main.c (main): If print_version_flag is set, exit after printing
4161 (switches): Change --version docstring to say it exits.
4163 * make.h [butterfly]: #undef POSIX.
4165 Wed May 12 15:20:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4169 * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
4170 [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
4172 * function.c (handle_function): Use fatal instead of
4173 makefile_fatal when reading_filename is nil.
4175 * configure.in: Add AC_GETGROUPS_T.
4176 * job.c (search_path): Use GETGROUPS_T in place of gid_t.
4178 Sun May 9 15:41:25 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4182 Fri May 7 18:34:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4184 * function.c (handle_function): Fatal for unmatched paren.
4186 Thu May 6 16:13:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4190 * commands.c (handling_fatal_signal): New variable.
4191 (fatal_error_signal): Set it.
4192 * job.c (reap_children): Avoid nonreentrant operations if that is set.
4193 * make.h: Declare handling_fatal_signal.
4195 * expand.c (reference_variable): New function, snippet of code
4196 broken out of simple-reference case of variable_expand.
4197 (variable_expand): Use it for simple refs.
4198 (variable_expand): When checking for a computed variable name,
4199 notice a colon that comes before the final CLOSEPAREN. Expand
4200 only up to the colon, and then replace the pending text with a
4201 copy containing the expanded name and fall through to subst ref
4203 (variable_expand): Don't bother expanding the name if a colon
4204 appears before the first $.
4205 (expand_argument): Use alloca instead of savestring.
4206 (variable_expand): For subst ref, expand both sides of = before
4207 passing to [pat]subst_expand. Use find_percent instead of lindex
4208 to check the lhs for a %.
4210 Wed May 5 14:45:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4214 Mon May 3 17:00:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4216 * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
4218 * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
4221 Thu Apr 29 19:47:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4225 * arscan.c (ar_scan): New local flag var LONG_NAME. Set it when
4226 we read the member name in any of the fashions that allow it to be
4227 arbitrarily long. Pass its negation to FUNCTION.
4228 (describe_member): Take TRUNCATED from ar_scan and print it.
4229 (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
4230 the first sizeof (struct ar_hdr.ar_name) chars.
4231 (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
4232 * ar.c (ar_member_date_1): Likewise.
4234 Wed Apr 28 21:18:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4236 * job.c (reap_children): Before calling start_job_command to start
4237 the next command line, reset C->remote by calling start_remote_job_p.
4239 Mon Apr 26 15:56:15 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4241 * arscan.c (ar_scan): New local var NAMEMAP.
4242 In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
4243 flag IS_NAMEMAP. When extracting the member name, always put a
4244 null at its end first. If the name is "//" or "/ARFILENAMES", set
4245 IS_NAMEMAP. If we have already read in NAMEMAP, and NAME looks
4246 like " /N", get full name from NAMEMAP+N.
4247 Else if NAME looks like "#1/N", read N chars from the
4248 elt data to be the full name. At end of loop, if IS_NAMEMAP, read
4249 the elt's data into alloca'd NAMEMAP.
4250 (ar_name_equal): #if 0 truncating code.
4252 * make.h: Don't declare vfork at all. It returns int anyway,
4253 unless <unistd.h> declared it; and we conflicted with some systems.
4255 * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
4256 MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1]. Don't want to
4257 define it to something like "-no-print-directory".
4258 Use %g format instead of %f for floating-valued things.
4260 Thu Apr 22 18:40:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4262 * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
4263 to change remote-%.dep to remote-stub.dep.
4265 Wed Apr 21 15:17:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4269 Fri Apr 16 14:22:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4271 * compatMakefile (install): Remove - prefix from chgrp+chmod.
4275 Thu Apr 15 18:24:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4277 * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
4278 * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
4280 * default.c (default_variables): Set GET to macro SCCS_GET.
4282 * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
4283 if nonzero. I hope this is the last time this argument is added
4285 (read_makefile): Pass it 1 when parsing include file names.
4286 Pass it 1 when parsing target file names.
4287 Pass it 1 when parsing static pattern target pattern names.
4288 * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
4289 * default.c (set_default_suffixes): Pass it 1 when parsing
4291 * function.c (string_glob): Pass it 0 here.
4293 Wed Apr 14 11:32:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4295 * misc.c (log_access): New function.
4296 ({init,user,make,child}_access): Call it.
4297 (child_access): Abort if !access_inited.
4299 * main.c (switches: --no-print-directory): Use 1 instead of -1 for
4300 single-letter option.
4301 (init_switches, decode_switches, define_makeflags): An option with
4302 no single-letter version is no longer indicated by a value of -1;
4303 instead a value that is !isalnum.
4304 (init_switches): Don't put such switches into the string, only
4305 into the long_option table.
4307 * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
4309 * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT. AIX's
4310 bsdcc defined WIF* to use union wait.
4312 * main.c (struct command_switch): Change member `c' to type int.
4313 (switches): Make const.
4314 (decode_switches): Use `const struct command_switch *'.
4315 (define_makeflags): Likewise.
4317 * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
4319 Mon Apr 12 12:30:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4323 * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
4324 Removed AC_MEMORY_H.
4325 * make.h [USG, NeXT]: Don't test these.
4326 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
4327 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
4328 [! ANSI_STRING]: Put decls of bcopy et al here.
4329 [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
4330 [HAVE_SIGSETMASK]: Test this rather than USG.
4331 [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
4332 * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
4333 It doesn't hurt to do both if they are both defined, and testing
4335 * dir.c: Rationalize directory header conditionals.
4336 * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
4338 * default.c (default_suffixes): Add `.txinfo'.
4339 (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
4341 * variable.c (try_variable_definition): Replace RECURSIVE flag
4342 with enum FLAVOR, which can be simple, recursive, or append.
4343 Recognize += as append flavor. Set new variable VALUE in a switch
4344 on FLAVOR. For append flavor, prepend the variable's old value.
4345 If the variable was previously defined recursive, set FLAVOR to
4346 recursive; if it was defined simple, expand the new value before
4347 appending it to the old value. Pass RECURSIVE flag to
4348 define_variable iff FLAVOR == recursive.
4350 * variable.c (try_variable_definition): Use alloca and bcopy for
4351 NAME, instead of savestring. Might as well use stack storage
4352 since we free it immediately anyway.
4354 Thu Apr 8 18:04:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4356 * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
4358 * main.c (define_makeflags): Rename `struct flag' member `switch'
4359 to `cs', which is not a reserved word.
4361 Wed Apr 7 15:30:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4363 * job.c (new_job): Call start_waiting_jobs first thing.
4364 (start_waiting_job): Changed return type from void to int.
4365 Return 0 when putting the child on the waiting_jobs chain.
4366 (start_waiting_jobs): Don't check load and job_slots here.
4367 Always take a job off the chain and call start_waiting_job on it;
4368 give up and return when start_waiting_job returns zero.
4370 * main.c (define_makeflags: struct flag): Change member `char c' to
4371 `struct command_switch *switch'.
4372 (ADD_FLAG): Set that to CS instead of CS->c.
4373 If CS->c is -1, increment FLAGSLEN for the long name.
4374 When writing out FLAGS, handle FLAGS->switch->c == -1 and write
4375 the long name instead.
4377 * compatMakefile (stamp-config): New target of old config.h rule.
4378 Touch stamp-config after running config.status.
4379 (config.h): Just depend on stamp-config, and have empty commands.
4381 Mon Apr 5 20:14:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4383 * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
4385 * configure.in (AC_HAVE_FUNCS): Check for psignal.
4387 Fri Apr 2 17:15:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4389 * main.c (long_option_aliases): Remove "new"; it is already an
4390 unambiguous prefix of "new-file".
4392 Sun Mar 28 16:57:17 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4396 Wed Mar 24 14:26:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4398 * vpath.c (selective_vpath_search): When adding the
4399 name-within-directory at the end of NAME, and we don't add a
4400 slash, don't copy FILENAME in one char too far into NAME.
4402 * variable.c (define_automatic_variables): Find default_shell's
4403 length with strlen, not numerology.
4405 Wed Mar 17 20:02:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4407 * main.c (define_makeflags): Add the elts of a string option in
4408 reverse order, so they come out right when reversed again.
4410 Fri Mar 12 15:38:45 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4412 * compatMakefile (make.info): Use `-o make.info'.
4414 Thu Mar 11 14:13:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4416 * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
4418 (objs): Replace remote.o with remote-$(REMOTE).o.
4419 (srcs): Replace remote.c with remote-$(REMOTE).c.
4420 (remote.o): Rule removed.
4422 * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
4423 Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
4424 * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
4425 * build.template (REMOTE): New var; set to @REMOTE@.
4426 (objs): Add remote-${REMOTE}.o.
4428 Wed Mar 10 15:12:24 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4432 * implicit.c (pattern_search): Fix "dependent"->"dependency" in
4433 "Rejecting impossible" -d msg.
4435 * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET. Store
4436 mod'd values there; never mod {OLD,NEW}HASH.
4438 Mon Mar 8 13:32:48 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4440 * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
4442 * compatMakefile (VPATH): Set this to @srcdir@.
4443 (srcdir): Set this to $(VPATH).
4445 * main.c (main): New local var DIRECTORY_BEFORE_CHDIR. Save in it
4446 a copy of CURRENT_DIRECTORY after the first getcwd. Use it
4447 instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
4449 * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
4451 * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
4453 Mon Feb 22 14:19:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4455 * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
4456 as the sed delimiter char.
4458 Sun Feb 21 14:11:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4462 * rule.h (struct rule): Removed `subdir' member.
4463 * rule.c (new_pattern_rule): No need to clear it.
4464 (count_implicit_rule_limits): Set the `changed' flag in each dep
4465 that refers to a nonexistent directory. No longer set rule-global
4466 `subdir' flag with that information.
4467 (print_rule_data_base): Don't record info on `subdir' flags.
4469 * implicit.c (pattern_search): Check the DEP->changed flag rather
4470 than the (now gone) RULE->subdir flag. Also test CHECK_LASTSLASH;
4471 if it is set, the file might exist even though the DEP->changed
4474 * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
4475 name arg to dir_file_exists_p to check for existence of directory.
4477 * implicit.c (pattern_search): Inside dep-finding loop, set
4478 CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
4479 rather than computing it anew.
4481 * commands.c (set_file_variables): Must alloca space for PERCENT
4482 and copy it, to avoid leaving the trailing `)' in the value.
4484 * misc.c (remove_comments): Fixed backslash-checking loop
4485 condition to allow it to look at the first char on the line.
4486 P2 >= LINE, not P2 > LINE.
4488 * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
4489 $@, rm $@.old and mv $@ to $@.old.
4491 * variable.c (try_variable_definition): Take new args FILENAME and
4492 LINENO. Fatal if the variable name is empty.
4493 * read.c (read_makefile): Change callers.
4494 * main.c (main): Likewise.
4496 * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
4497 that configure will replace with the group owning /dev/kmem.
4499 Mon Feb 8 14:26:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4501 * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
4502 selective_vpath_search.
4503 (selective_vpath_search): Take second arg MTIME_PTR.
4504 If the dir cache thinks a file exists, stat it to make sure, and
4505 put the modtime in *MTIME_PTR.
4506 * remake.c (library_search): Take second arg MTIME_PTR.
4507 When we find a match, record its mtime there.
4508 Pass MTIME_PTR through to vpath_search to do same.
4509 (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
4510 store it in FILE->last_mtime if set nonzero.
4511 * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
4513 * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
4514 so globbing looks somewhere it will find things.
4516 * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
4517 not `$(srcdir)/make.info*'; no need to use basename.
4519 Fri Feb 5 12:52:43 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4523 * compatMakefile (install): Add missing ;\s.
4525 Make -, @, and + prefixes on a pre-expanded command line affect
4526 all lines in the expansion, not just the first.
4527 * commands.h (struct commands): Replace `lines_recurse' member
4529 (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
4531 * commands.c (chop_commands): Set `lines_flags' instead of
4532 `lines_recurse'. Record not only + but also @ and - prefixes.
4533 * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
4534 in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
4535 * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
4536 var with FLAGS; initialize it to the appropriate `lines_flags' byte.
4537 Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
4538 Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
4540 * remake.c (update_goal_chain): Set G->file to its prev after
4541 checking for G being finished, since that check needs to examine
4544 * configure.in (union wait check) [HAVE_WAITPID]: Try using
4545 waitpid with a `union wait' STATUS arg. If waitpid and union wait
4546 don't work together, we should not use union wait.
4550 * remake.c (update_goal_chain): When G->file->updated, move
4551 G->file to its prev. We aren't finished until G->file is nil.
4553 Thu Feb 4 12:53:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4555 * main.c (starting_directory): New global variable.
4556 (main): Set it to cwd after doing -Cs.
4557 (log_working_directory): Use it, rather than computing each time.
4558 * make.h: Declare it.
4560 * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
4562 * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
4563 ARGV, rather than LEN words plus one byte.
4565 Wed Feb 3 18:13:52 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4567 * compatMakefile ($(bindir)/$(instname)): Put - before
4568 install_setgid command line, so its failure won't be an error.
4569 (infodir): New variable.
4570 (install): Depend on $(infodir)/$(instname).info.
4571 ($(infodir)/$(instname).info): New target.
4573 * read.c (read_makefile): If FILENAMES is nil when we see a line
4574 starting with a tab, don't treat it as a command. Just fall
4575 through, rather than giving an error.
4577 * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
4578 command line, don't clear it before continuing. We want
4579 subsequent command lines to be ignored as well.
4581 * job.c (new_job): Before expanding each command line, collapse
4582 backslash-newline combinations that are inside var or fn references.
4584 Mon Feb 1 16:00:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4586 * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
4588 * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
4590 * job.c [POSIX] (unblock_sigs): Made global.
4591 [!POSIX] (unblock_sigs): Move defns to job.h.
4592 * job.h [POSIX] (unblock_sigs): Declare.
4594 Sun Jan 31 19:11:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4596 * read.c (read_makefile): In vpath parsing, after finding the
4597 pattern token, take entire rest of line as the search path, not
4598 just the next token.
4600 * compatMakefile (remote.o): Depend on remote-*.c.
4602 Thu Jan 28 16:40:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4604 * commands.c (set_file_variables): Don't define any F or D versions.
4605 * variable.c (define_automatic_variables): Define them here as
4606 recursively-expanded variables that use the dir and notdir funcs.
4608 * variable.c (target_environment): In v_default case, don't export
4609 o_default or o_automatic variables.
4611 * configure.in (union wait check): Remove ` and ' inside C code;
4612 they confuse the shell script.
4614 Mon Jan 25 13:10:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4618 * vpath.c (construct_vpath_list): When skipping further processing
4619 of an elt that is ".", don't also skip the code that pushes P past
4622 * compatMakefile (distclean): Don't remove make-*.
4624 * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
4625 defined. If one cannot use WEXITSTATUS with a `union wait'
4626 argument, we don't want to believe the system has `union wait' at all.
4628 * remake.c (update_file): Do nothing to print "up to date" msgs.
4629 (update_goal_chain): Do it here instead.
4630 Use the `changed' flag of each goal's `struct dep' to keep track
4631 of whether files_remade (now commands_started) changed around a
4632 call to update_file for that goal.
4633 When a goal is finished, and its file's update_status is zero (i.e.,
4634 success or nothing done), test the `changed' flag and give an "up
4635 to date" msg iff it is clear.
4636 * make.h (files_remade): Renamed to commands_started.
4637 * remake.c: Changed defn.
4638 (update_goal_chain): Changed uses.
4639 * job.c (start_job_command): Increment commands_started here.
4640 (reap_children): Not here.
4642 * remake.c (update_goal_chain): Don't do anything with files'
4643 `prev' members. update_file now completely handles this.
4645 * variable.c (target_environment): Don't expand recursive
4646 variables if they came from the environment.
4648 * main.c (define_makeflags): For flags with omitted optional args,
4649 store {"", 0} with ADD_FLAG. When constructing FLAGSTRING, a flag
4650 so stored cannot have more flags appended to the same word.
4652 Fri Jan 22 14:46:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4654 * variable.c (print_variable_set): In vars/bucket calculation,
4655 don't spuriously multiply by 100.
4659 * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
4660 Don't define if already defined.
4662 * remake.c (update_file): Don't keep track of the command_state before
4663 calling update_file_1. Remove local variable COMMANDS_FINISHED,
4664 and don't test it to decide to print the "is up to date" msg.
4665 Testing for files_remade having changed should always be sufficient.
4666 The old method lost when we are called in the goal chain run on a
4667 makefile, because the makefile's command_state is already
4668 `cs_finished' from the makefile chain run.
4670 * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
4672 * configure.in: Rewrote wait checking.
4673 Use AC_HAVE_HEADERS to check for <sys/wait.h>.
4674 Use AC_HAVE_FUNCS to check for waitpid and wait3.
4675 Use a compile check to test just for `union wait'.
4676 * job.c: Rewrote conditionals accordingly.
4677 [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
4678 [HAVE_WAIT3]: Likewise.
4679 [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
4681 * configure.in: Set CFLAGS and LDFLAGS before all checks.
4683 * dir.c: Add static forward decls of {open,read}_dirstream.
4685 Thu Jan 21 17:18:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4689 * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
4691 * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
4692 * build.template (CFLAGS, LDFLAGS): Same here.
4693 * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
4694 Set them to -g if not defined in the environment.
4696 * remake.c (library_search): Use LIBNAME consistently, setting it
4697 only once, to be the passed name sans `-l'.
4698 Pass new var FILE to be modified by vpath_search.
4700 Mon Jan 18 14:53:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4704 * job.c (start_waiting_jobs): Return when job_slots_used is equal to
4707 * configure.in: Add AC_CONST for the sake of getopt.
4709 * read.c (read_makefile): Continue after parsing `override'
4710 directive, rather than falling through to lossage.
4711 Check for EOL or blank after "override define".
4713 * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
4715 Fri Jan 15 12:52:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4719 * main.c (define_makeflags): After writing everything into
4720 FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
4721 just wrote " -". Always terminate the string at *P.
4723 * remake.c (library_search): When constructing names in std dirs,
4724 use &(*LIB)[2] for the stem, not LIBNAME (which points at the
4725 buffer we are writing into!).
4727 Thu Jan 14 13:50:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4729 * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
4730 define" when IGNORING is true.
4732 * compatMakefile (distclean): Remove config.status and build.sh.
4734 Wed Jan 13 16:01:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4738 * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
4741 * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
4743 * variable.c (define_automatic_variables): Override SHELL value for
4744 origin o_env_override as well as o_env.
4746 * GNUmakefile (build.sh.in): Don't replace %globobjs%. Instead,
4747 add the names of the glob objects (w/subdir) to %objs%.
4748 * build.template (globobjs): Removed.
4749 Take basename of $objs before linking.
4751 Tue Jan 12 12:31:06 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4755 * configure.in (AC_OUTPUT): Also edit build.sh.
4756 * build.template: New file.
4757 * GNUmakefile (build.sh.in): New rule to create it from build.template.
4758 (make-$(version).tar.Z): Depend on build.sh.in.
4760 * main.c (die): Call print_data_base if -p.
4761 (main): Don't call it here.
4763 * compatMakefile (defines): Add @DEFS@. configure should turn this
4764 into -DHAVE_CONFIG_H.
4766 Mon Jan 11 14:39:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4770 * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
4771 ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
4772 * compatMakefile (install_setgid): New var, set by configure.
4773 (install): Install setgid $(group) only if $(install_setgid) is true.
4775 Fri Jan 8 15:31:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4777 * job.c (load_too_high): If getloadavg fails with errno==0, give a
4778 message saying that load limits are not supported.
4780 * vpath.c (construct_vpath_list): Rewrote path deletion code to
4781 not try to use PATH's next link after freeing PATH.
4783 * main.c (define_makeflags): Rewritten; now handles string-valued
4784 option, and has no arbitrary limits.
4785 (switches): Set `toenv' flag for -I and -v.
4787 * main.c (decode_env_switches): Cast return value of alloca to char *.
4789 * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
4790 setre[gu]id in place of set[gu]id.
4792 Wed Jan 6 15:06:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4794 * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
4797 * make.h [POSIX]: Don't test this to use ANSI_STRING.
4798 Testing STDC_HEADERS should be sufficient.
4800 * job.h: Declare start_waiting_jobs.
4802 * read.c (read_makefile): Add missing parens in if stmt that find
4803 conditional directives.
4805 * main.c (main): Declare init_dir.
4806 * implicit.c (pattern_search): Always use two % specs in a
4807 DEBUGP2, and always pass two non-nil args.
4808 Cast field width args to int.
4809 Add missing parens in !RULE->subdir if stmt.
4810 * function.c (expand_function, patsubst_expand): Add parens around
4811 assignments inside `while' stmts.
4812 * commands.c (print_commands): Cast field width args to int.
4814 * read.c (do_define): Cast return value of alloca to (char *).
4816 * main.c (init_switches): New function, broken out of decode_switches.
4817 (decode_switches): Take new arg ENV. If set, ignore non-option
4818 args; print no error msgs; ignore options with clear `env' flags.
4819 (decode_env_switches): Rewritten to chop envar value into words
4820 and pass them to decode_switches.
4821 (switches): Set `env' flag for -I and -v.
4823 * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
4825 Tue Jan 5 14:52:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4829 * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
4830 <sys/resource.h>. <sys/time.h> interacts badly with <time.h>, and
4831 we don't need these anyway.
4833 * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
4834 * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
4835 #ifdef POSIX || USG. SunOS 4.1 is supposedly POSIX.1 compliant,
4836 but its set[gu]id functions aren't; its setre[gu]id functions work.
4838 * misc.c ({user,make,child}_access): Give name of caller in error msgs.
4840 * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
4842 * configure.in: Call AC_PROG_CC.
4843 * compatMakefile (CC): Define to @CC@ (autoconf magic).
4845 * compatMakefile: Add .NOEXPORT magic target.
4847 Mon Jan 4 17:00:03 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4849 * main.c (print_version): Updated copyright to include 93.
4851 Thu Dec 31 12:26:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4853 * make.h [_AIX]: Don't declare alloca.
4855 Tue Dec 29 13:45:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4859 * compatMakefile (objs): Add signame.o.
4860 (srcs): Add signame.[ch].
4862 * compatMakefile (srcs): Add config.h.in.
4863 (remote.o): Add -I. before -I$(srcdir).
4865 Mon Dec 28 15:51:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4869 * read.c (readline): Fatal when LEN==0, indicating a line starting
4871 (readline): Take new arg LINENO, for use in error msg.
4872 (read_makefile, do_define): Pass it.
4874 * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
4875 (.c.o): Add -I. before -I$(srcdir).
4877 Wed Dec 23 12:12:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4879 * read.c (read_makefile): Accept and ignore a rule with no targets.
4881 * compatMakefile (ALLOCA_SRC): New variable.
4882 (srcs): Include its value.
4884 * read.c (struct conditional): Renamed member `max_ignoring' to
4885 `allocated'; added new member `seen_else'.
4886 (conditional_line): Initialize seen_else flag when starting an `if...';
4887 set it when we see an `else'; fatal if set when we see `else'.
4888 (read_makefile): Fatal "missing `endif'" if there are any pending
4889 conditionals, not just if we are still ignoring.
4891 Tue Dec 22 15:36:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4893 * compatMakefile (manext): Set to 1, not l.
4894 ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
4896 * file.c (file_hash_enter): Don't call uniquize_deps here.
4897 * read.c (record_files): Likewise.
4898 * implicit.c (pattern_search): Likewise.
4899 * commands.c (set_file_variables): Call it only here.
4901 * default.c (default_variables) [__convex__]: FC=fc.
4903 * variable.c (target_environment): Expand the values of recursively
4904 expanded variables when putting them into the environment.
4905 * expand.c (recursively_expand): Made global.
4906 * make.h (recursively_expand): Declare it.
4908 * remake.c (check_dep): Set FILE->command_state to cs_deps_running
4909 when a dep's command_state is cs_running or cs_deps_running.
4911 * read.c (read_makefile): Changed error msg for spurious cmds to
4912 not say "first target".
4914 Sun Dec 20 17:56:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
4916 * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
4917 * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
4918 * compatMakefile (config.h, configure, config.h.in): New rules.
4919 (defines): Removed @DEFS@.
4921 Thu Dec 17 16:11:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4923 * compatMakefile (realclean): Just depend on distclean; no cmds.
4924 (distclean): Do what realclean did before; also remove Makefile and
4925 config.h; don't remove configure.
4926 (info, dvi): New targets; depend on make.{info,dvi}.
4927 (doc): Removed target.
4928 (MAKEINFO, TEXI2DVI): New vars.
4929 (make.info, make.dvi): Use them instead of explicit cmds.
4931 Wed Dec 16 16:25:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4933 * configure.in: Added fcntl.h to AC_HAVE_HEADERS. getloadavg cares.
4935 Wed Dec 9 15:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4937 * main.c (long_option_aliases): Add --new-file alias for -W.
4939 * default.c (default_variables): Change all C++ to CXX and C++FLAGS
4942 * read.c (do_define): Expand the variable name before using it.
4944 * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
4945 define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
4947 * remake.c (library_search): Search for libNAME.a in cwd; look in
4948 vpath before looking in standard dirs, not after.
4949 Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
4951 Mon Nov 23 14:57:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4953 * default.c (default_pattern_rules, default_terminal_rules): Added
4954 brackets around initializers.
4956 * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
4957 (try_variable_definition): Expand the name before defining the var.
4959 * job.c (init_siglist): Removed function.
4960 Removed decl of `sys_siglist'.
4961 * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
4962 [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
4963 only under these conditions.
4964 * main.c (main): Don't declare init_siglist.
4965 (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
4967 Wed Nov 18 14:52:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4969 * read.c (record_files): Don't try to append to FIRSTDEPS if it's
4970 nil; instead just set it to MOREDEPS.
4972 Mon Nov 16 17:49:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4974 * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
4975 loop that sets MAXELEM.
4977 Fri Nov 13 18:23:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4981 Thu Nov 12 15:45:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4983 * job.c (start_job_command): Under -n, increment files_remade after
4984 processing (i.e., printing) all command lines.
4986 Tue Nov 10 15:33:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4988 * read.c (record_files): Append new deps if this rule has no
4989 commands; prepend them to existing deps if this rule has no commands.
4991 * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
4993 * read.c (parse_file_seq): Removed last arg STRIP. Always strip `./'s.
4994 (read_makefile): Changed callers.
4995 * function.c (string_glob): Likewise.
4996 * rule.c (install_pattern_rule): Likewise.
4998 Mon Nov 9 17:50:16 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5000 * remake.c (files_remade): Made global.
5001 (notice_finished_file): Don't increment files_remade here; this
5002 function gets called in many situations where no remaking was in
5004 * job.c (reap_children): Do it here instead, when we know that
5005 actual commands have been run for the file.
5006 * make.h (files_remade): Declare it.
5008 Thu Nov 5 18:26:10 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5010 * vpath.c (construct_vpath_list): Allow blanks as well as colons to
5011 separate elts in the search path.
5013 * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
5014 The search path can contain spaces now.
5016 Tue Nov 3 20:44:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5018 * compatMakefile (check): New target; no-op.
5020 * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
5021 testing for OLDHASH==0 but before using the value.
5022 (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
5025 * file.c (rename_file): Notice when OLDFILE->cmds came from
5026 default.c, and don't try to print ->filename in that case.
5028 Sun Oct 25 01:48:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5030 * remake.c (update_file): Don't process F->also_make here.
5031 (notice_finished_file): Don't process FILE->also_make if no attempt
5032 to update FILE was actually made.
5033 Fixed to call f_mtime directly to refresh their modtimes.
5035 Sat Oct 24 22:08:59 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5037 * read.c (find_percent): Don't increment P again after skipping
5040 * expand.c (variable_expand): In call to patsubst_expand, don't
5041 find `%'s ourselves; let that function do it.
5043 * read.c (read_makefile: record_waiting_files): Don't call
5044 record_files if FILENAMES is nil.
5045 (read_makefile): All alternatives in the parsing, except for rule
5046 lines, fall through to the end of the loop. At the end of the
5047 loop, do record_waiting_files so we notice later spurious cmds.
5049 Fri Oct 23 15:57:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5051 * variable.c (define_automatic_variables): Free old value of SHELL
5052 before replacing it.
5054 Thu Oct 15 18:57:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5056 * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
5058 * dir.c (open_dirstream): Cast return value to __ptr_t.
5060 * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
5062 * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
5063 (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
5064 Define as (get_path_max ()).
5065 [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
5066 [! PATH_MAX] (get_path_max): Declare fn.
5067 * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
5069 Mon Oct 12 13:34:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5073 * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
5074 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5075 SYS_SIGLIST_DECLARED.
5077 * dir.c (file_impossible): When initializing DIR->contents, set
5078 DIR->contents->dirstream to nil.
5080 * compatMakefile (GLOB): Define new variable.
5081 (objs): Use it, rather than glob/libglob.a explicitly.
5083 * read.c (parse_file_seq): When stripping "./", handle cases like
5084 ".///foo" and "./////".
5085 * file.c (lookup_file, enter_file): Likewise.
5087 Sun Oct 11 17:00:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5089 * dir.c (struct dirstream, {open,read}_dirstream): New
5090 data type and functions to read a directory sequentially.
5091 (init_dir): New function to hook it into glob.
5092 * main.c (main): Call init_dir.
5094 * compatMakefile (objs): Added glob/libglob.a.
5095 * configure.in: Remove code to test for glob.
5097 Fri Oct 9 12:08:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5099 * read.c (record_files): Generalized test for NAME pointing
5100 somewhere into F->name.
5102 * variable.c (define_variable_in_set): Free old value when replacing.
5104 * read.c (do_define): Free the linebuffer before returning.
5105 (record_files): When clearing .SUFFIXES deps, free their data.
5106 (multi_glob): Free OLD and its data when replacing it with results
5109 * commands.c (set_file_variables): Use alloca in place of xmalloc
5110 for temp space for $^, $?, et al.
5112 * dir.c (struct directory): New member `contents' replaces `files'
5114 (struct directory_contents): New type.
5115 (directories_contents): New hash table.
5116 (dir_struct_file_exists_p): Take a struct directory_contents.
5117 (dir_file_exists_p): Pass it the `contents' member of the dir found.
5118 (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
5119 made static. Return 0 if DIR is nil (meaning it couldn't be stat'd).
5120 (dir_file_exists_p, find_directory): Change all callers.
5121 (file_impossible): Use DIR->contents, initializing it if nil.
5122 (print_dir_data_base): Use DIR->contents, and print out device and
5123 inode numbers with each directory.
5125 * Changes for performance win from John Gilmore <gnu@cygnus.com>:
5126 * dir.c (DIRECTORY_BUCKETS): Increase to 199.
5127 (DIRFILE_BUCKETS): Decrease to 107.
5128 (find_directory): Allocate and zero a multiple of
5129 sizeof (struct dirfile *), not of sizeof (struct dirfile).
5130 (dir_struct_file_exists_p): New function, nearly all code from
5132 (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
5133 * vpath.c (selective_vpath_search): Remove redundant
5134 dir_file_exists_p call.
5136 * configure.in: Comment out glob check; always use our code.
5138 Fri Oct 2 19:41:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5140 * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5141 HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
5144 Wed Sep 30 19:21:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5146 * main.c (main): Don't do -w automatically if -s.
5148 Tue Sep 29 21:07:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5150 * main.c (printed_version): Move variable inside print_version.
5151 (print_version): Return immediately if printed_version is set.
5152 (die): Don't test printed_version here.
5153 (decode_switches): Under -v, do print_version before giving usage.
5154 (DESCRIPTION_COLUMN): New macro.
5155 (decode_switches): Use it when printing the usage message.
5156 Leave at least two spaces between options and their descriptions.
5158 Fri Sep 25 13:12:42 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5162 Wed Sep 16 16:15:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5164 * read.c (read_makefile): Save errno value from trying to open
5165 FILENAME, and restore it before erring; otherwise we get the errno
5166 value from the last elt of the search path.
5168 Tue Sep 15 15:12:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5170 * main.c (long_option_aliases): Add --stop for -S.
5172 * read.c (word1eq): Do strncmp before dereferencing someplace that
5173 may be out in space.
5175 Wed Sep 9 15:50:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5177 * remake.c (notice_finished_file): If all the command lines were
5178 recursive, don't do the touching.
5180 * job.c (start_job_command): Don't check for + here.
5181 * commands.c (chop_commands): Do it here instead.
5183 * default.c (default_terminal_rules): Prepend + to cmds for RCS.
5185 Wed Sep 2 17:53:08 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5187 * compatMakefile (objs): Include $(ALLOCA).
5189 * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
5191 Thu Aug 27 17:45:43 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5193 * read.c (default_include_directories): Add INCLUDEDIR first.
5194 * compatMakefile (includedir): Define.
5195 (defines): Add -D for INCLUDEDIR="$(includedir)".
5197 * read.c (read_makefile): Grok multiple files in `include';
5200 * remake.c (library_search): New function.
5201 (library_file_mtime): Remove function.
5202 (f_mtime): Use library_search instead of library_file_mtime.
5203 * compatMakefile (libdir): Define.
5204 (defines): Add -D for LIBDIR="$(libdir)".
5205 * make.texinfo (Libraries/Search): Document change.
5207 * file.c (rename_file): Fix file_hash_enter call with missing arg.
5209 Wed Aug 26 17:10:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5213 * main.c (main): Set command_state to cs_finished for temp files
5214 made for stdin makefiles.
5216 * main.c (decode_switches): Don't tell getopt to return non-option
5218 Ignore an argument of `-'.
5220 Thu Aug 20 13:36:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5222 * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
5223 the command line and go to the next.
5224 (notice_finished_file): Under -t, touch FILE.
5225 * remake.c (remake_file): Don't touch it here.
5227 Wed Aug 19 16:06:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5229 * function.c (pattern_matches): Use temporary for strlen (WORD)
5230 instead of two function calls.
5232 * compatMakefile (LOAD_AVG): Remove variable and comments.
5234 Tue Aug 18 14:58:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5236 * make.texinfo (Running): Node renamed to `make Invocation'.
5238 Fri Aug 14 12:27:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5240 * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
5243 Thu Aug 13 17:50:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5247 * main.c: Don't #include <time.h>; make.h already does.
5249 Mon Aug 10 17:03:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5251 * implicit.c (pattern_search): Fixed copying of suffix when building
5254 * function.c (expand_function: `shell'): Make sure BUFFER is
5255 null-terminated before replacing newlines.
5257 * compatMakefile (mandir): Use man$(manext), not always manl.
5259 Sun Aug 2 01:42:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5261 * rule.c (new_pattern_rule): Not static.
5262 * rule.h: Declare it.
5264 * file.c (file_hash_enter): New function, most code from rename_file.
5265 (rename_file): Call it.
5266 * file.h (file_hash_enter): Declare it.
5270 Thu Jul 30 15:40:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5272 * main.c (decode_switches): Handle usage_and_exit when building
5273 long options vector.
5275 * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
5276 (default_variables): Define CHECKOUT,v (hairy).
5278 * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
5279 sys_siglist to _sys_siglist.
5281 Sun Jul 26 16:56:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5283 * NEWS: Add header and tail copyright info like Emacs NEWS.
5285 * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
5286 bcopy if already #define'd.
5287 [STDC_HEADERS] (qsort, abort, exit): Declare here.
5288 [! __GNU_LIBRARY__ && !POSIX]: Not here.
5290 * make.h [_AIX]: #pragma alloca first thing.
5292 * job.c (start_waiting_job): Set the command_state to cs_running
5293 when we queue a job on waiting_jobs.
5295 Fri Jul 24 02:16:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5297 * variable.c (define_automatic_variables): Use "" instead of nil
5300 Thu Jul 23 22:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5304 * main.c (struct command_switch.type): Add alternative usage_and_exit.
5305 (command_switches): Add -h/--help.
5307 Thu Jul 16 14:27:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5309 * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
5310 * README.template: Mention NEWS.
5311 * CHANGES: Renamed to NEWS.
5313 * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
5315 Tue Jul 14 18:48:41 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5317 * main.c (main): Set -o files' command_states to cs_finished.
5319 * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
5320 when tossing a rule.
5322 * main.c (main): Use alloca only in simple local var assignment,
5323 for braindead SGI compiler.
5325 * rule.c (print_rule_data_base): Barf if num_pattern_rules is
5326 inconsistent with the number computed when listing them.
5328 Mon Jul 13 17:51:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5330 * commands.c (set_file_variables): For $? and $^ elts that are archive
5331 member refs, use member name only.
5333 Fri Jul 10 00:05:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5335 * variable.h (struct variable.export): Add new alternative v_ifset.
5336 * variable.c (target_environment): Check for it.
5337 (define_automatic_variables): Set it for MAKEFILES.
5339 Thu Jul 9 21:24:28 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5341 * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
5342 (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
5343 (distclean, mostlyclean): New targets.
5345 Tue Jul 7 19:12:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5349 * compatMakefile (config.status): Remove rule.
5351 * job.c (start_waiting_job): Free C after using C->file, not before.
5353 Sat Jul 4 20:51:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5355 * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
5356 HAVE_* instead of #ifndef *_MISSING.
5357 * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
5359 Thu Jul 2 18:47:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5361 * main.c (main): makelevel>0 or -C implies -w.
5363 Tue Jun 30 20:50:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5365 * file.c, job.c, function.c: Don't #include <errno.h>.
5366 make.h: Do it here instead.
5367 * arscan.c (ar_member_touch): Don't declare errno.
5369 Thu Jun 25 17:06:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5371 * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
5373 * remake.c (update_file): If commands or deps are running after
5374 update_file_1 returns, break out of the :: rule (->prev) loop and
5377 * job.c (job_next_command): New function; code from start_job.
5378 (start_job_command): Renamed from start_job. Call job_next_command
5379 and recurse for empty command lines and -n.
5380 (start_waiting_job): Call start_job_command, not start_job.
5381 (new_job): Call job_next_command to prime the child structure, and
5382 then call start_waiting_job.
5383 (reap_children): Use job_next_command and start_job_command.
5384 (start_waiting_job): Call start_remote_job_p here, and store its
5385 result in C->remote. If zero, check the load average and
5386 maybe put C on waiting_jobs.
5387 (start_job_command): Test CHILD->remote rather than calling
5388 start_remote_job_p. Don't do load avg checking at all here.
5390 * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
5391 SIGSEGV, SIGFPE or SIGTRAP.
5393 * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
5394 configure will set it in glob/Makefile.
5396 Wed Jun 24 19:40:34 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5398 * dir.c [DIRENT] (direct): Don't define to dirent.
5399 [! DIRENT] (direct): Define to dirent.
5400 (dir_file_exists_p): Use struct dirent instead of struct direct.
5402 * make.h (getcwd): No space between macro and ( for args!
5404 * job.c (start_job): Don't put the job on waiting_jobs if
5407 * make.texinfo (Missing): Shortened title.
5409 Tue Jun 23 18:42:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5411 * file.c (remove_intermediates): Print "rm" commands under -n.
5413 Mon Jun 22 16:20:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5417 Fri Jun 19 16:20:26 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5419 * arscan.c [M_UNIX]: #undef M_XENIX.
5421 Wed Jun 17 17:59:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5423 * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
5425 Tue Jun 16 19:24:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5427 * compatMakefile (getloadavg.o): Removed special rule.
5428 (CFLAGS): Don't include $(defines).
5429 (.c.o): Define suffix rule.
5430 (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
5431 (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
5433 * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
5435 * make.h (max): Removed.
5436 * expand.c (variable_buffer_output): Don't use it.
5438 * compatMakefile (INSTALL): Define.
5439 (Makefile): New rule to make from Makefile.in.
5442 (getloadavg.o, remote.o): Use autoconf $foo< hack.
5444 * commands.c (fatal_error_signal): Removed return.
5446 Mon Jun 15 17:42:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5450 * make.texinfo (Summary): New node.
5451 (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
5453 * variable.c (max): Moved to make.h.
5455 * compatMakefile (objs, srcs): Added ar & arscan.
5457 * job.c (start_waiting_job): New function, 2nd half of new_job.
5459 (start_waiting_jobs): New function.
5460 * remake.c (update_goal_chain): Call start_waiting_jobs at the top
5462 * compatMakefile (objs, srcs): Removed load, added getloadavg.
5464 Fri Jun 12 19:33:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5466 * job.c (load_too_high): New function. Uses getloadavg.
5467 (waiting_jobs): New variable.
5468 (start_job): Don't call wait_to_start_job. Instead, if
5469 load_too_high returns nonzero, add the child to the
5470 `waiting_jobs' chain and return without starting the job.
5472 Thu Jun 11 00:05:28 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5474 * expand.c (variable_buffer_output): Made global again.
5475 * variable.h: And declare it.
5477 * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
5478 (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
5479 (ar_scan): Don't use it. Don't #ifdef AR_TRAILING_SLASH; just look
5480 for a slash in the archive at run time.
5481 (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
5482 cope with trailing-slash and non-trailing-slash archives.
5484 * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
5485 [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
5487 * load.c (load_average) [sgi]: Use sysmp call.
5489 * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
5490 ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
5492 * make.h [HAVE_VFORK_H]: #include <vfork.h>.
5493 (vfork, VFORK_NAME): Don't define.
5494 * job.c (start_job): Use "vfork" in place of VFORK_NAME.
5496 * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
5497 the each file. Rearranged PATH_MAX hacking.
5498 * job.c: Rearranged NGROUPS_MAX hacking.
5500 * remake.c (fstat, time): Don't declare.
5502 * compatMakefile (defines): Value is @DEFS@.
5503 (LOADLIBES): Value is @LIBS@.
5504 (extras): Value is @LIBOBJS@.
5505 (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
5506 * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
5508 * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
5510 * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
5511 (getcwd): Just declare if present. If not, declare as a macro
5512 using getwd, and declare getwd.
5513 [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
5514 * main.c (main, log_working_directory): Use getcwd instead of getwd.
5516 * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
5518 * make.h (SIGHANDLER, SIGNAL): Removed.
5519 (RETSIGTYPE): Define if not #define'd.
5520 * main.c (main): Use signal in place of SIGNAL.
5522 * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
5524 * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
5525 [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
5527 * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
5528 [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
5530 * job.c (child_handler), commands.c (fatal_error_signal): Return
5531 RETSIGTYPE instead of int.
5532 * main.c (main): Declare fatal_error_signal and child_handler here
5533 to return RETSIGTYPE; removed top-level decl of former.
5535 * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
5536 main.c [SIGSETMASK_MISSING]: Test this instead of USG.
5538 Wed Jun 10 22:06:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5540 * job.c [HAVE_WAITPID]: Test this instead of USG.
5541 [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
5542 (GID_T): Don't #define.
5543 (search_path): Use gid_t instead of GID_T.
5544 [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
5545 these individually instead of USG for all.
5546 * make.h (ctime): Don't declare. #include time.h instead.
5547 [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
5549 * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
5550 * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
5552 * arscan.c: Removed #ifdef mess about string.h et al.
5553 Just #include make.h instead.
5554 * make.h (fstat, atol): Declare.
5556 * commands.c (fatal_error_signal): Don't use sigmask to check for
5557 propagated signals; use ||s instead.
5558 (PROPAGATED_SIGNAL_MASK): Removed.
5559 (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
5561 * variable.c (variable_buffer, variable_buffer_length,
5562 initialize_variable_output, variable_output): Moved to expand.c;
5564 (struct output_state, save_variable_output,
5565 restore_variable_output): Removed.
5566 * expand.c (initialize_variable_output): Put a NUL at the beginning
5567 of the new buffer after allocating it.
5568 (allocated_variable_expand_for_file): Don't use
5569 {save,restore}_variable_output. Do it by hand instead, keeping
5570 state on the stack instead of malloc'ing it.
5571 (allocated_variable_expand): Removed.
5572 * variable.h (allocated_variable_expand): Define here as macro.
5573 (variable_buffer_output, initialize_variable_output,
5574 save_variable_output, restore_variable_output): Removed decls.
5576 * read.c (conditional_line): For an if cmd, if any elt of the
5577 conditionals stack is ignoring, just push a new level that ignores
5578 and return 1; don't evaluate the condition.
5580 Thu Jun 4 21:01:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5582 * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
5584 * job.c (getdtablesize): Don't declare or #define if already #define'd.
5586 Wed Jun 3 23:42:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5588 * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
5589 export_all_variables.
5590 * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
5592 Tue Jun 2 21:08:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5596 * commands.c (set_file_variables): Calculate length for ^D and ?D
5597 individually, making sure to give them at least enough space for "./".
5599 * make.h [CRAY]: #define signal to bsdsignal.
5601 * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
5602 CF77PPFLAGS, CF77PP, CFT, CF, and FC.
5604 * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
5605 wasn't defined by <ar.h>.
5607 Thu May 28 00:56:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5611 Tue May 26 01:26:30 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5613 * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
5616 Mon May 25 19:02:15 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5618 * main.c (decode_switches): Initialize all the long_option elt members.
5620 Thu May 21 16:34:24 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5622 * make.texinfo (Text Functions): Correct filter-out description.
5624 Tue May 19 20:50:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5626 * compatMakefile (realclean): Don't remove backup files.
5628 * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
5630 Sun May 17 16:38:48 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5634 Thu May 14 16:42:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5636 * job.c (reap_children): Don't die if wait returns EINTR.
5638 Wed May 13 18:28:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5640 * job.c (reap_children): Always run the next command for a
5641 successful target. If we are going to die, we don't want to leave
5642 the target partially made.
5644 Tue May 12 00:39:19 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5646 * job.c (construct_command_argv_internal): After loop, if we only
5647 have one word, check it for being a shell command.
5649 * main.c (decode_switches): Allocate ARGC slots in other_args to
5650 begin with, so we never need to worry about growing it.
5651 If we get a non-option arg and POSIXLY_CORRECT is in the
5652 environment, break out of the loop. After the loop, add all remaining
5653 args to other_args list.
5655 * main.c (decode_switches): For positive_int and floating switches
5656 when optarg is nil, use next arg if it looks right (start with a
5657 digit, or maybe decimal point for floating).
5659 * variable.c (define_automatic_variables): Always set SHELL to
5660 default if it comes from the environment. Set its export bit.
5661 * make.texinfo (Environment): Document change.
5663 Mon May 11 00:32:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5667 * compatMakefile (tags, TAGS): Use vars for cmds.
5668 (ETAGS, CTAGS): Define.
5670 * main.c (decode_switches): If a switches elt has a nil long_name,
5671 make the long option name elt be "".
5672 Fixed loop to not ignore all the options.
5674 * make.texinfo (Option Summary): Added long options.
5676 * main.c (switches): Changed -m's description to "-b".
5677 (decode_switches): When printing the usage message, don't print
5678 switches whose descriptions start with -.
5679 When constructing the list of names for switch -C, search the
5680 switches vector for switches whose descriptions are "-C".
5682 * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
5683 Call -I --include-dir, not --include-path.
5684 (long_option_aliases): Added --new == -W, --assume-new == -W,
5685 --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
5688 * main.c (switches): Removed bogus "silent" elt.
5689 (long_option_aliases): Define new var.
5690 (decode_switches): Add long_option_aliases onto the end of the long
5691 options vector created for getopt_long.
5692 Look through long_option_aliases for extra names to list
5695 Sat May 9 00:21:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5697 * main.c (log_working_directory): Fixed to properly not print the
5698 leaving message when we haven't printed the entering message.
5700 Fri May 8 21:55:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5702 * main.c (struct command_switch): Added elts `long_name',
5703 `description', and `argdesc'.
5704 (switches): Added initializers for new members.
5705 (decode_switches): Rewritten to use getopt_long.
5706 * compatMakefile (GETOPT, GETOPT_SRC): Define.
5707 (objs, srcs): Include them.
5709 * job.c (child_died): Renamed to dead_children; made static.
5710 (child_handler): Increment dead_children instead of setting child_died.
5711 (reap_children): Decrement dead_children instead of clearing
5712 child_died. The point of all this is to avoid printing "waiting
5713 for unfinished jobs" when we don't actually need to block.
5714 This happened when multiple SIGCHLDs before reap_children was called.
5716 * job.c (reap_children): If ERR is set, so we don't call start_job
5717 on the child being reaped, instead set its command_state to
5719 (reap_children, child_handler, new_job): I added several
5720 debugging printf's while fixing this. I left them in if (debug_flag)
5721 because they may be useful for debugging this stuff again.
5723 Wed May 6 22:02:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5725 * read.c (read_makefile): v_export is not 1.
5727 Mon May 4 17:27:37 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5731 * variable.c (export_all_variables): New variable.
5732 (target_environment): Export variables whose `export' member is
5733 v_default if export_all_variables is set and their names are benign.
5734 * variable.h: Declare export_all_variables.
5735 * read.c (read_makefile): If export or unexport is given with no
5736 args, set or clear export_all_variables, respectively.
5738 * variable.c (target_environment): Exclude MAKELEVEL in the loop,
5739 so it isn't duplicated when we add it at the end.
5741 Sun May 3 17:44:48 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5745 * variable.h (struct variable): Added new member `export'.
5746 * variable.c (define_variable_in_set): Initialize it to v_default.
5747 (target_environment): Don't check for .NOEXPORT.
5748 Export variables whose `export' member is v_default and that would
5749 have been exported under .NOEXPORT, and variables whose `export'
5751 (try_variable_definition): Return the variable defined.
5752 * variable.h (try_variable_definition): Changed decl.
5753 * read.c (read_makefile): Recognize `export' and `unexport' directives.
5755 Fri May 1 11:39:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5757 * main.c (main) [POSIX]: Reversed args to sigaddset.
5759 Thu Apr 30 17:33:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5761 * job.c [POSIX || !USG] (unblock_sigs): New fn.
5762 (start_job): Block signals before forking.
5763 (new_job): Unblock signals after putting the new child on the chain.
5764 * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
5765 int fatal_signal_mask.
5767 * load.c [sgi] (LDAV_CVT): Define.
5769 Wed Apr 29 17:15:59 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5773 * load.c (load_average) [sgi]: Clear the high bit of the address
5774 from the symbol table before looking it up in kmem.
5776 * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
5777 (remake_file): No longer needed in message here.
5779 * main.c (die): Call reap_children with BLOCK==1.
5781 Tue Apr 28 20:44:35 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5783 * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
5785 Sun Apr 26 15:09:51 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5787 * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
5788 not to head of chain. Extract next ptr before we might do
5789 freerule, and use that for next iteration.
5790 (freerule): Still do next ptr frobbing if LASTRULE is nil.
5792 Tue Apr 21 03:16:29 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5794 * job.c (child_error): Removed extra %s from error msg format.
5798 * job.c (reap_children): Don't start later commands in a sequence
5801 * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
5803 * job.c (reap_children): New function; work that used to be done in
5805 (child_died): New global var.
5806 (child_handler): Now just sets child_died.
5807 (wait_for_children): Removed.
5808 (unknown_children_possible, block_signals, unblock_signals,
5809 push_signals_blocked_p, pop_signals_blocked_p): Removed.
5810 (child_execute_job): Removed call to unblock_signals.
5811 (new_job): Removed calls to push_signals_blocked_p and
5812 pop_signals_blocked_p.
5813 * job.h: Declare reap_children, not wait_for_children.
5814 * commands.c (fatal_error_signal), job.c (new_job),
5815 load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
5816 remake.c (update_goal_chain), function.c (expand_function: `shell'):
5817 Changed wait_for_children calls to reap_children.
5818 Some needed to be loops to wait for all children to die.
5819 * commands.c (fatal_error_signal), main.c (main,
5820 log_working_directory), function.c (expand_function): Removed calls
5821 to push_signals_blocked_p and pop_signals_blocked_p.
5822 * job.h: Removed decls.
5824 * job.h: Added copyright notice.
5826 Wed Apr 15 02:02:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5828 * job.c (child_error): No *** for ignored error.
5830 Tue Apr 14 18:31:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5832 * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
5833 avoid compiler warnings.
5835 * read.c (parse_file_seq): Don't remove ./ when it is followed by a
5838 Mon Apr 13 21:56:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5840 * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
5841 avoid compiler warnings.
5843 * remake.c (notice_finished_file): Run file_mtime on the also_make
5844 files, so vpath_search can happen.
5846 * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
5847 (alpha-files): Include test suite tar file.
5849 Fri Apr 3 00:50:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5853 Wed Apr 1 05:31:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5855 * remake.c (update_file, update_file_1): Do check_renamed on elts
5856 of dep chains when traversing them. Something unrelated might have
5857 renamed one of the files the dep chain points to.
5859 * file.c (rename_file): If FILE has been renamed, follow its
5860 `renamed' ptr, so we get to the final real FILE. Using the renamed
5861 ones loses because they are not in the hash table, so the removal
5862 code loops infinitely.
5864 * read.c (read_all_makefiles): Clobber null terminator into
5865 MAKEFILES expansion, so string passed to read_makefile is properly
5868 Mon Mar 30 20:18:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5870 * commands.c (set_file_variables): $* for archive member with
5871 explicit cmds is stem of member, not of whole `lib(member)'.
5873 Thu Mar 26 15:24:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5877 Tue Mar 24 05:20:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5879 * rule.c (new_pattern_rule): Rules are identical only if all their
5880 targets match (regardless of order).
5882 Wed Mar 11 13:49:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5884 * remake.c (remake_file): Changed error "no way to make" to "no
5885 rule to make". Fiat Hugh.
5887 * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
5890 * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
5893 Tue Mar 10 18:13:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5895 * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
5896 environment to pass to child.
5897 * job.c (start_job): Pass it.
5899 Mon Mar 9 19:00:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5901 * file.c (enter_file): Also strip ./s here, to get command-line
5904 * remote-cstms.c: Add comment telling people to leave me alone.
5906 * compatMakefile (manpage install): Remove target before copying.
5908 Tue Mar 3 18:43:21 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5910 * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
5911 Added paragraph describing $? incompatibility with Unix and POSIX.2.
5913 Sun Mar 1 15:50:54 1992 Roland McGrath (roland@nutrimat.gnu.ai.mit.edu)
5915 * function.c (expand_function: `shell'): Don't declare fork or pipe.
5916 Use vfork instead of fork.
5918 Tue Feb 25 22:05:32 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5920 * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
5923 * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
5925 Sun Feb 16 02:05:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5929 Sat Feb 15 17:12:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5931 * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
5933 Fri Feb 14 00:11:55 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5935 * read.c (read_makefile): Correctly handle define & endef in ifdefs.
5937 * read.c (record_files): Pass arg for %s in error msg.
5939 * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
5942 Wed Feb 12 12:07:39 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
5944 * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
5946 Sun Feb 9 23:06:24 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5948 * read.c (read_makefile): Check for extraneous `endef' when ignoring.
5950 Thu Feb 6 16:15:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5954 Tue Feb 4 20:04:46 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5956 * job.c (construct_command_argv_internal): Correctly ignore
5957 whitespace after backslash-NL.
5959 Fri Jan 31 18:30:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5961 * compatMakefile: Ignore errors from chgrp and chmod when installing.
5963 Wed Jan 29 18:13:30 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5965 * main.c (main): When setting MAKELEVEL in the env to re-exec,
5966 allocate space so as not to clobber past the end of the old string.
5968 * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
5969 * compatMakefile (defines): Document HAVE_ALLOCA_H.
5971 Mon Jan 20 13:40:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5973 * make.h [VFORK_MISSING]: Use fork instead.
5974 * compatMakefile (defines): Document same.
5976 * job.c (construct_command_argv_internal): Don't create an empty
5977 arg if backslash-NL is at beginning of word.
5979 Sun Jan 19 16:26:53 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5981 * main.c [DGUX]: Call setvbuf as for USGr3.
5983 * job.c (construct_command_argv_internal): Notice correctly that
5984 backslash-NL is the end of the arg (because it is replaced with a
5987 Thu Jan 16 18:42:38 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5989 * job.c (construct_command_argv_internal): If SHELL is nil, set it
5990 to default_shell before proceeding.
5992 * make.h [sgi]: No alloca.h, after all.
5994 Wed Jan 15 12:30:04 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
5996 * read.c (multi_glob): Cons up the chain of the results of glob
5997 from back to front, so it comes out in forward order.
5999 * job.c (construct_command_argv_internal): Don't eat char following
6002 Mon Jan 13 19:16:56 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6006 * default.c (default_variables) [ultrix]: GET=get, like USG.
6008 * job.c (construct_command_argv_internal): Remove tabs following
6009 backslash-NL combos in the input line, so they don't show up when
6010 that line is printed.
6012 * read.c (read_makefile): Don't collapse_continuations the line on
6013 input; do it on the copy we do remove_comments on.
6014 For rule lines, collapse_continuations the line after chopping
6015 ";cmds" off the end, so we don't eat conts in the cmds.
6016 Give error for ";cmds" with no rule.
6017 * job.c (construct_command_argv_internal): Eat backslash-NL combos
6018 when constructing the line to recurse on for slow, too.
6020 Sat Jan 11 02:20:27 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
6022 * file.c (enter_file): Don't strip leading `./'s.
6023 * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
6024 * default.c (set_default_suffixes), function.c (string_glob),
6025 read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
6027 * default.c (default_variables) [_IBMR2]: FC=xlf
6029 * job.c (construct_command_argv_internal): Turn backslash-NL and
6030 following whitespace into a single space, rather than just eating
6033 * make.texinfo (Copying): @include gpl.texinfo, rather than
6034 duplicating its contents.
6036 Fri Nov 8 20:06:03 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6038 * job.c (construct_command_argv_internal): Make sure not to bother
6039 processing an empty line.
6043 * job.c (construct_command_argv_internal): Always recurse for slow;
6044 simple case didn't handle finding newlines.
6046 Tue Nov 5 18:51:10 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
6048 * job.c (construct_command_argv_internal): Set RESTP properly when
6049 slow; don't \ify past a newline.
6051 Fri Nov 1 19:34:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6053 * make.h [sgi]: #include <alloca.h>.
6057 See ChangeLog.1 for earlier changes.