Various cleanups reported by people using the alpha release.
[make/kirr.git] / ChangeLog
blob65ba46f99dba32e15fbcd96064e6d1859caafffc
1 2002-07-08  Paul D. Smith  <psmith@gnu.org>
3         * maintMakefile: Add "update" targets for wget'ing the latest
4         versions of various external files.  Taken from Makefile.maint in
5         autoconf, etc.
7         * dosbuild.bat: Somehow we got _extra_ ^M's.  Remove them.
8         Reported by Eli Zaretskii  <eliz@is.elta.co.il>.
10 2002-07-07  Paul D. Smith  <psmith@gnu.org>
12         * po/*.po: Remove.  We'll use wget to retrieve them at release
13         time.
15         * variable.c (do_variable_definition) [W32]: On W32 using cmd
16         rather than a shell you get an exception.  Make sure we look up
17         the variable.  Patch provided by Eli Zaretskii <eliz@is.elta.co.il>.
19         * remake.c (notice_finished_file): Fix handling of -t flag.
20         Patch provided by Henning Makholm <henning@makholm.net>.
22         * implicit.c (pattern_search): Some systems apparently run short
23         of stack space, and using alloca() in this function caused an
24         overrun.  I modified it to use xmalloc() on the two variables
25         which seemed like they might get large.  Bug #476.
27         * main.c (print_version): Update copyright notice to conform with
28         GNU standards.
29         (print_usage): Update help output.
31         * function.c (func_eval): Create a new make function, $(eval
32         ...).  Expand the arguments, put them into a buffer, then invoke
33         eval_buffer() on the resulting string.
34         (func_quote): Create a new function, $(quote VARNAME).  Inserts
35         the value of the variable VARNAME without expanding it any
36         further.
38         * read.c (struct ebuffer): Change the linebuffer structure to an
39         "eval buffer", which can be either a file or a buffer.
40         (eval_makefile): Move the code in the old read_makefile() which
41         located a makefile into here: create a struct ebuffer with that
42         information.  Have it invoke the new function eval() with that
43         ebuffer.
44         (eval_buffer): Create a new function that creates a struct ebuffer
45         that holds a string buffer instead of a file.  Have it invoke
46         eval() with that ebuffer.
47         (eval): New function that contains the guts of the old
48         read_makefile() function: this function parses makefiles.  Obtains
49         data to parse from the provided ebuffer.  Some modifications to
50         make the flow of the function cleaner and clearer.  Still could
51         use some work here...
52         (do_define): Takes a struct ebuffer instead of a FILE*.  Read the
53         contents of the define/endef variable from the ebuffer.
54         (readstring): Read the next line from a string-style ebuffer.
55         (readline): Read the next line from an ebuffer.  If it's a string
56         ebuffer, invoke readstring().  If it's a FILE* ebuffer, read it
57         from the file.
59         * dep.h (eval_buffer): Prototype eval_buffer();
61         * variable.c (do_variable_definition): Make sure that all
62         non-target-specific variables are registered in the global set.
63         If we're invoked from an $(eval ...) we might be inside a $(call
64         ...) or other function which has pushed a variable scope; we still
65         want to define our variables from evaluated makefile code in the
66         global scope.
68 2002-07-03  Greg McGary  <greg@mcgary.org>
70         * dep.h (struct dep) [ignore_mtime]: New member.
71         [changed]: convert to a bitfield.
72         * implicit.c (pattern_search): Zero ignore_mtime.
73         * main.c (main, handle_non_switch_argument): Likewise.
74         * rule.c (convert_suffix_rule): Likewise.
75         * read.c (read_all_makefiles, read_makefile, multi_glob): Likewise.
76         (read_makefile): Parse '|' in prerequisite list.
77         (uniquize_deps): Consider ignore_mtime when comparing deps.
78         * remake.c (update_file_1, check_dep): Don't force remake for
79         dependencies that have d->ignore_mtime.
80         * commands.c (FILE_LIST_SEPARATOR): New constant.
81         (set_file_variables): Don't include a
82         prerequisite in $+, $^ or $? if d->ignore_mtime.
83         Define $|.
85 2002-06-18  Paul D. Smith  <psmith@gnu.org>
87         * make.texinfo: Updates for next revision.  New date/rev/etc.
88         Recreate all Info menus.  Change license on the manual to the GNU
89         Free Documentation License.  A number of typos.
90         (Variables Simplify): Don't use "-" before it's defined.
91         (Automatic Prerequisites): Rewrite the target example to work
92         properly if the compile fails.  Remove incorrect comments about
93         how "set -e" behaves.
94         (Text Functions): Move the "word", "wordlist", "words", and
95         "firstword" functions here, from "File Name Functions".
96         * make-stds.texi: Update from latest GNU version.
97         * fdl.texi: (created) Import the latest GNU version.
99 2002-06-06  Paul D. Smith  <psmith@gnu.org>
101         * variable.c (do_variable_definition): New function: extract the
102         part of try_variable_definition() that actually sets the value
103         into a separate function.
104         (try_variable_definition): Call do_variable_definition() after
105         parsing the variable definition string.
106         (define_variable_in_set): Make the name argument const.
108         * variable.h (enum variable_flavor): Make public.
109         (do_variable_definition): Create prototype.
111         * read.c (read_all_makefiles): Create a new built-in variable,
112         MAKEFILE_LIST.
113         (read_makefile): Add each makefile read in to this variable value.
115 2002-05-18  Eli Zaretskii  <eliz@is.elta.co.il>
117         * Makefile.DOS.template: Tweak according to changes in the
118         distribution.  Add back the dependencies of *.o files.
120         * configh.dos.template: Synchronize with config.h.in.
122 2002-05-09  Paul D. Smith  <psmith@gnu.org>
124         * file.c (file_timestamp_now): Use K&R function declaration.
126         * getloadavg.c (getloadavg): Merge setlocale() fix from sh-utils
127         getloadavg.c.  Autoconf thinks QNX is SVR4-like, but it isn't, so
128         #undef it.  Remove predefined setup of NLIST_STRUCT.  Decide
129         whether to include nlist.h based on HAVE_NLIST_H.  Change obsolete
130         NLIST_NAME_UNION to new HAVE_STRUCT_NLIST_N_UN_N_NAME.
131         * configure.in (NLIST_STRUCT): Define this if we have nlist.h and
132         nlist.n_name is a pointer rather than an array.
134         * acinclude.m4 (make_FUNC_SETVBUF_REVERSED): Grab the latest
135         version of AC_FUNC_SETVBUF_REVERSED from autoconf CVS.
136         * configure.in: Use it instead of the old version.
138         * main.c (main): Prefer setvbuf() to setlinebuf().
140 2002-05-08  Paul D. Smith  <psmith@gnu.org>
142         * Makefile.am (make_LDADD): Add GETLOADAVG_LIBS.
143         (loadavg_LDADD): Ditto.
145 2002-04-29  Paul D. Smith  <psmith@gnu.org>
147         * expand.c (recursively_expand_for_file): Rename
148         recursively_expand() to recursively_expand_for_file() and provide
149         an extra argument, struct file.  If the argument is provided, set
150         the variable scope to that of the file before expanding.
151         * variable.h (recursively_expand): Make this a macro that invokes
152         recursively_expand_for_file() with a NULL file pointer.
153         * variable.c (target_environment): Call the renamed function and
154         provide the current file context.
155         Fixes Debian bug #144306.
157 2002-04-28  Paul D. Smith  <psmith@gnu.org>
159         Allow $(call ...) user-defined variables to be self-referencing
160         without throwing an error.  Allows implementation of transitive
161         closures, among other possibly useful things.
162         Requested by: Philip Guenther <guenther@sendmail.com>
164         * variable.h (struct variable): Add a new field: exp_count, and
165         new macros to hold its size and maximum value.
166         (warn_undefined): Make this a macro.
167         * variable.c (define_variable_in_set): Initialize it.
168         * expand.c (recursively_expand): If we detect recursive expansion
169         of a variable, check the exp_count field.  If it's greater than 0
170         allow the recursion and decrement the count.
171         (warn_undefined): Remove this (now a macro in variable.h).
172         * function.c (func_call): Before we expand the user-defined
173         function, modify its exp_count field to contain the maximum
174         number of recursive calls we'll allow.  After the call, reset it
175         to 0.
177 2002-04-21  Paul D. Smith  <psmith@gnu.org>
179         Modified to use latest autoconf (2.53), automake (1.6.1), and
180         gettext (0.11.1).  We're using gettext's new "external" support,
181         to avoid including libintl source with GNU make.
183         * README.cvs: New file.  Explain how to build GNU make from CVS.
185         * configure.in: Modify checking for the system glob library.
186         Use AC_EGREP_CPP instead of AC_TRY_CPP.  Remove the setting of
187         GLOBDIR (we will always put "glob" in SUBDIRS, so automake
188         etc. will manage it correctly).  Set an automake conditional
189         USE_LOCAL_GLOB to decide whether to compile the glob library.
191         * getloadavg.c (main): Include make.h in the "TEST" program to
192         avoid warnings.
194         * Makefile.am: Remove special rules for loadavg.  Replace them
195         with Automake capabilities for building extra programs.
197         * signame.c: This file does nothing if the system provide
198         strsignal().  If not, it implements strsignal().  If the system
199         doesn't define sys_siglist, then we make our own; otherwise we use
200         the system version.
201         * signame.h: Removed.
203         * main.c (main): No need to invoke signame_init().  Update copyright.
205         * ABOUT-NLS: Removed.
206         * gettext.c: Removed.
207         * gettext.h: Get a simplified copy from the gettext package.
208         * po/*: Created.
209         * i18n/*.po: Moved to po/.
210         * i18n/: Removed.
212         * config/*: Created.  Contains package configuration helper files.
213         * config.guess, config.sub: Moved to config directory.
215         * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, config/Makefile.
216         Rework to use new-style autoconf features.  Use the "external"
217         mode for gettext.  Make the build.sh config file conditional on
218         whether build.sh.in exists, to avoid autoconf errors.
219         * acinclude.m4: Removed almost all macros as being obsolete.
220         Rewrote remaining macros to use AC_DEFINE.
221         * acconfig.h: Removed.
223         * Makefile.am (EXTRA_DIST): Add config/config.rpath.  Use a
224         conditional to handle customs support.  Remove special handling
225         for i18n features.
227 2002-04-20  Paul D. Smith  <psmith@gnu.org>
229         * function.c (func_call): Don't mark the argument variables $1,
230         etc. as recursive.  They've already been fully expanded so
231         there's no need to do it again, and doing so strips escaped $'s.
232         Reported by Sebastian Glita <glseba@yahoo.com>.
234         * remake.c (notice_finished_file): Walk through double-colon
235         entries via the prev field, not the next field!
236         Reported by Greg McGary <greg@mcgary.org>.
238         * main.c (main): If the user specifies -q and asks for a specific
239         target which is a makefile, we got an assert.  In that case it
240         turns out we should continue normally instead.
242         * i18n/de.po, i18n/fr.po: Installed an updated translation.
244         * i18n/he.po: Installed a new translation.
246 2002-01-07  Paul D. Smith  <psmith@gnu.org>
248         * i18n/es.po, i18n/ru.po: Installed an updated translation.
250 2001-12-04  Paul D. Smith  <psmith@gnu.org>
252         * i18n/ja.po: Installed an updated translation.
254 2001-09-04  Paul D. Smith  <psmith@gnu.org>
256         * i18n/da.po: Installed an updated translation.
258 2001-08-03  Paul D. Smith  <psmith@gnu.org>
260         * i18n/fr.po: Installed an updated translation.
261         Resolves Debian bug #106720.
263 2001-06-13  Paul D. Smith  <psmith@gnu.org>
265         * i18n/da.po, configure.in (ALL_LINGUAS): Installed a new
266         translation.
268 2001-06-11  Paul D. Smith  <psmith@gnu.org>
270         * i18n/ko.po: Installed a new translation.
272 2001-05-06  Paul D. Smith  <psmith@gnu.org>
274         Modify the EINTR handling.
276         * job.c (new_job): Reorganize the jobserver algorithm.  Reorder
277         the way in which we manage the file descriptor/signal handler race
278         trap to be more efficient.
280 2001-05-06  Paul Eggert  <eggert@twinsun.com>
282         Restart almost all system calls that are interrupted, instead
283         of worrying about EINTR.  The lone exception is the read() for
284         job tokens.
286         * configure.in (HAVE_SA_RESTART): New macro.
287         (MAKE_JOBSERVER): Define to 1 only if HAVE_SA_RESTART.
288         * main.c (main): Use SA_RESTART instead of the old,
289         nonstandard SA_INTERRUPT.
291         * configure.in (AC_CHECK_FUNCS): Add bsd_signal.
292         * main.c (bsd_signal): New function or macro,
293         if the implementation doesn't supply it.
294         (The bsd_signal function will be in POSIX 1003.1-200x.)
295         (HANDLESIG): Remove.
296         (main, FATAL_SIG): Use bsd_signal instead of signal or HANDLESIG.
298         * make.h (EINTR_SET): Remove.
299         (SA_RESTART): New macro.
301         * arscan.c (ar_member_touch): Don't worry about EINTR.
302         * function.c (func_shell): Likewise.
303         * job.c (reap_children, free_child, new_job): Likewise.
304         * main.c (main): Likewise.
305         * remake.c (touch_file, name_mtime): Likewise.
307         * arscan.c (ar_member_touch): Fix bug uncovered by EINTR removal;
308         if fstat failed with errno!=EINTR, the error was ignored.
310         * job.c (set_child_handler_action_flags): New function.
311         (new_job): Use it to temporarily clear the SIGCHLD action flags
312         while reading the token.
314 2001-05-02  Paul D. Smith  <psmith@gnu.org>
316         * job.c (start_job_command): Don't add define/endef per-line flags
317         to the top-level flags setting.
319 2001-04-03  Paul D. Smith  <psmith@gnu.org>
321         * arscan.c (VMS_get_member_info,ar_scan) [VMS]: VMS sets the low
322         bit on error, so check for odd return values, not non-0 return
323         values.
324         (VMS_get_member_info): Calculate the timezone differences correctly.
325         Reported by John Fowler <jfowler@nyx.net>.
328 2001-03-14  Paul D. Smith  <psmith@gnu.org>
330         * variable.c (lookup_variable) [VMS]: Null-terminate the variable
331         value before invoking define_variable().
332         Reported by John Fowler <jfowler@nyx.net>.
334 2001-02-07  Paul D. Smith  <psmith@gnu.org>
336         * read.c (record_target_var): If we reset the variable due to a
337         command-line variable setting overriding it, turn off the "append"
338         flag.
340 2001-01-17  Paul D. Smith  <psmith@gnu.org>
342         * variable.c (lookup_variable) [VMS]: When getting values from the
343         environment, allocate enough space for the _value_ plus escapes,
344         not enough space for the name plus escapes :-/.
345         Reported by John Fowler <jfowler@nyx.net>.
347         * remake.c (f_mtime): Removed the "***" prefix from the mod time
348         warnings that make generates, so it doesn't look like an error.
349         Reported by Karl Berry <karl@gnu.org>.
352         Fix for PR/2020:  Rework appended target-specific variables.  I'm
353         fairly confident this algorithm is finally correct.
355         * expand.c (allocated_variable_append): Rewrite.  Instead of
356         expanding each appended variable then adding all the expanded
357         strings together, we append all the unexpanded values going up
358         through the variable set contexts, then expand the final result.
359         This behaves just like non-target-specific appended variable
360         values, while the old way didn't in various corner cases.
361         (variable_append): New function: recursively append the unexpanded
362         value of a variable, walking from the outermost variable scope to
363         the innermost.
364         * variable.c (lookup_variable): Remove the code that looked up the
365         variable set list if the found variable was "append".  We don't
366         need this anymore.
367         (lookup_variable_in_set): Make this non-static so we can use it
368         elsewhere.
369         (try_variable_definition): Use lookup_variable_in_set() rather
370         than faking out current_variable_set_list by hand (cleanup).
371         * variable.h: Add a prototype for the now non-static
372         lookup_variable_in_set().
374 2000-11-17  Paul D. Smith  <psmith@gnu.org>
376         * remake.c (f_mtime) [WINDOWS32]: On various advice, I changed the
377         WINDOWS32 port to assume timestamps can be up to 3 seconds away
378         before throwing a fit.
380 2000-11-17  Paul D. Smith  <psmith@gnu.org>
382         * read.c (readline): CRLF calculations had a hole, if you hit the
383         buffer grow scenario just right.  Reworked the algorithm to avoid
384         the need for len or lastlen at all.  Problem description with
385         sample code chages provided by Chris Faylor <cgf@redhat.com>.
387 2000-10-24  Paul D. Smith  <psmith@gnu.org>
389         * gettext.c (SWAP): Declare this with the prototype, otherwise
390         some systems don't work (non-32-bit?  Reported for Cray T3E).
391         Reported by Thorstein Thorsteinsson <thor@signe.teokem.lu.se>.
393 2000-10-05  Paul D. Smith  <psmith@gnu.org>
395         * acinclude.m4 (AM_LC_MESSAGES): Remove undefined macro
396         AM_LC_MESSAGES; it doesn't seem to do anything anyway??
398         * i18n/gl.po, configure.in (ALL_LINGUAS): New Galician translation.
400 2000-09-22  Paul D. Smith  <psmith@gnu.org>
402         * gettext.c: Don't #define _GETTEXT_H here; we only include some
403         parts of the real gettext.h here, and we expect to really include
404         the real gettext.h later.  If we keep this #define, it's ignored.
406 2000-09-21  Paul D. Smith  <psmith@gnu.org>
408         * main.c (log_working_directory): Rework the text to use complete
409         sentences, to make life simpler for the translators.
411 2000-08-29  Paul D. Smith  <psmith@gnu.org>
413         * file.c (remove_intermediates): Print a debug message before we
414         remove intermediate files, so the user (if she uses -d) knows
415         what's going on.
417 2000-08-21  Paul D. Smith  <psmith@gnu.org>
419         * variable.c (try_variable_definition): Change how we handle
420         target-specific append variable defns: instead of just setting the
421         value, expand it as an append _but_ only within the current
422         target's context.  Otherwise we lose all but the last value if the
423         variable is appended more than once within the current target
424         context.  Fixes PR/1831.
426 2000-08-16  Paul D. Smith  <psmith@gnu.org>
428         * function.c (func_shell): Nul-terminate the buffer before
429         printing an exec error message (just in case it's not!).
430         Fixes PR/1860, reported by Joey Hess <joey@valinux.com>.
432 2000-07-25  Paul D. Smith  <psmith@gnu.org>
434         * job.c (construct_command_argv_internal): Add "~" to the list of
435         sh_chars[] which disallow optimizing out the shell call.
437 2000-07-23  Paul Eggert  <eggert@twinsun.com>
439         * NEWS, make.texinfo: Document .LOW_RESOLUTION_TIME, which
440         supersedes --disable-nsec-timestamps.
441         * make.texinfo: Consistently use "time stamp" instead of "timestamp".
442         * README: Remove --disable-nsec-timestamps.
444         * filedef.h (struct file.low_resolution_time): New member.
445         * file.c (snap_deps): Add support for .LOW_RESOLUTION_TIME.
446         * remake.c (update_file_1):
447         Avoid spurious rebuilds due to low resolution time stamps,
448         generalizing the earlier code that applied only to archive members.
449         (f_mtime): Archive members always have low resolution time stamps.
451         * configure.in: Remove --disable-nsec-timestamps, as this has
452         been superseded by .LOW_RESOLUTION_TIME.
454 2000-07-23  Paul Eggert  <eggert@twinsun.com>
456         * configure.in (enable_nsec_timestamps): Renamed from
457         make_cv_nsec_timestamps, since enable/disable options
458         shouldn't be cached.
460 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
461        and  Paul Eggert  <eggert@twinsun.com>
463         * file.c (file_timestamp_now):
464         Use preprocessor-time check for FILE_TIMESTAMP_HI_RES
465         so that clock_gettime is not linked unless needed.
467         * filedef.h (FILE_TIMESTAMP_HI_RES):
468         Remove definition; "configure" now does this.
470         * configure.in (jm_AC_TYPE_UINTMAX_T): Move up,
471         to before high resolution file timestamp check,
472         since that check now uses uintmax_t.
473         (FILE_TIMESTAMP_HI_RES): Define to nonzero if the code should use
474         high resolution file timestamps.
475         (HAVE_CLOCK_GETTIME): Do not define if !FILE_TIMESTAMP_HI_RES,
476         so that we don't link in clock_gettime unnecessarily.
478 2000-07-17  Paul D. Smith  <psmith@gnu.org>
480         * i18n/ja.po: New version of the translation file.
482 2000-07-07  Paul D. Smith  <psmith@gnu.org>
484         * remake.c (f_mtime): If NO_FLOAT is defined, don't bother with
485         the offset calculation.
486         (name_mtime): Replace EINTR test with EINTR_SET macro.
488 2000-07-07  Paul Eggert  <eggert@twinsun.com>
490         Fix for PR/1811:
492         * remake.c (update_file_1):
493         Avoid spurious rebuilds of archive members due to their
494         timestamp resolution being only one second.
495         (f_mtime): Avoid spurious warnings of timestamps in the future due to
496         the clock's resolution being lower than file timestamps'.
497         When warning about future timestamps, report only the discrepancy,
498         not the absolute value of the timestamp and the current time.
500         * file.c (file_timestamp_now): New arg RESOLUTION.
501         * filedef.h (file_timestamp_now): Likewise.
502         (FILE_TIMESTAMP_NS): Now returns int.  All uses changed.
504 2000-07-05  Paul D. Smith  <psmith@gnu.org>
506         * variable.c (lookup_variable) [VMS]: Remove vestigial references
507         to listp.  Fixes PR/1793.
509 2000-06-26  Paul Eggert  <eggert@twinsun.com>
511         * Makefile.am (MAINTAINERCLEANFILES): New macro, with stamp-pot in it.
513         * dir.c (vms_hash): Ensure ctype macro args are nonnegative.
515         * remake.c (f_mtime): Remove unused var memtime.
517 2000-06-25  Martin Buchholz  <martin@xemacs.org>
519         * make.texinfo, NEWS, TODO.private: Minor spelling corrections.
520         Ran spell-check on make.texinfo.
523 See ChangeLog.2 for earlier changes.