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