1
2009-07-26 Eric Blake <ebb9@byu.net>
4
* NEWS: Mention the release.
5
* README: This release is stable.
6
* HACKING (release): Use dist-xz, not dist-lzma.
8
Document some optional features in INSTALL.
9
* doc/install.texi (Basic Installation): Mention that INSTALL is
10
generic, and that not all packages implement all features.
11
Mention 'make distcheck' for maintainers, and 'make installcheck'
12
for users. Mention the GNU Coding Standards.
13
(Installation Names): Mention DESTDIR vs. 'make prefix= install'
14
as ways to alter the configuration, with caveats of each. Move
15
--program-prefix discussion...
16
(Optional Features): ...here. Mention --enable-silent-rules and
19
Basic improvements to INSTALL.
20
* doc/install.texi (Basic Installation): Use better markup.
21
(Multiple Architectures): Introduce the term VPATH.
22
(Installation Names): Mention that --prefix must be absolute.
23
* doc/autoconf.texi (Preset Output Variables)
24
(Installation Directory Variables): Consistently refer to GNU
27
Update some upstream files.
28
* build-aux/config.guess: Resynchronize from upstream.
29
* build-aux/config.sub: Likewise.
30
* build-aux/texinfo.tex: Likewise.
31
* build-aux/vc-list-files: Likewise.
32
* doc/standards.texi: Likewise.
34
2009-07-25 Eric Blake <ebb9@byu.net>
36
Recognize new m4sugar keywords.
37
* lib/emacs/autoconf-mode.el (autoconf-current-defun): Recognize
38
m4_define_default, m4_defun_init, m4_defun_once.
39
(autoconf-font-lock-keywords): Likewise.
41
Require m4 1.4.6, and fix testsuite to support this version.
42
* m4/m4.m4 (AC_PROG_GNU_M4): Reject m4 1.4.5, now that we use
43
regexp it can't handle.
44
* NEWS: Mention minimum version bump.
46
* README-hacking: Likewise.
47
* doc/autoconf.texi (Introduction, Why GNU M4): Likewise.
48
* tests/tools.at (autom4te --trace and whitespace): Update test so
49
still work with older m4 line numbers.
50
* tests/m4sugar.at (m4@&t@_require: nested): Likewise.
51
Reported by Ralf Wildenhues.
53
2009-07-25 Bruno Haible <bruno@clisp.org>
55
Clarify autom4te debugging tips.
56
* doc/autoconf.texi (Debugging via autom4te): Fix example from
57
previous commit, and add clarification.
59
2009-07-25 Eric Blake <ebb9@byu.net>
61
Document some autom4te debugging tips.
62
* doc/autoconf.texi (Debugging via autom4te): New node.
63
Suggested by Bruno Haible.
66
* configure.ac (ac_cv_unsupported_fs_chars): Make editing easier.
68
Let autoheader see through m4 macros in AC_DEFINE.
69
* lib/autoconf/general.m4 (AC_DEFINE_TRACE): Expand macro before
71
* lib/autoconf/autoheader.m4 (AH_VERBATIM, AH_TEMPLATE): Likewise,
72
for using the macro in a template file.
73
* tests/tools.at (autoheader and macros): New test.
75
Reported by Bruno Haible.
78
* NEWS: Use more accurate statement.
79
Suggestedy by Ralf Wildenhues.
81
2009-07-24 Eric Blake <ebb9@byu.net>
83
Fix AS_EXIT for FreeBSD sh.
84
* lib/m4sugar/m4sh.m4 (AS_EXIT): Always supply an argument to the
85
shell function, since $? is not reliable on function entry.
86
(_AS_EXIT_PREPARE): Simplify to assume argument.
87
Reported by Ralf Wildenhues.
89
2009-07-23 Eric Blake <ebb9@byu.net>
91
Run more tests under Solaris.
92
* tests/local.at (AT_CHECK_AUTOCONF): Don't skip entire test
93
group when passing over syntax checks.
95
2009-07-23 Romain Lenglet <romain.lenglet@laposte.net>
97
Clean up temporary files generated by Erlang macros.
98
* lib/autoconf/erlang.m4 (AC_ERLANG_CHECK_LIB)
99
(AC_ERLANG_SUBST_ROOT_DIR, AC_ERLANG_SUBST_LIB_DIR)
100
(AC_ERLANG_SUBST_ERTS_VER): Delete conftest.out; renamed
101
erlang_cv_* cache variables into ac_cv_erlang_*.
102
* lib/autoconf/general.m4 (AC_RUN_IFELSE): Delete conftest.beam
103
files generated by Erlang compiler.
104
* tests/local.at (AT_CHECK_ENV): Ignore variables defined by
106
* tests/erlang.at (AT_SETUP_ERLANG): Delete; replace all uses by
108
* tests/Makefile.am (AUTOCONF_FILES): Revert previous addition of
109
generated Erlang tests; they are all hand-tested.
111
Add autotests for Erlang macros.
112
* tests/erlang.at: Added tests for all macros in erlang.m4.
113
* tests/Makefile.am (TESTSUITE_HAND_AT, AUTOCONF_FILES): Added
115
* tests/suite.at: Likewise.
116
* tests/compile.at (AC_LANG, AC_LANG_PUSH & AC_LANG_POP): Added
117
test for extension of Erlang files.
118
(Multiple languages): Use correct m4 quoting.
119
* NEWS: Mention this.
121
2009-07-22 Eric Blake <ebb9@byu.net>
123
Fix test of autom4te from stdin.
124
* tests/tools.at (autom4te cache locking): Make stdin request
125
explicit, so that --force is properly used.
127
2009-07-16 Eric Blake <ebb9@byu.net>
129
Don't hide leading space in autom4te --trace output.
130
* bin/autom4te.in (handle_traces): Don't flatten leading and
131
trailing space, since tracing spacing bugs can be useful.
132
* tests/tools.at (autom4te --trace and whitespace): New test.
134
2009-07-13 Eric Blake <ebb9@byu.net>
136
Document that $srcdir can be used during configure.
137
* doc/autoconf.texi (Preset Output Variables): Add a paragraph.
139
Reported by Monty Taylor.
141
2009-07-13 Eric Blake <ebb9@byu.net>
143
Disable asynchronous job notification for parallel tests.
144
* lib/autotest/general.m4 (AT_INIT) <Driver loop>: Turn off notify
145
mode, since zsh leaves it on after 'emulate sh'.
146
* doc/autoconf.texi (Limitations of Builtins) <set>: Document that
147
job control options are not portable.
149
Guarantee that exit status trumps output matching.
150
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document this
152
* tests/autotest.at (Skip, parallel skip): Enhance tests.
154
Fix nits in recent patches.
155
* configure.ac (ac_cv_dir_trailing_space): Avoid $status, for
157
* doc/autoconf.texi (Writing Testsuites) <AT_FAIL_IF, AT_SKIP_IF>:
159
(Introduction): Recommend m4 1.4.13.
161
* m4/m4.m4 (AC_PROG_GNU_M4): Likewise. Use long option --gnu
164
2009-07-13 Paolo Bonzini <bonzini@gnu.org>
166
Introduce AT_SKIP_IF and AT_FAIL_IF
167
* NEWS: Mention AT_SKIP_IF and AT_FAIL_IF.
168
* doc/autoconf.texi (Autotest): Document them.
169
* lib/autotest/general.m4 (_AT_LINE_ESCAPED, AT_SKIP_IF,
170
AT_FAIL_IF, _AT_CHECK_EXIT): New.
171
(AT_CHECK): Use _AT_LINE_ESCAPED.
172
* tests/autotest.at: Add tests for AT_SKIP_IF and AT_FAIL_IF.
174
* tests/local.at: Use AT_SKIP_IF.
176
2009-07-13 Paolo Bonzini <bonzini@gnu.org>
178
Use m4 -g when available.
179
* m4/m4.m4: Unset POSIXLY_CORRECT during first test. Test for -g.
180
Warn user if he has POSIXLY_CORRECT set but -g is not supported.
181
* bin/Makefile.am: Substitute @M4_GNU@ into generated files.
182
* bin/autom4te.in: Pass @M4_GNU@ to m4.
184
2009-07-13 Eric Blake <ebb9@byu.net>
187
* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
189
(_AT_DECIDE_TRACEABLE): Likewise.
191
2009-07-13 Paolo Bonzini <bonzini@gnu.org>
193
* lib/autotest/general.m4 (at_fn_check_prepare_notrace): Use
194
$at_trace_echo. Add new REASON argument.
195
(at_fn_check_prepare_trace): Do not call at_fn_check_prepare_notrace.
196
Use $at_check_filter_trace.
197
(at_fn_check_prepare_dynamic): Use at_fn_check_prepare_notrace.
198
(at_traceon): Initialize to ':'.
199
(at_traceoff): Remove, use 'set +x' instead throughout.
200
(at_check_filter_trace, at_trace_echo): New shell variables.
201
Initialize them if tracing is requested.
202
(_AT_DECIDE_TRACEABLE): Adjust call to at_fn_check_prepare_notrace.
204
2009-07-12 Paolo Bonzini <bonzini@gnu.org>
206
Move atlocal feature tests to configure
207
* configure.ac: Test for unsupported characters in files and
209
* tests/atlocal.in: ... and not here.
211
2009-07-09 Eric Blake <ebb9@byu.net>
214
* tests/m4sh.at (AS@&t@_INIT_GENERATED): Close fd, rather than
215
creating file named -.
217
Fix testsuite under dash.
218
* tests/m4sh.at (LINENO stack, AS@&t@_BASENAME, AS@&t@_DIRNAME)
219
(AS@&t@_ECHO and AS@&t@_ECHO_N, AS@&t@_EXIT, AS@&t@_MKDIR_P)
220
(AS@&t@_VERSION_COMPARE, as_me, Negated classes in globbing)
221
(Functions Support, Functions and return Support)
222
(Nested AS@&t@_REQUIRE_SHELL_FN, Nested AS@&t@_REQUIRE)
223
(AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require, AS@&t@_HELP_STRING)
224
(AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR, AS@&t@_LITERAL_IF)
225
(AS@&t@_VAR basics, AS@&t@_VAR_APPEND, AS@&t@_VAR_ARITH)
226
(AS@&t@_INIT cleanup, AS@&t@_INIT_GENERATED, AS@&t@_MESSAGE_FD)
227
(_AS@&t@_CLEAN_DIR, ECHO_C): Allow testing different CONFIG_SHELL
228
options during the testsuite run.
229
Reported by Ralf Wildenhues.
231
2009-07-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
233
Ignore messages on stderr when testing for the zsh issue.
234
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Ignore stderr.
236
2009-07-07 Eric Blake <ebb9@byu.net>
238
Skip parallel tests when zsh 'set -m' fails.
239
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Skip test if set -m
241
Reported by Ralf Wildenhues.
243
Make parallel testsuite more portable.
244
* lib/autotest/general.m4 (AT_INIT) <AT_JOB_FIFO_FD>: Avoid <>;
245
instead open write descriptor in each group and read descriptor in
247
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Relax condition.
249
2009-07-03 Eric Blake <ebb9@byu.net>
251
Avoid syntax error in ash.
252
* lib/autotest/general.m4 (AT_INIT) <driver loop>: Avoid syntax
253
errors on shells that don't recognize <>.
254
* tests/autotest.at (AT_SKIP_PARALLEL_TESTS): Also skip parallel
255
tests for this reason. Skip based on the shell to be tested,
256
not the shell driving the testsuite.
257
(parallel syntax error): Rearrange similar to previous patch.
258
(parallel test execution): Defer skip until after serial tests.
260
2009-07-02 Eric Blake <ebb9@byu.net>
262
Skip test on shells that can't catch syntax failure.
263
* tests/autotest.at (Syntax error): Skip test if shell aborts on
264
syntax error (AIX ksh88) or doesn't detect it (zsh).
265
* doc/autoconf.texi (Limitations of Builtins) <.>: Mention these
267
Reported by Ralf Wildenhues.
269
2009-06-30 Jan Madzik <jmadzik@gmail.com> (tiny change)
270
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
272
Avoid AIX 6.1 ksh88 ECHO_C command substitution bug.
273
* lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Ensure more than
274
one character is output with `\c'; reset echo output state
275
if buggy ksh was detected, and set ECHO_T instead of ECHO_C.
276
* doc/autoconf.texi (Limitations of Builtins): Document it.
277
* tests/m4sh.at (ECHO_C): New test.
280
2009-06-27 William Pursell <bill.pursell@gmail.com> (tiny change)
282
Fix grammaro in documenation.
283
* doc/autoconf.texi (Guidelines): Fix grammaro.
285
2009-06-17 Eric Blake <ebb9@byu.net>
287
Fix AC_CHECK_HEADER infloop for gcc.
288
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
289
(_AC_CHECK_HEADER_OLD): Give up on AU_DEFUN, and manually warn
290
about obsoletion, to avoid infinite loop in gcc.
291
Reported by Ralf Wildenhues.
293
2009-06-15 Eric Blake <ebb9@byu.net>
295
Add m4_copy_force, m4_rename_force.
296
* lib/m4sugar/m4sugar.m4 (m4_copy_force, m4_rename_force): New
298
* tests/m4sugar.at (m4@&t@_defn): Test them.
299
* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
302
Suggested by Ralf Wildenhues.
304
Reinstate _AC_CHECK_HEADER_OLD for gcc.
305
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_NEW)
306
(_AC_CHECK_HEADER_OLD): Provide autoupdate versions, since gcc and
307
others used these undocumented macros.
308
Reported by Ralf Wildenhues.
310
2009-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
312
Fix concurrent autom4te.cache directory creation race.
313
* bin/autom4te.in: Do not error out if another `autom4te'
314
instance created the cache directory before we could.
316
2009-06-11 Steven G. Johnson <stevenj@alum.mit.edu>
317
and Eric Blake <ebb9@byu.net>
319
Create a file in test program when detecting cross-compilation.
320
* lib/autoconf/lang.m4 (_AC_LANG_IO_PROGRAM): New macro, returns
321
program that creates a file.
322
(_AC_COMPILER_EXEEXT,_AC_COMPILER_EXEEXT_WORKS): Call new macro
323
and document why it's needed to robustly detect cross-compiling.
324
(AC_LANG_DEFINE): Copy implementation across similar languages.
325
* lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM(C)): Implement new macro.
326
* lib/autoconf/fortran.m4 (_AC_LANG_IO_PROGRAM(Fortran 77)):
328
* lib/autoconf/erlang.m4 (_AC_LANG_IO_PROGRAM(Erlang)): Likewise.
330
2009-06-11 Eric Blake <ebb9@byu.net>
332
Simplify AC_LANG(Fortran).
333
* lib/autoconf/fortran.m4 (AC_LANG(Fortran)): Borrow from Fortran
334
77, which requires reordering portions of the file.
335
(AC_LANG_PROGRAM(Fortran), AC_LANG_CALL(Fortran)): Now defined
338
Clarify m4_copy semantics.
339
* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Update
341
* tests/m4sugar.at (m4@&t@_defn): Enhance test.
343
2009-06-06 Eric Blake <ebb9@byu.net>
345
Improve documentation on trap pitfalls.
346
* doc/autoconf.texi (Limitations of Builtins) <trap>: Mention new
347
Posix 2008 requirement on trap, and dash bug in implementing it.
348
Mention various shell bugs with traps defined inside subshells.
349
Mention older bash limitation with single-command exit trap.
350
<set>: Mention another 'set -e' limitation.
351
Reported by Jens Schmidt.
353
2009-06-06 Jim Meyering <meyering@redhat.com>
355
Improve testsuite --help
356
* lib/autotest/general.m4: Correct the example in ./testsuite --help.
359
2009-06-06 Eric Blake <ebb9@byu.net>
361
Document fallback behavior of AC_PROG_LEX.
362
* doc/autoconf.texi (Particular Programs) <AC_PROG_LEX>: Mention
363
why fallback is :, and that a --version check must be used to
364
determine whether flex was found.
365
Reported by Patrick Welche.
367
2009-05-28 Jim Meyering <meyering@redhat.com>
369
Fix syntax errors in autoconf.texi.
370
* doc/autoconf.texi (Erlang Libraries): @-escape curly braces
373
2009-05-28 Romain Lenglet <romain.lenglet@laposte.net>
375
New AC_ERLANG_SUBST_ERTS_VER macro.
376
* lib/autoconf/erlang.m4: Add macro AC_ERLANG_SUBST_ERTS_VER.
377
* doc/autoconf.texi (Erlang Libraries): Document
378
AC_ERLANG_SUBST_ERTS_VER.
380
* AUTHORS: Update Romain Lenglet's email address.
382
Suggested by Ruslan Babayev.
384
2009-05-26 Eric Blake <ebb9@byu.net>
386
Sanitize more problematic environment variables.
387
* doc/autoconf.texi (Environment Variable Index): Add more
388
entries, particularly for precious variables and known culprit
389
variables. Needed to avoid overfull vbox.
390
(Special Shell Variables) <CLICOLOR_FORCE, GREP_OPTIONS>: Add
391
variables known to cause misbehavior.
392
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Unset variables
393
known to cause problems.
395
Based on reports from Ilya Bobir and Joey Mingrone.
397
2009-05-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
399
Document VPATH = $(variable) issue in VPATH chapter.
400
* doc/autoconf.texi (Variables listed in VPATH): New node.
401
(Top, VPATH and Make): Adjust menus.
402
(Build Directories): Refer to it.
403
Prompted by report from Bruno Haible.
405
2009-05-19 Eric Blake <ebb9@byu.net>
407
Update uses of all-permissive license.
408
* ChangeLog: Relicense under GPL.
409
* ChangeLog.0: Likewise.
410
* ChangeLog.1: Likewise.
411
* ChangeLog.2: Likewise.
413
* m4/m4.m4: Use latest wording of FSF all-permissive license.
414
* m4/make-case.m4: Likewise.
415
* doc/install.texi: Likewise.
416
* tests/statesave.m4: Relicense to match rest of testsuite; this
417
file does not need all-permissive license since it is not designed
418
for reuse by other packages.
419
* BUGS: Relicense under all-permissive license.
423
* README-alpha: Likewise.
424
* README-hacking: Likewise.
427
Update some upstream files.
428
* build-aux/config.guess: Resynchronize from upstream.
429
* build-aux/gnupload: Likewise.
430
* build-aux/vc-list-files: Likewise.
431
* build-aux/texinfo.tex: Likewise.
432
* doc/gendocs_template: Likewise.
434
Don't mention undocumented interface in NEWS.
435
* NEWS: Correct earlier entry about AS_FOR.
437
2009-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
439
New manual section `Parallel Make'.
440
* doc/autoconf.texi (Parallel Make): New node, document NetBSD
442
(Top, Portable Make): Adjust menus.
444
2009-05-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
446
testsuite: skip `Multiple languages' test without C++ compiler.
447
* tests/compile.at (Multiple languages): Skip test on systems
448
without a C++ compiler.
449
Report by Jim Meyering.
451
2009-05-13 Eric Blake <ebb9@byu.net>
453
Document zsh bug with empty commands.
454
* doc/autoconf.texi (Special Shell Variables) <?>: Add mention of
455
more problems with $?.
457
2009-05-11 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
459
Also try X11R7 when looking for X11 files, for NetBSD.
460
* lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): Also try directories
461
with X11R7 in the name.
463
2009-05-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
465
Limit stderr logging for C compiler version.
466
* lib/autoconf/general.m4 (_AC_RUN_LOG_LIMIT, _AC_DO_LIMIT): New
467
internal macros, equivalent to _AC_RUN_LOG and _AC_DO, but with
468
an optional additional argument to limit the number of lines of
469
stderr output logged, defaulting to 10.
470
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CXX, AC_PROG_OBJC): Use
471
_AC_DO_LIMIT for capturing compiler version output. Also test
472
-qversion, for the IBM xlc compiler.
473
* lib/autoconf/fortran.m4 (_AC_PROG_FC): Likewise.
475
Report by Christian Rössel and John R. Cary against Libtool.
477
2009-04-24 Eric Blake <ebb9@byu.net>
479
Fix quoting of m4 macros in AT_CHECK.
480
* lib/autotest/general.m4 (AT_CHECK): Expand prior to adding
481
escapes, to avoid shell syntax errors caused by late macro
483
* NEWS: Document this change.
484
* tests/autotest.at (Metacharacters in command from M4 expansion):
487
manual: Use consistent spelling of here-document.
488
* doc/autoconf.texi (Defining Symbols, Programming in M4sh)
489
(Common Shell Constructs, Macro Names, Writing Testsuites): Fix
491
Reported by Ralf Wildenhues.
493
Make AT_CHECK_UNQUOTED more like AC_DEFINE_UNQUOTED.
494
* lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Keep older,
495
undocumented semantics, where unbalanced " cannot be used in the
496
stdout/stderr argument.
497
(AT_CHECK_UNQUOTED): Treat " in stdout/stderr as a literal, since
498
the text is used in double-quoted context.
499
* tests/autotest.at (unquoted output): New test.
500
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Mention which
501
shell expansions are handled.
503
Rename AT_CHECK_NOESCAPE to AT_CHECK_UNQUOTED.
504
* lib/autotest/general.m4 (AT_CHECK_NOESCAPE): Deprecate, in favor
506
(AT_CHECK_UNQUOTED): ...for consistency with AC_DEFINE_UNQUOTED.
507
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
510
* tests/autotest.at (Binary output, Cleanup): Adjust tests.
511
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
513
Reported by Ralf Wildenhues.
515
2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
517
New test to ensure autom4te cache file locking works.
518
* tests/tools.at (autom4te cache locking): New test.
519
Report by Eric Blake.
521
2009-04-22 Paolo Bonzini <bonzini@gnu.org>
523
manual: another grammar improvement.
524
* doc/autoconf.texi (Fortran Compiler): Avoid dependency on
525
pronunciation of `FCFLAGS_f90'.
527
2009-04-23 Eric Blake <ebb9@byu.net>
529
Change FOO placeholder to use @var{text} instead.
530
* doc/autoconf.texi (Configuration Actions): Rename AC_CONFIG_FOOS
531
to AC_CONFIG_@var{ITEMS}.
532
* doc/autoconf.texi (config.status Invocation): Likewise.
533
(AC_FOO_IFELSE vs AC_TRY_FOO): Rename node...
534
(AC_ACT_IFELSE vs AC_TRY_ACT): ...to this.
536
2009-04-22 Eric Blake <ebb9@byu.net>
539
* lib/m4sugar/m4sugar.m4 (m4_argn): New macro.
541
* doc/autoconf.texi (Looping constructs) <m4_argn>: Likewise.
542
<m4_car, m4_cdr>: Improve documentation.
543
* tests/m4sugar.at (m4 lists): New test.
545
2009-04-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
547
Improve description of AC_PROG_CC_C89 and AC_PROG_CC_C99.
548
* doc/autoconf.texi (C Compiler): Document that AC_PROG_CC_C89
549
and AC_PROG_CC_C99 prefer extended over strict conformance modes.
550
Report by Vincent Lefèvre.
552
2009-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
554
Revert bogus change in last commit.
555
* doc/autoconf.texi (Initialization Macros): Revert change.
556
Spotted by Eric Blake.
558
manual: fix trivial grammar errors.
559
* doc/autoconf.texi (Fortran Compiler, Initialization Macros)
560
(Limitations of Usual Tools, Pretty Help Strings)
561
(config.status Invocation): Fix `a' vs. `an' errors.
562
Report by Eric Blake.
564
2009-04-21 Eric Blake <ebb9@byu.net>
566
Shuffle maintainer-specific rules.
567
* Makefile.am (maintainer-check-tests): Delete.
568
(autom4te-update): Move...
569
* cfg.mk (autom4te-update): ...here.
570
(fetch): Depend on autom4te-update. Split...
571
(gnulib-update): ...into new rule. Import move-if-change from
573
* maint.mk (maintainer-distcheck): Absorb former maintainer-check
575
* build-aux/move-if-change: New file, undistributed.
576
* .gitattributes: Handle new upstream file.
577
* .gitignore: Ignore maintainer cruft.
578
* HACKING: Update maintainer instructions.
579
* build-aux/config.guess: Update from upstream.
580
* build-aux/config.sub: Likewise.
581
* build-aux/gendocs.sh: Likewise.
582
* build-aux/texinfo.tex: Likewise.
583
* doc/gendocs_template: Likewise.
584
* doc/standards.texi: Likewise.
586
2009-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
588
Sync autom4te perl modules from Automake.
589
* lib/Autom4te/Channels.pm: Sync from Automake.
590
* lib/Autom4te/FileUtils.pm: Likewise.
591
* lib/Autom4te/XFile.pm: Likewise.
593
Adjust channel definitions for new Automake `ordered' flag.
594
* lib/Autom4te/ChannelDefs.pm (Autom4te::ChannelDefs): Set
595
`ordered' flag to zero for channels `fatal', `automake', and
596
`verb'. This has currently no effect on actual semantics but
597
avoids a consistency check needed for Automake's usage of the
600
manual: clarify m4_if synopsis.
601
* doc/autoconf.texi (Redefined M4 Macros): Rewrite synopsis of
602
m4_if in the presence of more than three arguments.
604
Improve and clarify `config.status' usage documentation.
605
* doc/autoconf.texi (config.status Invocation): Fix markup in
606
synopsis. Use `tag' instead of `file' notation for the
607
non-option arguments, to be consistent with the documentation
608
of the AC_CONFIG_* macros.
609
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise,
610
use `tag' notation for non-option arguments.
611
Report by John Calcote.
613
2009-04-15 Eric Blake <ebb9@byu.net>
615
Test that autotest handles binary output.
616
* tests/autotest.at (Binary output): New test.
617
Suggested by Ralf Wildenhues.
619
Add stdout-nolog and ignore-nolog to AT_CHECK.
620
* lib/autotest/general.m4 (AT_DIFF_STDERR(stderr-nolog))
621
(AT_DIFF_STDERR(ignore-nolog), AT_DIFF_STDOUT(stdout-nolog))
622
(AT_DIFF_STDOUT(ignore-nolog)): New macros.
623
* tests/autotest.at (Logging): New test.
624
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document the
627
Reported by Ralf Wildenhues.
629
Teach AT_CHECK about hard failures.
630
* lib/autotest/general.m4 (AT_INIT) <at_fn_check_skip>
631
<at_fn_check_status, at_fn_group_postprocess>: Handle hard
633
* doc/autoconf.texi (Writing Testsuites) <AT_CHECK>: Document
634
AT_CHECK_NOESCAPE and exit status 99.
636
* tests/autotest.at (Hard fail, Cleanup): New tests.
638
2009-04-14 Eric Blake <ebb9@byu.net>
640
Fix yesterday's regression in AS_IF.
641
* lib/m4sugar/m4sh.m4 (_AS_IF_ELSE): Don't corrupt $? in else
642
branch; it is up to the user to avoid syntax errors.
643
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Adjust test.
645
2009-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
647
Add traces for AM_SILENT_RULES.
648
* lib/autom4te.in (Automake-preselections): Trace
651
2009-04-13 Eric Blake <ebb9@byu.net>
653
Improve documentation related to expanded-before-required.
654
* doc/autoconf.texi (Expanded Before Required): Add a case study.
655
(Running the Compiler) <AC_COMPILE_IFELSE>: Remind users that
656
running a compile test will AC_REQUIRE the compiler check.
657
(Macro Definitions) <AC_DEFUN>: Contrast AC_DEFUN and m4_define.
658
(C Compiler) <AC_PROG_CC>: Mention the fact that only first
659
invocation of this macro checks for $EXEEXT, and that many other
660
macros use it via AC_REQUIRE.
661
Reported by Andreas Schwab.
663
Mention latest rules about make and set -e.
664
* doc/autoconf.texi (Failure in Make Rules): Posix is now clear
665
that make must use set -e.
666
(Limitations of Builtins) <set>: Clarify more about set -e
669
Improve documentation about if exit status.
670
* doc/autoconf.texi (Limitations of Builtins) <if>: Mention that
671
exit status bugs don't affect modern targets.
672
Reported by Andreas Schwab.
674
Add cross-reference to new macros.
675
* doc/autoconf.texi (Text processing Macros) <m4_normalize>
676
<m4_strip>: Reference the new m4_ifblank.
677
Suggested by Mike Frysinger.
679
Make AS_IF, AS_CASE, and AS_FOR more robust to blank arguments.
680
* lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT, AS_FOR, _AS_IF)
681
(_AS_IF_ELSE, AS_IF): Avoid syntax error on blank argument,
682
including a macro with an empty expansion.
683
* NEWS: Mention this.
684
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE, AS@&t@_FOR): Update
686
Reported by Mike Frysinger.
688
Add m4_blank and friends.
689
* lib/m4sugar/m4sugar.m4 (m4_blank, m4_nblank, m4_default_nblank)
690
(m4_default_nblank_quoted): New macros.
691
* NEWS: Document them.
692
* doc/autoconf.texi (Conditional constructs): Likewise.
693
* tests/m4sugar.at (m4sugar shorthand conditionals): New test.
694
Suggested by Mike Frysinger.
696
2009-04-13 Eric Blake <ebb9@byu.net>
698
Finish upgrade to GFDL 1.3.
699
* doc/autoconf.texi (copying): Use correct license; comment change
700
was missed on 2008-11-04.
702
2009-04-10 Eric Blake <ebb9@byu.net>
704
Test parallel handling of syntax error.
705
* tests/autotest.at (parallel syntax error): New test.
706
Suggested by Ralf Wildenhues.
708
2009-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
710
Document awk and config.status line length limitations.
711
* doc/autoconf.texi (Configuration Actions): The input to
712
config.status should have reasonable line length.
713
(Limitations of Usual Tools): Document IRIX, HP-UX awk input
715
Report by Bruno Haible.
717
Skip `Multiple languages' test if CC is a C++ compiler.
718
* tests/compile.at (Multiple languages): Before starting the
719
test proper, build and run a configure script that tests the
720
C compiler only, and skips the test if this is found to be a
722
Report by Eric Blake.
724
Note that AC_DEFUN is needed for aclocal.
725
* doc/autoconf.texi (Coding Style): Public third-party macros
726
should be AC_DEFUN'ed.
727
Report by John Calcote.
729
2009-04-10 Eric Blake <ebb9@byu.net>
731
Add undocumented _AS_CLEAN_DIR.
732
* lib/m4sugar/m4sh.m4 (_AS_CLEAN_DIR): New macro; fixes m4 quoting
734
* lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Use new
736
* tests/m4sh.at (_AS@&t@_CLEAN_DIR): New test.
737
Reported by Ralf Wildenhues.
739
2009-04-09 Eric Blake <ebb9@byu.net>
741
Avoid problems caused by deleting in-use directory.
742
* lib/autotest/general.m4 (AT_INIT) <at_fn_group_prepare>: Only
743
remove the contents of $at_group_dir, not the directory itself.
745
Fix regression in empty test.
746
* lib/autotest/general.m4 (AT_SETUP): Prep AT_ingroup for fallback
747
use in empty test. Fixes regression introduced 2009-04-06.
748
(_AT_CHECK): Undo fallback when a test is not empty.
749
(AT_CLEANUP): Expand AT_ingroup before deleting.
751
2009-04-09 Paolo Bonzini <bonzini@gnu.org>
753
Make a less conservative cross-compilation guess for AC_FUNC_UTIME_NULL.
754
* lib/autoconf/functions.m4 (AC_FUNC_UTIME_NULL): Assume
755
not crosscompiling to an obsolete system.
757
2009-04-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
759
Automake relies on the undocumented `_AC_COMPILER_EXEEXT' macro.
760
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): Document that
761
Automake relies on this macro.
763
2009-04-06 Eric Blake <ebb9@byu.net>
765
Reduce testsuite size.
766
* tests/statesave.m4: New file.
767
* tests/Makefile.am (EXTRA_DIST): Distribute it.
768
* tests/local.at (AT_CONFIGURE_AC): Reuse file, rather than
769
repeating inline definition of AC_STATE_SAVE.
770
(AT_CHECK_ENV): Factor code...
771
(_AT_CHECK_ENV): ...into shell function.
772
* tests/m4sh.at (AT_DATA_LINENO): Avoid churn in testsuite.
774
Handle shell comments in AT_CHECK.
775
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Handle # in
776
test correctly. Latent bug in handling shell comment was first
777
fixed 2008-11-20, but regressed two patches later.
778
* tests/autotest.at (Shell comment in command): New test.
779
* NEWS: Document the fix.
781
Hard fail any test with syntax errors.
782
* lib/autotest/general.m4 (AT_INIT) <at_fn_group_postprocess>:
783
Guarantee test failure on syntax error, rather than inheriting
784
status from previous test.
785
* tests/autotest.at (Syntax error): New test.
787
2009-03-31 Eric Blake <ebb9@byu.net>
789
Beta Release Version 2.63b.
790
* NEWS: Mention the release.
791
* README: Clarify that this is a beta release.
792
* build-aux/texinfo.tex: Synchronize from upstream.
793
* .x-sc_trailing_blank: Exempt more upstream files.
795
2009-03-30 Eric Blake <ebb9@byu.net>
797
Fix testsuite failures under zsh.
798
* tests/local.at (AT_CHECK_ENV): Exempt $argv and $ARGC, which are
799
set by zsh -c 'emulate sh'.
800
Reported by Ralf Wildenhues.
802
For now, skip parallel tests under less-tested shells.
803
* tests/autotest.at (AT_CHECK_AT): Add pre-test argument.
804
(Tested programs, Startup error messages, AT_CHECK_AT_TITLE)
805
(Fallacy, Skip, errexit, Long test source lines)
806
(Debugging a successful test, Debugging script and environment)
807
(Debugging a failed test, Using atlocal)
808
(Choosing where testsuite is run): Adjust callers.
809
(AT_SKIP_PARALLEL_TESTS): New macro, to skip parallel tests except
810
under zsh, bash, or when TEST_PARALLEL_AUTOTEST is defined. Makes
811
it easier to avoid testsuite hangs for users with dash or other
813
(parallel test execution, parallel truth, parallel fallacy)
814
(parallel skip, parallel errexit)
815
(parallel autotest and signal handling): Use it.
816
* BUGS: Mention this.
818
2009-03-24 Andris Pavenis <andris.pavenis@iki.fi> (tiny change)
820
Fix awk substitution of carriage returns on DJGPP.
821
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fix typo in
822
generation of ac_cs_awk_cr.
825
2009-03-24 Aaron W. LaFramboise <aaronenvelope277@aaronwl.com> (tiny change)
827
Work around cygwin bash igncr mode.
828
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Fall back to
829
bash carriage returns if ac_cr lost \r from ``.
831
Suggested by Eric Blake.
833
2009-03-24 Eric Blake <ebb9@byu.net>
835
Fix underquoted example in manual.
836
* doc/autoconf.texi (Common Shell Constructs) <AS_TR_CPP>:
838
* THANKS: Update spelling.
839
Reported by Matěj Týč.
841
2009-03-18 Eric Blake <ebb9@byu.net>
843
Manual: mention more expr pitfalls.
844
* doc/autoconf.texi (Limitations of Usual Tools) <expr (:)>:
845
Mention HP-UX limitation, and $ ambiguity.
847
Reported by Jens Schmidt, in http://bugs.debian.org/466990.
849
2009-03-17 Jim Meyering <meyering@redhat.com>
852
* lib/m4sugar/m4sh.m4: s/are/is/ => "there is no indirection"
854
2009-03-17 Eric Blake <ebb9@byu.net>
856
Use test consistently in examples.
857
* doc/autoconf.texi (Subdirectories, Caching Results)
858
(Common Shell Constructs, Prerequisite Macros, Coding Style)
859
(Changed Results, Particular Programs, Defining Symbols):
860
Protect against arbitrary user strings.
861
(Multiple Cases): Mention why $fstype does not need protection.
862
Reported by Reuben Thomas.
864
Improve confusing section names.
865
* doc/autoconf.texi (Specifying Names): Rename node...
866
(Specifying Target Triplets): ...to this.
867
(Generic Programs): Adjust references.
868
* doc/install.texi (System Type): Touch up formatting.
870
Reported by Tim Freeman, in http://bugs.debian.org/312873.
872
Remove historical inaccuracy.
873
* doc/autoconf.texi (Portable Shell): Don't perpetuate myth about
874
#!/bin/sh needing a space.
875
Reported by Reuben Thomas.
877
Recommend AS_HELP_STRING more prominently.
878
* doc/autoconf.texi (External Software): Reduce mention of
879
hand-written help strings.
880
Reported by Reuben Thomas.
882
2009-03-16 Eric Blake <ebb9@byu.net>
885
* doc/autoconf.texi (Balancing Parentheses): Fix usage of
887
Reported by Ralf Wildenhues, fix suggested by Karl Berry.
889
2009-03-14 Eric Blake <ebb9@byu.net>
891
Resync upstream files.
892
* GNUmakefile: Run 'make fetch'.
893
* build-aux/announce-gen: Likewise.
894
* build-aux/config.guess: Likewise.
895
* build-aux/config.sub: Likewise.
896
* build-aux/gnupload: Likewise.
897
* build-aux/texinfo.tex: Likewise.
898
* build-aux/vc-list-files: Likewise.
899
* doc/gnu-oids.texi: Likewise.
900
* doc/standards.texi: Likewise.
902
2009-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
904
New test for SunStudio `restrict' handling.
905
* tests/c.at (AC_C_RESTRICT and C++): New test.
906
Prompted by bug report from Rolf Vandevaart.
908
2009-03-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
910
Manual: testsuite depends on package.m4.
911
* doc/autoconf.texi (Making testsuite Scripts): In the example
912
makefile snippet, $(TESTSUITE) depends on $(srcdir)/package.m4.
914
2009-03-02 Allan Caffee <allan.caffee@gmail.com> (tiny change)
916
Fix a typo in comment for AS_LITERAL_IF.
917
* lib/m4sugar/m4sh.m4 (AS_LITERAL_IF): Update a comment that fell
918
out of date when this function was moved/renamed in 59ecd766.
921
2009-03-02 Eric Blake <ebb9@byu.net>
923
Improve wording for AS_ESCAPE.
924
* doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>: Touch
926
* lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Fix comment typos.
927
Reported by Ralf Wildenhues.
929
2009-02-24 Eric Blake <ebb9@byu.net>
931
Use pkgdatadir consistently.
932
* bin/Makefile.am (edit): Substitute pkgdatadir, not datadir.
933
* lib/Makefile.am (edit): Likewise.
934
* lib/autom4te.in (Autoconf-without-aclocal-m4, Autotest, M4sh)
935
(M4sugar): Use @pkgdatadir@, not @datadir@.
936
* bin/autoheader.in ($datadir): Likewise.
937
* bin/autom4te.in ($datadir): Likewise.
938
* bin/autoreconf.in ($datadir): Likewise.
939
* bin/autoscan.in ($datadir): Likewise.
940
* bin/autoupdate.in ($datadir): Likewise.
941
* bin/ifnames.in ($datadir): Likewise.
942
* doc/autoconf.texi (Installation Directory Variables): Update
943
example to be consistent; focus on $(bindir) as an autoconf
944
variable, and mention that $(pkgdatadir) comes from automake.
945
Reported by Reuben Thomas.
947
2009-02-19 Eric Blake <ebb9@byu.net>
949
Use m4_translit more efficiently in AS_ESCAPE.
950
* lib/m4sugar/m4sh.m4 (_AS_ESCAPE): Alter API to take first byte
951
of set separately from rest.
952
(AS_ESCAPE, _AS_QUOTE_MODERN, AS_TR_SH, AS_VAR_GET): Adjust
954
* lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid duplicate
955
characters in translit request.
956
* doc/autoconf.texi (Common Shell Constructs) <AS_ESCAPE>:
960
Mention recently documented macros.
961
* NEWS: Update list of new documentation.
963
2009-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
965
Add index for config.site.
966
* doc/autoconf.texi (Site Defaults): Add index for config.site.
968
Report by Stephen P. Schaefer.
970
2009-02-12 Eric Blake <ebb9@byu.net>
972
Fix m4_set speed regression introduced 2008-12-18.
973
* lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Alter API to avoid
974
creating larger argument on each iteration.
975
(m4_stack_foreach_sep, m4_stack_foreach_sep_lifo)
976
(_m4_set_contents_2): Adjust all four-argument callers.
978
2009-02-05 Eric Blake <ebb9@byu.net>
980
Mention new AC_DEFUN_ONCE clients.
981
* NEWS: Mention recent semantic changes.
982
Reported by Ralf Wildenhues.
984
2009-02-03 Eric Blake <ebb9@byu.net>
986
Use AC_DEFUN_ONCE for some one-shot AC_PROG macros.
987
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Switch to
988
AC_DEFUN_ONCE, since this is a one-shot macro.
989
(AC_PROG_INSTALL): Likewise.
991
2009-02-03 Eric Blake <ebb9@byu.net>
993
Mention that packagers should not pre-set CFLAGS.
994
* doc/autoconf.texi (Preset Output Variables) <CFLAGS>: Copy
995
advice given by automake on handling variables reserved by GNU
997
Reported by Karl Berry.
999
Document lib64 in config.site.
1000
* doc/autoconf.texi (Site Defaults): Fix typo in FHS sample file.
1001
Mention use of lib64.
1003
Reported by Tom Browder, with help from Peter Breitenlohner.
1005
2009-01-28 Eric Blake <ebb9@byu.net>
1007
Use AC_DEFUN_ONCE for uncontroversial one-shot macros.
1008
* lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Switch to
1009
AC_DEFUN_ONCE, since this is a one-shot macro.
1010
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
1011
* lib/autoconf/general.m4 (AC_CANONICAL_BUILD)
1012
(AC_CANONICAL_HOST, AC_CANONICAL_TARGET): Likewise.
1014
2009-01-28 Eric Blake <ebb9@byu.net>
1016
Reduce blank lines in AC_DEFUN_ONCE macros.
1017
* lib/m4sugar/m4sugar.m4 (m4_defun_once): Avoid redundant blank
1018
line when a defun_once macro is required.
1019
(_m4_defun_once): New helper macro, for less memory use.
1020
* tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
1022
Silence another false positive expand-before-require.
1023
* lib/m4sugar/m4sugar.m4 (_m4_defun_pro_outer)
1024
(_m4_defun_epi_outer, _m4_require_call, m4_provide): Track name
1025
that caused a diversion change, not just diversion number.
1026
(m4_require): Factor...
1027
(_m4_require_check): ...into new macro, which also checks whether
1028
diversion that performed the expansion has been collected.
1029
* tests/m4sugar.at (m4@&t@_require: nested): Enhance test.
1030
Reported by Ralf Wildenhues.
1032
2009-01-28 Eric Blake <ebb9@byu.net>
1034
Fix AC_C_RESTRICT for Sun Studio 12 C++.
1035
* lib/autoconf/c.m4 (AC_C_RESTRICT): Newer Sun Studio C provides
1036
__restrict__ rather than _Restrict, which still trips up Sun
1039
Reported by Rolf Vandevaart.
1041
2009-01-28 Eric Blake <ebb9@byu.net>
1043
Fix years in copyright notices.
1044
* lib/m4sugar/m4sugar.m4 (m4_copyright_condense): New macro,
1045
undocumented for now.
1046
* lib/m4sugar/Makefile.am (version.m4): Add m4_PACKAGE_YEAR,
1048
(RELEASE_YEAR): New macro, copied from bin/Makefile.am.
1049
* lib/autoconf/general.m4 (_AC_COPYRIGHT_YEARS): New macro.
1050
(AC_COPYRIGHT): Add undocumented third parameter.
1051
(_AC_INIT_COPYRIGHT): Avoid need to bump copyright years.
1052
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise.
1053
* lib/autotest/general.m4 (AT_INIT): Likewise.
1054
* lib/autoconf/autotest.m4 (AC_CONFIG_TESTDIR): Likewise.
1055
(AT_COPYRIGHT): Add undocumented third parameter.
1056
* tests/local.at (AT_COPYRIGHT): Don't add an extra copyright
1057
parameter; the generic copyright given by autotest is sufficient
1058
since we are the package that owns autotest.
1060
2009-01-27 Eric Blake <ebb9@byu.net>
1062
Use URLs in --help output, part 3: testsuite.
1063
* doc/autoconf.texi (Writing Testsuites): Mention autotest
1065
(Writing Testsuites) <AT_INIT>: Mention mandatory macros.
1066
(Making testsuite Scripts): Document AT_PACKAGE_URL.
1067
* tests/Makefile.am (package.m4): Follow our own advice.
1068
* lib/autotest/general.m4 (AT_INIT): Give the user a hint about
1069
package.m4. Enhance --help output.
1070
(_AT_COPYRIGHT_YEARS): New macro, to make copyright bump easier.
1072
Use URLs in --help output, part 2: configure.
1073
* lib/autoconf/general.m4 (_AC_INIT_COPYRIGHT): Bump copyright
1075
(_AC_INIT_PACKAGE): Support optional URL parameter, mapped to
1077
(_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): Substitute it.
1078
(_AC_INIT_HELP): Use it in './configure --help' output.
1079
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Likewise, for
1080
'./config.status --help'. Bump copyright date.
1081
* doc/autoconf.texi (Initializing configure) <AC_INIT>: Document
1084
* tests/tools.at (autoheader): Adjust test.
1085
* tests/torture.at (@%:@define header templates)
1086
(Torturing config.status): Likewise.
1088
Use URLs in --help output, part 1: autoconf executables.
1089
* bin/autoconf.as (usage): Make output consistent with recent
1090
change in gnulib version-etc module.
1091
* bin/autoheader.in ($help): Likewise.
1092
* bin/autom4te.in ($help): Likewise.
1093
* bin/autoreconf.in ($help): Likewise.
1094
* bin/autoscan.in ($help): Likewise.
1095
* bin/autoupdate.in ($help): Likewise.
1096
* bin/ifnames.in ($help): Likewise.
1098
2009-01-27 Peter Breitenlohner <peb@mppmu.mpg.de> (tiny change)
1100
Quote traced macros passed from autom4te to M4.
1101
* bin/autom4te (handle_m4): Apply shell_quote to macro names.
1102
* tests/tools.at (autom4te --trace and unusual macro names): New
1106
2009-01-26 Eric Blake <ebb9@byu.net>
1108
Improve AC_DEFUN_ONCE semantics.
1109
* lib/m4sugar/m4sugar.m4 (m4_defun_once): Rewrite to be no-op,
1110
rather than warning, on second use, and make sure first use never
1111
occurs out of order.
1112
* tests/m4sugar.at (m4@&t@_require: one-shot initialization):
1114
* tests/base.at (AC_REQUIRE & AC_DEFUN_ONCE: [Require, expand],
1115
(AC_REQUIRE & AC_DEFUN_ONCE: [Expand, require]): Adjust tests.
1116
* NEWS: Document this.
1117
* doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Mention
1119
(Prerequisite Macros) <AC_REQUIRE>: Likewise.
1120
(Expanded Before Required): Likewise.
1121
(One-Shot Macros) <AC_DEFUN_ONCE>: Document new semantics.
1122
Reported by Bruno Haible, with suggestion by Paolo Bonzini.
1124
2009-01-24 Eric Blake <ebb9@byu.net>
1126
Fix typos in recent patches.
1127
* lib/m4sugar/m4sugar.m4: Improve m4_defun comments.
1128
* doc/autoconf.texi (Expanded Before Required): Fix typos.
1129
Reported by Ralf Wildenhues.
1131
Revert change to AC_DIR_HEADER.
1132
* lib/autoconf/headers.m4 (AC_DIR_HEADER): Explicitly expanding
1133
AC_HEADER_DIRENT no longer triggers a warning, and helps the user
1134
who decides they don't need the obsolete AC_FUNC_CLOSEDIR_VOID.
1135
Reported by Paolo Bonzini.
1137
2009-01-22 Eric Blake <ebb9@byu.net>
1139
Silence a false positive expand-before-require case.
1140
* lib/m4sugar/m4sugar.m4 (m4_provide): Track the diversion in
1141
which a macro was provided.
1142
(m4_require): Compare diversion numbers, rather than m4_require
1143
nesting, when determining direct requires.
1144
* tests/m4sugar.at (m4@&t@_require: nested): Test it.
1145
Reported by Ralf Wildenhues, affecting Libtool.
1147
2009-01-21 Eric Blake <ebb9@byu.net>
1149
Fix out-of-order expansion with expand-before-require.
1150
* lib/m4sugar/m4sugar.m4 (m4_require): Redundantly expand a
1151
required macro when issuing expand-before-require warning.
1152
* doc/autoconf.texi (Prerequisite Macros): Adjust documentation.
1153
(Expanded Before Required): New node.
1154
* tests/m4sugar.at (m4@&t@_require: nested): Adjust test.
1155
* NEWS: Mention this fix.
1156
Suggested by Bruno Haible.
1158
Warn if macro is provided before indirectly required.
1159
* lib/m4sugar/m4sugar.m4 (m4_provide): Track the set of all macros
1160
provided since last outermost defun.
1161
(_m4_defun_pro_outer): Empty the set.
1162
(_m4_require_call): Distinguish between direct and indirect
1163
requires, and remove required macros from the set.
1164
(m4_require): Check the set, in order to warn.
1165
* tests/m4sugar.at (m4@&t@_require: nested): Remove xfail, and add
1166
test case for direct requires.
1168
2009-01-20 Eric Blake <ebb9@byu.net>
1170
Clean up some bugs caught by preliminary dependency validation.
1171
* lib/autoconf/headers.m4 (AC_DIR_HEADER): Don't invoke
1172
AC_HEADER_DIRENT, since AC_FUNC_CLOSEDIR_VOID requires it.
1173
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
1174
(_AS_SHELL_SANITIZE): Fix quoting bugs.
1176
2009-01-19 Eric Blake <ebb9@byu.net>
1178
Improve AC_REQUIRE documentation.
1179
* doc/autoconf.texi (Macro Definitions) <AC_DEFUN>: Add @defmac,
1180
and mention interaction with AC_REQUIRE.
1181
(Prerequisite Macros) <AC_REQUIRE>: Give more detail on user
1182
ordering constraint bug, and how to fix it.
1183
* tests/m4sugar.at (m4@&t@_require: nested): New test.
1185
Speed up m4_require.
1186
* lib/m4sugar/m4sugar.m4 (_m4_divert_dump): Change semantics to
1187
always be defined, as either empty or a number.
1188
(_m4_defun_pro_outer, _m4_defun_epi_outer): Treat _m4_divert_dump
1189
as a stack, rather than a one-shot macro.
1190
(_m4_require_call): Expect third argument to be pre-expanded.
1191
(m4_divert_require, m4_require): Adjust clients accordingly.
1192
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Likewise.
1194
2009-01-17 Eric Blake <ebb9@byu.net>
1196
Avoid underfull hbox.
1197
* doc/autoconf.texi (Installation Directory Variables): Reword to
1200
2009-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1202
Ignore `set -e'-related failure of NetBSD sh.
1203
* tests/m4sh.at (AS@&t@_EXIT): Skip test if (NetBSD) shell
1204
fails to finish EXIT trap after set -e.
1206
2009-01-06 Eric Blake <ebb9@byu.net>
1208
Maintainer cleanups.
1209
* cfg.mk (web-manual): Use new feature of gendocs.
1210
(fetch): Fetch gendocs.
1211
* Makefile.am (EXTRA_DIST): Distribute new file.
1212
* doc/Makefile.am (EXTRA_DIST): Likewise.
1213
* .gitattributes: Ignore whitespace in upstream files.
1214
* HACKING (Other web updates): Update Free Software Directory
1216
(Upload): No longer mention xdelta.
1217
* maint.mk (xd-delta): Likewise.
1218
* build-aux/gendocs.sh: New upstream file.
1219
* doc/gendocs_template: Likewise.
1220
* build-aux/announce-gen: Resync from upstream.
1221
* build-aux/config.guess: Likewise.
1222
* build-aux/config.sub: Likewise.
1223
* build-aux/gnupload: Likewise.
1224
* build-aux/texinfo.tex: Likewise.
1226
2008-12-30 Eric Blake <ebb9@byu.net>
1228
Make it easier to track diversion bugs.
1229
* lib/m4sugar/m4sugar.m4 (_m4_divert_raw, _m4_undivert): New
1230
internal macros, which are easier to trace than m4_builtin.
1231
(m4_cleardivert, m4_divert, m4_divert_push, m4_divert_pop)
1232
(m4_undivert): Use them.
1233
(_m4_require_call): Likewise. Use fewer macros.
1234
* lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): Fix typo.
1236
2008-12-26 Bruno Haible <bruno@clisp.org>
1238
Improve multiarch detection.
1239
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Make detection of options
1240
indicating a universal build more reliable.
1242
2008-12-28 William Pursell <bill.pursell@gmail.com> (tiny change)
1244
Use AS_CASE in documented example.
1245
* doc/autoconf.texi (Using the System Type): Use AS_CASE in
1246
example instead of raw case.
1248
2008-12-23 Eric Blake <ebb9@byu.net>
1250
Make m4_dumpdef more useful with M4 1.6.
1251
* lib/m4sugar/m4sugar.m4 (_m4_dumpdef): New macro.
1252
(m4_init): Install it for new enough m4.
1253
* tests/m4sugar.at (m4@&t@_dumpdef): Enhance test.
1254
* doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
1257
2008-12-24 Bruno Haible <bruno@clisp.org>
1259
Improve INSTALL for HP-UX.
1260
* doc/install.texi (Particular Systems): For HP-UX, also recommend
1261
-D_XOPEN_SOURCE=500. Needed for the declaration of mbstate_t on
1264
2008-12-22 Bruno Haible <bruno@clisp.org>
1266
Improve INSTALL for Haiku.
1267
* doc/install.texi (Particular Systems): Add a recommendation
1268
which prefix to use on Haiku.
1270
2008-12-19 Eric Blake <ebb9@byu.net>
1272
Fix typo in previous commit.
1273
* doc/autoconf.texi (Set manipulation Macros) <m4_set_map_sep>:
1276
Document some recently added macros.
1277
* lib/m4sugar/m4sugar.m4 (m4_map_args_w): Add optional sep
1279
* doc/autoconf.texi (Looping constructs) <m4_map_args_sep>
1280
<m4_map_args_w, m4_stack_foreach, m4_stack_foreach_sep>: Document
1282
(Set manipulation Macros) <m4_set_map_sep>: Likewise.
1283
* tests/m4sugar.at (m4@&t@_stack, M4 loops): Enhance tests.
1284
* NEWS: Document new macros.
1286
2008-12-18 Eric Blake <ebb9@byu.net>
1288
Fix separator in m4_stack_foreach_sep.
1289
* lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): Separate separator
1291
* tests/m4sugar.at (m4@&t@_stack): Enhance test.
1293
2008-12-18 Eric Blake <ebb9@byu.net>
1295
Mention limitation of M4 1.4.x on builtin tokens.
1296
* doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Document
1297
ramification of M4 1.4.x's inability to pass builtin tokens
1298
through text macros.
1299
(Evaluation Macros) <m4_curry>: Likewise.
1300
* tests/m4sugar.at (m4@&t@_defn): Enhance test.
1301
* NEWS: Mention subtle change in m4_dumpdef semantics.
1303
Document m4_version_prereq.
1304
* doc/autoconf.texi (Number processing Macros)
1305
<m4_version_prereq>: Add documentation.
1307
Reported by Bruno Haible.
1309
2008-12-10 Jim Meyering <meyering@redhat.com>
1311
AC_HEADER_ASSERT: don't say assertions are disabled when they're not
1312
* lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Do not make configure
1313
report "checking whether to enable assertions... no", when they are
1314
in fact enabled. This is solely a bug in the output of configure.
1315
In spite of saying "no", NDEBUG was not defined in that case.
1316
Also, as noted by Eric Blake, leave assertions enabled upon
1317
--enable-assert=INVALID.
1319
2008-12-09 Eric Blake <ebb9@byu.net>
1321
Fix m4_location inside m4_wrap with m4 1.4.5.
1322
* lib/m4sugar/m4sugar.m4 (m4_undefine): Redefine m4_location
1323
inside wrapped text if older m4 is detected.
1324
Reported by William Pursell.
1326
2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
1327
and Eric Blake <ebb9@byu.net>
1329
Fix AC_HEADER_ASSERT w.r.t. --enable-assert.
1330
* lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Honor --enable-assert,
1331
rather than treating it as a synonym for --disable-assert.
1332
* NEWS: Document the fix.
1334
2008-12-06 William Pursell <bill.pursell@gmail.com> (tiny change)
1336
Fix AC_HEADER_ASSERT to honor --enable-assert, rather than
1337
treat --enable-assert and --disable-assert equivalently.
1338
* lib/autoconf/headers.m4 (AC_HEADER_ASSERT): Check value of $enableval.
1340
2008-12-05 William Pursell <bill.pursell@gmail.com> (tiny change)
1342
Fix some typos and grammatical errors in documentation.
1343
* doc/autoconf.texi: Clean up some bad use of English.
1345
2008-12-03 Eric Blake <ebb9@byu.net>
1347
Improve AC_STATE_SAVE.
1348
* tests/local.at (AC_STATE_SAVE): Avoid ls -1, and use one less
1349
process by hoisting the uniqueness check into sed.
1350
* doc/autoconf.texi (Limitations of Usual Tools) <ls>: Mention
1353
2008-12-02 Eric Blake <ebb9@byu.net>
1355
Avoid MacOS readdir bug in testsuite.
1356
* tests/local.at (AC_STATE_SAVE): Avoid spurious failures due to
1357
duplicated ls entries.
1359
Reported by Bruce Dugan and others.
1361
2008-11-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1363
* lib/autotest/general.m4 (AT_JOB_FIFO_FD): Hide zsh 4.3.4
1364
error messages about `set -m'.
1366
2008-11-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1368
Fix a couple of test failures with dash.
1369
* tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Normalize
1370
exit status of `cd'.
1371
* tests/m4sh.at (AS_MESSAGE_LOG_FD): Remove script before
1372
regeneration, to avoid timing effects.
1374
2008-11-25 Eric Blake <ebb9@byu.net>
1377
* lib/m4sugar/m4sugar.m4 (m4_cleardivert): New macro.
1378
* lib/autotest/general.m4 (AT_INIT): Use it.
1379
* lib/autoconf/general.m4 (_AC_INIT_NOTICE): Likewise.
1380
* tests/m4sugar.at (m4@&t@_divert_stack): Test it.
1381
* doc/autoconf.texi (Diversion support) <m4_cleardivert>: Document
1384
Suggested by Paolo Bonzini.
1386
Add safety check for m4_expand vs. diversions.
1387
* lib/m4sugar/m4sugar.m4 (m4_expand): Make more robust against
1389
* doc/autoconf.texi (Evaluation Macros) <m4_expand>: Document new
1392
2008-11-24 Eric Blake <ebb9@byu.net>
1394
Fix typo in AS_MESSAGE_LOG_FD patch.
1395
* lib/m4sugar/m4sh.m4 (AS_ERROR): Check correct condition.
1397
2008-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1399
More reliable signal handling in Autotest.
1400
* lib/autotest/general.m4 (Driver loop): Rewrite signal handler.
1401
Start parallel jobs in their own process group, enabling job
1402
control in the shell if possible, for better signal handling.
1403
Deal with INT, TERM, and HUP in the testsuite driver. In the
1404
parallel driver, propagate TSTP to jobs either as TSTP or as
1405
STOP (to avoid fork bombs with ksh).
1406
Inside the job processes, add PIPE handler to write back the
1407
job token, so the master process does not hang.
1408
Disable the parallel driver if job control is not provided or if
1409
trap does not understand signal names.
1410
* tests/autotest.at (parallel autotest and signals): New test,
1411
exercises INT, TERM, and PIPE, serial and parallel, with and
1412
without `make' in the loop.
1413
Kudos to Richard Stevens for writing APUE.
1415
2008-11-22 Eric Blake <ebb9@byu.net>
1417
Fix testsuite failure on Solaris.
1418
* tests/torture.at (AT_CHECK_CONFIG_CREATION_NOWRITE): Normalize
1419
failure status to 1.
1421
2008-11-21 Eric Blake <ebb9@byu.net>
1423
Clean up AS_MESSAGE_LOG_FD usage.
1424
* lib/m4sugar/m4sh.m4 (AS_MESSAGE_FD, AS_MESSAGE_LOG_FD)
1425
(AS_ORIGINAL_STDIN_FD): Provide default M4sh values.
1426
(_AS_ECHO_LOG, AS_MESSAGE, _AS_ERROR_PREPARE, AS_ERROR): Simplify
1428
(AS_INIT_GENERATED): Don't shuffle an unchanged AS_MESSAGE_FD.
1429
* tests/m4sh.at (AS@&t@_INIT_GENERATED): Update test.
1430
(AS@&t@_MESSAGE_FD): New test.
1431
* doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
1432
Give more details about fd manipulation.
1433
(File Descriptor Macros): Describe M4sh defaults for the fds.
1435
2008-11-21 Eric Blake <ebb9@byu.net>
1437
Use shell function for AS_ERROR.
1438
* lib/m4sugar/m4sh.m4 (_AS_ERROR_PREPARE): New macro, defining a
1441
(_AS_LINENO_PREPARE): Break circular dependency.
1442
(AS_PREPARE, _AS_PREPARE): Initialize for child scripts.
1444
2008-11-21 Eric Blake <ebb9@byu.net>
1446
Fix typos in recent testsuite improvements.
1447
* lib/autotest/general.m4 (AT_INIT) <at_fn_check_prepare_dynamic>:
1449
* NEWS: Clarify the potential impact to users.
1450
* tests/autotest.at (AT_DATA_AUTOTEST): New macro, patterned after
1452
(AT_CHECK_AT_PREP, AT_CHECK_AT_TITLE): Use it.
1453
(unusual file names): Test that the recent echo fix does not
1454
regress. Fix quoting bug that made the test a no-op.
1455
Reported by Paolo Bonzini and Ralf Wildenhues.
1457
2008-11-21 Eric Blake <ebb9@byu.net>
1459
Use modern m4sh constructs in autoconf.
1460
* bin/autoconf.as (exit_missing_arg, getopt): Use AS_ERROR, rather
1463
Change the semantics of AS_EXIT without argument.
1464
* lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): When defaulting, use $?
1466
(AS_ERROR): Guarantee non-zero status.
1467
* bin/autoconf.as (exit_missing_arg, getopt): Revert prior change;
1468
we want non-zero status.
1469
* tests/m4sh.at (AS@&t@_EXIT): Update test accordingly.
1470
* doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Update
1472
<AS_SET_STATUS>: Don't overly restrict implementation.
1473
(Printing Messages) <AC_MSG_ERROR>: Describe better default.
1474
Suggestions by Paolo Bonzini and Ralf Wildenhues.
1476
2008-11-21 Eric Blake <ebb9@byu.net>
1478
Add @anchors within Builtins and Usual Tools lists.
1479
* doc/autoconf.texi (Limitations of Builtins)
1480
(Limitatations of Usual Tools): Add anchors for tools called out
1481
by name. Adjust callers to narrow in on tool of interest.
1483
Move case statement style discussion to m4 quoting section.
1484
* doc/autoconf.texi (Limitations of Builtins): Move comparison of
1486
(Balancing Parentheses): ...to this new node.
1487
Suggested by Ralf Wildenhues.
1489
2008-11-20 Eric Blake <ebb9@byu.net>
1491
Factor more common code out of AT_CHECK into shell function.
1492
* lib/autotest/general.m4 (_AT_CHECK): Avoid echo bug if AT_LINE
1493
starts with -. Move preparations...
1494
(AT_INIT) <at_fn_check_prepare_trace>
1495
<at_fn_check_prepare_notrace, at_fn_check_prepare_dynamic>:
1496
...into these new shell functions.
1497
<at_fn_check_newline>: Inline into only caller.
1498
(_AT_DECIDE_TRACEABLE): Use them to condense testsuite size.
1500
2008-11-20 Eric Blake <ebb9@byu.net>
1502
Handle version numbers as decimal, even if they start with 0.
1503
* lib/m4sugar/m4sugar.m4 (_m4_version_unletter): Avoid
1504
interpreting leading zeros as octal.
1506
2008-11-20 Eric Blake <ebb9@byu.net>
1509
* lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
1510
third and fourth arguments once.
1511
(_AT_CHECK): Don't re-expand expected output. Rearrange code for
1512
fewer scans of arguments.
1513
(AT_CHECK): Update caller.
1514
(AT_INIT) <at_fn_filter_trace>: Drop parameter.
1515
* tests/m4sugar.at (m4@&t@_split): Protect test with
1518
Fix XFAIL related to AT_CHECK.
1519
* lib/autotest/general.m4 (AT_CHECK, AT_CHECK_UNQUOTED): Expand
1520
first argument once.
1521
(_AT_CHECK): Don't re-expand commands.
1522
* tests/autotest.at (Multiline command from M4 expansion): Remove
1524
* tests/tools.at (autoupdating AU_ALIAS): Quote unbalanced paren.
1525
* NEWS: Document the fallout.
1527
2008-11-20 Eric Blake <ebb9@byu.net>
1529
Reduce forks in AC_DEFINE.
1530
* lib/autoconf/general.m4 (_AC_DEFINE_Q_PRINT): New macro.
1531
(_AC_DEFINE_Q): Use it to avoid forks for all AC_DEFINE and most
1533
* lib/autoconf/fortran.m4 (_AC_FC_WRAPPERS): Properly quote #.
1534
* tests/torture.at (Substitute and define special characters):
1535
(Define to a 2000-byte string): Enhance tests to cover
1537
(@%:@define header templates): Enhance test to cover #.
1539
2008-11-20 Eric Blake <ebb9@byu.net>
1541
Improve m4_expand robustness, part 2.
1542
* lib/m4sugar/m4sugar.m4 (m4_expand): Support unterminated
1543
comments, by wrapping old implementation...
1544
(_m4_expand): ...as this, and renaming old core...
1545
(_m4_expand_): ...to this.
1546
(m4_text_box): Use lighter-weight _m4_expand.
1547
* lib/m4sugar/m4sh.m4 (_AS_DETECT_EXPAND)
1548
(_AS_DETECT_BETTER_SHELL, AS_FUNCTION_DESCRIBE): Likewise.
1549
* lib/autotest/general.m4 (AT_KEYWORDS): Likewise.
1550
* tests/m4sugar.at (m4@&t@_expand): Enhance test.
1551
* tests/autotest.at (AT_CHECK_AT_TITLE_CHAR): Likewise.
1552
* doc/autoconf.texi (Evaluation Macros) <m4_expand>: Mention new
1555
Improve m4_expand robustness, part 1.
1556
* lib/m4sugar/m4sugar.m4 (_m4_expand): Tolerate unquoted
1558
* tests/m4sugar.at (m4@&t@_expand): New test.
1560
2008-11-20 Eric Blake <ebb9@byu.net>
1562
Add m4_chomp, m4_esyscmd_s.
1563
* lib/m4sugar/m4sugar.m4 (m4_esyscmd_e, m4_chomp, m4_chomp_all):
1565
* doc/autoconf.texi (Redefined M4 Macros) <m4_esyscmd_s>: Document
1567
(Text processing Macros) <m4_chomp>: Likewise.
1569
* tests/m4sugar.at (m4@&t@_esyscmd_s): New test.
1572
* lib/m4sugar/m4sugar.m4 (_m4_index): Delete; it is more efficient
1573
to make callers guarantee a match.
1574
(m4_init): Adjust caller.
1575
* lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
1576
* lib/autoconf/general.m4 (_AC_DEFINE_Q): Likewise.
1578
Describe different hacks for balancing ')' in case statements.
1579
* doc/autoconf.texi (Limitations of Builtins) <case>: Add an
1580
exposition on various quoting styles.
1582
2008-11-20 Eric Blake <ebb9@byu.net>
1585
* lib/m4sugar/m4sh.m4 (_AS_QUOTE_IFELSE): Inline into...
1586
(_AS_QUOTE): ...here, delete unused second paramenter, and factor
1588
(_AS_QUOTE_MODERN, _AS_QUOTE_OLD): ...new helpers.
1590
2008-11-20 Alfred G. de Wijn <dwijn@iluvatar.eu.org> (tiny change)
1592
For consistency, make temporary variable match language name.
1593
* lib/autoconf/fortran.m4 (_AC_PROG_FC_G, _AC_PROG_FC_V_OUTPUT):
1594
Match the save/test variables' names to the FFLAGS/FCFLAGS being
1598
2008-11-19 Eric Blake <ebb9@byu.net>
1600
Improve testsuite generation.
1601
* tests/local.at (AT_DATA_M4SUGAR, AT_DATA_M4SH)
1602
(AT_DATA_AUTOCONF): Escape all quadrigraphs, not just @&t@. Use
1605
2008-11-18 Eric Blake <ebb9@byu.net>
1607
Use fn for shell functions, func for autoconf CHECK_FUNCS.
1608
* lib/autoconf/functions.m4 (AC_CHECK_FUNC): Abbreviate shell
1610
* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE)
1611
(_AC_COMPILE_IFELSE, _AC_LINK_IFELSE, _AC_RUN_IFELSE)
1612
(AC_CHECK_DECL, AC_COMPUTE_INT): Likewise.
1613
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
1614
(_AC_CHECK_HEADER_COMPILE, _AC_CHECK_HEADER_PREPROC): Likewise.
1615
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, _AC_TYPE_INT)
1616
(_AC_TYPE_UNSIGNED_INT, AC_CHECK_MEMBER): Likewise.
1617
* lib/autotest/general.m4 (AT_INIT): Likewise.
1618
* lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK, _AS_EXIT_PREPARE)
1619
(AS_EXIT, AS_SET_STATUS, _AS_UNSET_PREPARE, _AS_MKDIR_P)
1620
(_AS_MKDIR_P_PREPARE, _AS_VAR_APPEND_PREPARE, AS_VAR_APPEND)
1621
(_AS_VAR_ARITH_PREPARE, AS_VAR_ARITH): Likewise.
1622
* doc/autoconf.texi (Shell Functions): Likewise.
1624
2008-11-18 Eric Blake <ebb9@byu.net>
1626
Alter default value of AS_EXIT.
1627
* lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE): Let as_func_exit
1628
parameter be optional.
1629
(AS_EXIT): Use it to make better default.
1630
(_AS_DETECT_BETTER_SHELL): Use new default.
1631
* bin/autoconf.as (exit_missing_arg, getopt): Likewise.
1632
* lib/autoconf/status.m4 (AC_OUTPUT): Likewise.
1633
* tests/m4sh.at (AS@&t@_EXIT): Update test.
1634
* doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Mention
1635
new default behavior.
1636
(Limitations of Builtins) <trap>: Adjust to use new default.
1637
* NEWS: Mention the semantic change.
1638
Suggested by Ralf Wildenhues.
1640
Update example to match actual Tru64 behavior.
1641
* doc/autoconf.texi (Limitations of Builtins) <trap>: Correct
1643
Reported by Ralf Wildenhues.
1645
Add AS_SET_STATUS, make AS_EXIT more efficient.
1646
* lib/m4sugar/m4sh.m4 (_AS_EXIT_PREPARE, AS_SET_STATUS): New
1648
(AS_EXIT): Rewrite to avoid forks.
1649
(_AS_SHELL_SANITIZE): Avoid AS_EXIT prior to shell functions.
1650
(AS_PREPARE, _AS_PREPARE): Add new preparation.
1651
* doc/autoconf.texi (Common Shell Constructs) <AS_SET_STATUS>:
1653
* NEWS: Mention new macro.
1654
* tests/m4sh.at (AS@&t@_EXIT): New test.
1655
(BASENAME_TEST): Sort.
1657
Document Tru64 bug with 'set -e'.
1658
* doc/autoconf.texi (Limitations of Builtins) <trap>: Mention a
1659
bug in mixing 'set -e' with 'trap .. 0'.
1660
Reported by Ralf Wildenhues.
1662
Document a Solaris /bin/sh bug with 'set -e'.
1663
* doc/autoconf.texi (Shell Functions): Mention the bug.
1665
2008-11-17 Eric Blake <ebb9@byu.net>
1667
Detect empty list in AS_FOR.
1668
* lib/m4sugar/m4sh.m4 (AS_FOR): Handle iteration over $@
1670
* tests/m4sh.at (AS@&t@_FOR): Enhance test to catch it.
1671
Reported by Paolo Bonzini.
1673
2008-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1675
Use a different workaround for an automake quirk.
1676
* tests/Makefile.am (AUTOMAKE_OPTIONS): Remove.
1677
(distclean_generic): New helper variable, to fool automake.
1678
($(distclean_generic)): Depend on clean-local, to prevent
1679
the race in the two rules with accessing and removing
1681
Report by Eric Blake.
1683
* lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Simplify, avoid
1684
unbalanced parentheses from last change.
1685
Spotted by Eric Blake, fix suggested by Paolo Bonzini.
1687
Fix exit status of expr version of as_func_arith.
1688
* lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE): Count an exit
1689
status of 1 of expr also as success, to avoid failure if the
1690
computation result is zero. Fixes test failures with IRIX sh,
1691
where the expr variant of as_func_arith is used.
1693
Do not use read-only variable $status.
1694
* tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
1697
2008-11-15 Eric Blake <ebb9@byu.net>
1699
Use the new AS_FOR function.
1700
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Use new
1701
abstraction for cleaner code.
1702
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
1704
Add AS_FOR, undocumented for now.
1705
* lib/m4sugar/m4sh.m4 (AS_FOR): New macro.
1706
* tests/m4sh.at (AS@&t@_FOR): New test.
1707
Suggested by Paolo Bonzini.
1709
2008-11-13 Eric Blake <ebb9@byu.net>
1711
Optimize single-argument loop.
1712
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Avoid forks when
1713
loop only has one argument.
1714
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Likewise.
1716
2008-11-13 Eric Blake <ebb9@byu.net>
1718
Fix AS_ESCAPE usage bugs.
1719
* lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
1720
(_AS_VAR_ARITH_PREPARE): Expand macros prior to adding shell
1722
(AS_TR_SH, AS_VAR_GET): Use _AS_ESCAPE for speed.
1723
* doc/autoconf.texi (Polymorphic Variables) <AS_VAR_SET>: Document
1724
caveat due to conditional AS_ESCAPE.
1725
* tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
1727
2008-11-12 Eric Blake <ebb9@byu.net>
1729
Whitespace reduction in configure.
1730
* lib/autoconf/autoheader.m4 (AH_VERBATIM): Avoid empty lines.
1731
* lib/autoconf/general.m4 (_AC_INIT_PREPARE, AC_CHECK_FILES):
1733
(_AC_DEFINE_Q): Restore empty line, since some clients in the wild
1736
2008-11-12 Eric Blake <ebb9@byu.net>
1738
Make M4sh, not autoconf, guarantee sane $SHELL.
1739
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Move setting of
1741
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): ...to here.
1742
* doc/autoconf.texi (Initialization Macros): Document the effect
1744
* tests/m4sh.at (AS@&t@_INIT_GENERATED): New test.
1745
Reported by Ralf Wildenhues.
1747
2008-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1749
Wrap keywords in `testsuite --list' output.
1750
* lib/autotest/general.m4 (AT_INIT): Rewrite --list awk script,
1751
avoid lint warnings from gawk, wrap keyword lists to stay below
1752
80 characters per line if possible.
1753
* tests/autotest.at (Keyword wrapping): New test.
1755
* tests/local.at (AT_COPYRIGHT): Bump copyright years.
1757
* doc/autoconf.texi (Conditional constructs, Macro Names): Fix
1760
2008-11-10 Eric Blake <ebb9@byu.net>
1762
Work around <=m4-1.4.9 bug in m4_format.
1763
* lib/m4sugar/m4sugar.m4 (_m4_index): New internal macro.
1764
(m4_init): Only use it in older m4.
1765
* lib/autoconf/general.m4 (_AC_DEFINE_Q): Use it to avoid
1766
m4_format bug in older m4.
1767
* lib/autoconf/status.m4 (_AC_CONFIG_COMPUTE_DEST): Likewise.
1768
Reported by Bob Proulx.
1770
2008-11-10 Eric Blake <ebb9@byu.net>
1772
Match upstream standards.texi.
1773
* doc/standards.texi: Resync from upstream.
1774
* doc/fdl-1.3.texi: Rename...
1775
* doc/fdl.texi: ...to this.
1776
* doc/Makefile.am (autoconf_TEXINFOS, standards_TEXINFOS): Update
1778
* doc/autoconf.texi (GNU Free Documentation License): Likewise.
1779
* cfg.mk (fetch): Likewise.
1781
Yet more FDL 1.3 fallout.
1782
* NEWS: Mention manual license change.
1784
2008-11-10 Eric Blake <ebb9@byu.net>
1786
Avoid some regex uses.
1787
* lib/autoconf/general.m4 (_AC_DEFINE_Q): Use m4_format rather
1788
than m4_bpatsubst to grab string prefix.
1789
* lib/autoconf/status.m4 (_AC_CONFIG_REGISTER)
1790
(_AC_CONFIG_REGISTER_DEST, AC_CONFIG_SUBDIRS): Likewise.
1791
(_AC_FILE_DEPENDENCY_TRACE_COLON): Use m4_translit instead of
1792
m4_bpatsubst to change bytes.
1793
(_AC_CONFIG_DEPENDENCY_DEFAULT): Use m4_index rather than
1794
m4_bmatch to find byte.
1795
(_AC_CONFIG_COMPUTE_DEST): New helper macro.
1797
Use more efficient macros in AC_CONFIG_SUBDIRS.
1798
* lib/autoconf/status.m4 (_AC_CONFIG_FOOS, AC_CONFIG_SUBDIRS): Use
1800
(_AC_OUTPUT_FILE): Use m4_map_args_sep and m4_map_args.
1801
(_AC_OUTPUT_FILE_ADJUST_DIR): New helper macro.
1803
Use more efficient macros in AC_CHECK_FILES and AC_CHECK_DECLS.
1804
* lib/autoconf/general.m4 (AC_CHECK_FILES): Use m4_map_args_w,
1806
(AC_CHECK_DECLS, AC_CHECK_DECLS_ONCE): Use m4_map_args_sep.
1807
(_AC_CHECK_FILES, _AC_CHECK_DECLS, _AC_CHECK_DECL_ONCE): New
1809
(AC_LIBSOURCES): Use m4_map_args.
1811
Use more efficient macros in AC_CHECK_TYPES.
1812
* lib/autoconf/types.m4 (AC_CHECK_TYPES, AC_CHECK_MEMBERS): Use
1814
(_AC_CHECK_TYPES, _AC_CHECK_MEMBERS): New helper macros.
1816
Use more efficient macros in AC_CHECK_HEADERS.
1817
* lib/autoconf/headers.m4 (AH_CHECK_HEADERS)
1818
(AH_CHECK_HEADERS_DIRENT): Rename...
1819
(_AH_CHECK_HEADER, _AH_CHECK_HEADER_DIRENT): ...and take only one
1820
argument, rather than a list.
1821
(AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE):
1822
Adjust callers to use m4_map_args_w.
1823
(AC_HEADER_DIRENT): Adjust caller to use m4_map_args.
1824
(_AC_CHECK_HEADER_ONCE): New helper macro.
1826
Use more efficient macros in AC_CHECK_FUNCS.
1827
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): Rename...
1828
(_AH_CHECK_FUNC): ...and take only one argument, rather than a
1830
(AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE): Adjust callers to use
1832
(_AC_CHECK_FUNC_ONCE): New helper macro.
1833
(AC_REPLACE_FUNCS): Use m4_map_args_w.
1835
Use more efficient macro in AT_INIT.
1836
* lib/autotest/general.m4 (AT_INIT): Use m4_map_args.
1838
2008-11-10 Eric Blake <ebb9@byu.net>
1840
More FDL 1.3 fallout.
1841
* cfg.mk (fetch): Add gnu-oids.texi, drop fdl.texi.
1842
* doc/Makefile.am (standards_TEXINFOS): Reflect upstream
1844
* doc/fdl.texi: Delete.
1845
* doc/gnu-oids.texi: New upstream file.
1846
* doc/standards.texi: Resync from upstream.
1847
* doc/make-stds.texi: Likewise.
1848
* build-aux/announce-gen: Likewise.
1849
* build-aux/texinfo.tex: Likewise.
1851
2008-11-10 Clinton Roy <clinton.roy@gmail.com> (tiny change)
1853
Pass autoreconf -I to aclocal -I
1854
* bin/autoreconf.in (parse_args): Pass --include to aclocal.
1855
* doc/autoconf.texi (autoreconf Invocation): Updates for above.
1856
* NEWS: Document it.
1859
2008-11-10 Eric Blake <ebb9@byu.net>
1861
Try 'print -r --' as a non-forking variant of 'printf %s\\n'.
1862
* lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Cater to Solaris ksh.
1863
* doc/autoconf.texi (Limitations of Builtins) <printf>: Document
1864
the print workaround.
1865
Idea by Paolo Bonzini.
1867
2008-11-10 Eric Blake <ebb9@byu.net>
1869
Provide a section on all tools allowed in GNU Coding Standards.
1870
* doc/autoconf.texi (Limitations of Builtins) <read>: Sort.
1871
<wait>: Add section.
1872
(Limitations of Usual Tools) <awk>: Make table entry consistent.
1873
<chgrp, mkfifo, rmdir, sleep, sort, tar> Add sections.
1875
2008-11-09 Paolo Bonzini <bonzini@gnu.org>
1877
Balance parentheses in _AC_CACHE_DUMP.
1878
* lib/autoconf/general.m4 (_AC_CACHE_DUMP): Balance parentheses
1879
without introducing \).
1881
2008-11-07 Eric Blake <ebb9@byu.net>
1883
Further doc updates for AC_CHECK_HEADER change.
1884
* doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
1885
new default, and make it more obvious that using [-] is generally
1888
2008-11-07 Eric Blake <ebb9@byu.net>
1890
* ChangeLog: Enforce UTF-8 encoding.
1892
2008-11-06 Eric Blake <ebb9@byu.net>
1894
Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
1895
* lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): Provide fourth
1896
argument to speed up check.
1898
2008-11-06 Eric Blake <ebb9@byu.net>
1900
Speed up AC_CHECK_TYPE.
1901
* lib/autoconf/types.m4 (AC_CHECK_TYPE): Factor out $@, and avoid
1902
regex when enough arguments are present.
1904
2008-11-06 Paolo Bonzini <bonzini@gnu.org>
1906
Remove three forks per _AC_RUN_LOG_STDERR in the common case.
1907
* lib/autoconf/general.m4 (_AC_RUN_LOG_STDERR): Avoid grep/rm/cat
1908
sequence when the program's stderr was empty, while providing a
1909
conftest.err file even in that case.
1910
(_AC_CACHE_DUMP): Fix mismatched parenthesis.
1912
2008-11-06 Paolo Bonzini <bonzini@gnu.org>
1914
Change `present but cannot be compiled' behavior to use compiler result.
1915
* NEWS: Document it.
1916
* doc/autoconf.texi (Present But Cannot Be Compiled): Document it.
1917
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Implement it
1919
* tests/semantics.at (AC_CHECK_HEADERS): Test new semantics.
1921
2008-11-05 Eric Blake <ebb9@byu.net>
1924
* lib/m4sugar/m4sugar.m4 (m4_map_args_w): New macro, undocumented
1926
(_m4_split): Allow user control over separator.
1927
(m4_split): Adjust caller.
1928
(m4_foreach_w, m4_append_uniq_w, _m4_text_wrap): Rewrite to use
1930
* tests/m4sugar.at (m4@&t@_append): Augment test keywords.
1931
(M4 loops): Test new interface.
1933
Use m4_set_map_sep in more places.
1934
* lib/m4sugar/m4sugar.m4 (m4_set_difference, m4_set_intersection)
1935
(m4_set_union): Use m4_set_map_sep rather than m4_set_foreach.
1936
* doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
1937
Enhance documentation.
1938
<m4_set_foreach>: Mention faster alternative.
1939
(Looping constructs) <m4_foreach>: Likewise.
1941
Unify m4_set_foreach and m4_set_map.
1942
* lib/m4sugar/m4sugar.m4 (m4_set_map_sep): New macro, undocumented
1944
(m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
1945
(m4_set_map): Adjust callers.
1947
Use _m4_foreach in more places.
1948
* lib/m4sugar/foreach.m4 (m4_dquote_elt, m4_join, m4_joinall)
1949
(_m4_minmax, m4_set_add_all): Use _m4_foreach instead of
1951
* lib/m4sugar/m4sugar.m4 (_m4_joinall): Use m4_map_args_sep
1952
instead of m4_foreach or m4_map_args.
1954
Unify _m4_foreach and _m4_map.
1955
* lib/m4sugar/m4sugar.m4 (_m4_map): Delete, merged with...
1956
(_m4_foreach): ...this.
1957
(m4_foreach, m4_map, m4_mapall, m4_map_sep, _m4_mapall_sep)
1958
(m4_map_args, m4_map_args_sep): Adjust callers.
1959
* lib/m4sugar/foreach.m4 (_m4_map): Rename...
1960
(_m4_foreach): ...to this, overwriting old definition.
1962
2008-11-04 Eric Blake <ebb9@byu.net>
1964
Add m4_map_args_sep, undocumented for now.
1965
* lib/m4sugar/m4sugar.m4 (m4_map_args_sep): New macro.
1966
(_m4_map): Change API to cover more of m4_map*.
1967
* lib/m4sugar/foreach.m4 (_m4_map): Adjust to new API.
1968
(m4_map_args): Delete.
1969
* tests/m4sugar.at (m4@&t@_map_args and m4@&t@_curry): Enhance
1972
Improve m4_for performance.
1973
* lib/m4sugar/m4sugar.m4 (_m4_for): Alter API to make it easier to
1974
avoid m4_define by some clients.
1975
(m4_for): Adjust caller.
1976
* lib/m4sugar/foreach.m4 (_m4_foreach, m4_case, m4_bmatch)
1977
(_m4_cond, _m4_bpatsubsts, _m4_shiftn, m4_do, m4_reverse)
1978
(_m4_map, m4_map_args, m4_map_args_pair, _m4_list_pad)
1979
(_m4_list_cmp): Likewise.
1981
2008-11-04 Eric Blake <ebb9@byu.net>
1983
Adjust expected output.
1984
* tests/torture.at (Missing templates): Reflect added quoting.
1985
Detected by Bob Proulx's buildbot.
1987
Reject arguments with leading =.
1988
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Detect case of
1989
missing variable name, with fewer forks. Quote invalid arguments
1990
in message, in case they include spaces.
1991
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS)
1992
(_AC_OUTPUT_MAIN_LOOP): Quote invalid arguments.
1993
* lib/autotest/general.m4 (AT_INIT): Likewise.
1994
* tests/base.at (configure arguments): Test this.
1995
Reported by Jeff Squyres.
1997
2008-11-04 Eric Blake <ebb9@byu.net>
2000
* cfg.mk (fetch): Add fdl-1.3.texi.
2001
* .gitattributes: Likewise.
2002
* doc/autoconf.texi (GNU Free Documentation License): Point to new
2004
* doc/Makefile.am (autoconf_TEXINFOS): Likewise.
2005
(standards_TEXINFOS): Mention current dependence on older license.
2006
* doc/fdl-1.3.texi: New upstream file.
2007
* GNUmakefile: Resync from upstream.
2008
* build-aux/announce-gen: Likewise.
2009
* build-aux/texinfo.tex: Likewise.
2011
2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2013
Point at AM_SUBST_NOTMAKE.
2014
* doc/autoconf.texi (Setting Output Variables): Add cross
2015
reference to new Automake macro AM_SUBST_NOTMAKE.
2017
2008-11-03 Paolo Bonzini <bonzini@gnu.org>
2019
Eliminate a fork per invocation of AC_LANG_CONFTEST.
2020
* lib/autoconf/c.m4 (AC_LANG_CONFTEST(C)): Define instead of
2022
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Add a comment at the
2023
top of confdefs.h, which also works around cpp deficiencies.
2024
* lib/autoconf/lang.m4 (AC_LANG_DEFINE): Define AC_LANG_CONFTEST(xyz)
2025
(AC_LANG_CONFTEST): Dispatch based on _AC_LANG.
2026
(AC_LANG_CONFTEST()): New.
2028
2008-11-03 Paolo Bonzini <bonzini@gnu.org>
2030
Reorganize definition of languages.
2031
* lib/autoconf/c.m4 (AC_LANG(C), AC_LANG(C++), AC_LANG(Objective C),
2032
_AC_LANG_ABBREV(C), _AC_LANG_ABBREV(C++), _AC_LANG_ABBREV(Objective C),
2033
_AC_LANG_PREFIX(C), _AC_LANG_PREFIX(C++), _AC_LANG_PREFIX(Objective C)):
2034
Replace definitions with usage of AC_LANG_DEFINE.
2035
(Sections 2b, 2c): Delete.
2036
(Sections 1b, 1c): Move after section 2a.
2037
* lib/autoconf/erlang.m4 (AC_LANG(Erlang), _AC_LANG_ABBREV(Erlang),
2038
_AC_LANG_PREFIX(Erlang), AC_LANG_SOURCE(Erlang)): Replace definitions
2039
with usage of AC_LANG_DEFINE.
2040
(AC_LANG_ERLANG): Define using AU_DEFUN.
2041
* lib/autoconf/fortran.m4 (AC_LANG(Fortran), AC_LANG(Fortran 77),
2042
_AC_LANG_ABBREV(Fortran), _AC_LANG_ABBREV(Fortran 77),
2043
_AC_LANG_PREFIX(Fortran), _AC_LANG_PREFIX(Fortran 77),
2044
_AC_LANG_SOURCE(Fortran), AC_LANG_SOURCE(Fortran 77)): Replace
2045
definitions with usage of AC_LANG_DEFINE.
2046
* lib/autoconf/lang.m4 (AC_LANG_DEFINE, AC_LANG_SOURCE()): New.
2048
2008-11-03 Paolo Bonzini <bonzini@gnu.org>
2050
Use preprocessor in cpp tests.
2051
* tests/c.at (CPP tests): Use AC_CHECK_HEADERS(..., [-]).
2053
2008-10-31 Paolo Bonzini <bonzini@gnu.org>
2055
Rename _AC_CHECK_HEADER_OLD and _AC_CHECK_HEADER_NEW.
2056
* lib/autoconf/headers.m4 (AC_CHECK_HEADER): Adjust naming.
2057
(_AC_CHECK_HEADER_PREPROC_BODY): New name of _AC_CHECK_HEADER_OLD_BODY.
2058
(_AC_CHECK_HEADER_COMPILE_BODY): New name of _AC_CHECK_HEADER_NEW_BODY.
2059
(_AC_CHECK_HEADER_PREPROC): New name of _AC_CHECK_HEADER_OLD.
2060
(_AC_CHECK_HEADER_COMPILE): New name of _AC_CHECK_HEADER_NEW.
2061
* tests/semantics.at (AC_CHECK_HEADERS_OLD, AC_CHECK_HEADER_NEW):
2064
2008-10-31 Eric Blake <ebb9@byu.net>
2066
Support multiple undiverts and dumpdefs at once.
2067
* lib/m4sugar/m4sugar.m4 (m4_dumpdefs, m4_undivert): Allow extra
2069
* doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>,
2070
<m4_undivert>: Document argument list change.
2071
* tests/m4sugar.at (m4@&t@_divert_stack, m4@&t@_dumpdef): Test
2074
Simplify diversion stack handling.
2075
* lib/m4sugar/m4sugar.m4 (m4_divert_stack): Use fewer macros, and
2076
avoid extra newlines.
2077
(m4_divert_stack_push): Compute location here, rather than caller.
2078
(m4_divert_push): Update caller.
2079
(m4_divert): Likewise, and also adjust current diversion name.
2080
(m4_divert_pop): Simplify rule that diversion stack must never go
2082
(_m4_require_call): Bypass diversion stack when collecting
2083
required macro text.
2084
(m4_init): Set current diversion without requiring m4_init.
2085
* lib/m4sugar/m4sh.m4 (AS_INIT): Avoid too many pops.
2086
* lib/autotest/general.m4 (AT_INIT): Likewise.
2087
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Schedule wrapped
2088
text to run prior to m4sugar cleanup.
2089
* doc/autoconf.texi (Text processing Macros) <m4_newline>: Mention
2091
(Conditional constructs) <m4_ifvaln, m4_n>: Mention use of dnl.
2092
* NEWS: Undo blurb about m4_divert.
2093
* tests/m4sugar.at (m4@&t@_divert_stack): New test.
2095
Simplify expansion stack handling.
2096
* lib/m4sugar/m4sugar.m4 (m4_expansion_stack): Use fewer macros;
2097
always output 'top level'.
2098
(_m4_expansion_stack_entry): New macro, to format the string only
2100
(m4_expansion_stack_push): Only push a macro name.
2101
(m4_warn, _m4_defun_pro): Update callers.
2102
(m4_expansion_stack_pop, m4_expansion_stack_dump): Delete.
2103
(_m4_defun_epi, m4_fatal): Inline the calls.
2104
* tests/m4sugar.at (m4@&t@_expansion_stack): New test.
2106
2008-10-30 Eric Blake <ebb9@byu.net>
2108
Better documentation of AC_CHECK_HEADER's fourth argument.
2109
* doc/autoconf.texi (Generic Headers) <AC_CHECK_HEADER>: Mention
2110
how to suppress compiler or preprocessor header check.
2111
Reported by Jeff Squyres.
2113
2008-10-30 Eric Blake <ebb9@byu.net>
2115
Fix LINENO testsuite failure.
2116
* tests/m4sh.at (AT_DATA_LINENO): Use AS_LINENO_PREPARE, not
2117
undocumented _AS_PREPARE, and move unset earlier in script.
2119
Update LINENO documentation.
2120
* doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
2121
(Special Shell Variables) <LINENO>: Mention that LINENO support in
2122
child scripts may be broken. Modernize example.
2124
2008-10-30 Paolo Bonzini <bonzini@gnu.org>
2126
Do not check for $LINENO in generated scripts.
2127
* lib/m4sugar/m4sh.m4 (_AS_PREPARE): Do not call _AS_LINENO_PREPARE,
2130
2008-10-30 Eric Blake <ebb9@byu.net>
2132
Don't check for non-POSIX extensions in suggested tests.
2133
* lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_WORKS): Remove suggestion;
2134
we still use += if available, but should not reject shells (like
2135
dash) that don't provide it.
2136
(_AS_DETECT_SUGGESTED): Document a policy for m4sh.
2137
Reported by Paolo Bonzini.
2139
2008-10-30 Paolo Bonzini <bonzini@gnu.org>
2141
Pass CONFIG_SHELL down to generated scripts, and re-export SHELL.
2142
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): If proceeding
2143
with a given CONFIG_SHELL, move it to SHELL.
2144
(AS_INIT_GENERATED): Re-export SHELL.
2146
2008-10-30 Eric Blake <ebb9@byu.net>
2148
Work around Solaris /bin/sh case bug.
2149
* lib/m4sugar/m4sh.m4 (_AS_CASE, _AS_CASE_DEFAULT): Always provide
2150
a non-empty command list.
2151
(AS_CASE): Always guarantee that a case will match.
2152
* doc/autoconf.texi (Limitations of Builtins) <case>: Document the
2153
Solaris bug, and mention AS_CASE.
2155
2008-10-30 Paolo Bonzini <bonzini@gnu.org>
2157
Require _AS_CR_PREPARE where appropriate.
2158
* lib/m4sugar/m4sh.m4 (_AS_PREPARE): Call _AS_CR_PREPARE.
2159
(AS_PREPARE): Require _AS_CR_PREPARE.
2161
Avoid walking the entire PATH when looking for a better shell.
2162
* lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Test shell characteristics
2163
as the PATH is walked.
2165
Add third argument to _AS_PATH_WALK
2166
* lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Do not call _AS_CR_PREPARE.
2167
(_AS_PATH_WALK): Add third optional argument.
2169
Trim down the length of the shell function test.
2170
* lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_WORK): Condense.
2172
2008-10-29 Eric Blake <ebb9@byu.net>
2174
Fix LINENO detection to work around bash and pdksh limitations.
2175
* lib/m4sugar/m4sh.m4 (_AS_LINENO_WORKS): Enhance the test, so
2176
that we can choose which of two tests to trust.
2177
(_AS_RUN): Set flag when alternate shell is running.
2178
(_AS_DETECT_EXPAND): New macro.
2179
(_AS_DETECT_BETTER_SHELL): Use it to massage LINENO tests.
2181
2008-10-29 Eric Blake <ebb9@byu.net>
2183
Mention proper fix for zsh users.
2184
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh
2185
version known to work.
2186
Suggested by Paolo Bonzini.
2188
Document current beta-quality status.
2189
* configure.ac: Reflect fact that change to git-version-gen
2190
produces -, but not always a letter, on non-release builds.
2191
* BUGS: Mention known issues.
2192
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Ask for help in
2193
debugging platforms with deficient shells.
2195
2008-10-29 Eric Blake <ebb9@byu.net>
2197
Alter signature of AS_INIT_GENERATED.
2198
* lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): Add parameters, and
2199
manage here-doc and chmod in place. This also allows future
2200
changes for optimizing the child via diversion/m4_wrap magic.
2201
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Update
2203
* doc/autoconf.texi (Initialization Macros) <AS_INIT_GENERATED>:
2204
Update the documentation.
2206
2008-10-29 Eric Blake <ebb9@byu.net>
2208
Use _m4_stack_reverse in m4_set.
2209
* lib/m4sugar/m4sugar.m4 (_m4_set_contents_1)
2210
(_m4_set_contents_2): Rewrite to share _m4_stack_reverse
2212
(m4_set_contents, m4_set_foreach, m4_set_list, m4_set_listc)
2213
(m4_set_map): Adjust callers to new API.
2215
Add m4_stack_foreach_sep.
2216
* lib/m4sugar/m4sugar.m4 (m4_stack_foreach_sep)
2217
(m4_stack_foreach_sep_lifo): New macros.
2218
(_m4_stack_reverse): Adjust prototype, to support it.
2219
(m4_copy): Use fewer macros.
2220
* tests/m4sugar.at (m4@&t@_stack_foreach): Rename...
2221
(m4@&t@_stack): ...and add m4_stack_foreach_sep tests.
2223
2008-10-29 Bruno Haible <bruno@clisp.org>
2225
Mention Sun WorkShop 6.2 OpenMP bug.
2226
* doc/autoconf.texi (AC_OPENMP): Document portability pitfall.
2228
2008-10-29 Paolo Bonzini <bonzini@gnu.org>
2230
Rewrite handling of diversion and expansion stack.
2231
* NEWS: Document stricter requirement on m4_init.
2232
* lib/m4sugar/m4sugar.m4 (m4_divert_stack): New, replacing
2234
(_m4_divert_stack_push): New.
2235
(m4_divert): Use _m4_divert_stack_push and replace m4_define with
2237
(m4_divert_push): Use _m4_divert_stack_push.
2238
(m4_divert_pop): Use m4_divert_stack instead of _m4_divert_n_stack,
2239
pop _m4_divert_stack instead of m4_divert_stack.
2240
(m4_expansion_stack): New. Update comment above it.
2241
(m4_expansion_stack_push, m4_expansion_stack_pop): Work on
2242
_m4_expansion_stack instead of m4_expansion_stack.
2243
(m4_expansion_stack_dump): Check presence of _m4_expansion_stack
2244
instead of m4_expansion_stack. Use m4_expansion_stack's expansion
2245
instead of the definition, and compensate for the trailing newline
2247
(m4_warn, _m4_defun_pro, _m4_defun_epi): Check presence of
2248
_m4_expansion_stack instead of m4_expansion_stack.
2249
(m4_newline): Expand first argument after the newline.
2250
(m4_init): Use m4_divert_stack instead of _m4_divert_n_stack,
2251
* tests/m4sugar.at (m4_append, m4_text_wrap): Invoke m4_init.
2252
* tests/tools.at (whitespace in file names, the empty token): Likewise.
2254
2008-10-28 Eric Blake <ebb9@byu.net>
2256
Reduce forks while searching for better shell.
2257
* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED)
2258
(_AS_DETECT_SUGGESTED): No need to provide extra subshell; _AS_RUN
2259
already does the job.
2260
(_AS_DETECT_BETTER_SHELL): Simplify AS_EXIT when not run in a trap
2263
Undo needless efforts to protect $2 in $2_t.
2264
* lib/autoconf/types.m4 (_AC_TYPE_INT_BODY)
2265
(_AC_TYPE_UNSIGNED_INT_BODY): Reduce extra quoting.
2267
2008-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2269
Fix parallel test execution output lossage.
2270
* lib/autotest/general.m4 (_AT_CHECK): Truncate files to hold
2271
standard output and standard error before the test, use append
2274
Caught by Bob Proulx' build daemons, analysis and suggested fix
2275
by Stéphane Chazelas.
2277
2008-10-28 Eric Blake <ebb9@byu.net>
2279
Use m4_map_args in more places.
2280
* lib/m4sugar/m4sugar.m4 (m4_defn, m4_dumpdef, m4_popdef)
2281
(m4_undefine, m4_combine): Use m4_map_args, rather than
2284
2008-10-28 Eric Blake <ebb9@byu.net>
2286
Override m4 1.4.x dumpdef, as it breaks autom4te.
2287
* lib/m4sugar/m4sugar.m4 (m4_dumpdef): New implementation.
2288
(m4_copy): Formatting touchup.
2289
* doc/autoconf.texi (Redefined M4 Macros) <m4_dumpdef>: Mention
2290
semantic differences as well as m4_dumpdefs.
2292
* tests/m4sugar.at (m4@&t@_dumpdef): New test.
2294
2008-10-28 Eric Blake <ebb9@byu.net>
2296
Allow m4sugar to be used without autom4te, such as in bison.
2297
* lib/m4sugar/m4sugar.m4 (m4_text_wrap, m4_qlen): Document that
2298
alternate escape sequences can be used.
2299
(m4_text_box): Likewise. Don't output quadrigraphs.
2300
(m4_qdelta): Delete unused macro.
2302
2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2304
Add m4_stack_foreach and m4_stack_foreach_lifo.
2305
* lib/m4sugar/m4sugar.m4 (_m4_stack_reverse): New from _m4_copy.
2306
(m4_stack_foreach, m4_stack_foreach_lifo): New.
2307
(m4_copy): Use m4_stack_foreach and m4_curry.
2308
(_m4_dumpdefs_down, _m4_dumpdefs_up): Remove.
2309
(m4_dumpdefs): Rewrite using m4_stack_foreach_lifo.
2310
* tests/m4sugar.at (m4_stack_foreach): New test.
2312
2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2314
use a shell function for AC_TYPE_INTx_T
2315
* lib/autoconf/types.m4 (_AC_TYPE_INT_BODY, _AC_TYPE_UNSIGNED_INT_BODY):
2317
(_AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT): Define and use a shell function.
2319
2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2321
* lib/autoconf/general.m4 (AC_CHECK_DECL): Fix AS_ESCAPE usage.
2322
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL,
2323
_AC_CHECK_HEADER_NEW): Likewise.
2324
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER): Likewise.
2326
2008-10-28 Paolo Bonzini <bonzini@gnu.org>
2328
* lib/autoconf/types.m4 (_AC_CHECK_MEMBER_BODY): New.
2329
(AC_CHECK_MEMBER): Define and use a shell function.
2331
2008-10-27 Eric Blake <ebb9@byu.net>
2333
Prefer m4_fatal over AC_FATAL.
2334
* lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF)
2335
(AC_CHECK_MEMBER): Use non-obsolete macro name.
2336
* lib/autoconf/fortran.m4 (_AC_LIST_MEMBER_IF): Likewise.
2337
* lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE, AC_SUBST):
2339
* lib/autoconf/lang.m4 (_AC_LANG_DISPATCH): Likewise.
2340
* lib/autoconf/status.m4 (_AC_CONFIG_DEPENDENCY_DEFAULT)
2341
(_AC_CONFIG_UNIQUE, _AC_CONFIG_REGISTER_DEST): Likewise.
2343
2008-10-27 Eric Blake <ebb9@byu.net>
2345
Avoid raw carriage return in scripts.
2346
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Generate CR
2347
via tr, rather than with literal byte.
2349
Reported by Steven R. Loomis; patch suggested by Thomas Dickey.
2351
2008-10-27 Eric Blake <ebb9@byu.net>
2354
* lib/autotest/general.m4 (at_func_arith): Delete; replace all
2355
clients with AS_VAR_ARITH instead.
2356
* lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE): Use new
2358
* lib/autoconf/programs.m4 (_AC_FEATURE_CHECK_LENGTH): Likewise.
2359
* tests/torture.at (Torturing config.status): Likewise.
2360
* tests/tools.at (autom4te --force): Likewise.
2363
* lib/m4sugar/m4sh.m4 (_AS_VAR_ARITH_PREPARE, _AS_VAR_ARITH_WORKS)
2364
(AS_VAR_ARITH): New macros.
2365
(_AS_PREPARE, AS_PREPARE): Emit preparation.
2366
* tests/m4sh.at (AS@&t@_VAR_ARITH): New test.
2367
* doc/autoconf.texi (Polymorphic Variables) <AS_VAR_ARITH>:
2369
(Limitations of Usual Tools) <expr>: Mention portability problem
2370
if first argument starts with -.
2371
(Shell Substitutions) <$((expression))>: Mention it.
2374
2008-10-27 Eric Blake <ebb9@byu.net>
2376
Use read, rather than `cat`, for safe one-line files.
2377
* lib/autotest/general.m4 (AT_CLEANUP): Avoid a fork, since it is
2378
known that the file has only one line and no \.
2379
* lib/autoconf/general.m4 (_AC_COMPUTE_INT_RUN): Likewise.
2381
2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2383
* lib/autoconf/general.m4 (_AC_COMPUTE_INT_COMPILE,
2384
_AC_COMPUTE_INT_RUN): Add IF-SUCCESS argument.
2385
(_AC_COMPUTE_INT_BODY): New.
2386
(AC_COMPUTE_INT): Define and use a shell function.
2388
2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2390
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW_BODY): Extract
2391
test body here. Move head comment of _AC_CHECK_TYPE_NEW here.
2392
(_AC_CHECK_TYPE_NEW): Define a shell function and call it.
2394
2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2396
* lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): New.
2397
(AC_CHECK_DECL): Use a shell function.
2399
2008-10-27 Paolo Bonzini <bonzini@gnu.org>
2401
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_OLD,
2402
_AC_CHECK_HEADER_NEW): Use a shell function.
2404
2008-10-25 Eric Blake <ebb9@byu.net>
2406
Track recent copyright assignments.
2409
2008-10-25 Paolo Bonzini <bonzini@gnu.org>
2410
and Eric Blake <ebb9@byu.net>
2412
Use a shell function for _AC_CHECK_HEADER_MONGREL.
2413
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL_BODY): New
2415
(_AC_CHECK_HEADER_MONGREL): Use a shell function.
2417
2008-10-25 Eric Blake <ebb9@byu.net>
2419
Simplify _AS_PREPARE handling of functions.
2420
* lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Factor...
2421
(_AS_REQUIRE_SHELL_FN): ...into new helper macro.
2422
(_AS_PREPARE): Temporarily redefine AS_REQUIRE_SHELL_FN to make
2424
(_AS_LINENO_PREPARE): Make more efficient.
2425
(_AS_MKDIR_P_PREPARE): Simplify use in _AS_PREPARE.
2426
(_AS_UNSET_PREPARE): Avoid blank newline.
2427
(AS_INIT): Emit as_func_unset alongside other functions.
2429
2008-10-25 Eric Blake <ebb9@byu.net>
2432
* doc/autoconf.texi (Common Shell Constructs) <AS_EXIT>: Document
2434
(Limitations of Builtins): Mention AS_EXIT.
2437
Use AS_EXIT in autoconf.as.
2438
* bin/autoconf.as: Consistently use AS_EXIT.
2440
2008-10-24 Eric Blake <ebb9@byu.net>
2442
Fix m4 underquoting in AC_PROG_INSTALL.
2443
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Produce accurate
2446
Speed up AC_CHECK_HEADER.
2447
* lib/autoconf/headers.m4 (AC_CHECK_HEADER): Factor out $@.
2449
2008-10-24 Paolo Bonzini <bonzini@gnu.org>
2450
and Eric Blake <ebb9@byu.net>
2452
Use a shell function for AC_CHECK_FUNC.
2453
* lib/autoconf/functions.m4 (_AC_CHECK_FUNC_BODY): New macro.
2454
(AC_CHECK_FUNC): Use a shell function.
2455
* lib/autoconf/c.m4 (AC_LANG_SOURCE(C)): Reduce number of forks.
2457
2008-10-24 Eric Blake <ebb9@byu.net>
2459
Work around fact that gnulib-tool doesn't use m4_copy.
2460
* lib/autoconf/general.m4 (AC_LIBOBJ, AC_LIBSOURCES): Defun, not
2461
define, so that an initial location is present, to account for
2462
fact that gnulib-tool pushes another AC_DEFUN'd macro on top.
2464
Make m4_defun_init more robust.
2465
* lib/m4sugar/m4sugar.m4 (m4_defun_init): Handle indirect macro
2466
names, and correct number of arguments.
2467
(m4_copy): Also set up location of the copy.
2468
(m4_defun): When copied, use current macro name, not original.
2469
* tests/m4sugar.at (m4@&t@_require: one-shot initialization):
2472
Optimize clients of AS_REQUIRE.
2473
* lib/m4sugar/m4sugar.m4 (m4_defun): Add undocumented third
2475
(m4_defun_init): New undocumented macro.
2476
* lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG, AS_MESSAGE, AS_BASENAME)
2477
(_AS_DIRNAME_EXPR, AS_DIRNAME, AS_ECHO, AS_ECHO_N, AS_TEST_X)
2478
(AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK, AS_VERSION_COMPARE)
2479
(AS_TR_SH, AS_TR_CPP, AS_VAR_APPEND, AS_VAR_PUSHDEF): Use it to
2480
simplify these macros once the one-shot initialization is
2482
* tests/m4sugar.at (m4@&t@_require: one-shot initialization): New
2486
* lib/m4sugar/m4sugar.m4 (m4_copy): Add second implementation for
2488
(_m4_copy): New macro, which preserves pushdef stacks.
2489
(_m4_defun_pro_outer): Bypass it, for speed.
2490
(m4_init): Bypass new implementation, since it breaks on m4_defn.
2491
* bin/autoupdate.in (handle_autoconf_macros): Likewise.
2492
* lib/autoconf/general.m4 (AC_PREREQ): Undefine before redefining,
2493
now that m4_copy checks this.
2494
* doc/autoconf.texi (Redefined M4 Macros) <m4_copy>: Document
2495
this, as well as m4_rename.
2496
* lib/autoconf/autoconf.m4 (m4_copy): Temporarily redefine when
2497
renaming builtins, since it breaks on m4_ifdef.
2499
* tests/m4sugar.at (m4@&t@_defn): Enhance test.
2501
2008-10-24 Eric Blake <ebb9@byu.net>
2503
AC_FUNC_GETGROUPS: Revert regression.
2504
* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Only set
2505
ac_cv_func_getgroups_works=no when it is not available.
2507
2008-10-23 Eric Blake <ebb9@byu.net>
2510
* lib/autoconf/fortran.m4: Consistently use tabs.
2512
2008-10-23 Chikama Masaki <masaki.chikama@gmail.com> (tiny change)
2514
For gfortran on sh, ignore -little.
2515
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Add -little to
2516
list of ignored arguments.
2519
2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
2521
Eliminate empty lines after AC_*_IFELSE.
2522
* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE,
2523
_AC_LINK_IFELSE, _AC_RUN_IFELSE): Add a dnl at end.
2525
2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
2527
Avoid a fork in _AC_RUN_LOG and _AC_RUN_LOG_STDERR
2528
* lib/autoconf/general.m4 (_AC_RUN_LOG, _AC_RUN_LOG_STDERR):
2529
Return a boolean status code based on $ac_status.
2531
2008-10-23 Paolo Bonzini <bonzinI@gnu.org>
2533
Ensure actions can look at conftest* files.
2534
* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY,
2535
_AC_COMPILE_IFELSE_BODY, _AC_LINK_IFELSE_BODY, _AC_RUN_IFELSE_BODY):
2536
Move rm commands, except IPA files and Apple debug symbols...
2537
(_AC_PREPROC_IFELSE, _AC_COMPILE_IFELSE, _AC_LINK_IFELSE,
2538
_AC_RUN_IFELSE): ...in here.
2539
* tests/compile.at: Add regression test.
2541
2008-10-23 Eric Blake <ebb9@byu.net>
2543
Remove excess dnl from m4sh.
2544
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_PREPARE)
2545
(_AS_SHELL_FN_WORK, _AS_SHELL_SANITIZE, AS_IF, _AS_ECHO_LOG)
2546
(AS_MESSAGE, AS_ERROR, AS_BASENAME, _AS_BASENAME_PREPARE)
2547
(_AS_DIRNAME_EXPR, AS_DIRNAME, _AS_DIRNAME_PREPARE, AS_ECHO)
2548
(AS_ECHO_N, AS_TEST_X, AS_EXECUTABLE_P, _AS_ME_PREPARE)
2549
(_AS_LINENO_PREPARE, AS_LN_S, AS_MKDIR_P, _AS_PATH_WALK)
2550
(AS_SET_CATFILE, AS_HELP_STRING, AS_TMPDIR, AS_VERSION_COMPARE)
2551
(_AS_TR_SH_PREPARE, AS_TR_SH, _AS_TR_CPP_PREPARE, AS_TR_CPP)
2552
(_AS_TR_PREPARE, AS_VAR_APPEND, AS_VAR_PUSHDEF)
2553
(AS_INIT_GENERATED): Use fewer dnl in m4sh macro bodies.
2555
2008-10-23 Paolo Bonzini <bonzini@gnu.org>
2556
and Eric Blake <ebb9@byu.net>
2558
Use a shell function for _AC_RUN_IFELSE.
2559
* lib/autoconf/general.m4 (_AC_RUN_IFELSE_BODY): New macro.
2560
(_AC_RUN_IFELSE): Use a shell function.
2561
(_AC_RUN_LOG): Avoid subshell for logging.
2563
2008-10-23 Eric Blake <ebb9@byu.net>
2565
Formatting tweak: balance () with m4sh case statements.
2566
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL)
2567
(_AS_SHELL_SANITIZE, _AS_ECHO_N_PREPARE, _AS_ECHO_PREPARE)
2568
(AS_SET_CATFILE, _AS_TEST_PREPARE): Add strategic shell comments.
2569
(_AS_CASE, _AS_CASE_DEFAULT, AS_CASE): Rearrange newlines, to
2570
allow output of strategic shell comments.
2571
(AS_VERSION_COMPARE): Use AS_CASE.
2572
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
2574
2008-10-22 Jim Meyering <meyering@redhat.com>
2576
AC_FUNC_GETGROUPS: always define $ac_cv_func_getgroups_works
2577
* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Always define
2578
the shell variable, $ac_cv_func_getgroups_works. Otherwise, if
2579
it is set to "yes" in the environment and configure is run on
2580
a system like mingw that lacks the getgroups function, it would
2581
mistakenly define HAVE_GETGROUPS. Reported by Simon Josefsson in
2582
<http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/15354>.
2584
2008-10-22 Paolo Bonzini <bonzini@gnu.org>
2585
and Eric Blake <ebb9@byu.net>
2587
Use a shell function for _AC_LINK_IFELSE.
2588
* lib/autoconf/general.m4 (_AC_LINK_IFELSE_BODY): New macro.
2589
(_AC_LINK_IFELSE): Use a shell function.
2591
2008-10-22 Eric Blake <ebb9@byu.net>
2593
Fix autoconf logging commands.
2594
* lib/autoconf/general.m4 (AC_MSG_RESULT_UNQUOTED, _AC_EVAL)
2595
(_AC_EVAL_STDERR, AC_RUN_LOG): Respect as_lineno.
2596
(_AC_DO_ECHO): Likewise, and use fewer dnl.
2597
(_AC_RUN_LOG_STDERR): Avoid subshell for logging.
2599
2008-10-22 Eric Blake <ebb9@byu.net>
2601
Fix testsuite failure.
2602
* tests/mktests.sh (ac_exclude_list): Don't generate test for
2603
AC_REQUIRE_SHELL_FN.
2605
2008-10-21 Eric Blake <ebb9@byu.net>
2607
Improve wording related to automake and autotest.
2608
* doc/autoconf.texi (Making testsuite Scripts): Clarify wording in
2609
relation to automake. Mention dependency on package.m4.
2610
Consolidate examples. Define AUTOM4TE.
2612
Reported by William Pursell.
2614
2008-10-21 Eric Blake <ebb9@byu.net>
2616
Allow AS_VAR_SET_IF in shell lists.
2617
* lib/m4sugar/m4sh.m4 (AS_VAR_SET_IF): Allow continuation of
2619
* lib/autoconf/general.m4 (AC_CACHE_VAL): Supply newline no longer
2620
provided by AS_VAR_SET_IF.
2621
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL): Adjust
2623
* lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2624
* tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
2626
Allow AS_VAR_IF in shell lists.
2627
* lib/m4sugar/m4sh.m4 (AS_VAR_IF): Allow continuation of line.
2628
* lib/autoconf/functions.m4 (AC_CHECK_FUNC): Adjust clients.
2629
* lib/autoconf/general.m4 (AC_CHECK_FILE, AC_CHECK_DECL):
2631
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_MONGREL)
2632
(_AC_CHECK_HEADER_NEW, _AC_CHECK_HEADER_OLD)
2633
(_AC_CHECK_HEADER_DIRENT): Likewise.
2634
* lib/autoconf/libs.m4 (AC_CHECK_LIB): Likewise.
2635
* lib/autoconf/types.m4 (_AC_CHECK_TYPE_NEW, AC_CHECK_MEMBER):
2637
* tests/m4sh.at (AS@&t@_VAR basics): Enhance test.
2639
Allow AS_CASE in shell lists.
2640
* lib/m4sugar/m4sh.m4 (AS_CASE): Always execute test, in case of
2641
side effects. Allow continuation of script on same line as esac.
2642
* lib/autoconf/c.m4 (AC_PROG_CC_STDC): Adjust client.
2643
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Enhance test.
2644
* NEWS: Document the subtle change.
2646
Allow AS_IF in shell lists.
2647
* lib/m4sugar/m4sh.m4 (AS_IF): Always execute test, in case of
2648
side effects. Allow continuation of script on same line as fi.
2649
(_AS_DETECT_BETTER_SHELL): Adjust clients.
2650
(AS_VAR_IF, AS_VAR_SET_IF): For now, supply newline no longer
2652
* lib/autoconf/c.m4 (_AC_PROG_PREPROC_WORKS_IFELSE): Likewise.
2653
* lib/autoconf/general.m4 (_AC_ENABLE_IF): Likewise.
2654
(AC_EGREP_CPP, _AC_RUN_IFELSE): Adjust client.
2655
* lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2656
* doc/autoconf.texi (Common Shell Constructs) <AS_IF>: Fix typo.
2657
(Polymorphic Variables): Move mention of dnl to the only two
2658
AS_VAR functions that need it.
2660
2008-10-21 Paolo Bonzini <bonzini@gnu.org>
2661
and Eric Blake <ebb9@byu.net>
2663
Use a shell function for _AC_COMPILE_IFELSE.
2664
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY): New macro.
2665
(_AC_COMPILE_IFELSE): Use a shell function.
2667
2008-10-21 Eric Blake <ebb9@byu.net>
2670
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS_ONCE): Use new macro.
2671
* lib/autoconf/general.m4 (_AC_INIT_PREPARE)
2672
(_AC_LIBOBJS_NORMALIZE): Likewise.
2673
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Likewise.
2674
* lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS)
2675
(_AC_OUTPUT_CONFIG_STATUS, _AC_OUTPUT_MAIN_LOOP): Likewise.
2676
* lib/autotest/general.m4 (AT_INIT): Likewise.
2679
* lib/m4sugar/m4sh.m4 (_AS_VAR_APPEND_PREPARE)
2680
(_AS_VAR_APPEND_WORKS, AS_VAR_APPEND): New macros.
2681
(AS_PREPARE, _AS_PREPARE): Emit preparation.
2682
* tests/m4sh.at (AS@&t@_VAR_APPEND): New test.
2683
* doc/autoconf.texi (Polymorphic Variables) <AS_VAR_APPEND>:
2685
<AS_VAR_SET>: Mention ramification of `""` rules.
2686
* NEWS: Mention new macro.
2688
2008-10-21 Paolo Bonzini <bonzini@gnu.org>
2689
and Eric Blake <ebb9@byu.net>
2691
Use a shell function for _AC_PREPROC_IFELSE.
2692
* lib/autoconf/general.m4 (_AC_PREPROC_IFELSE_BODY): New macro.
2693
(_AC_PREPROC_IFELSE): Use a shell function.
2694
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Factor for faster execution.
2695
(AS_REQUIRE_SHELL_FN): Bypass AS_REQUIRE if function has already
2698
2008-10-21 Eric Blake <ebb9@byu.net>
2700
Add banners to generated files.
2701
* lib/m4sugar/m4sh.m4 (_AS_SHELL_SANITIZE): Use m4_text_box for
2703
(AS_INIT): Add new banners at strategic points.
2704
* lib/autoconf/general.m4 (AC_INIT): Alter banner location, and
2705
make consistent with other banners.
2706
* lib/autotest/general.m4 (AT_INIT): Make banners consistent.
2708
2008-10-20 Paolo Bonzini <bonzini@gnu.org>
2710
Add AC_REQUIRE_SHELL_FN and the SHELL_FN diversion.
2711
* lib/autoconf/general.m4 (AC_REQUIRE_SHELL_FN): New.
2712
(m4_divert(SHELL_FN)): New.
2714
2008-10-20 Eric Blake <ebb9@byu.net>
2716
Avoid unportable use of echo in testsuite.
2717
* tests/m4sh.at (AS@&t@_VAR basics): Use AS_ECHO, since string
2720
2008-10-18 Paolo Bonzini <bonzini@gnu.org>
2722
Make sure that nested AS_REQUIRE do not lose the desired diversion.
2723
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Expand _m4_divert_desired before
2724
passing it to m4_divert_require, so that its content is not used
2726
* tests/m4sh.at (Nested AS_REQUIRE): New testcase.
2728
2008-10-18 Eric Blake <ebb9@byu.net>
2730
Document bugs in { } handling.
2731
* doc/autoconf.texi (Limitations of Builtins): Mention bug on
2734
Fix some testsuite failures introduced two days ago.
2735
* tests/m4sh.at (Nested AS@&t@_REQUIRE_SHELL_FN)
2736
(AS@&t@_REQUIRE_SHELL_FN and m4@&t@_require): Adjust to changed
2738
Reported by Ralf Wildenhues.
2740
2008-10-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2742
Show how to extract single substitutions from config.status.
2743
* doc/autoconf.texi (config.status Invocation): Show example
2746
2008-10-17 Eric Blake <ebb9@byu.net>
2749
* lib/m4sugar/m4sugar.m4 (m4_curry, _m4_curry): New macros.
2750
* tests/m4sugar.at (m4@&t@_map_args): Rename...
2751
(m4@&t@_map_args and m4@&t@_curry): ...and add currying tests.
2752
* doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
2753
currying as a way to add parameters.
2754
(Evaluation Macros) <m4_curry>: Document the new macro.
2757
Improve suggested test filtering.
2758
* lib/m4sugar/m4sh.m4 (_AS_DETECT_SUGGESTED_PRUNE): New macro,
2760
(_AS_DETECT_BETTER_SHELL): ...here, to use faster API. No need to
2761
check for an empty required set.
2764
* lib/m4sugar/m4sugar.m4 (m4_set_foreach): New macro.
2765
* tests/m4sugar.at (m4@&t@_set): Enhance test.
2766
* doc/autoconf.texi (Set manipulation Macros) <m4_set_map>:
2770
Document m4_map_args.
2771
* lib/m4sugar/m4sugar.m4 (m4_transform, m4_transform_pair):
2773
(m4_map_args, m4_map_args_pair): ...to these names, and document.
2774
(m4_version_unletter): Use the interface.
2775
* lib/m4sugar/foreach.m4 (m4_map_args, m4_map_args_pair)
2776
(_m4_map_args_, _m4_map_args_pair_, _m4_map_args_pair_end):
2777
Perform same renames.
2778
* lib/m4sugar/m4sh.m4 (AS_CASE, AS_IF): Adjust callers.
2779
* tests/m4sugar.at (m4@&t@_map_args): New test.
2780
(recursion): Adjust caller.
2781
* tests/m4sh.at (AS@&t@_IF and AS@&t@_CASE): Likewise.
2782
* doc/autoconf.texi (Looping constructs) <m4_map_args>: Document
2784
* NEWS: Mention the new macros.
2786
2008-10-17 Eric Blake <ebb9@byu.net>
2788
Reduce vertical whitespace in configure.
2789
* lib/autoconf/general.m4 (AC_INIT): Silence newline output during
2790
m4 side effect initializations.
2791
* lib/m4sugar/m4sh.m4 (AS_PREPARE): Likewise.
2793
2008-10-17 Eric Blake <ebb9@byu.net>
2795
Document AS_VAR interfaces.
2796
* doc/autoconf.texi (Programming in M4sh): M4sh is now prime-time.
2797
(Polymorphic Variables): New node.
2798
* NEWS: Update accordingly.
2800
Test AS_VAR interfaces.
2801
* tests/m4sh.at (AS@&t@_VAR): New test.
2802
* lib/m4sugar/m4sh.m4 (AS_VAR_PUSHDEF): Force expansion of
2803
_AS_TR_SH_PREPARE at top level, rather than argument collection.
2804
(AS_TR_SH): Support command substitution.
2807
* lib/m4sugar/m4sh.m4 (AS_VAR_COPY): New macro.
2808
(AS_VAR_IF): Use it, instead of the broken AS_VAR_GET.
2809
* lib/autoconf/general.m4 (AC_CACHE_CHECK): Likewise.
2810
* lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise.
2811
* lib/autotest/general.m4 (_AT_FINISH): Likewise.
2813
Sort AS_VAR_* interfaces.
2814
* lib/m4sugar/m4sh.m4 (AS_VAR_GET): Reduce output to one line.
2815
(AS_VAR_TEST_SET, AS_VAR_SET, AS_VAR_SET_IF, AS_VAR_POPDEF): Sort,
2818
2008-10-16 Eric Blake <ebb9@byu.net>
2820
Allow comments before functions emitted by m4sh.
2821
* lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Add comment
2822
argument. Supply closing comment, to ease readability.
2823
(_AS_MKDIR_P_PREPARE): Adjust caller.
2824
(_AS_UNSET_PREPARE): Add comment.
2826
Add AS_FUNCTION_DESCRIBE.
2827
* lib/m4sugar/m4sh.m4 (AS_FUNCTION_DESCRIBE): New macro.
2828
* lib/autotest/general.m4 (AT_INIT): Use it.
2830
2008-10-16 Eric Blake <ebb9@byu.net>
2832
Speed up m4_qlen with caching.
2833
* lib/m4sugar/m4sugar.m4 (_m4_qlen): Renamed from old m4_qlen.
2834
(m4_qlen): Cache results for speed.
2836
2008-10-16 Paolo Bonzini <bonzini@gnu.org>
2838
Add a testcase using more then one language.
2839
* tests/compile.at (Multiple languages): New test.
2841
2008-10-16 Paolo Bonzini <bonzini@gnu.org>
2843
Fix Libtool's config.lt test.
2844
* lib/m4sugar/m4sh.m4 (_AS_PREPARE): Disable AS_REQUIRE while
2847
2008-10-15 Eric Blake <ebb9@byu.net>
2849
Break circular require chain in _AS_LINENO_PREPARE.
2850
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Ensure that logging is
2851
disabled when reporting LINENO failure, since logging requires
2853
* doc/autoconf.texi (Initialization Macros): Recommend m4_pushdef,
2854
not m4_rename, since the latter is undocumented.
2855
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Avoid
2856
m4_rename, as it does not yet handle pushdef stacks.
2857
Reported by Ralf Wildenhues.
2859
2008-10-15 Eric Blake <ebb9@byu.net>
2861
Cleanups to previous patches.
2862
* doc/autoconf.texi (Portable Shell): Minor edits.
2863
(Limitations of Builtins): Touch up wording.
2864
* lib/m4sugar/m4sh.m4 (AS_LINENO_PUSH): Nuke trailing whitespace.
2865
(_AS_SHELL_SANITIZE): Wrap comments less than 80 columns.
2867
2008-10-15 Paolo Bonzini <bonzini@gnu.org>
2869
Updates to shell portability documentation.
2870
* doc/autoconf.texi: Updates all references to "Portable Shell" and
2871
"Limitations of Builtins" to use three-argument commands.
2872
(Programming in M4sh): Document AS_ECHO, AS_ECHO_N, AS_UNSET.
2873
(Portable Shell): Move here discussion about "Where is the POSIX
2874
shell?" Mention that M4sh provides a SVR2 shell and takes care
2875
of unsetting variables if necessary. Talk about M4sh and not only
2876
Autoconf-generated scripts.
2877
(Special Shell Variables): Talk about M4sh and not only
2878
Autoconf-generated scripts. Don't talk about things that Autoconf
2879
does not do. Mention problems of $LINENO with shell functions.
2880
(Limitations of Builtins). Mention AS_ECHO and AS_ECHO_N. Move
2881
discussion of eval bugs before discussion on proper use of eval.
2882
Mention AS_IF. Reword why not to use "shift N". Mention "foo=;
2883
unset foo" trick. Include M4sh code that unsets MAIL for Bash 2.01.
2884
* NEWS: Update list of documented M4sh macros.
2886
2008-10-15 Paolo Bonzini <bonzini@gnu.org>
2888
Assume a (possibly buggy) `unset' is present after a
2889
`better shell' was found.
2890
* lib/autoconf/general.m4 (_AC_CACHE_DUMP): Use AS_UNSET.
2891
* lib/autoconf/programs.m4 (AC_PROG_SED): Use AS_UNSET.
2892
* lib/m4sugar/m4sh.m4 (_AS_UNSET_PREPARE): Provide $as_unset as an
2893
alias for AS_UNSET, for backwards compatibility.
2894
(_AS_DETECT_BETTER_SHELL): Set BASH_ENV and ENV to /dev/null in case
2895
the shell does not support unset.
2896
(_AS_SHELL_SANITIZE): Work around Bash 2.01 bugs. Unset BASH_ENV.
2897
(AS_INIT, _AS_PREPARE, AS_PREPARE): Call it.
2898
(AS_UNSET): Assume it is there but it might fail if the variable is
2899
not set. Use it throughout instead of $as_unset.
2901
2008-10-15 Paolo Bonzini <bonzini@gnu.org>
2903
Turn AS_SHELL_SANITIZE into a for-Libtool-only wrapper.
2904
* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED): Remove
2905
m4_require of _AS_DETECT_BETTER_SHELL.
2906
(_AS_CLEANUP): Add it here.
2907
(_AS_DETECT_BETTER_SHELL): Just expand the test instead of appending it
2909
(_AS_SHELL_SANITIZE): New name of the old AS_SHELL_SANITIZE macro.
2910
(AS_SHELL_SANITIZE): New macro hacking around Libtool misuse.
2911
(AS_PREPARE): Use _AS_SHELL_SANITIZE.
2912
(AS_INIT): Add m4_provide of itself.
2914
2008-10-15 Paolo Bonzini <bonzini@gnu.org>
2916
Use "test x$foo = xyes" to avoid upsetting Libtool's sh.test.
2917
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL, _AS_SHELL_FN_WORK): Use
2918
"test x$foo = xyes".
2920
2008-10-15 Paolo Bonzini <bonzini@gnu.org>
2922
Trim down the size of the better-shell test.
2923
* lib/m4sugar/m4sh.at (_AT_DETECT_BETTER_SHELL): Store the common
2924
snippets into shell variables.
2927
2008-10-15 Paolo Bonzini <bonzini@gnu.org>
2929
Support a stack of LINENO values for AS_MESSAGE.
2930
* lib/m4sugar/m4sh.m4 (_AS_ECHO_LOG): If defined, use $as_lineno as
2931
the line number emitted to the log file.
2932
(AS_LINENO_PUSH, AS_LINENO_POP): New.
2933
* tests/m4sh.at (LINENO Stack): New test.
2935
2008-10-14 Eric Blake <ebb9@byu.net>
2937
Correct previous patch.
2938
* doc/autoconf.texi (Shell Functions): Bash obeys Posix, after
2941
Document shell function environment pitfall.
2942
* doc/autoconf.texi (Shell Functions): Document bugs in bash,
2945
2008-10-14 Paolo Bonzini <bonzini@gnu.org>
2947
Use m4_require to implement AS_REQUIRE.
2948
* lib/m4sugar/m4sugar.m4 (_m4_require_call): Accept a third argument.
2949
(m4_require): Pass it.
2950
(m4_divert_require): New.
2951
* lib/m4sugar/m4sh.m4 (AS_REQUIRE): Rewrite using m4_divert_require.
2952
Remove comment about differences with m4_require.
2953
* tests/m4sh.at (AS_REQUIRE_SHELL_FN and m4_require): Update to test
2954
the expected behavior.
2955
(Nested AS_REQUIRE_SHELL_FN): New test.
2957
2008-10-13 Paolo Bonzini <bonzini@gnu.org>
2959
Test AS_LINENO_PREPARE.
2960
* tests/m4sh.at: Use documented AS_LINENO_PREPARE.
2962
2008-10-13 Paolo Bonzini <bonzini@gnu.org>
2965
* tests/m4sh.at (as_me): New test.
2967
2008-10-13 Paolo Bonzini <bonzini@gnu.org>
2969
Add and document AS_INIT_GENERATED.
2970
* lib/m4sugar/m4sh.m4 (AS_INIT_GENERATED): New.
2971
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): Use it.
2972
* doc/autoconf.texi (Initialization macros): Document it.
2974
2008-10-13 Eric Blake <ebb9@byu.net>
2976
Use consistent shell function style.
2977
* lib/m4sugar/m4sh.m4 (_AS_PREPARE, AS_REQUIRE_SHELL_FN)
2978
(_AS_SHELL_FN_WORK): Imitate GNU Coding Standards for C
2981
2008-10-13 Paolo Bonzini <bonzini@gnu.org>
2983
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Place names of
2984
contributors under m4 rather than shell comments.
2986
2008-10-10 Paolo Bonzini <bonzini@gnu.org>
2988
* lib/m4sugar/m4sh.m4 (AS_ME_PREPARE, AS_LINENO_PREPARE): New.
2989
* doc/autoconf.texi (Initialization macros): Document them.
2990
(Portable Shell): Refer to AS_LINENO_PREPARE.
2991
* NEWS: Mention them.
2993
* bin/autoconf.as: Invoke AS_ME_PREPARE.
2994
* lib/autotest/general.m4: Likewise.
2996
2008-10-10 Paolo Bonzini <bonzini@gnu.org>
2998
* doc/autoconf.texi (Programming in M4sh): Make its own chapter.
3000
2008-10-10 Eric Blake <ebb9@byu.net>
3002
Fix _AS_MKDIR_P usage.
3003
* lib/m4sugar/m4sh.m4 (_AS_MKDIR_P): Correct documentation to
3004
match implementation.
3005
(_AS_PREPARE, _AS_MKDIR_P_PREPARE): Adjust callers.
3006
* doc/autoconf.texi (Programming in M4sh) <AS_MKDIR_P>: Tweak
3007
wording to better match behavior.
3009
2008-10-10 Paolo Bonzini <bonzini@gnu.org>
3011
* doc/autoconf.texi: Be less wary of shell functions.
3012
* NEWS: Document the increased use of shell functions.
3014
2008-10-10 Paolo Bonzini <bonzini@gnu.org>
3016
* m4sugar/m4sh.m4 (_AS_MKDIR_P): New, from AS_MKDIR_P. Adjust
3017
meaning of as_mkdir_p to be `false' or a full `mkdir -p' command.
3018
(AS_MKDIR_P): Just dispatch to as_func_mkdir_p.
3019
(_AS_PREPARE): Define shell functions.
3020
(_AS_MKDIR_P_PREPARE): Set as_mkdir_p according to the above change.
3021
Define shell functions.
3023
2008-10-09 Eric Blake <ebb9@byu.net>
3025
Only prepare $as_me if it will be used.
3026
* lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Avoid unconditional
3028
(_AS_ECHO_LOG): Depend on $LINENO preparation.
3029
(AS_MESSAGE): Depend on $as_me preparation.
3030
(AS_TMPDIR): Use AS_ERROR, rather than a hand-rolled copy.
3032
2008-10-09 Paolo Bonzini <bonzini@gnu.org>
3034
* m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Delay setting as_me
3035
until the M4SH-INIT diversion using _AS_ME_PREPARE.
3036
(_AS_PREPARE): Invoke _AS_EXPR_PREPARE before _AS_BASENAME_PREPARE
3037
and _AS_DIRNAME_PREPARE, and _AS_BASENAME_PREPARE and _AS_ME_PREPARE
3038
before _AS_LINENO_PREPARE.
3039
(AS_PREPARE): Include all the AS_REQUIREs manually.
3040
(_AS_ME_PREPARE): New.
3041
(_AS_LINENO_PREPARE): Use m4_defun.
3043
2008-10-09 Paolo Bonzini <bonzini@gnu.org>
3045
* m4sugar/m4sh.m4 (_AS_BASENAME_EXPR, _AS_DIRNAME_EXPR): Do not
3046
require _AS_EXPR_PREPARE.
3047
(_AS_BASENAME_PREPARE, _AS_DIRNAME_PREPARE): Do it here.
3048
(_AS_PREPARE): Add _AS_BASENAME_PREPARE.
3050
2008-10-08 Eric Blake <ebb9@byu.net>
3053
* cfg.mk (cvs_executable_files, cvs_files): Rewrite...
3054
(fetch): ...into new target.
3055
(executable-update): Delete, now that it is unused.
3056
* maint.mk (update, local_updates, cvs_files, gnulib_repo)
3057
(wget-update, cvs-update): Likewise.
3058
* HACKING (Update the foreign files): Document new procedure.
3059
* GNUmakefile: Resync from upstream, via new 'make fetch'.
3060
* build-aux/config.guess: Likewise.
3062
2008-10-08 Paolo Bonzini <bonzini@gnu.org>
3064
* lib/m4sugar/m4sh.m4 (_AS_SHELL_FN_SPY): Remove.
3065
(AS_INIT): Do not call it.
3067
2008-10-08 Paolo Bonzini <bonzini@gnu.org>
3069
* lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Expand
3070
_AS_UNSET_PREPARE in M4SH-SANITIZE.
3072
2008-10-08 Eric Blake <ebb9@byu.net>
3074
Avoid repeating required shell tests in suggested set.
3075
* lib/m4sugar/m4sh.m4 (_AS_DETECT_REQUIRED, _AS_DETECT_SUGGESTED):
3076
Use m4_set, rather than m4_expand_once/m4_append.
3077
(_AS_DETECT_SUGGESTED): Adjust to new storage layout, and filter
3078
required tests out of suggested tests.
3079
Reported by Paolo Bonzini.
3081
2008-10-08 Paolo Bonzini <bonzini@gnu.org>
3083
Add m4sh keyword to all m4sh.at tests.
3084
* tests/m4sh.at: Add m4sh keyword to all tests. Fix comment
3087
2008-10-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3089
Document AS_VERSION_COMPARE.
3090
* doc/autoconf.texi (Programming in M4sh): Document
3094
Do not write to testsuite log fd before initialization.
3095
* lib/autotest/general.m4 (AS_MESSAGE_LOG_FD, AT_JOB_FIFO_FD):
3096
Define fds only when initializing the log fd so early error
3097
messages do not try to write to it.
3098
* tests/autotest.at (Startup error messages): New test.
3099
* NEWS: Document this 2.63 regression.
3101
2008-10-07 Eric Blake <ebb9@byu.net>
3103
Ensure _AS_CLEANUP is defined.
3104
* lib/m4sugar/m4sh.m4 (_AS_CLEANUP): Give initial definition.
3105
* tests/m4sh.at (AS@&t@_INIT cleanup): Expose the need for this.
3107
Improve m4sh maintainability.
3108
* lib/m4sugar/m4sh.m4: Sort macros for sanitizing the shell; no
3111
Fix m4 quoting in previous patch.
3112
* lib/m4sugar/m4sh.m4 (AS_REQUIRE_SHELL_FN): Determine diversion
3113
name prior to invoking AS_REQUIRE.
3114
Reported by Ralf Wildenhues.
3116
2008-09-18 Paolo Bonzini <bonzini@gnu.org>
3117
and Eric Blake <ebb9@byu.net>
3119
Add a separate diversion for shell functions.
3120
* lib/m4sugar/m4sh.m4 (M4SH-INIT-FN): New diversion.
3121
(AS_REQUIRE): Accept diversion parameter.
3122
(AS_REQUIRE_SHELL_FN): Use it.
3124
2008-10-06 Eric Blake <ebb9@byu.net>
3126
Add m4_default_quoted.
3127
* lib/m4sugar/m4sugar.m4 (m4_default_quoted): New macro.
3128
(m4_for, m4_expand_once, m4_text_wrap, m4_text_box): Use it.
3129
* doc/autoconf.texi (Conditional constructs): Document it.
3132
Fix build with case-insensitive make, again.
3133
* Makefile.am (pkgdata_DATA): Protect by MAKE_CASE_SENSITIVE.
3134
Reported via Keith Marshall, originally by newthinker in
3135
<http://thread.gmane.org/gmane.comp.gnu.mingw.user/27725>.
3137
2008-10-06 Bruno Haible <bruno@clisp.org>
3139
Warn about /usr/ucb on Solaris.
3140
* doc/install.texi (Particular Systems): Recommend putting
3141
/usr/ucb late in PATH, if at all.
3143
2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3145
Fix more testsuite hang corner cases.
3146
* lib/autotest/general.m4: Use the serial code path if no test
3148
* tests/autotest.at (parallel test execution): Test -j and -jN
3149
with `-k notmatched'.
3151
2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3153
Fix hang with `testsuite -k notmatched'.
3154
* lib/autotest/general.m4: Do not reset $at_jobs if it is equal
3155
to one. Fixes hang with `-k notmatched'.
3157
2008-10-02 Eric Blake <ebb9@byu.net>
3159
Document more binary file portability traps.
3160
* doc/autoconf.texi (Limitations of Usual Tools) <sed>: Remind
3161
reader that NUL and sed don't always mix.
3162
<tr>: Mention Solaris /usr/ucb/tr bug with \0.
3164
2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3166
Implement parallel Autotest test execution: testsuite --jobs.
3167
* lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
3168
(AT_INIT): <at_jobs>: New variable.
3169
Accept -j, -jN, --jobs[=N], document them in --help output.
3170
Implement parallel driver loop using a FIFO, enabled with --jobs
3171
and if mkfifo works; otherwise, fall back to sequential loop.
3172
(AT_SETUP): Store, do not output summary progress line if
3174
* tests/autotest.at (parallel test execution, parallel truth)
3175
(parallel fallacy, parallel skip): New tests.
3176
* doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
3177
the mkfifo requirement, and that --errexit may cause concurrent
3181
2008-09-20 Eric Blake <ebb9@byu.net>
3183
Fix sample isinf definition.
3184
* doc/autoconf.texi (Function Portability) <isinf>: Filter out NaN
3187
Reported by David Cournapeau.
3189
2008-09-16 Eric Blake <ebb9@byu.net>
3191
Fix Erlang regression, introduced 2006-11-17.
3192
* lib/autoconf/erlang.m4 (AC_LANG(Erlang)): Avoid M4 comment
3193
caused by underquoting.
3194
* NEWS: Mention this fix.
3196
Reported by BJ Terry.
3198
2008-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3200
* lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
3202
Mention Solaris sh ':' redirection bug.
3203
* doc/autoconf.texi (File Descriptors): Redirecting ':'
3204
in a loop causes bogus optimization with Solaris sh.
3206
2008-09-10 Eric Blake <ebb9@byu.net>
3208
Avoid testsuite bug when autom4te cache is disabled by user.
3209
* tests/tools.at (autoconf: forbidden tokens, basic): Enable
3210
cache, even if user normally disabled it.
3211
Reported by Bruno Haible.
3213
Avoid testsuite bug in presence of verbose config.site.
3214
* tests/base.at (Input/Output): Nullify config.site during test.
3215
Reported by Bob Friesenhahn.
1
3217
2008-09-09 Eric Blake <ebb9@byu.net>
3
3219
Release Version 2.63.