1 2004-02-22 Paul D. Smith <psmith@gnu.org>
3 * main.c (decode_switches): Require non-empty strings for all our
4 string command-line options. Fixes Debian bug # 164165.
6 * configure.in: Check for stdarg.h and varargs.h.
7 * make.h (USE_VARIADIC): Set this if we can use variadic functions
9 * misc.c: Check USE_VARIADIC instead of (obsolete) HAVE_STDVARARGS.
14 A number of patches for OS/2 support from Andreas Buening
15 <andreas.buening@nexgo.de>:
17 * job.c (child_handler) [OS/2]: Allow this on OS/2 but we have to
18 disable the SIGCHLD handler.
19 (reap_children) [OS/2]: Remove special handling of job_rfd.
20 (set_child_handler_action_flags) [OS/2]: Use this function in OS/2.
21 (new_job) [OS/2]: Disable the SIGCHLD handler on OS/2.
22 * main.c (main) [OS/2]: Special handling for paths in OS/2.
23 * configure.in [OS/2]: Force SA_RESTART for OS/2.
24 * Makefile.am (check-regression): Use $(EXEEXT) for Windows-type
27 2004-02-21 Paul D. Smith <psmith@gnu.org>
29 * w32/subproc/sub_proc.c (process_easy) [W32]: Christoph Schulz
30 <mail@kristov.de> reports that if process_begin() fails we don't
31 handle the error condition correctly in all cases.
32 * w32/subproc/w32err.c (map_windows32_error_to_string): Make sure
33 to have a newline on the message.
35 * job.c (construct_command_argv_internal): Add "test" to UNIX
36 sh_cmds[]. Fixes Savannah bug # 7606.
38 2004-02-04 Paul D. Smith <psmith@gnu.org>
40 * job.c (vms_handle_apos) [VMS]: Fix various string handling
41 situations in VMS DCL. Fixes Savannah bug #5533. Fix provided by
42 Hartmut Becker <Hartmut.Becker@hp.com>.
44 2004-01-21 Paul D. Smith <psmith@gnu.org>
46 * job.c (load_too_high): Implement an algorithm to control the
47 "thundering herd" problem when using -l to control job creation
48 via the load average. The system only recomputes the load once a
49 second but we can start many jobs in a second. To solve this we
50 keep track of the number of jobs started in the last second and
51 apply a weight to try to guess what a correct load would be.
52 The algorithm was provided by Thomas Riedl <thomas.riedl@siemens.com>.
54 (reap_children): Decrease the job count for this second.
55 (start_job_command): Increase the job count for this second.
57 * read.c (conditional_line): Expand the text after ifn?def before
58 checking to see if it's a single word. Fixes bug #7257.
60 2004-01-09 Paul D. Smith <psmith@gnu.org>
62 * file.c (print_file): Recurse to print all targets in
63 double-colon rules. Fixes bug #4518, reported (with patch) by
64 Andrew Chatham <chatham@google.com>.
66 2004-01-07 Paul D. Smith <psmith@gnu.org>
68 * acinclude.m4: Remove make_FUNC_SETVBUF_REVERSED.
69 * configure.in: Change make_FUNC_SETVBUF_REVERSED to
70 AC_FUNC_SETVBUF_REVERSED.
72 * doc/make.texi (Target-specific): Fix Savannah bug #1772.
73 (MAKE Variable): Fix Savannah bug #4898.
75 * job.c (construct_command_argv_internal): Add "!" to the list of
76 shell escape chars. POSIX sh allows it to appear before a
77 command, to negate the exit code. Fixes bug #6404.
79 * implicit.c (pattern_search): When matching an implicit rule,
80 remember which dependencies have the ignore_mtime flag set.
81 Original fix provided in Savannah patch #2349, by Benoit
82 Poulot-Cazajous <Benoit.Poulot-Cazajous@jaluna.com>.
84 2003-11-22 Paul D. Smith <psmith@gnu.org>
86 * README.W32.template (Outputs): Clarification on -j with
87 BATCH_MODE_ONLY_SEHLL suggested by Jonathan R. Grant
90 2003-11-02 Paul D. Smith <psmith@gnu.org>
92 * function.c (func_if): Strip all the trailing whitespace from the
93 condition, then don't expand it. Fixed bug # 5798.
95 * expand.c (recursively_expand_for_file): If we're expanding a
96 variable with no file context, then use the variable's context.
99 2003-10-21 Paul D. Smith <psmith@gnu.org>
101 * main.c (log_working_directory): Add newlines to printf()s.
103 * README.cvs: Add a note to ignore warnings during autoreconf.
105 * maintMakefile (po_repo): Set a new URL for PO file updates.
106 (get-config/config.guess get-config/config.sub): Get these files
107 from the Savannah config project instead of ftp.gnu.org.
109 2003-08-22 Paul D. Smith <psmith@gnu.org>
111 * misc.c (xmalloc, xrealloc): Add one to 0 sizes, to cater to
112 systems which don't yet implement the C89 standard :-/.
114 2003-07-18 Paul D. Smith <psmith@gnu.org>
116 * dir.c (directory_contents_hash_1, directory_contents_hash_1)
117 [WINDOWS32]: Initialize hash.
119 2003-06-19 Earnie Boyd <earnie@uses.sf.net>
121 * dir.c (read_dirstream): Provide a workaround for broken versions of
122 the MinGW dirent structure.
124 2003-05-30 Earnie Boyd <earnie@users.sf.net>
126 * w32/include/dirent.h: Add __MINGW32__ filter.
128 2003-05-30 Earnie Boyd <earnie@users.sf.net>
130 * make.h: Add global declaration of *make_host.
131 * main.c (print_usage): Remove local declaration of *make_host.
132 (print_version): Display "This program built for ..." after Copyright
135 2003-05-30 Earnie Boyd <earnie@users.sf.net>
137 * doc/make.texi: Change "ifinfo" to "ifnottex" as suggested by the
138 execution of "makeinfo --html make.texi".
140 2003-04-30 Paul D. Smith <psmith@gnu.org>
142 * build.template: Make some changes to maybe allow this script to
143 work on DOS/Windows/OS2 systems. Suggested by Andreas Buening.
145 * README.OS2.template: New file for OS/2 support. Original
146 contributed by Andreas Buening.
147 * configure.in: Invoke new pds_AC_DOS_PATHS macro to test for
150 2003-04-19 Paul D. Smith <psmith@gnu.org>
152 Fix bug #1405: allow a target to match multiple pattern-specific
155 * rule.c (create_pattern_var, lookup_pattern_var): Move these to
156 variable.c, where they've always belonged.
157 * rule.h: Move the prototypes and struct pattern_var as well.
158 * variable.c (initialize_file_variables): Invoke
159 lookup_pattern_var() in a loop, until no more matches are found.
160 If a match is found, create a new variable set for the target's
161 pattern variables. Then merge the contents of each matching
162 pattern variable set into the target's pattern variable set.
163 (lookup_pattern_var): Change this function to be usable
164 in a loop. It takes a starting position: if NULL, start at the
165 beginning; if non-NULL, start with the pattern variable after that
166 position, and return the next matching pattern.
167 (create_pattern_var): Create a unique instance of
168 pattern-specific variables for every definition in the makefile.
169 Don't combine the same pattern together. This allows us to
170 process the variable handling properly even when the same pattern
171 is used multiple times.
172 (parse_variable_definition): New function: break out the parsing
173 of a variable definition line from try_variable_definition.
174 (try_variable_definition): Call parse_variable_definition to
176 (print_variable_data_base): Print out pattern-specific variables.
177 * variable.h (struct variable): Remember when a variable is
178 conditional. Also remember its flavor.
179 (struct pattern_var): Instead of keeping a variable set, we just
180 keep a single variable for each pattern.
181 * read.c (record_target_var): Each pattern variable contains only a
182 single variable, not a set, so create it properly.
183 * doc/make.texi (Pattern-specific): Document the new behavior.
185 2003-04-17 Paul D. Smith <psmith@gnu.org>
187 * dir.c (file_exists_p) [VMS]: Patch provided with Bug #3018 by
188 Jean-Pierre Portier <portierjp2@free.fr>. I don't understand the
189 file/directory naming rules for VMS so I can't tell whether this
192 2003-04-09 Paul D. Smith <psmith@gnu.org>
194 * configure.in (HAVE_DOS_PATHS): Define this on systems that need
195 DOS-style pathnames: backslash separators and drive specifiers.
197 2003-03-28 Paul D. Smith <psmith@gnu.org>
199 * file.c (snap_deps): If .SECONDARY with no targets is given, set
200 the intermediate flag on all targets. Fixes bug #2515.
202 2003-03-24 Paul D. Smith <psmith@gnu.org>
204 * configure.in, Makefile.am, glob/Makefile.am, doc/Makefile.am:
205 Upgrade to autoconf 2.57 and automake 1.7.3.
207 * job.c: More OS/2 changes from Andreas Buening.
209 * file.c (print_file): Fix variable initialization.
212 * remake.c (notice_finished_file):
214 * make.h (ENULLLOOP): Set errno = 0 before invoking the command;
215 some calls (like readdir()) return NULL in valid situations
216 without resetting errno. Fixes bug #2846.
218 2003-02-25 Paul D. Smith <psmith@gnu.org>
220 Port to OS/2 (__EMX__) by Andreas Buening <andreas.buening@nexgo.de>.
222 * job.c (_is_unixy_shell) [OS/2]: New function.
223 Set default shell to /bin/sh.
224 (reap_children): Close the job_rfd pipe here since we don't use a
226 (set_child_handler_action_flags): define this to empty on OS/2.
227 (start_job_command): Close the jobserver pipe and use
228 child_execute_job() instead of fork/exec.
229 (child_execute_job): Rewrite to handle stdin/stdout FDs and spawn
230 rather than exec'ing, then reconfigure stdin/stdout.
231 (exec_command): Rewrite to use spawn instead of exec. Return the
234 * main.c (main) [OS/2]: Call initialize_main(). Handle argv[0] as
235 in DOS. Handle the TEMP environment variable as in DOS. Don't
236 use a SIGCHLD handler on OS/2. Choose a shell as in DOS. Don't
237 use -j in DOS mode. Use child_execute_job() instead of
240 * function.c (func_shell) [OS/2]: Can't use fork/exec on OS/2: use
243 * job.h [OS/2]: Move CLOSE_ON_EXEC here from job.c. Add
244 prototypes that return values.
246 * remake.c (f_mtime) [OS/2]: Handle FAT timestamp offsets for OS/2.
248 * read.c (readline) [OS/2]: Don't handle CRLF specially on OS/2.
249 * default.c (default_suffixes) [OS/2]: Set proper default suffixes
251 * vpath.c (construct_vpath_list) [OS/2]: Handle OS/2 paths like
254 2003-02-24 Paul D. Smith <psmith@gnu.org>
256 * default.c [VMS]: New default rules for .cxx -> .obj compiles.
257 * job.c (child_execute_job) [VMS]: New code for handling spawn().
258 (child_execute_job) [VMS]: Handle error status properly.
259 Patches provided by Hartmut Becker <Hartmut.Becker@compaq.com>.
261 * function.c (func_shell): Use EINTRLOOP() while reading from the
262 subshell pipe (Fixes bug #2502).
263 * job.c (free_child): Use EINTRLOOP() while writing tokens to the
265 * main.c (main): Ditto.
267 2003-01-30 Paul D. Smith <psmith@gnu.org>
269 * read.c (eval): eval() was not fully reentrant, because the
270 collapsed buffer was static. Change it to be an automatic
271 variable so that eval() can be invoked recursively.
273 (eval): Apply patch # 1022: fix memory reference error on long
274 target-specific variable lines.
275 Patch provided by Steve Brown <Steve.Brown@macquarie.com>.
277 * function.c (check_numeric): Combine the is_numeric() function
278 into this function, since it's only called from one place.
279 Constify this function. Have it print the incorrect string in the
280 error message. Fixes bug #2407.
281 (strip_whitespace): Constify.
283 * expand.c (expand_argument): Constify.
285 2003-01-29 Paul D. Smith <psmith@gnu.org>
287 Fix bug # 2169, also reported by other people on various systems.
289 * make.h: Some systems, such as Solaris and PTX, do not fully
290 implement POSIX-compliant SA_RESTART functionality; important
291 system calls like stat() and readdir() can still fail with EINTR
292 even if SA_RESTART has been set on the signal handler. So,
293 introduce macros EINTRLOOP() and ENULLLOOP() which can loop on
294 EINTR for system calls which return -1 or 0 (NULL), respectively,
296 Also, remove the old atomic_stat()/atomic_readdir() and
297 HAVE_BROKEN_RESTART handling.
299 * configure.in: Remove setting of HAVE_BROKEN_RESTART.
301 * arscan.c (ar_member_touch): Use EINTRLOOP() to wrap fstat().
302 * remake.c (touch_file): Ditto.
304 * commands.c (delete_target): Use EINTRLOOP() to wrap stat().
305 * read.c (construct_include_path): Ditto.
306 * remake.c (name_mtime): Ditto.
307 * vpath.c (selective_vpath_search): Ditto.
308 * dir.c (find_directory): Ditto.
310 (find_directory): Use ENULLLOOP() to wrap opendir().
311 (dir_contents_file_exists_p): Use ENULLLOOP() to wrap readdir().
313 * misc.c: Remove HAVE_BROKEN_RESTART, atomic_stat(), and
314 atomic_readdir() handling.
316 2003-01-22 Paul D. Smith <psmith@gnu.org>
318 * function.c (func_call): Fix Bug #1744. If we're inside a
319 recursive invocation of $(call ...), mask any of the outer
320 invocation's arguments that aren't used by this one, so that this
321 invocation doesn't "inherit" them accidentally.
323 2002-12-05 Paul D. Smith <psmith@gnu.org>
325 * function.c (subst_expand): Valery Khamenia reported a
326 pathological performance hit when doing substitutions on very
327 large values with lots of words: turns out we were invoking
328 strlen() a ridiculous number of times. Instead of having each
329 call to sindex() call strlen() again, keep track of how much of
330 the text we've seen and pass the length to sindex().
332 2002-11-19 Paul D. Smith <psmith@gnu.org>
334 * README.cvs, configure.in: Upgrade to require autoconf 2.56.
337 2002-11-16 Paul D. Smith <psmith@gnu.org>
339 * NMakefile.template (OBJS): Add hash.c object file.
340 * SMakefile.template (srcs): Ditto.
341 * Makefile.ami (objs): Ditto.
342 * build_w32.bat: Ditto.
344 * Makefile.DOS.template: Remove extra dependencies.
346 2002-10-25 Paul D. Smith <psmith@gnu.org>
348 * expand.c (install_variable_buffer): New function. Install a new
349 variable_buffer context and return the previous one.
350 (restore_variable_buffer): New function. Free the current
351 variable_buffer context and put a previously saved one back.
352 * variable.h: Prototypes for {install,restore}_variable_buffer.
353 * function.c (func_eval): Push a new variable_buffer context
354 before we eval, then restore the old one when we're done.
357 * read.c (install_conditionals): New function. Install a new
358 conditional context and return the previous one.
359 (restore_conditionals): New function. Free the current
360 conditional context and put a previously saved one back.
361 (eval): Use the {install,restore}_conditionals for "include"
363 (eval_buffer): Use {install,restore}_conditionals to preserve the
364 present conditional state before we evaluate the buffer.
367 * doc/make.texi (Quick Reference): Add references to $(eval ...)
369 (Recursion): Add a variable index entry for CURDIR.
371 * README.cvs: Update to appropriate versions.
372 * Makefile.am (nodist_loadavg_SOURCES): automake gurus point out I
373 don't need to copy loadavg.c: automake is smart enough to create
374 it for me. Still have a bug in automake related to ansi2knr tho.
376 2002-10-14 Paul D. Smith <psmith@gnu.org>
378 * remake.c (notice_finished_file): Only touch targets if they have
379 at least one command (as per POSIX). Resolve Bug #1418.
381 * *.c: Convert to using ANSI C-style function definitions.
382 * Makefile.am: Enable the ansi2knr feature of automake.
383 * configure.in: ditto.
385 2002-10-13 Paul D. Smith <psmith@gnu.org>
387 * commands.c (set_file_variables): Bug #1379: Don't use alloca()
388 for automatic variable values like $^, etc. In the case of very
389 large lists of prerequisites this causes problems. Instead reuse
390 a static buffer (resizeable) for each variable.
392 * read.c (eval): Fix Bug #1391: allow "export" keyword in
393 target-specific variable definitions. Check for it and set an
395 (record_target_var): Set the export field to v_export if the
396 "exported" flag is set.
397 * doc/make.texi (Target-specific): Document the ability to use
400 * doc/make.texi: Change the name of the section on automatic
401 variables from "Automatic" to "Automatic Variables". Added text
402 clarifying the scope of automatic variables.
404 2002-10-04 Paul D. Smith <psmith@gnu.org>
406 * read.c (eval): Allow SysV $$@ variables to use {} braces as well
408 (record_files): Ditto.
410 * expand.c (variable_expand_string): In $(A:x=y) expansion limit
411 the search for the '=' to only within the enclosing parens.
413 2002-10-03 Paul D. Smith <psmith@gnu.org>
415 Version 3.80 released.
417 * dir.c: Change hash functions to use K&R function definition style.
422 Update to automake 1.7.
424 * Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7.
425 (pdf): Remove this target as automake now provides one.
427 * configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS.
429 2002-09-30 Martin P.J. Zinser <zinser@decus.de>
431 * makefile.com: Updates for GNU make 3.80.
432 * makefile.vms: Ditto.
434 2002-09-23 Paul D. Smith <psmith@gnu.org>
436 * read.c (enum make_word_type): Remove w_comment.
437 (get_next_mword): Don't treat comment characters as special; where
438 this function is used we will never see a comment (it's stripped
439 before we get here) and treating comments specially means that
440 targets like "foo\#bar" aren't handled properly.
442 2002-09-18 Paul D. Smith <psmith@gnu.org>
444 * doc/make.texi (Bugs): Update with some info on Savannah, etc.
446 * read.c (eval): Expansion of arguments to export/unexport was
447 ignoring all arguments after the first one. Change the algorithm
448 to expand the whole line once, then parse the results.
450 2002-09-17 Paul D. Smith <psmith@gnu.org>
452 Fix Bug #940 (plus another bug I found while looking at this):
454 * read.c (record_target_var): enter_file() will add a new entry if
455 it's a double-colon target: we don't want to do that in this
456 situation. Invoke lookup_file() and only enter_file() if it does
457 not already exist. If the file we get back is a double-colon then
458 add this variable to the "root" double-colon target.
460 * variable.c (initialize_file_variables): If this file is a
461 double-colon target but is not the "root" target, then initialize
462 the root and make the root's variable list the parent of our
465 2002-09-13 Paul D. Smith <psmith@gnu.org>
467 * doc/make.texi (MAKE Variable): Add some indexing for "+".
469 * hash.c (round_up_2): Get rid of a warning.
471 2002-09-12 Paul D. Smith <psmith@gnu.org>
473 * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
474 so it doesn't complain about getloadavg.c.
476 * commands.c (set_file_variables): Make sure we always alloca() at
477 least 1 character for the value of $? (for '\0').
479 2002-09-11 Paul D. Smith <psmith@gnu.org>
481 * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
482 macro to use RESULT instead of the incorrect _RESULT_.
484 * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
485 and atomic_readdir(). We need to #include dirent.h to get this to
487 * misc.c (atomic_readdir): Fix typos.
489 2002-09-10 Paul D. Smith <psmith@gnu.org>
491 * read.c (eval): Expand variable lists given to export and
492 unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
493 (conditional_line): Ditto for "ifdef". Fixes bug #103.
495 * doc/make.texi (Variables/Recursion): Document this.
496 (Conditional Syntax): And here.
498 2002-09-09 Paul D. Smith <psmith@gnu.org>
500 * configure.in: Check for memmove().
502 2002-09-07 Paul D. Smith <psmith@gnu.org>
504 * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
505 Michael Sterrett <msterret@coat.com> reports that while it has
506 SA_RESTART, it does not work properly.
508 * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
509 that invokes stat() and loops to do it again if it returns EINTR.
510 (atomic_readdir): Ditto, with readdir().
512 * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
513 and readdir() to atomic_stat() and atomic_readdir().
515 2002-09-04 Paul D. Smith <psmith@gnu.org>
517 * implicit.c (pattern_search): Daniel <barkalow@reputation.com>
518 reports that GNU make sometimes doesn't recognize that targets can
519 be made, when directories can be created as prerequisites. He
520 reports that changing the order of predicates in the DEP->changed
521 flag test so that lookup_file() is always performed, solves this
524 2002-08-08 Paul D. Smith <psmith@gnu.org>
526 * configure.in: Require a newer version of gettext.
528 * misc.c (perror_with_name): Translate the format string (for
529 right-to-left language support).
530 (pfatal_with_name): Ditto.
532 * main.c: Create a static array of strings to store the usage
533 text. This is done to facilitate translations.
534 (struct command_switch): Remove argdesc and description fields.
535 (switches): Remove values for obsolete fields.
536 (print_usage): Print each element of the usage array.
538 * hash.c: Change function definitions to be K&R style.
540 2002-08-02 Paul D. Smith <psmith@gnu.org>
542 * NEWS: Remove the mention of .TARGETS; we aren't going to publish
543 this one because it's too hard to get right. We'll look at it for
545 * main.c (main): Don't create the .TARGETS variable.
546 * variable.c (handle_special_var): Don't handle .TARGETS.
548 2002-08-01 Paul D. Smith <psmith@gnu.org>
550 * main.c (switches): Add a new option, -B (--always-make). If
551 specified, make will rebuild all targets that it encounters even
552 if they don't appear to be out of date.
553 (always_make_flag): New flag.
554 * make.h: Extern always_make_flag.
555 * remake.c (update_file_1): Check always_make_flag; if it's set we
556 will always rebuild any target we can, even if none of its
557 prerequisites are newer.
560 * doc/make.texi (Shell Function): Make it clear that make
561 variables marked as "export" are not passed to instances of the
564 Add new introspection variable .VARIABLES and .TARGETS.
566 * variable.c (handle_special_var): New function. If the variable
567 reference passed in is "special" (.VARIABLES or .TARGETS),
568 calculate the new value if necessary. .VARIABLES is handled here:
569 walk through the hash of defined variables and construct a value
570 which is a list of the names. .TARGETS is handled by
572 (lookup_variable): Invoke handle_special_var().
573 * file.c (build_target_list): Walk through the hask of known files
574 and construct a list of the names of all the ones marked as
576 * main.c (main): Initialize them to empty (and as simple variables).
577 * doc/make.texi (Special Variables): Document them.
578 * NEWS: Mention them.
580 * variable.h (struct variable): Add a new flag "exportable" which
581 is true if the variable name is valid for export.
582 * variable.c (define_variable_in_set): Set "exportable" when a new
584 (target_environment): Use the "exportable" flag instead of
585 re-checking the name here... an efficiency improvement.
587 2002-07-31 Paul D. Smith <psmith@gnu.org>
589 * config.h-vms.template: Updates to build on VMS. Thanks to
590 Brian_Benning@aksteel.com for helping verify the build.
591 * makefile.com: Build the new hash.c file.
592 * hash.h: Use strcpmi(), not stricmp(), in the
593 HAVE_CASE_INSENSITIVE_FS case.
595 2002-07-30 Paul D. Smith <psmith@gnu.org>
597 * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
598 backslashes to the HAVE_CASE_INSENSITIVE_FS case.
599 Reported by <Brian_Benning@aksteel.com>.
601 2002-07-10 Paul D. Smith <psmith@gnu.org>
603 * variable.c (pop_variable_scope): Remove variable made unused by
604 new hash infrastructure.
605 * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
606 comparisons as well as name comparisons.
607 * variable.h: Add a prototype for new hash_init_function_table().
608 * file.c (lookup_file): Remove variables made unused by new hash
610 * dir.c (directory_contents_hash_2): Missing return of hash value.
611 (dir_contents_file_exists_p): Remove variables made unused by new
615 Installed Greg McGary's integration of the hash functions from the
616 GNU id-utils package:
618 2002-07-10 Greg McGary <greg@mcgary.org>
620 * scripts/functions/filter-out: Add literals to to the
621 pattern space in order to add complexity, and trigger
622 use of an internal hash table. Fix documentation strings.
623 * scripts/targets/INTERMEDIATE: Reverse order of files
624 passed to expected `rm' command.
626 2002-07-10 Greg McGary <greg@mcgary.org>
628 * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
629 * hash.c: New file, taken from id-utils.
630 * hash.h: New file, taken from id-utils.
632 * make.h (HASH, HASHI): Remove macros.
633 (find_char_unquote): Change arglist in decl.
634 (hash_init_directories): New function decl.
635 * variable.h (hash.h): New #include.
636 (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
637 * filedef.h (hash.h): New #include.
638 (struct file) [next]: Remove member.
639 (file_hash_enter): Remove function decl.
640 (init_hash_files): New function decl.
642 * ar.c (ar_name): Delay call to strlen until needed.
643 * main.c (initialize_global_hash_tables): New function.
644 (main): Call it. Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
645 * misc.c (remove_comments): Pass char constants to find_char_unquote.
646 * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
648 * dir.c (hash.h): New #include.
649 (struct directory_contents) [next, files]: Remove members.
650 [ctime]: Add member for VMS. [dirfiles]: Add hash-table member.
651 (directory_contents_hash_1, directory_contents_hash_2,
652 directory_contents_hash_cmp): New functions.
653 (directories_contents): Change type to `struct hash_table'.
654 (struct directory) [next]: Remove member.
655 (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
656 (directory): Change type to `struct hash_table'.
657 (struct dirfile) [next]: Remove member.
658 [length]: Add member. [impossible]: widen type to fill alignment gap.
659 (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
660 (find_directory): Use new hash table package.
661 (dir_contents_file_exists_p): Likewise.
662 (file_impossible): Likewise.
663 (file_impossible_p): Likewise.
664 (print_dir_data_base): Likewise.
665 (open_dirstream): Likewise.
666 (read_dirstream): Likewise.
667 (hash_init_directories): New function.
669 * file.c (hash.h): New #include.
670 (file_hash_1, file_hash_2, file_hash_cmp): New functions.
671 (files): Change type to `struct hash_table'.
672 (lookup_file): Use new hash table package.
673 (enter_file): Likewise.
674 (remove_intermediates): Likewise.
675 (snap_deps): Likewise.
676 (print_file_data_base): Likewise.
679 (function_table_entry_hash_1, function_table_entry_hash_2,
680 function_table_entry_hash_cmp): New functions.
681 (lookup_function): Remove `table' argument.
682 Use new hash table package.
683 (struct a_word) [chain, length]: New members.
684 (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
685 (struct a_pattern): New struct.
686 (func_filter_filterout): Pass through patterns noting boundaries
687 and '%', if present. Note a_word length. Use a hash table if
688 arglists are large enough to justify cost.
689 (function_table_init): Renamed from function_table.
690 (function_table): Declare as `struct hash_table'.
691 (FUNCTION_TABLE_ENTRIES): New constant.
692 (hash_init_function_table): New function.
694 * read.c (hash.h): New #include.
695 (read_makefile): Pass char constants to find_char_unquote.
696 (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
697 (uniquize_deps): Use hash table to efficiently identify duplicates.
698 (find_char_unquote): Accept two char-constant stop chars, rather
699 than a string constant, avoiding zillions of calls to strchr.
700 Tighten inner search loops to test only for desired delimiters.
702 * variable.c (variable_hash_1, variable_hash_2,
703 variable_hash_cmp): New functions.
704 (variable_table): Declare as `struct hash_table'.
705 (global_variable_set): Remove initialization.
706 (init_hash_global_variable_set): New function.
707 (define_variable_in_set): Use new hash table package.
708 (lookup_variable): Likewise.
709 (lookup_variable_in_set): Likewise.
710 (initialize_file_variables): Likewise.
711 (pop_variable_scope): Likewise.
712 (create_new_variable_set): Likewise.
713 (merge_variable_sets): Likewise.
714 (define_automatic_variables): Likewise.
715 (target_environment): Likewise.
716 (print_variable_set): Likewise.
718 2002-07-10 Paul D. Smith <psmith@gnu.org>
720 Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
721 prerequisite list. A real SysV make will expand the entire
722 prerequisites list _twice_: we don't do that as it's a big
723 backward-compatibility problem. We only replace those specific
726 * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
727 references left in the list of prerequisites. Check for .POSIX as
728 we record targets, so we can disable non-POSIX behavior while
729 reading makefiles as well as running them.
730 (eval): Check the prerequisite list to see if we have anything
731 that looks like a SysV prerequisite variable reference.
733 2002-07-09 Paul D. Smith <psmith@gnu.org>
735 * doc/make.texi (Prerequisite Types): Add a new section describing
736 order-only prerequisites.
738 * read.c (uniquize_deps): If we have the same file as both a
739 normal and order-only prereq, get rid of the order-only prereq,
740 since the normal one supersedes it.
742 2002-07-08 Paul D. Smith <psmith@gnu.org>
744 * AUTHORS: Added Greg McGary to the AUTHORS file.
745 * NEWS: Blurbed order-only prerequisites.
746 * file.c (print_file): Show order-only deps properly when printing
749 * maintMakefile: Add "update" targets for wget'ing the latest
750 versions of various external files. Taken from Makefile.maint in
753 * dosbuild.bat: Somehow we got _double_ ^M's. Remove them.
754 Reported by Eli Zaretskii <eliz@is.elta.co.il>.
756 2002-07-07 Paul D. Smith <psmith@gnu.org>
758 * po/*.po: Remove. We'll use wget to retrieve them at release
761 * variable.c (do_variable_definition) [W32]: On W32 using cmd
762 rather than a shell you get an exception. Make sure we look up
763 the variable. Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
765 * remake.c (notice_finished_file): Fix handling of -t flag.
766 Patch provided by Henning Makholm <henning@makholm.net>.
768 * implicit.c (pattern_search): Some systems apparently run short
769 of stack space, and using alloca() in this function caused an
770 overrun. I modified it to use xmalloc() on the two variables
771 which seemed like they might get large. Fixes Bug #476.
773 * main.c (print_version): Update copyright notice to conform with
775 (print_usage): Update help output.
777 * function.c (func_eval): Create a new make function, $(eval
778 ...). Expand the arguments, put them into a buffer, then invoke
779 eval_buffer() on the resulting string.
780 (func_quote): Create a new function, $(quote VARNAME). Inserts
781 the value of the variable VARNAME without expanding it any
784 * read.c (struct ebuffer): Change the linebuffer structure to an
785 "eval buffer", which can be either a file or a buffer.
786 (eval_makefile): Move the code in the old read_makefile() which
787 located a makefile into here: create a struct ebuffer with that
788 information. Have it invoke the new function eval() with that
790 (eval_buffer): Create a new function that creates a struct ebuffer
791 that holds a string buffer instead of a file. Have it invoke
792 eval() with that ebuffer.
793 (eval): New function that contains the guts of the old
794 read_makefile() function: this function parses makefiles. Obtains
795 data to parse from the provided ebuffer. Some modifications to
796 make the flow of the function cleaner and clearer. Still could
797 use some work here...
798 (do_define): Takes a struct ebuffer instead of a FILE*. Read the
799 contents of the define/endef variable from the ebuffer.
800 (readstring): Read the next line from a string-style ebuffer.
801 (readline): Read the next line from an ebuffer. If it's a string
802 ebuffer, invoke readstring(). If it's a FILE* ebuffer, read it
805 * dep.h (eval_buffer): Prototype eval_buffer();
807 * variable.c (do_variable_definition): Make sure that all
808 non-target-specific variables are registered in the global set.
809 If we're invoked from an $(eval ...) we might be inside a $(call
810 ...) or other function which has pushed a variable scope; we still
811 want to define our variables from evaluated makefile code in the
814 2002-07-03 Greg McGary <greg@mcgary.org>
816 * dep.h (struct dep) [ignore_mtime]: New member.
817 [changed]: convert to a bitfield.
818 * implicit.c (pattern_search): Zero ignore_mtime.
819 * main.c (main, handle_non_switch_argument): Likewise.
820 * rule.c (convert_suffix_rule): Likewise.
821 * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
822 (read_makefile): Parse '|' in prerequisite list.
823 (uniquize_deps): Consider ignore_mtime when comparing deps.
824 * remake.c (update_file_1, check_dep): Don't force remake for
825 dependencies that have d->ignore_mtime.
826 * commands.c (FILE_LIST_SEPARATOR): New constant.
827 (set_file_variables): Don't include a
828 prerequisite in $+, $^ or $? if d->ignore_mtime.
831 2002-06-18 Paul D. Smith <psmith@gnu.org>
833 * make.texinfo: Updates for next revision. New date/rev/etc.
834 Recreate all Info menus. Change license on the manual to the GNU
835 Free Documentation License. A number of typos.
836 (Variables Simplify): Don't use "-" before it's defined.
837 (Automatic Prerequisites): Rewrite the target example to work
838 properly if the compile fails. Remove incorrect comments about
839 how "set -e" behaves.
840 (Text Functions): Move the "word", "wordlist", "words", and
841 "firstword" functions here, from "File Name Functions".
842 * make-stds.texi: Update from latest GNU version.
843 * fdl.texi: (created) Import the latest GNU version.
845 2002-06-06 Paul D. Smith <psmith@gnu.org>
847 * variable.c (do_variable_definition): New function: extract the
848 part of try_variable_definition() that actually sets the value
849 into a separate function.
850 (try_variable_definition): Call do_variable_definition() after
851 parsing the variable definition string.
852 (define_variable_in_set): Make the name argument const.
854 * variable.h (enum variable_flavor): Make public.
855 (do_variable_definition): Create prototype.
857 * read.c (read_all_makefiles): Create a new built-in variable,
859 (read_makefile): Add each makefile read in to this variable value.
861 2002-05-18 Eli Zaretskii <eliz@is.elta.co.il>
863 * Makefile.DOS.template: Tweak according to changes in the
864 distribution. Add back the dependencies of *.o files.
866 * configh.dos.template: Synchronize with config.h.in.
868 2002-05-09 Paul D. Smith <psmith@gnu.org>
870 * file.c (file_timestamp_now): Use K&R function declaration.
872 * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
873 getloadavg.c. Autoconf thinks QNX is SVR4-like, but it isn't, so
874 #undef it. Remove predefined setup of NLIST_STRUCT. Decide
875 whether to include nlist.h based on HAVE_NLIST_H. Change obsolete
876 NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
877 * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
878 nlist.n_name is a pointer rather than an array.
880 * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
881 version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
882 * configure.in: Use it instead of the old version.
884 * main.c (main): Prefer setvbuf() to setlinebuf().
886 2002-05-08 Paul D. Smith <psmith@gnu.org>
888 * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
889 (loadavg_LDADD): Ditto.
891 2002-04-29 Paul D. Smith <psmith@gnu.org>
893 * expand.c (recursively_expand_for_file): Rename
894 recursively_expand() to recursively_expand_for_file() and provide
895 an extra argument, struct file. If the argument is provided, set
896 the variable scope to that of the file before expanding.
897 * variable.h (recursively_expand): Make this a macro that invokes
898 recursively_expand_for_file() with a NULL file pointer.
899 * variable.c (target_environment): Call the renamed function and
900 provide the current file context.
901 Fixes Debian bug #144306.
903 2002-04-28 Paul D. Smith <psmith@gnu.org>
905 Allow $(call ...) user-defined variables to be self-referencing
906 without throwing an error. Allows implementation of transitive
907 closures, among other possibly useful things.
908 Requested by: Philip Guenther <guenther@sendmail.com>
910 * variable.h (struct variable): Add a new field: exp_count, and
911 new macros to hold its size and maximum value.
912 (warn_undefined): Make this a macro.
913 * variable.c (define_variable_in_set): Initialize it.
914 * expand.c (recursively_expand): If we detect recursive expansion
915 of a variable, check the exp_count field. If it's greater than 0
916 allow the recursion and decrement the count.
917 (warn_undefined): Remove this (now a macro in variable.h).
918 * function.c (func_call): Before we expand the user-defined
919 function, modify its exp_count field to contain the maximum
920 number of recursive calls we'll allow. After the call, reset it
923 2002-04-21 Paul D. Smith <psmith@gnu.org>
925 Modified to use latest autoconf (2.53), automake (1.6.1), and
926 gettext (0.11.1). We're using gettext's new "external" support,
927 to avoid including libintl source with GNU make.
929 * README.cvs: New file. Explain how to build GNU make from CVS.
931 * configure.in: Modify checking for the system glob library.
932 Use AC_EGREP_CPP instead of AC_TRY_CPP. Remove the setting of
933 GLOBDIR (we will always put "glob" in SUBDIRS, so automake
934 etc. will manage it correctly). Set an automake conditional
935 USE_LOCAL_GLOB to decide whether to compile the glob library.
937 * getloadavg.c (main): Include make.h in the "TEST" program to
940 * Makefile.am: Remove special rules for loadavg. Replace them
941 with Automake capabilities for building extra programs.
943 * signame.c: This file does nothing if the system provide
944 strsignal(). If not, it implements strsignal(). If the system
945 doesn't define sys_siglist, then we make our own; otherwise we use
947 * signame.h: Removed.
949 * main.c (main): No need to invoke signame_init(). Update copyright.
951 * ABOUT-NLS: Removed.
952 * gettext.c: Removed.
953 * gettext.h: Get a simplified copy from the gettext package.
955 * i18n/*.po: Moved to po/.
958 * config/*: Created. Contains package configuration helper files.
959 * config.guess, config.sub: Moved to config directory.
961 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
962 Rework to use new-style autoconf features. Use the "external"
963 mode for gettext. Make the build.sh config file conditional on
964 whether build.sh.in exists, to avoid autoconf errors.
965 * acinclude.m4: Removed almost all macros as being obsolete.
966 Rewrote remaining macros to use AC_DEFINE.
967 * acconfig.h: Removed.
969 * Makefile.am (EXTRA_DIST): Add config/config.rpath. Use a
970 conditional to handle customs support. Remove special handling
973 2002-04-20 Paul D. Smith <psmith@gnu.org>
975 * function.c (func_call): Don't mark the argument variables $1,
976 etc. as recursive. They've already been fully expanded so
977 there's no need to do it again, and doing so strips escaped $'s.
978 Reported by Sebastian Glita <glseba@yahoo.com>.
980 * remake.c (notice_finished_file): Walk through double-colon
981 entries via the prev field, not the next field!
982 Reported by Greg McGary <greg@mcgary.org>.
984 * main.c (main): If the user specifies -q and asks for a specific
985 target which is a makefile, we got an assert. In that case it
986 turns out we should continue normally instead.
988 * i18n/de.po, i18n/fr.po: Installed an updated translation.
990 * i18n/he.po: Installed a new translation.
992 2002-01-07 Paul D. Smith <psmith@gnu.org>
994 * i18n/es.po, i18n/ru.po: Installed an updated translation.
996 2001-12-04 Paul D. Smith <psmith@gnu.org>
998 * i18n/ja.po: Installed an updated translation.
1000 2001-09-04 Paul D. Smith <psmith@gnu.org>
1002 * i18n/da.po: Installed an updated translation.
1004 2001-08-03 Paul D. Smith <psmith@gnu.org>
1006 * i18n/fr.po: Installed an updated translation.
1007 Resolves Debian bug #106720.
1009 2001-06-13 Paul D. Smith <psmith@gnu.org>
1011 * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
1014 2001-06-11 Paul D. Smith <psmith@gnu.org>
1016 * i18n/ko.po: Installed a new translation.
1018 2001-05-06 Paul D. Smith <psmith@gnu.org>
1020 Modify the EINTR handling.
1022 * job.c (new_job): Reorganize the jobserver algorithm. Reorder
1023 the way in which we manage the file descriptor/signal handler race
1024 trap to be more efficient.
1026 2001-05-06 Paul Eggert <eggert@twinsun.com>
1028 Restart almost all system calls that are interrupted, instead
1029 of worrying about EINTR. The lone exception is the read() for
1032 * configure.in (HAVE_SA_RESTART): New macro.
1033 (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
1034 * main.c (main): Use SA_RESTART instead of the old,
1035 nonstandard SA_INTERRUPT.
1037 * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
1038 * main.c (bsd_signal): New function or macro,
1039 if the implementation doesn't supply it.
1040 (The bsd_signal function will be in POSIX 1003.1-200x.)
1041 (HANDLESIG): Remove.
1042 (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
1044 * make.h (EINTR_SET): Remove.
1045 (SA_RESTART): New macro.
1047 * arscan.c (ar_member_touch): Don't worry about EINTR.
1048 * function.c (func_shell): Likewise.
1049 * job.c (reap_children, free_child, new_job): Likewise.
1050 * main.c (main): Likewise.
1051 * remake.c (touch_file, name_mtime): Likewise.
1053 * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
1054 if fstat failed with errno!=EINTR, the error was ignored.
1056 * job.c (set_child_handler_action_flags): New function.
1057 (new_job): Use it to temporarily clear the SIGCHLD action flags
1058 while reading the token.
1060 2001-05-02 Paul D. Smith <psmith@gnu.org>
1062 * job.c (start_job_command): Don't add define/endef per-line flags
1063 to the top-level flags setting.
1065 2001-04-03 Paul D. Smith <psmith@gnu.org>
1067 * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
1068 bit on error, so check for odd return values, not non-0 return
1070 (VMS_get_member_info): Calculate the timezone differences correctly.
1071 Reported by John Fowler <jfowler@nyx.net>.
1074 2001-03-14 Paul D. Smith <psmith@gnu.org>
1076 * variable.c (lookup_variable) [VMS]: Null-terminate the variable
1077 value before invoking define_variable().
1078 Reported by John Fowler <jfowler@nyx.net>.
1080 2001-02-07 Paul D. Smith <psmith@gnu.org>
1082 * read.c (record_target_var): If we reset the variable due to a
1083 command-line variable setting overriding it, turn off the "append"
1086 2001-01-17 Paul D. Smith <psmith@gnu.org>
1088 * variable.c (lookup_variable) [VMS]: When getting values from the
1089 environment, allocate enough space for the _value_ plus escapes,
1090 not enough space for the name plus escapes :-/.
1091 Reported by John Fowler <jfowler@nyx.net>.
1093 * remake.c (f_mtime): Removed the "***" prefix from the mod time
1094 warnings that make generates, so it doesn't look like an error.
1095 Reported by Karl Berry <karl@gnu.org>.
1098 Fix for PR/2020: Rework appended target-specific variables. I'm
1099 fairly confident this algorithm is finally correct.
1101 * expand.c (allocated_variable_append): Rewrite. Instead of
1102 expanding each appended variable then adding all the expanded
1103 strings together, we append all the unexpanded values going up
1104 through the variable set contexts, then expand the final result.
1105 This behaves just like non-target-specific appended variable
1106 values, while the old way didn't in various corner cases.
1107 (variable_append): New function: recursively append the unexpanded
1108 value of a variable, walking from the outermost variable scope to
1110 * variable.c (lookup_variable): Remove the code that looked up the
1111 variable set list if the found variable was "append". We don't
1113 (lookup_variable_in_set): Make this non-static so we can use it
1115 (try_variable_definition): Use lookup_variable_in_set() rather
1116 than faking out current_variable_set_list by hand (cleanup).
1117 * variable.h: Add a prototype for the now non-static
1118 lookup_variable_in_set().
1120 2000-11-17 Paul D. Smith <psmith@gnu.org>
1122 * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
1123 WINDOWS32 port to assume timestamps can be up to 3 seconds away
1124 before throwing a fit.
1126 2000-11-17 Paul D. Smith <psmith@gnu.org>
1128 * read.c (readline): CRLF calculations had a hole, if you hit the
1129 buffer grow scenario just right. Reworked the algorithm to avoid
1130 the need for len or lastlen at all. Problem description with
1131 sample code chages provided by Chris Faylor <cgf@redhat.com>.
1133 2000-10-24 Paul D. Smith <psmith@gnu.org>
1135 * gettext.c (SWAP): Declare this with the prototype, otherwise
1136 some systems don't work (non-32-bit? Reported for Cray T3E).
1137 Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
1139 2000-10-05 Paul D. Smith <psmith@gnu.org>
1141 * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
1142 AM_LC_MESSAGES; it doesn't seem to do anything anyway??
1144 * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
1146 2000-09-22 Paul D. Smith <psmith@gnu.org>
1148 * gettext.c: Don't #define _GETTEXT_H here; we only include some
1149 parts of the real gettext.h here, and we expect to really include
1150 the real gettext.h later. If we keep this #define, it's ignored.
1152 2000-09-21 Paul D. Smith <psmith@gnu.org>
1154 * main.c (log_working_directory): Rework the text to use complete
1155 sentences, to make life simpler for the translators.
1157 2000-08-29 Paul D. Smith <psmith@gnu.org>
1159 * file.c (remove_intermediates): Print a debug message before we
1160 remove intermediate files, so the user (if she uses -d) knows
1163 2000-08-21 Paul D. Smith <psmith@gnu.org>
1165 * variable.c (try_variable_definition): Change how we handle
1166 target-specific append variable defns: instead of just setting the
1167 value, expand it as an append _but_ only within the current
1168 target's context. Otherwise we lose all but the last value if the
1169 variable is appended more than once within the current target
1170 context. Fixes PR/1831.
1172 2000-08-16 Paul D. Smith <psmith@gnu.org>
1174 * function.c (func_shell): Nul-terminate the buffer before
1175 printing an exec error message (just in case it's not!).
1176 Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
1178 2000-07-25 Paul D. Smith <psmith@gnu.org>
1180 * job.c (construct_command_argv_internal): Add "~" to the list of
1181 sh_chars[] which disallow optimizing out the shell call.
1183 2000-07-23 Paul Eggert <eggert@twinsun.com>
1185 * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
1186 supersedes --disable-nsec-timestamps.
1187 * make.texinfo: Consistently use "time stamp" instead of "timestamp".
1188 * README: Remove --disable-nsec-timestamps.
1190 * filedef.h (struct file.low_resolution_time): New member.
1191 * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
1192 * remake.c (update_file_1):
1193 Avoid spurious rebuilds due to low resolution time stamps,
1194 generalizing the earlier code that applied only to archive members.
1195 (f_mtime): Archive members always have low resolution time stamps.
1197 * configure.in: Remove --disable-nsec-timestamps, as this has
1198 been superseded by .LOW_RESOLUTION_TIME.
1200 2000-07-23 Paul Eggert <eggert@twinsun.com>
1202 * configure.in (enable_nsec_timestamps): Renamed from
1203 make_cv_nsec_timestamps, since enable/disable options
1204 shouldn't be cached.
1206 2000-07-23 Bruno Haible <haible@clisp.cons.org>
1207 and Paul Eggert <eggert@twinsun.com>
1209 * file.c (file_timestamp_now):
1210 Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
1211 so that clock_gettime is not linked unless needed.
1213 * filedef.h (FILE_TIMESTAMP_HI_RES):
1214 Remove definition; "configure" now does this.
1216 * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
1217 to before high resolution file timestamp check,
1218 since that check now uses uintmax_t.
1219 (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
1220 high resolution file timestamps.
1221 (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
1222 so that we don't link in clock_gettime unnecessarily.
1224 2000-07-17 Paul D. Smith <psmith@gnu.org>
1226 * i18n/ja.po: New version of the translation file.
1228 2000-07-07 Paul D. Smith <psmith@gnu.org>
1230 * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
1231 the offset calculation.
1232 (name_mtime): Replace EINTR test with EINTR_SET macro.
1234 2000-07-07 Paul Eggert <eggert@twinsun.com>
1238 * remake.c (update_file_1):
1239 Avoid spurious rebuilds of archive members due to their
1240 timestamp resolution being only one second.
1241 (f_mtime): Avoid spurious warnings of timestamps in the future due to
1242 the clock's resolution being lower than file timestamps'.
1243 When warning about future timestamps, report only the discrepancy,
1244 not the absolute value of the timestamp and the current time.
1246 * file.c (file_timestamp_now): New arg RESOLUTION.
1247 * filedef.h (file_timestamp_now): Likewise.
1248 (FILE_TIMESTAMP_NS): Now returns int. All uses changed.
1250 2000-07-05 Paul D. Smith <psmith@gnu.org>
1252 * variable.c (lookup_variable) [VMS]: Remove vestigial references
1253 to listp. Fixes PR/1793.
1255 2000-06-26 Paul Eggert <eggert@twinsun.com>
1257 * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
1259 * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
1261 * remake.c (f_mtime): Remove unused var memtime.
1263 2000-06-25 Martin Buchholz <martin@xemacs.org>
1265 * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
1266 Ran spell-check on make.texinfo.
1268 2000-06-23 Paul D. Smith <psmith@gnu.org>
1270 * main.c (main): Replace EXIT_SUCCESS, EXIT_FAILURE, and
1271 EXIT_TROUBLE with MAKE_SUCCESS, MAKE_FAILURE, and MAKE_TROUBLE.
1272 * make.h: Define these macros.
1274 * Version 3.79.1 released.
1276 * configure.in: Add a new option, --disable-nsec-timestamps, to
1277 avoid using sub-second timestamps on systems that support it. It
1278 can lead to problems, e.g. if your makefile relies on "cp -p".
1279 * README.template: Document the issue with "cp -p".
1281 * config.guess, config.sub: Updated.
1285 See ChangeLog.2, available in the CVS repository at:
1287 http://savannah.gnu.org/cvs/?group=make
1289 for earlier changes.