Don't put .cvsignore files in the distributed tar file.
[make/kirr.git] / ChangeLog
blob2ca872ba3a82770f1b662327695aa018412a4a77
1 2002-10-03  Paul D. Smith  <psmith@gnu.org>
3         Version 3.80 released.
5         * dir.c: Change hash functions to use K&R function definition style.
6         * function.c: Ditto.
7         * read.c: Ditto.
8         * variable.c: Ditto.
10         Update to automake 1.7.
12         * Makefile.am (AUTOMAKE_OPTIONS): Update to require 1.7.
13         (pdf): Remove this target as automake now provides one.
15         * configure.in: Change AM_CONFIG_HEADER to AC_CONFIG_HEADERS.
17 2002-09-30  Martin P.J. Zinser  <zinser@decus.de>
19         * makefile.com: Updates for GNU make 3.80.
20         * makefile.vms: Ditto.
22 2002-09-23  Paul D. Smith  <psmith@gnu.org>
24         * read.c (enum make_word_type): Remove w_comment.
25         (get_next_mword): Don't treat comment characters as special; where
26         this function is used we will never see a comment (it's stripped
27         before we get here) and treating comments specially means that
28         targets like "foo\#bar" aren't handled properly.
30 2002-09-18  Paul D. Smith  <psmith@gnu.org>
32         * doc/make.texi (Bugs): Update with some info on Savannah, etc.
34         * read.c (eval): Expansion of arguments to export/unexport was
35         ignoring all arguments after the first one.  Change the algorithm
36         to expand the whole line once, then parse the results.
38 2002-09-17  Paul D. Smith  <psmith@gnu.org>
40         Fix Bug #940 (plus another bug I found while looking at this):
42         * read.c (record_target_var): enter_file() will add a new entry if
43         it's a double-colon target: we don't want to do that in this
44         situation.  Invoke lookup_file() and only enter_file() if it does
45         not already exist.  If the file we get back is a double-colon then
46         add this variable to the "root" double-colon target.
48         * variable.c (initialize_file_variables): If this file is a
49         double-colon target but is not the "root" target, then initialize
50         the root and make the root's variable list the parent of our
51         variable list.
53 2002-09-13  Paul D. Smith  <psmith@gnu.org>
55         * doc/make.texi (MAKE Variable): Add some indexing for "+".
57         * hash.c (round_up_2): Get rid of a warning.
59 2002-09-12  Paul D. Smith  <psmith@gnu.org>
61         * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake
62         so it doesn't complain about getloadavg.c.
64         * commands.c (set_file_variables): Make sure we always alloca() at
65         least 1 character for the value of $? (for '\0').
67 2002-09-11  Paul D. Smith  <psmith@gnu.org>
69         * hash.h (STRING_COMPARE, ISTRING_COMPARE, STRING_N_COMPARE): Fix
70         macro to use RESULT instead of the incorrect _RESULT_.
72         * make.h (HAVE_BROKEN_RESTART): Add prototypes for atomic_stat()
73         and atomic_readdir().  We need to #include dirent.h to get this to
74         work.
75         * misc.c (atomic_readdir): Fix typos.
77 2002-09-10  Paul D. Smith  <psmith@gnu.org>
79         * read.c (eval): Expand variable lists given to export and
80         unexport, so that "export $(LIST_OF_VARIABLES)" (etc.) works.
81         (conditional_line): Ditto for "ifdef".  Fixes bug #103.
83         * doc/make.texi (Variables/Recursion): Document this.
84         (Conditional Syntax): And here.
86 2002-09-09  Paul D. Smith  <psmith@gnu.org>
88         * configure.in: Check for memmove().
90 2002-09-07  Paul D. Smith  <psmith@gnu.org>
92         * configure.in (HAVE_BROKEN_RESTART): Define this on PTX systems;
93         Michael Sterrett <msterret@coat.com> reports that while it has
94         SA_RESTART, it does not work properly.
96         * misc.c (atomic_stat): If HAVE_BROKEN_RESTART, create a function
97         that invokes stat() and loops to do it again if it returns EINTR.
98         (atomic_readdir): Ditto, with readdir().
100         * make.h (stat, readdir): If HAVE_BROKEN_RESTART, alias stat()
101         and readdir() to atomic_stat() and atomic_readdir().
103 2002-09-04  Paul D. Smith  <psmith@gnu.org>
105         * implicit.c (pattern_search): Daniel <barkalow@reputation.com>
106         reports that GNU make sometimes doesn't recognize that targets can
107         be made, when directories can be created as prerequisites.  He
108         reports that changing the order of predicates in the DEP->changed
109         flag test so that lookup_file() is always performed, solves this
110         problem.
112 2002-08-08  Paul D. Smith  <psmith@gnu.org>
114         * configure.in: Require a newer version of gettext.
116         * misc.c (perror_with_name): Translate the format string (for
117         right-to-left language support).
118         (pfatal_with_name): Ditto.
120         * main.c: Create a static array of strings to store the usage
121         text.  This is done to facilitate translations.
122         (struct command_switch): Remove argdesc and description fields.
123         (switches): Remove values for obsolete fields.
124         (print_usage): Print each element of the usage array.
126         * hash.c: Change function definitions to be K&R style.
128 2002-08-02  Paul D. Smith  <psmith@gnu.org>
130         * NEWS: Remove the mention of .TARGETS; we aren't going to publish
131         this one because it's too hard to get right.  We'll look at it for
132         a future release.
133         * main.c (main): Don't create the .TARGETS variable.
134         * variable.c (handle_special_var): Don't handle .TARGETS.
136 2002-08-01  Paul D. Smith  <psmith@gnu.org>
138         * main.c (switches): Add a new option, -B (--always-make).  If
139         specified, make will rebuild all targets that it encounters even
140         if they don't appear to be out of date.
141         (always_make_flag): New flag.
142         * make.h: Extern always_make_flag.
143         * remake.c (update_file_1): Check always_make_flag; if it's set we
144         will always rebuild any target we can, even if none of its
145         prerequisites are newer.
146         * NEWS: Mention it.
148         * doc/make.texi (Shell Function): Make it clear that make
149         variables marked as "export" are not passed to instances of the
150         shell function.
152         Add new introspection variable .VARIABLES and .TARGETS.
154         * variable.c (handle_special_var): New function.  If the variable
155         reference passed in is "special" (.VARIABLES or .TARGETS),
156         calculate the new value if necessary.  .VARIABLES is handled here:
157         walk through the hash of defined variables and construct a value
158         which is a list of the names.  .TARGETS is handled by
159         build_target_list().
160         (lookup_variable): Invoke handle_special_var().
161         * file.c (build_target_list): Walk through the hask of known files
162         and construct a list of the names of all the ones marked as
163         targets.
164         * main.c (main): Initialize them to empty (and as simple variables).
165         * doc/make.texi (Special Variables): Document them.
166         * NEWS: Mention them.
168         * variable.h (struct variable): Add a new flag "exportable" which
169         is true if the variable name is valid for export.
170         * variable.c (define_variable_in_set): Set "exportable" when a new
171         variable is defined.
172         (target_environment): Use the "exportable" flag instead of
173         re-checking the name here... an efficiency improvement.
175 2002-07-31  Paul D. Smith  <psmith@gnu.org>
177         * config.h-vms.template: Updates to build on VMS.  Thanks to
178         Brian_Benning@aksteel.com for helping verify the build.
179         * makefile.com: Build the new hash.c file.
180         * hash.h: Use strcpmi(), not stricmp(), in the
181         HAVE_CASE_INSENSITIVE_FS case.
183 2002-07-30  Paul D. Smith  <psmith@gnu.org>
185         * hash.h (ISTRING_COMPARE, return_ISTRING_COMPARE): Add missing
186         backslashes to the HAVE_CASE_INSENSITIVE_FS case.
187         Reported by <Brian_Benning@aksteel.com>.
189 2002-07-10  Paul D. Smith  <psmith@gnu.org>
191         * variable.c (pop_variable_scope): Remove variable made unused by
192         new hash infrastructure.
193         * read.c (dep_hash_cmp): Rewrite this to handle ignore_mtime
194         comparisons as well as name comparisons.
195         * variable.h: Add a prototype for new hash_init_function_table().
196         * file.c (lookup_file): Remove variables made unused by new hash
197         infrastructure.
198         * dir.c (directory_contents_hash_2): Missing return of hash value.
199         (dir_contents_file_exists_p): Remove variables made unused by new
200         hash infrastructure.
203         Installed Greg McGary's integration of the hash functions from the
204         GNU id-utils package:
206 2002-07-10  Greg McGary  <greg@mcgary.org>
208         * scripts/functions/filter-out: Add literals to to the
209         pattern space in order to add complexity, and trigger
210         use of an internal hash table.  Fix documentation strings.
211         * scripts/targets/INTERMEDIATE: Reverse order of files
212         passed to expected `rm' command.
214 2002-07-10  Greg McGary  <greg@mcgary.org>
216         * Makefile.am (SRCS): Add hash.c (noinst_HEADERS): Add hash.h
217         * hash.c: New file, taken from id-utils.
218         * hash.h: New file, taken from id-utils.
220         * make.h (HASH, HASHI): Remove macros.
221         (find_char_unquote): Change arglist in decl.
222         (hash_init_directories): New function decl.
223         * variable.h (hash.h): New #include.
224         (MAKELEVEL_NAME, MAKELEVEL_LENGTH): New constants.
225         * filedef.h (hash.h): New #include.
226         (struct file) [next]: Remove member.
227         (file_hash_enter): Remove function decl.
228         (init_hash_files): New function decl.
230         * ar.c (ar_name): Delay call to strlen until needed.
231         * main.c (initialize_global_hash_tables): New function.
232         (main): Call it.  Use MAKELEVEL_NAME & MAKELEVEL_LENGTH.
233         * misc.c (remove_comments): Pass char constants to find_char_unquote.
234         * remake.c (notice_finished_file): Update last_mtime on `prev' chain.
236         * dir.c (hash.h): New #include.
237         (struct directory_contents) [next, files]: Remove members.
238         [ctime]: Add member for VMS.  [dirfiles]: Add hash-table member.
239         (directory_contents_hash_1, directory_contents_hash_2,
240         directory_contents_hash_cmp): New functions.
241         (directories_contents): Change type to `struct hash_table'.
242         (struct directory) [next]: Remove member.
243         (directory_hash_1, directory_hash_2, directory_hash_cmp): New funcs.
244         (directory): Change type to `struct hash_table'.
245         (struct dirfile) [next]: Remove member.
246         [length]: Add member.  [impossible]: widen type to fill alignment gap.
247         (dirfile_hash_1, dirfile_hash_2, dirfile_hash_cmp): New functions.
248         (find_directory): Use new hash table package.
249         (dir_contents_file_exists_p): Likewise.
250         (file_impossible): Likewise.
251         (file_impossible_p): Likewise.
252         (print_dir_data_base): Likewise.
253         (open_dirstream): Likewise.
254         (read_dirstream): Likewise.
255         (hash_init_directories): New function.
257         * file.c (hash.h): New #include.
258         (file_hash_1, file_hash_2, file_hash_cmp): New functions.
259         (files): Change type to `struct hash_table'.
260         (lookup_file): Use new hash table package.
261         (enter_file): Likewise.
262         (remove_intermediates): Likewise.
263         (snap_deps): Likewise.
264         (print_file_data_base): Likewise.
266         * function.c
267         (function_table_entry_hash_1, function_table_entry_hash_2,
268         function_table_entry_hash_cmp): New functions.
269         (lookup_function): Remove `table' argument.
270         Use new hash table package.
271         (struct a_word) [chain, length]: New members.
272         (a_word_hash_1, a_word_hash_2, a_word_hash_cmp): New functions.
273         (struct a_pattern): New struct.
274         (func_filter_filterout): Pass through patterns noting boundaries
275         and '%', if present.  Note a_word length.  Use a hash table if
276         arglists are large enough to justify cost.
277         (function_table_init): Renamed from function_table.
278         (function_table): Declare as `struct hash_table'.
279         (FUNCTION_TABLE_ENTRIES): New constant.
280         (hash_init_function_table): New function.
282         * read.c (hash.h): New #include.
283         (read_makefile): Pass char constants to find_char_unquote.
284         (dep_hash_1, dep_hash_2, dep_hash_cmp): New functions.
285         (uniquize_deps): Use hash table to efficiently identify duplicates.
286         (find_char_unquote): Accept two char-constant stop chars, rather
287         than a string constant, avoiding zillions of calls to strchr.
288         Tighten inner search loops to test only for desired delimiters.
290         * variable.c (variable_hash_1, variable_hash_2,
291         variable_hash_cmp): New functions.
292         (variable_table): Declare as `struct hash_table'.
293         (global_variable_set): Remove initialization.
294         (init_hash_global_variable_set): New function.
295         (define_variable_in_set): Use new hash table package.
296         (lookup_variable): Likewise.
297         (lookup_variable_in_set): Likewise.
298         (initialize_file_variables): Likewise.
299         (pop_variable_scope): Likewise.
300         (create_new_variable_set): Likewise.
301         (merge_variable_sets): Likewise.
302         (define_automatic_variables): Likewise.
303         (target_environment): Likewise.
304         (print_variable_set): Likewise.
306 2002-07-10  Paul D. Smith  <psmith@gnu.org>
308         Implement the SysV make syntax $$@, $$(@D), and $$(@F) in the
309         prerequisite list.  A real SysV make will expand the entire
310         prerequisites list _twice_: we don't do that as it's a big
311         backward-compatibility problem.  We only replace those specific
312         variables.
314         * read.c (record_files): Replace any $@, $(@D), and $(@F) variable
315         references left in the list of prerequisites.  Check for .POSIX as
316         we record targets, so we can disable non-POSIX behavior while
317         reading makefiles as well as running them.
318         (eval): Check the prerequisite list to see if we have anything
319         that looks like a SysV prerequisite variable reference.
321 2002-07-09  Paul D. Smith  <psmith@gnu.org>
323         * doc/make.texi (Prerequisite Types): Add a new section describing
324         order-only prerequisites.
326         * read.c (uniquize_deps): If we have the same file as both a
327         normal and order-only prereq, get rid of the order-only prereq,
328         since the normal one supersedes it.
330 2002-07-08  Paul D. Smith  <psmith@gnu.org>
332         * AUTHORS: Added Greg McGary to the AUTHORS file.
333         * NEWS: Blurbed order-only prerequisites.
334         * file.c (print_file): Show order-only deps properly when printing
335         the database.
337         * maintMakefile: Add "update" targets for wget'ing the latest
338         versions of various external files.  Taken from Makefile.maint in
339         autoconf, etc.
341         * dosbuild.bat: Somehow we got _double_ ^M's.  Remove them.
342         Reported by Eli Zaretskii <eliz@is.elta.co.il>.
344 2002-07-07  Paul D. Smith  <psmith@gnu.org>
346         * po/*.po: Remove.  We'll use wget to retrieve them at release
347         time.
349         * variable.c (do_variable_definition) [W32]: On W32 using cmd
350         rather than a shell you get an exception.  Make sure we look up
351         the variable.  Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
353         * remake.c (notice_finished_file): Fix handling of -t flag.
354         Patch provided by Henning Makholm <henning@makholm.net>.
356         * implicit.c (pattern_search): Some systems apparently run short
357         of stack space, and using alloca() in this function caused an
358         overrun.  I modified it to use xmalloc() on the two variables
359         which seemed like they might get large.  Fixes Bug #476.
361         * main.c (print_version): Update copyright notice to conform with
362         GNU standards.
363         (print_usage): Update help output.
365         * function.c (func_eval): Create a new make function, $(eval
366         ...).  Expand the arguments, put them into a buffer, then invoke
367         eval_buffer() on the resulting string.
368         (func_quote): Create a new function, $(quote VARNAME).  Inserts
369         the value of the variable VARNAME without expanding it any
370         further.
372         * read.c (struct ebuffer): Change the linebuffer structure to an
373         "eval buffer", which can be either a file or a buffer.
374         (eval_makefile): Move the code in the old read_makefile() which
375         located a makefile into here: create a struct ebuffer with that
376         information.  Have it invoke the new function eval() with that
377         ebuffer.
378         (eval_buffer): Create a new function that creates a struct ebuffer
379         that holds a string buffer instead of a file.  Have it invoke
380         eval() with that ebuffer.
381         (eval): New function that contains the guts of the old
382         read_makefile() function: this function parses makefiles.  Obtains
383         data to parse from the provided ebuffer.  Some modifications to
384         make the flow of the function cleaner and clearer.  Still could
385         use some work here...
386         (do_define): Takes a struct ebuffer instead of a FILE*.  Read the
387         contents of the define/endef variable from the ebuffer.
388         (readstring): Read the next line from a string-style ebuffer.
389         (readline): Read the next line from an ebuffer.  If it's a string
390         ebuffer, invoke readstring().  If it's a FILE* ebuffer, read it
391         from the file.
393         * dep.h (eval_buffer): Prototype eval_buffer();
395         * variable.c (do_variable_definition): Make sure that all
396         non-target-specific variables are registered in the global set.
397         If we're invoked from an $(eval ...) we might be inside a $(call
398         ...) or other function which has pushed a variable scope; we still
399         want to define our variables from evaluated makefile code in the
400         global scope.
402 2002-07-03  Greg McGary  <greg@mcgary.org>
404         * dep.h (struct dep) [ignore_mtime]: New member.
405         [changed]: convert to a bitfield.
406         * implicit.c (pattern_search): Zero ignore_mtime.
407         * main.c (main, handle_non_switch_argument): Likewise.
408         * rule.c (convert_suffix_rule): Likewise.
409         * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
410         (read_makefile): Parse '|' in prerequisite list.
411         (uniquize_deps): Consider ignore_mtime when comparing deps.
412         * remake.c (update_file_1, check_dep): Don't force remake for
413         dependencies that have d->ignore_mtime.
414         * commands.c (FILE_LIST_SEPARATOR): New constant.
415         (set_file_variables): Don't include a
416         prerequisite in $+, $^ or $? if d->ignore_mtime.
417         Define $|.
419 2002-06-18  Paul D. Smith  <psmith@gnu.org>
421         * make.texinfo: Updates for next revision.  New date/rev/etc.
422         Recreate all Info menus.  Change license on the manual to the GNU
423         Free Documentation License.  A number of typos.
424         (Variables Simplify): Don't use "-" before it's defined.
425         (Automatic Prerequisites): Rewrite the target example to work
426         properly if the compile fails.  Remove incorrect comments about
427         how "set -e" behaves.
428         (Text Functions): Move the "word", "wordlist", "words", and
429         "firstword" functions here, from "File Name Functions".
430         * make-stds.texi: Update from latest GNU version.
431         * fdl.texi: (created) Import the latest GNU version.
433 2002-06-06  Paul D. Smith  <psmith@gnu.org>
435         * variable.c (do_variable_definition): New function: extract the
436         part of try_variable_definition() that actually sets the value
437         into a separate function.
438         (try_variable_definition): Call do_variable_definition() after
439         parsing the variable definition string.
440         (define_variable_in_set): Make the name argument const.
442         * variable.h (enum variable_flavor): Make public.
443         (do_variable_definition): Create prototype.
445         * read.c (read_all_makefiles): Create a new built-in variable,
446         MAKEFILE_LIST.
447         (read_makefile): Add each makefile read in to this variable value.
449 2002-05-18  Eli Zaretskii  <eliz@is.elta.co.il>
451         * Makefile.DOS.template: Tweak according to changes in the
452         distribution.  Add back the dependencies of *.o files.
454         * configh.dos.template: Synchronize with config.h.in.
456 2002-05-09  Paul D. Smith  <psmith@gnu.org>
458         * file.c (file_timestamp_now): Use K&R function declaration.
460         * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
461         getloadavg.c.  Autoconf thinks QNX is SVR4-like, but it isn't, so
462         #undef it.  Remove predefined setup of NLIST_STRUCT.  Decide
463         whether to include nlist.h based on HAVE_NLIST_H.  Change obsolete
464         NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
465         * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
466         nlist.n_name is a pointer rather than an array.
468         * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
469         version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
470         * configure.in: Use it instead of the old version.
472         * main.c (main): Prefer setvbuf() to setlinebuf().
474 2002-05-08  Paul D. Smith  <psmith@gnu.org>
476         * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
477         (loadavg_LDADD): Ditto.
479 2002-04-29  Paul D. Smith  <psmith@gnu.org>
481         * expand.c (recursively_expand_for_file): Rename
482         recursively_expand() to recursively_expand_for_file() and provide
483         an extra argument, struct file.  If the argument is provided, set
484         the variable scope to that of the file before expanding.
485         * variable.h (recursively_expand): Make this a macro that invokes
486         recursively_expand_for_file() with a NULL file pointer.
487         * variable.c (target_environment): Call the renamed function and
488         provide the current file context.
489         Fixes Debian bug #144306.
491 2002-04-28  Paul D. Smith  <psmith@gnu.org>
493         Allow $(call ...) user-defined variables to be self-referencing
494         without throwing an error.  Allows implementation of transitive
495         closures, among other possibly useful things.
496         Requested by: Philip Guenther <guenther@sendmail.com>
498         * variable.h (struct variable): Add a new field: exp_count, and
499         new macros to hold its size and maximum value.
500         (warn_undefined): Make this a macro.
501         * variable.c (define_variable_in_set): Initialize it.
502         * expand.c (recursively_expand): If we detect recursive expansion
503         of a variable, check the exp_count field.  If it's greater than 0
504         allow the recursion and decrement the count.
505         (warn_undefined): Remove this (now a macro in variable.h).
506         * function.c (func_call): Before we expand the user-defined
507         function, modify its exp_count field to contain the maximum
508         number of recursive calls we'll allow.  After the call, reset it
509         to 0.
511 2002-04-21  Paul D. Smith  <psmith@gnu.org>
513         Modified to use latest autoconf (2.53), automake (1.6.1), and
514         gettext (0.11.1).  We're using gettext's new "external" support,
515         to avoid including libintl source with GNU make.
517         * README.cvs: New file.  Explain how to build GNU make from CVS.
519         * configure.in: Modify checking for the system glob library.
520         Use AC_EGREP_CPP instead of AC_TRY_CPP.  Remove the setting of
521         GLOBDIR (we will always put "glob" in SUBDIRS, so automake
522         etc. will manage it correctly).  Set an automake conditional
523         USE_LOCAL_GLOB to decide whether to compile the glob library.
525         * getloadavg.c (main): Include make.h in the "TEST" program to
526         avoid warnings.
528         * Makefile.am: Remove special rules for loadavg.  Replace them
529         with Automake capabilities for building extra programs.
531         * signame.c: This file does nothing if the system provide
532         strsignal().  If not, it implements strsignal().  If the system
533         doesn't define sys_siglist, then we make our own; otherwise we use
534         the system version.
535         * signame.h: Removed.
537         * main.c (main): No need to invoke signame_init().  Update copyright.
539         * ABOUT-NLS: Removed.
540         * gettext.c: Removed.
541         * gettext.h: Get a simplified copy from the gettext package.
542         * po/*: Created.
543         * i18n/*.po: Moved to po/.
544         * i18n/: Removed.
546         * config/*: Created.  Contains package configuration helper files.
547         * config.guess, config.sub: Moved to config directory.
549         * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
550         Rework to use new-style autoconf features.  Use the "external"
551         mode for gettext.  Make the build.sh config file conditional on
552         whether build.sh.in exists, to avoid autoconf errors.
553         * acinclude.m4: Removed almost all macros as being obsolete.
554         Rewrote remaining macros to use AC_DEFINE.
555         * acconfig.h: Removed.
557         * Makefile.am (EXTRA_DIST): Add config/config.rpath.  Use a
558         conditional to handle customs support.  Remove special handling
559         for i18n features.
561 2002-04-20  Paul D. Smith  <psmith@gnu.org>
563         * function.c (func_call): Don't mark the argument variables $1,
564         etc. as recursive.  They've already been fully expanded so
565         there's no need to do it again, and doing so strips escaped $'s.
566         Reported by Sebastian Glita <glseba@yahoo.com>.
568         * remake.c (notice_finished_file): Walk through double-colon
569         entries via the prev field, not the next field!
570         Reported by Greg McGary <greg@mcgary.org>.
572         * main.c (main): If the user specifies -q and asks for a specific
573         target which is a makefile, we got an assert.  In that case it
574         turns out we should continue normally instead.
576         * i18n/de.po, i18n/fr.po: Installed an updated translation.
578         * i18n/he.po: Installed a new translation.
580 2002-01-07  Paul D. Smith  <psmith@gnu.org>
582         * i18n/es.po, i18n/ru.po: Installed an updated translation.
584 2001-12-04  Paul D. Smith  <psmith@gnu.org>
586         * i18n/ja.po: Installed an updated translation.
588 2001-09-04  Paul D. Smith  <psmith@gnu.org>
590         * i18n/da.po: Installed an updated translation.
592 2001-08-03  Paul D. Smith  <psmith@gnu.org>
594         * i18n/fr.po: Installed an updated translation.
595         Resolves Debian bug #106720.
597 2001-06-13  Paul D. Smith  <psmith@gnu.org>
599         * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
600         translation.
602 2001-06-11  Paul D. Smith  <psmith@gnu.org>
604         * i18n/ko.po: Installed a new translation.
606 2001-05-06  Paul D. Smith  <psmith@gnu.org>
608         Modify the EINTR handling.
610         * job.c (new_job): Reorganize the jobserver algorithm.  Reorder
611         the way in which we manage the file descriptor/signal handler race
612         trap to be more efficient.
614 2001-05-06  Paul Eggert  <eggert@twinsun.com>
616         Restart almost all system calls that are interrupted, instead
617         of worrying about EINTR.  The lone exception is the read() for
618         job tokens.
620         * configure.in (HAVE_SA_RESTART): New macro.
621         (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
622         * main.c (main): Use SA_RESTART instead of the old,
623         nonstandard SA_INTERRUPT.
625         * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
626         * main.c (bsd_signal): New function or macro,
627         if the implementation doesn't supply it.
628         (The bsd_signal function will be in POSIX 1003.1-200x.)
629         (HANDLESIG): Remove.
630         (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
632         * make.h (EINTR_SET): Remove.
633         (SA_RESTART): New macro.
635         * arscan.c (ar_member_touch): Don't worry about EINTR.
636         * function.c (func_shell): Likewise.
637         * job.c (reap_children, free_child, new_job): Likewise.
638         * main.c (main): Likewise.
639         * remake.c (touch_file, name_mtime): Likewise.
641         * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
642         if fstat failed with errno!=EINTR, the error was ignored.
644         * job.c (set_child_handler_action_flags): New function.
645         (new_job): Use it to temporarily clear the SIGCHLD action flags
646         while reading the token.
648 2001-05-02  Paul D. Smith  <psmith@gnu.org>
650         * job.c (start_job_command): Don't add define/endef per-line flags
651         to the top-level flags setting.
653 2001-04-03  Paul D. Smith  <psmith@gnu.org>
655         * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
656         bit on error, so check for odd return values, not non-0 return
657         values.
658         (VMS_get_member_info): Calculate the timezone differences correctly.
659         Reported by John Fowler <jfowler@nyx.net>.
662 2001-03-14  Paul D. Smith  <psmith@gnu.org>
664         * variable.c (lookup_variable) [VMS]: Null-terminate the variable
665         value before invoking define_variable().
666         Reported by John Fowler <jfowler@nyx.net>.
668 2001-02-07  Paul D. Smith  <psmith@gnu.org>
670         * read.c (record_target_var): If we reset the variable due to a
671         command-line variable setting overriding it, turn off the "append"
672         flag.
674 2001-01-17  Paul D. Smith  <psmith@gnu.org>
676         * variable.c (lookup_variable) [VMS]: When getting values from the
677         environment, allocate enough space for the _value_ plus escapes,
678         not enough space for the name plus escapes :-/.
679         Reported by John Fowler <jfowler@nyx.net>.
681         * remake.c (f_mtime): Removed the "***" prefix from the mod time
682         warnings that make generates, so it doesn't look like an error.
683         Reported by Karl Berry <karl@gnu.org>.
686         Fix for PR/2020:  Rework appended target-specific variables.  I'm
687         fairly confident this algorithm is finally correct.
689         * expand.c (allocated_variable_append): Rewrite.  Instead of
690         expanding each appended variable then adding all the expanded
691         strings together, we append all the unexpanded values going up
692         through the variable set contexts, then expand the final result.
693         This behaves just like non-target-specific appended variable
694         values, while the old way didn't in various corner cases.
695         (variable_append): New function: recursively append the unexpanded
696         value of a variable, walking from the outermost variable scope to
697         the innermost.
698         * variable.c (lookup_variable): Remove the code that looked up the
699         variable set list if the found variable was "append".  We don't
700         need this anymore.
701         (lookup_variable_in_set): Make this non-static so we can use it
702         elsewhere.
703         (try_variable_definition): Use lookup_variable_in_set() rather
704         than faking out current_variable_set_list by hand (cleanup).
705         * variable.h: Add a prototype for the now non-static
706         lookup_variable_in_set().
708 2000-11-17  Paul D. Smith  <psmith@gnu.org>
710         * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
711         WINDOWS32 port to assume timestamps can be up to 3 seconds away
712         before throwing a fit.
714 2000-11-17  Paul D. Smith  <psmith@gnu.org>
716         * read.c (readline): CRLF calculations had a hole, if you hit the
717         buffer grow scenario just right.  Reworked the algorithm to avoid
718         the need for len or lastlen at all.  Problem description with
719         sample code chages provided by Chris Faylor <cgf@redhat.com>.
721 2000-10-24  Paul D. Smith  <psmith@gnu.org>
723         * gettext.c (SWAP): Declare this with the prototype, otherwise
724         some systems don't work (non-32-bit?  Reported for Cray T3E).
725         Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
727 2000-10-05  Paul D. Smith  <psmith@gnu.org>
729         * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
730         AM_LC_MESSAGES; it doesn't seem to do anything anyway??
732         * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
734 2000-09-22  Paul D. Smith  <psmith@gnu.org>
736         * gettext.c: Don't #define _GETTEXT_H here; we only include some
737         parts of the real gettext.h here, and we expect to really include
738         the real gettext.h later.  If we keep this #define, it's ignored.
740 2000-09-21  Paul D. Smith  <psmith@gnu.org>
742         * main.c (log_working_directory): Rework the text to use complete
743         sentences, to make life simpler for the translators.
745 2000-08-29  Paul D. Smith  <psmith@gnu.org>
747         * file.c (remove_intermediates): Print a debug message before we
748         remove intermediate files, so the user (if she uses -d) knows
749         what's going on.
751 2000-08-21  Paul D. Smith  <psmith@gnu.org>
753         * variable.c (try_variable_definition): Change how we handle
754         target-specific append variable defns: instead of just setting the
755         value, expand it as an append _but_ only within the current
756         target's context.  Otherwise we lose all but the last value if the
757         variable is appended more than once within the current target
758         context.  Fixes PR/1831.
760 2000-08-16  Paul D. Smith  <psmith@gnu.org>
762         * function.c (func_shell): Nul-terminate the buffer before
763         printing an exec error message (just in case it's not!).
764         Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
766 2000-07-25  Paul D. Smith  <psmith@gnu.org>
768         * job.c (construct_command_argv_internal): Add "~" to the list of
769         sh_chars[] which disallow optimizing out the shell call.
771 2000-07-23  Paul Eggert  <eggert@twinsun.com>
773         * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
774         supersedes --disable-nsec-timestamps.
775         * make.texinfo: Consistently use "time stamp" instead of "timestamp".
776         * README: Remove --disable-nsec-timestamps.
778         * filedef.h (struct file.low_resolution_time): New member.
779         * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
780         * remake.c (update_file_1):
781         Avoid spurious rebuilds due to low resolution time stamps,
782         generalizing the earlier code that applied only to archive members.
783         (f_mtime): Archive members always have low resolution time stamps.
785         * configure.in: Remove --disable-nsec-timestamps, as this has
786         been superseded by .LOW_RESOLUTION_TIME.
788 2000-07-23  Paul Eggert  <eggert@twinsun.com>
790         * configure.in (enable_nsec_timestamps): Renamed from
791         make_cv_nsec_timestamps, since enable/disable options
792         shouldn't be cached.
794 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
795        and  Paul Eggert  <eggert@twinsun.com>
797         * file.c (file_timestamp_now):
798         Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
799         so that clock_gettime is not linked unless needed.
801         * filedef.h (FILE_TIMESTAMP_HI_RES):
802         Remove definition; "configure" now does this.
804         * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
805         to before high resolution file timestamp check,
806         since that check now uses uintmax_t.
807         (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
808         high resolution file timestamps.
809         (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
810         so that we don't link in clock_gettime unnecessarily.
812 2000-07-17  Paul D. Smith  <psmith@gnu.org>
814         * i18n/ja.po: New version of the translation file.
816 2000-07-07  Paul D. Smith  <psmith@gnu.org>
818         * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
819         the offset calculation.
820         (name_mtime): Replace EINTR test with EINTR_SET macro.
822 2000-07-07  Paul Eggert  <eggert@twinsun.com>
824         Fix for PR/1811:
826         * remake.c (update_file_1):
827         Avoid spurious rebuilds of archive members due to their
828         timestamp resolution being only one second.
829         (f_mtime): Avoid spurious warnings of timestamps in the future due to
830         the clock's resolution being lower than file timestamps'.
831         When warning about future timestamps, report only the discrepancy,
832         not the absolute value of the timestamp and the current time.
834         * file.c (file_timestamp_now): New arg RESOLUTION.
835         * filedef.h (file_timestamp_now): Likewise.
836         (FILE_TIMESTAMP_NS): Now returns int.  All uses changed.
838 2000-07-05  Paul D. Smith  <psmith@gnu.org>
840         * variable.c (lookup_variable) [VMS]: Remove vestigial references
841         to listp.  Fixes PR/1793.
843 2000-06-26  Paul Eggert  <eggert@twinsun.com>
845         * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
847         * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
849         * remake.c (f_mtime): Remove unused var memtime.
851 2000-06-25  Martin Buchholz  <martin@xemacs.org>
853         * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
854         Ran spell-check on make.texinfo.
857 See ChangeLog.2 for earlier changes.