| 1 |
2026-03-20 Zack Weinberg <[email protected]> |
| 2 |
|
| 3 |
Release version 2.73. |
| 4 |
|
| 5 |
2026-03-20 Zack Weinberg <[email protected]> |
| 6 |
|
| 7 |
autoreconf tests: make “running: something” regexes more generous |
| 8 |
Under some conditions you get “running: /absolute/path/bin/autoconf” |
| 9 |
instead of just “running: autoconf” and the checks weren’t expecting |
| 10 |
this. |
| 11 |
|
| 12 |
Caught by ‘make distcheck’. |
| 13 |
|
| 14 |
2026-03-20 Zack Weinberg <[email protected]> |
| 15 |
|
| 16 |
make fetch |
| 17 |
gnulib still hasn’t merged the maint.mk fixes in commits 7da7ecd0 |
| 18 |
and 7c62a0cd so those were put back by hand afterward. |
| 19 |
|
| 20 |
.gitignore: ignore lib/autoconf_version.m4, not lib/version.m4. |
| 21 |
This should have been part of commit 9a6c58cf but I always use |
| 22 |
a separate build directory so I didn't notice. |
| 23 |
|
| 24 |
2026-03-18 Zack Weinberg <[email protected]> |
| 25 |
|
| 26 |
Allow --enable/disable-year2038 to be set in environment. |
| 27 |
In both AC_SYS_YEAR2038 and AC_SYS_YEAR2038_RECOMMENDED, only set |
| 28 |
the shell variable ‘enable_year2038’ if it doesn’t already have a |
| 29 |
value, thus allowing it to be passed down from the environment. |
| 30 |
|
| 31 |
Fixes <https://savannah.gnu.org/support/?111394>. |
| 32 |
|
| 33 |
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_ENABLE): When setting |
| 34 |
the default value of enable_year2038, do not override a value that |
| 35 |
was set in the environment. |
| 36 |
* tests/semantics.at: Add tests for setting enable_year2038 in the |
| 37 |
environment and in config.site. |
| 38 |
|
| 39 |
2026-03-18 Bruno Haible <[email protected]> |
| 40 |
|
| 41 |
autoreconf: Fix recognition of autopoint versions 0.26 or newer. |
| 42 |
* bin/autoreconf.in (autoreconf_current_directory): In the regex that |
| 43 |
extracts the version number components from `autopoint --version`, mark |
| 44 |
the third component as optional. |
| 45 |
|
| 46 |
2026-03-17 Zack Weinberg <[email protected]> |
| 47 |
|
| 48 |
update NEWS for bug fixes since the beta release |
| 49 |
|
| 50 |
2026-03-17 Zack Weinberg <[email protected]> |
| 51 |
|
| 52 |
autoreconf: add --exclude option |
| 53 |
‘autoreconf --exclude COMMAND’ will not run COMMAND even if it appears |
| 54 |
to be necessary. The option can be given several times, or passed a |
| 55 |
comma-separated list, to disable several such commands. This may be |
| 56 |
useful when autoreconf’s heuristics are incorrect (e.g. various |
| 57 |
reported problems with gtkdocize and autopoint in the past few |
| 58 |
years), or when a tool is unavailable or undesirable. |
| 59 |
|
| 60 |
(For future consideration: also add the inverse option, run a command |
| 61 |
even if it doesn’t seem to be necessary.) |
| 62 |
|
| 63 |
* bin/autoreconf.in (may_run_command): New function. |
| 64 |
(%C, %cmd_excluded): New globals. |
| 65 |
($autoconf, $autoheader, $autom4te, $automake, $aclocal, $libtoolize) |
| 66 |
($intltoolize, $gtkdocize, $autopoint, $make): Fold into %C. |
| 67 |
($run_make): Now local to parse_args. |
| 68 |
(parse_args): Recognize -x, --exclude option. Merge all of the |
| 69 |
options and environment variable settings that can cause us not to |
| 70 |
run various commands into %cmd_excluded. |
| 71 |
(autoreconf_current_directory): Call may_run_command before running |
| 72 |
each command. Revise autopoint version detection for clarity. |
| 73 |
|
| 74 |
* doc/autoconf.texi: Document new -x, --exclude option to autoreconf. |
| 75 |
Clarify that the COMMANDNAME environment variables can have the same |
| 76 |
effect. |
| 77 |
|
| 78 |
* tests/statesave.m4 (AC_STATE_SAVE): Split into its component tasks: |
| 79 |
AC_STATE_SAVE_DIR and AC_STATE_SAVE_ENV. AC_STATE_SAVE by itself |
| 80 |
still does both tasks. |
| 81 |
|
| 82 |
* tests/local.at: Log availability and version numbers for libtoolize, |
| 83 |
gtkdocize, intltoolize, and autopoint. Detect whether autopoint |
| 84 |
supports AM_GNU_GETTEXT without AM_GNU_GETTEXT_(REQUIRE_)VERSION. |
| 85 |
(AT_REQUIRE_LIBTOOL, AT_REQUIRE_AUTOPOINT, AT_REQUIRE_INTLTOOLIZE) |
| 86 |
(AT_REQUIRE_GTKDOCIZE): New macros. |
| 87 |
(AT_STATE_SAVE, AT_STATE_SAVE_DIR, AT_STATE_SAVE_ENV): Import from |
| 88 |
statesave.m4. |
| 89 |
|
| 90 |
* tests/torture.at: Add several new tests of autoreconf invoking |
| 91 |
third-party tools, and of the new --exclude option. |
| 92 |
|
| 93 |
2026-03-09 Zack Weinberg <[email protected]> |
| 94 |
|
| 95 |
autoconf: error out if AC_OUTPUT receives more than three arguments |
| 96 |
Modified versions of Autoconf exist that expect more than three |
| 97 |
arguments to AC_OUTPUT; attempting to regenerate a configure |
| 98 |
script that uses the extra arguments, with the unmodified |
| 99 |
Autoconf, is likely to produce a broken script. |
| 100 |
|
| 101 |
The feature enabled by a fourth argument, in the case I know about |
| 102 |
(<https://invisible-island.net/autoconf/autoconf.html> - look for |
| 103 |
“simplify the way we generate the config.h file”) is potentially |
| 104 |
worth folding into our version of Autoconf, but we would need to |
| 105 |
do it with a new AC_CONFIG_something macro, instead of reverting |
| 106 |
to having AC_OUTPUT take arguments. |
| 107 |
|
| 108 |
* lib/autoconf/status.m4 (AC_OUTPUT): Error out if more than three |
| 109 |
arguments are supplied. |
| 110 |
* tests/torture.at: Add tests of AC_OUTPUT with one, three, and four |
| 111 |
arguments. Two arguments is treated as a special case of three |
| 112 |
arguments, so it doesn’t need its own test. |
| 113 |
|
| 114 |
2026-03-05 Paul Eggert <[email protected]> |
| 115 |
|
| 116 |
Pacify Emacs 30 in Elisp sources |
| 117 |
* lib/emacs/autoconf-mode.el: |
| 118 |
* lib/emacs/autotest-mode.el: |
| 119 |
Mark these as using lexical binding as they work just fine with that, |
| 120 |
and if you compile them without the mark, Emacs 30 complains |
| 121 |
“Warning: file has no `lexical-binding' directive on its first line”. |
| 122 |
|
| 123 |
2026-02-24 Zack Weinberg <[email protected]> |
| 124 |
|
| 125 |
autoheader: preserve hand-written template files |
| 126 |
Consistent with the existing behavior of autoreconf regarding |
| 127 |
hand-maintained aclocal.m4, make both autoheader and autoreconf |
| 128 |
check for the /* Generated from configure.ac by autoheader */ |
| 129 |
line that autoheader emits at the beginning of its generated |
| 130 |
configuration header templates. If the file exists but the |
| 131 |
marker line is not there, they will now leave the file alone |
| 132 |
unless given the new command line option --replace-handwritten. |
| 133 |
|
| 134 |
Fixes <https://savannah.gnu.org/support/index.php?111388>. |
| 135 |
|
| 136 |
I’m looking for feedback regarding whether the new option should |
| 137 |
also cause autoreconf to clobber a hand-written aclocal.m4, or any |
| 138 |
other files that _could_ be generated but aren’t always. (aclocal.m4 |
| 139 |
in particular may need coordination with Automake, since the ‘aclocal’ |
| 140 |
tool belongs to them.) |
| 141 |
|
| 142 |
* bin/autoheader.in: Add option --replace-handwritten. If the |
| 143 |
primary template file already exists and doesn’t begin with a |
| 144 |
marker comment indicating it was generated by autoheader, don’t |
| 145 |
modify it unless --replace-handwritten was given. |
| 146 |
* bin/autoreconf.in: Similarly. |
| 147 |
* doc/autoconf.texi: Document new option for autoheader and |
| 148 |
autoreconf. |
| 149 |
* tests/tools.at: Test new behavior. |
| 150 |
|
| 151 |
2026-02-18 Zack Weinberg <[email protected]> |
| 152 |
|
| 153 |
Update documentation for building Autoconf from a Git checkout. |
| 154 |
* Clarify that you need a full Git clone, not a shallow clone, because |
| 155 |
the build scripts inspect the Git history. |
| 156 |
|
| 157 |
* Remove all references to CVS and the CVS mirror of the Git repo. |
| 158 |
pserver.git.sv.gnu.org doesn’t exist anymore, and I suspect building |
| 159 |
from a CVS-based working copy wouldn’t work anyway, for the same |
| 160 |
reason a shallow clone doesn’t work. |
| 161 |
|
| 162 |
* Add a note to the paragraph about copyright assignments for patches, |
| 163 |
explaining that that Signed-off-by: is useless to us. |
| 164 |
|
| 165 |
2026-02-09 Zack Weinberg <[email protected]> |
| 166 |
|
| 167 |
Go: do not clobber GOFLAGS in AC_PROG_GO (sr #111383) |
| 168 |
The AC_PROG_GO macro should honor the GOFLAGS set by the user at |
| 169 |
configure time. |
| 170 |
|
| 171 |
Fixes <https://savannah.gnu.org/support/?111382>. |
| 172 |
|
| 173 |
* lib/autoconf/go.m4: Do not clobber GOFLAGS in AC_PROG_GO. |
| 174 |
Simplify sequence of AC_CHECK_TOOL/AC_CHECK_PROGS operations; |
| 175 |
this macro does not have the backward compatibility constraints |
| 176 |
that AC_PROG_CC does. |
| 177 |
|
| 178 |
2026-02-09 Jose E. Marchesi <[email protected]> |
| 179 |
|
| 180 |
Algol68: do not clobber A68FLAGS in AC_PROG_A68 (sr #111382) |
| 181 |
The AC_PROG_A68 macro should honor the A68FLAGS set by the user at |
| 182 |
configure time. |
| 183 |
|
| 184 |
Fixes <https://savannah.gnu.org/support/?111382>. |
| 185 |
|
| 186 |
* lib/autoconf/a68.m4: Do not clobber A68FLAGS in AC_PROG_A68. |
| 187 |
Simplify sequence of AC_CHECK_TOOL/AC_CHECK_PROGS operations; |
| 188 |
this macro does not have the backward compatibility constraints |
| 189 |
that AC_PROG_CC does. |
| 190 |
|
| 191 |
2026-02-04 Zack Weinberg <[email protected]> |
| 192 |
|
| 193 |
AC_PROG_LEX: Be compatible with Solaris 10 lex’s handling of C++. |
| 194 |
Solaris 10 lex (Software Generation Utilities (SGU) Solaris-ELF (4.0)) |
| 195 |
provides its own declaration of yywrap. When the generated scanner is |
| 196 |
compiled as C++, that declaration will *not* be tagged with `extern "C"` |
| 197 |
unless the preprocessor macro __EXTERN_C__ is defined using -D. |
| 198 |
The %{ %} block of the .l file is too late. |
| 199 |
|
| 200 |
Our test .l file also declares yywrap, and it unconditionally tags it |
| 201 |
with `extern "C"` when compiling as C++. Thus, we need to define |
| 202 |
__EXTERN_C__ or we’ll get a spurious compile error with this |
| 203 |
implementation of lex. This macro should be harmless with other |
| 204 |
implementations. |
| 205 |
|
| 206 |
sr #111381 |
| 207 |
|
| 208 |
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Add -D__EXTERN_C__=1 |
| 209 |
to CPPFLAGS while compiling test programs, for improved compatibility |
| 210 |
with Solaris 10 lex. |
| 211 |
|
| 212 |
2026-02-04 Zack Weinberg <[email protected]> |
| 213 |
|
| 214 |
tests: AC_C_FLEXIBLE_ARRAY_MEMBER result can vary between C and C++. |
| 215 |
For example, the native C compiler for Solaris 10 (Sun C in, at least, |
| 216 |
the version 5.9 .. 5.15 range) supports C99 flexible array members, |
| 217 |
but the matching C++ compiler doesn’t. |
| 218 |
|
| 219 |
sr #111380 |
| 220 |
|
| 221 |
2026-02-03 Zack Weinberg <[email protected]> |
| 222 |
|
| 223 |
Autoconf 2.72.90 (beta test 1 for Autoconf 2.73). |
| 224 |
|
| 225 |
maint.mk: remove overquotation in ‘announcement’ rule |
| 226 |
If $(bootstrap-tools) *doesn’t* include “gnulib”, a nested shell |
| 227 |
command is supposed to expand to nothing, but instead it expands to |
| 228 |
an empty argument, causing announce-gen to barf. |
| 229 |
|
| 230 |
2026-02-03 Zack Weinberg <[email protected]> |
| 231 |
|
| 232 |
NEWS: Briefly mention a few more improvements. |
| 233 |
Specifically, this is meant to cover these commits: |
| 234 |
|
| 235 |
2b56e8c2 autoreconf: don’t fail if gtkdocize is unavailable (#110503) |
| 236 |
912567e9 autoreconf: require word boundaries when grepping for macros (#111271) |
| 237 |
4774e6bb autoreconf: Adapt to the on-disk situation after autopoint has run. |
| 238 |
f0d97fb5 autoreconf: Invoke autopoint in more situations. |
| 239 |
|
| 240 |
and |
| 241 |
|
| 242 |
9a6c58cf Rename version.m4 to autoconf_version.m4. |
| 243 |
|
| 244 |
2026-02-03 Zack Weinberg <[email protected]> |
| 245 |
|
| 246 |
fetch.pl: get GNU standards documents from gnulib |
| 247 |
Pulling these files from gnulib, instead of getting them directly |
| 248 |
from their official home, means that all the files fetched by fetch.pl |
| 249 |
come from Savannah Git repositories, which is particularly important |
| 250 |
right now as Savannah CVS repositories are currently inaccessible via |
| 251 |
the web, see |
| 252 |
https://lists.gnu.org/archive/html/savannah-hackers/2026-02/msg00024.html |
| 253 |
et seq. |
| 254 |
|
| 255 |
* fetch.pl (to_fetch): Get all gnustandards files from gnulib instead. |
| 256 |
(savannah_url): Remove special case for gnustandards. |
| 257 |
|
| 258 |
2026-02-03 Zack Weinberg <[email protected]> |
| 259 |
|
| 260 |
syntax-check: avoid unsigned_* false positive on maint.mk |
| 261 |
* maint.mk (sc_unsigned_char, sc_unsigned_short, sc_unsigned_int) |
| 262 |
(sc_unsigned_log): Add ‘exclude’ patterns so that these tests do |
| 263 |
not throw a false positive on their own commentary. |
| 264 |
|
| 265 |
autoconf.texi: typo fix |
| 266 |
‘the the’ -> ‘the’ in one place. Caught by ‘make syntax-check’. |
| 267 |
|
| 268 |
maint.mk: fix tab/space usage in release-prep script |
| 269 |
This makes the ‘makefile_TAB_only_indentation’ syntax check happy. |
| 270 |
|
| 271 |
cfg.mk: update old_NEWS_hash |
| 272 |
Commit c3705f11bc0f1796836cddacfcd97e9f7e243563 modified the copyright |
| 273 |
dates at the bottom of NEWS but did not update old_NEWS_hash. |
| 274 |
|
| 275 |
syntax-check: avoid fsf_postal false positive on maint.mk |
| 276 |
* maint.mk (sc_fsf_postal): Adjust ‘prohibit’ regex to not match itself. |
| 277 |
|
| 278 |
Update COPYING from https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
| 279 |
Our copy still mentioned the FSF’s old postal mail address. |
| 280 |
|
| 281 |
make fetch |
| 282 |
Right now, Savannah’s HTTP interface to CVS repositories (viewvc) is |
| 283 |
responding to all queries with a 429 Too Many Requests error code, |
| 284 |
so those files were updated manually. (The actual CVS server is |
| 285 |
still working fine.) |
| 286 |
|
| 287 |
2026-02-03 Bruno Haible <[email protected]> |
| 288 |
|
| 289 |
maint: Suggest to use the savannah tracker for bug reports. |
| 290 |
* bin/autoconf.in ($help): Mention the savannah tracker as first bug |
| 291 |
reporting option. |
| 292 |
* bin/autoheader.in ($help): Likewise. |
| 293 |
* bin/autom4te.in ($help): Likewise. |
| 294 |
* bin/autoreconf.in ($help): Likewise. |
| 295 |
* bin/autoscan.in ($help): Likewise. |
| 296 |
* bin/autoupdate.in ($help): Likewise. |
| 297 |
* bin/ifnames.in ($help): Likewise. |
| 298 |
|
| 299 |
2026-01-27 Paul Eggert <[email protected]> |
| 300 |
|
| 301 |
Mention strchr issues in NEWS |
| 302 |
* NEWS: Mention problems with strchr-like functions in C23. |
| 303 |
|
| 304 |
2026-01-27 Zack Weinberg <[email protected]> |
| 305 |
|
| 306 |
autoreconf: don’t fail if gtkdocize is unavailable (#110503) |
| 307 |
Since 2.70, autoreconf has run gtkdocize when it detects a use of the |
| 308 |
macro GTK_DOC_CHECK in the configure.ac. Some projects (e.g. per the |
| 309 |
bug report, gnutls and harfbuzz) were using a clever hack with |
| 310 |
m4_ifdef to allow people to build the project without having gtkdocize |
| 311 |
installed, if they didn’t care about building the documentation; the |
| 312 |
change to autoreconf broke this hack. |
| 313 |
|
| 314 |
Attempt to make the hack work again, by only running gtkdocize if that |
| 315 |
command is actually installed; autoreconf will not error out if the |
| 316 |
macro is detected but the command is unavailable, similar to the |
| 317 |
existing treatment of autopoint. |
| 318 |
|
| 319 |
Problem reported by Marvin Scholz. |
| 320 |
|
| 321 |
* bin/autoreconf.in (autoreconf_current_directory): Do not error out |
| 322 |
if gtkdocize is wanted but unavailable. |
| 323 |
|
| 324 |
2026-01-27 Zack Weinberg <[email protected]> |
| 325 |
|
| 326 |
autoreconf: require word boundaries when grepping for macros (#111271) |
| 327 |
autoreconf’s first pass over configure.ac is effectively a grep |
| 328 |
operation for a number of macros that almost always appear directly |
| 329 |
in that file, if they’re going to appear at all. All but one of the |
| 330 |
regular expressions made no attempt to check for word boundaries, and |
| 331 |
the one that did was doing it incorrectly (using ^ rather than \b), |
| 332 |
leading to issue #111271. |
| 333 |
|
| 334 |
Fix all the regexps to surround each identifier with \b…\b and not |
| 335 |
to use ^. |
| 336 |
|
| 337 |
Reported by Kip, originally as gettext bug #52424. |
| 338 |
|
| 339 |
* bin/autoreconf.in (autoreconf_current_directory): In the first pass, |
| 340 |
require each of the macros we look for to be a complete word. |
| 341 |
|
| 342 |
2026-01-27 Jan André Reuter <[email protected]> |
| 343 |
|
| 344 |
Ignore target feature flags in _AC_FC_LIBRARY_LDFLAGS (#111353) |
| 345 |
Ignore target specific feature flags passed via '-target-feature'. |
| 346 |
When encountered, ignore the flag passed after. These flags might |
| 347 |
contain a '-l', e.g. '-target-feature -lwp', causing non-existent |
| 348 |
libraries to be picked up, failing later checks, or the build of |
| 349 |
the application. |
| 350 |
|
| 351 |
This can e.g. be encountered when '-march=native' is passed to |
| 352 |
configure during a build with LLVM on Zen 4 machines. |
| 353 |
|
| 354 |
Reported by, and patch written by, Jan André Reuter <[email protected]>. |
| 355 |
|
| 356 |
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Skip arguments |
| 357 |
immediately following ‘-target-feature’. |
| 358 |
|
| 359 |
2026-01-27 Luke Mewburn <[email protected]> |
| 360 |
|
| 361 |
doc: cross-reference m4 manual for regex syntax (#111095) |
| 362 |
The documentation of the various M4sugar macros that take regex |
| 363 |
arguments did not explain GNU M4’s idiosyncratic regex syntax, which |
| 364 |
resembles POSIX basic regexes but is not actually the same, nor is it |
| 365 |
the same as Emacs regexes. Add cross-references to the GNU M4 manual |
| 366 |
to rectify this. |
| 367 |
|
| 368 |
Reported by Luke Mewburn <[email protected]>. |
| 369 |
Patch originally by Luke Mewburn, revised by Zack Weinberg. |
| 370 |
|
| 371 |
* doc/autoconf.texi: Add cross-references from the documentation of |
| 372 |
‘m4_bpatsubst’ and ‘m4_bregexp’ to the GNU M4 manual sections that |
| 373 |
explain ‘patsubst’ and ‘regexp’. Also add cross-references from |
| 374 |
‘m4_bmatch’ and ‘m4_bpatsubsts’ to ‘m4_bregexp’ and ‘m4_bpatsubst’ |
| 375 |
respectively. |
| 376 |
|
| 377 |
2026-01-27 Paul Eggert <[email protected]> |
| 378 |
|
| 379 |
Avoid trailing whitespace in config.h |
| 380 |
Problem (and earlier patch) reported by Collin Funk in: |
| 381 |
https://lists.gnu.org/archive/html/autoconf-patches/2025-10/msg00002.html |
| 382 |
* NEWS: Mention this. |
| 383 |
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): |
| 384 |
Omit trailing white space from C macro definitions. |
| 385 |
* tests/torture.at (No trailing white space in macro definitions): |
| 386 |
New test. |
| 387 |
|
| 388 |
2026-01-26 Zack Weinberg <[email protected]> |
| 389 |
|
| 390 |
Rename version.m4 to autoconf_version.m4. |
| 391 |
Many existing projects have their own version.m4, and in some cases |
| 392 |
having one is recommended by the Automake manual. As of 2.72, the |
| 393 |
name collision causes a spurious warning about including ‘version.m4’ |
| 394 |
multiple times, because the “has this been included before” machinery |
| 395 |
does not track full pathnames. |
| 396 |
|
| 397 |
A proper fix is more complicated than anyone has time to develop; |
| 398 |
let’s just rename our version.m4 to autoconf_version.m4, which should |
| 399 |
be sufficiently distinctive. |
| 400 |
|
| 401 |
Reported in <https://savannah.gnu.org/support/?111007>. |
| 402 |
|
| 403 |
* lib/version.in: Rename to lib/autoconf_version.in. |
| 404 |
* bootstrap, configure.ac, lib/freeze.mk, lib/local.mk, |
| 405 |
lib/m4sugar/m4sugar.m4: Change all uses of version.m4 to |
| 406 |
autoconf_version.m4, and all uses of version.in to |
| 407 |
autoconf_version.in. |
| 408 |
|
| 409 |
2026-01-26 Zack Weinberg <[email protected]> |
| 410 |
|
| 411 |
lib/autom4te.in: Update Autoreconf-preselections. |
| 412 |
It looks like the trace list in autoreconf proper was updated several |
| 413 |
times without keeping this in sync. |
| 414 |
|
| 415 |
2026-01-26 Bruno Haible <[email protected]> |
| 416 |
|
| 417 |
autoreconf: Adapt to the on-disk situation after autopoint has run. |
| 418 |
Reported in <https://savannah.gnu.org/support/?111273>. |
| 419 |
|
| 420 |
* bin/autoreconf.in (autoreconf_current_directory): After invoking autopoint, |
| 421 |
rerun aclocal. When doing so, pass extra options "-I m4" if the configure.ac |
| 422 |
does not specify a macro dir. |
| 423 |
|
| 424 |
2026-01-26 Bruno Haible <[email protected]> |
| 425 |
|
| 426 |
autoreconf: Invoke autopoint in more situations. |
| 427 |
Reported in <https://savannah.gnu.org/support/?111272>. |
| 428 |
|
| 429 |
* bin/autoreconf.in (autoreconf_current_directory): Invoke autopoint also when |
| 430 |
the package uses AM_GNU_GETTEXT (without AM_GNU_GETTEXT_VERSION), AM_PO_SUBDIRS, |
| 431 |
AM_ICONV, AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS, AC_LIB_LINKFLAGS_FROM_LIBS, |
| 432 |
or GUILE_FLAGS. |
| 433 |
|
| 434 |
2026-01-26 Zack Weinberg <[email protected]> |
| 435 |
|
| 436 |
Move more code out of shell traps into shell functions. |
| 437 |
Follow-up on 416b8f50c9bd4e38f9bc48b946505d2a18f6b1fd. |
| 438 |
|
| 439 |
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Emit function ac_exit_trap, |
| 440 |
move remaining code from the 'trap 0' command to ac_exit_trap. |
| 441 |
|
| 442 |
2026-01-09 Paul Eggert <[email protected]> |
| 443 |
|
| 444 |
Fix quoting problem in Solaris commentary |
| 445 |
Problem reported by Nick Bowler in: |
| 446 |
https://lists.gnu.org/r/bug-autoconf/2026-01/msg00001.html |
| 447 |
|
| 448 |
2026-01-01 Paul Eggert <[email protected]> |
| 449 |
|
| 450 |
maint: update all copyright dates via "make update-copyright" |
| 451 |
|
| 452 |
2025-12-13 Paul Eggert <[email protected]> |
| 453 |
|
| 454 |
Update Solaris commentary |
| 455 |
|
| 456 |
2025-11-20 Christian Feld <[email protected]> (tiny change) |
| 457 |
|
| 458 |
Fix bug in Fortran implicit int handling |
| 459 |
* lib/autoconf/fortran.m4 (_AC_FC_IMPLICIT_NONE): |
| 460 |
Fix typo in argument numbering. |
| 461 |
|
| 462 |
2025-10-26 Jose E. Marchesi <[email protected]> |
| 463 |
|
| 464 |
Support for the Algol 68 language |
| 465 |
This patch adds support for the Algol 68 programming language to |
| 466 |
Autoconf. It is based on the Algol 68 GCC front-end, which is |
| 467 |
currently under development [1]. The front-end is temporarily hosted |
| 468 |
in the sourceware forge until integration in GCC is completed [3]. |
| 469 |
|
| 470 |
Note that the GCC Algol 68 front-end is not yet integrated in the main |
| 471 |
compiler, so it is developed and distributed off-tree. See |
| 472 |
https://gcc.gnu.org/wiki/Algol68FrontEnd. Additional information |
| 473 |
about the Algol 68 programming language, and how it is being evolved |
| 474 |
by the GNU Algol 68 Working Group can be found at |
| 475 |
https://algol68-lang.org. |
| 476 |
|
| 477 |
Automake support for Algol 68 has been already pushed as of 2 February |
| 478 |
2025. |
| 479 |
|
| 480 |
[1] https://gcc.gnu.org/wiki/Algol68FrontEnd |
| 481 |
[2] https://inbox.sourceware.org/gcc-patches/[email protected]/T/#t |
| 482 |
[3] https://forge.sourceforge.org/gcc/gcc-a68 |
| 483 |
|
| 484 |
Add support for the Algol68 programming language. |
| 485 |
|
| 486 |
* lib/autoconf/a68.m4: New file. |
| 487 |
* lib/autoconf/autoconf.m4: Include autoconf/a68.m4. |
| 488 |
* lib/autoconf/Makefile.am (dist_autoconflib_DATA): Add a68.m4. |
| 489 |
* lib/freeze.mk (autoconf_m4f_dependencies): Add |
| 490 |
$(src_libdir)/autoconf/a68.m4. |
| 491 |
* doc/autoconf.texi: Rebuild menus. |
| 492 |
(Preset Output Variables): Mention Algol 68. Document A68FLAGS. |
| 493 |
(Algol 68 Compiler): New subsection. |
| 494 |
(Language Choice): Mention Algol 68. |
| 495 |
(Generating Sources): Likewise. |
| 496 |
(Running the Preprocessor): Likewise. |
| 497 |
* tests/a68.at: New file. |
| 498 |
* tests/suite.at: Include a68.at. |
| 499 |
* tests/local.at (_AT_CHECK_ENV): Add A68 and A68FLAGS. |
| 500 |
* NEWS: Update. |
| 501 |
|
| 502 |
2025-10-15 Basil L. Contovounesios <[email protected]> (tiny change) |
| 503 |
|
| 504 |
doc: fix AC_LANG_PROGRAM signature |
| 505 |
* doc/autoconf.texi (Generating Sources): Mark AC_LANG_PROGRAM |
| 506 |
arguments as optional to match its definition and common usage. |
| 507 |
|
| 508 |
2025-08-30 Paul Eggert <[email protected]> |
| 509 |
|
| 510 |
doc: improve sed doc |
| 511 |
* src/autoconf.texi: Modernize description of sed limitations. |
| 512 |
Prompted by a bug report by Daniel Locks in: |
| 513 |
https://lists.gnu.org/r/bug-autoconf/2025-08/msg00001.html |
| 514 |
|
| 515 |
2025-08-07 Paul Eggert <[email protected]> |
| 516 |
|
| 517 |
Port _AC_C_C99_TEST_MAIN to -Wc++-compat |
| 518 |
Problem reported by Vincent Lefevre in: |
| 519 |
https://lists.gnu.org/r/autoconf-patches/2025-08/msg00004.html |
| 520 |
* lib/autoconf/c.m4 (_AC_C_C99_TEST_MAIN): |
| 521 |
Don’t use malloc. |
| 522 |
|
| 523 |
Port _AC_C_C99_TEST_GLOBALS to -Wc++-compat |
| 524 |
Problem reported by Vincent Lefevre in: |
| 525 |
https://lists.gnu.org/r/autoconf-patches/2025-08/msg00004.html |
| 526 |
* lib/autoconf/c.m4 (_AC_C_C99_TEST_GLOBALS): and → aND. |
| 527 |
|
| 528 |
2025-08-07 Vincent Lefevre <[email protected]> (tiny change) |
| 529 |
|
| 530 |
Make _AC_C_C99_TEST_MAIN more robust with -Werror |
| 531 |
The current code fails with gcc r16-2729-g0d276cd378e and |
| 532 |
-Werror=discarded-qualifiers -Werror=write-strings |
| 533 |
(the -Werror=write-strings is useful to check compatibility of |
| 534 |
user code with C++, and the -Werror=discarded-qualifiers is an |
| 535 |
upgrade of a default warning to an error). Since this is a test |
| 536 |
for C99, we may assume that const is supported by the compiler, |
| 537 |
and adding const makes the code more robust in this context. |
| 538 |
|
| 539 |
2025-08-07 Paul Eggert <[email protected]> |
| 540 |
|
| 541 |
Port AC_C_CONST to GCC 16 -Wunused-but-set-variable |
| 542 |
Problem reported by Vincent Lefevre in: |
| 543 |
https://lists.gnu.org/r/autoconf-patches/2025-08/msg00001.html |
| 544 |
https://lists.gnu.org/r/autoconf-patches/2025-08/msg00002.html |
| 545 |
* lib/autoconf/c.m4 (AC_C_CONST): Combine two tests, use |
| 546 |
the set variable, and don’t try to add 1 to a null pointer. |
| 547 |
|
| 548 |
2025-07-28 Paul Eggert <[email protected]> |
| 549 |
|
| 550 |
Quote $OLDPWD in doc |
| 551 |
Problem reported by Florian Weimer in: |
| 552 |
https://lists.gnu.org/r/autoconf/2025-07/msg00008.html |
| 553 |
|
| 554 |
2025-07-27 Paul Eggert <[email protected]> |
| 555 |
|
| 556 |
doc: update cd info |
| 557 |
* doc/autoconf.texi: Modernize and update description |
| 558 |
of cd gotchas. Prompted by email from Farblos in: |
| 559 |
https://lists.gnu.org/r/autoconf/2025-07/msg00004.html |
| 560 |
|
| 561 |
2025-07-18 Paul Eggert <[email protected]> |
| 562 |
|
| 563 |
doc: omit confusing space before paren |
| 564 |
* doc/autoconf.texi: Set txidefnamenospace to avoid confusing spaces. |
| 565 |
Problem reported by Gavin Smith in: |
| 566 |
https://lists.gnu.org/r/autoconf/2025-07/msg00000.html |
| 567 |
|
| 568 |
2025-06-25 Paul Eggert <[email protected]> |
| 569 |
|
| 570 |
Document s/a/\n/ etc |
| 571 |
Problem reported by Bruno Haible in: |
| 572 |
https://lists.gnu.org/r/autoconf-patches/2025-06/msg00001.html |
| 573 |
* doc/autoconf.texi (Limitations of Usual Tools): |
| 574 |
Also mention escapes in replacement strings. |
| 575 |
While we’re at it, update -e and -f concatenation doc. |
| 576 |
|
| 577 |
2025-05-26 Bruno Haible <[email protected]> |
| 578 |
|
| 579 |
Fix trap quoting (regression 2024-08-04). |
| 580 |
* lib/autoconf/general.m4 (_AC_INIT_PREPARE): Emit functions ac_cache_dump, |
| 581 |
ac_dump_debugging_info. In the trap command, invoke ac_dump_debugging_info. |
| 582 |
(AC_CACHE_SAVE): Invoke ac_cache_dump instead of expanding _AC_CACHE_DUMP a |
| 583 |
second time. |
| 584 |
|
| 585 |
2025-05-26 Bruno Haible <[email protected]> |
| 586 |
Paul Eggert <[email protected]> |
| 587 |
|
| 588 |
AC_CHECK_DECL now ignores future Darwin functions |
| 589 |
* lib/autoconf/general.m4 (_AC_UNDECLARED_BUILTIN): |
| 590 |
Use shorter diagnostic, to be consistent with other changes. |
| 591 |
(_AC_FUTURE_DARWIN): New macro. |
| 592 |
(AC_CHECK_DECL): Require per-language _AC_FUTURE_DARWIN. |
| 593 |
Use $ac_c_future_darwin_options alongside with |
| 594 |
$ac_c_undeclared_builtin_options. |
| 595 |
* NEWS: Mention the fix. |
| 596 |
|
| 597 |
2025-05-06 Paul Eggert <[email protected]> |
| 598 |
|
| 599 |
More shell patterns to avoid |
| 600 |
* doc/autoconf.texi (Shell Pattern Matching): |
| 601 |
Improve on the recent discussion about brace expansion. |
| 602 |
|
| 603 |
2025-05-06 Bruno Haible <[email protected]> |
| 604 |
|
| 605 |
doc: Document another pitfall of shell pattern matching. |
| 606 |
* doc/autoconf.texi (Shell Pattern Matching): Mention non-portability of |
| 607 |
patterns with braces. |
| 608 |
|
| 609 |
2025-04-20 Paul Eggert <[email protected]> |
| 610 |
|
| 611 |
Fall back on busybox awk |
| 612 |
* lib/autoconf/programs.m4 (AC_PROG_AWK): |
| 613 |
Fall back 'busybox awk' of none of the other awks work. |
| 614 |
|
| 615 |
2025-04-18 Paul Eggert <[email protected]> |
| 616 |
|
| 617 |
Avoid grep in minimal configure |
| 618 |
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): |
| 619 |
Use ‘sed -n '$='’ instead of ‘grep -c’, since these |
| 620 |
are the only uses of grep in a minimal ‘configure’ |
| 621 |
and we are already using sed elsewhere. |
| 622 |
|
| 623 |
config.status now checks for missing awk |
| 624 |
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): |
| 625 |
Diagnose missing awk and fail, rather than blundering on. |
| 626 |
|
| 627 |
2025-04-17 Paul Eggert <[email protected]> |
| 628 |
|
| 629 |
Improve list of 'configure' prereqs |
| 630 |
* doc/install.texi (Installation Prerequisites): |
| 631 |
Use a more-accurate list. |
| 632 |
|
| 633 |
Document that 'configure' needs awk etc |
| 634 |
Problem reported by Simon Josefsson in: |
| 635 |
https://lists.gnu.org/r/bug-gnulib/2025-04/msg00127.html |
| 636 |
* doc/install.texi (Installation Prerequisites): New section. |
| 637 |
|
| 638 |
2025-04-07 Paul Eggert <[email protected]> |
| 639 |
|
| 640 |
Fix AC_DEFINE_UNQUOTED regexp |
| 641 |
Problem reported by Eric Blake in: |
| 642 |
https://savannah.gnu.org/support/?111221 |
| 643 |
* lib/autoconf/general.m4 (_AC_DEFINE_UNQUOTED): Fix typo that |
| 644 |
caused us to not use a here-document in some cases when we should. |
| 645 |
* tests/torture.at (Substitute and define special characters): |
| 646 |
Test for the bug. |
| 647 |
|
| 648 |
2025-02-09 Paul Eggert <[email protected]> |
| 649 |
|
| 650 |
Port install_aux_file to OS/2 |
| 651 |
* bin/autoreconf.in (install_aux_file): Port to OS/2, |
| 652 |
which does not allow file name operations on open files. |
| 653 |
Problem reported by KO Myung-Hun in: |
| 654 |
https://lists.gnu.org/r/autoconf-patches/2025-02/msg00001.html |
| 655 |
|
| 656 |
2025-01-29 Paul Eggert <[email protected]> |
| 657 |
|
| 658 |
Fix dependency issue for autoscan.list |
| 659 |
* lib/local.mk (lib/autoscan/autoscan.list): |
| 660 |
Depend on lib/autoconf/autoconf.m4f, not merely on its dependencies. |
| 661 |
|
| 662 |
2025-01-29 Yann E. MORIN <[email protected]> (tiny change) |
| 663 |
|
| 664 |
tests/local.mk: fix dependencies for generating the wrapper template |
| 665 |
Generating the tests wrapper template currently depends on the |
| 666 |
dependencies needed for the frozen lib/m4sugar/m4sh.m4f. However, |
| 667 |
it also requires that frozen sugar to actually be generated, or the |
| 668 |
build will fail if it is not (or at least if it is in the process of |
| 669 |
being generated). |
| 670 |
|
| 671 |
Change the dependency to actually depend on the generated file, rather |
| 672 |
than on its dependencies. |
| 673 |
|
| 674 |
This kind of failure has been noticed on highly parallel builds on very |
| 675 |
loaded machines. |
| 676 |
|
| 677 |
2025-01-29 Paul Eggert <[email protected]> |
| 678 |
|
| 679 |
Document AIX 7.3 find exec + bug |
| 680 |
* doc/autoconf.texi (Limitations of Usual Tools): |
| 681 |
Document AIX 7.3 bug with exit status of ‘find ... -exec ... +’. |
| 682 |
|
| 683 |
Update doc for POSIX, OS versions |
| 684 |
* doc/autoconf.texi: Some updates for newer POSIX and OS versions. |
| 685 |
Omit no-longer-relevant version numbers. |
| 686 |
|
| 687 |
2025-01-16 Paul Eggert <[email protected]> |
| 688 |
|
| 689 |
Port better to NVHPC |
| 690 |
See <https://savannah.gnu.org/support/?111172>. |
| 691 |
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): |
| 692 |
Ignore -l options with embedded '='. |
| 693 |
|
| 694 |
2025-01-05 Markus Mützel <[email protected]> |
| 695 |
|
| 696 |
Keep "-lmingwex" and "-lmoldname" in linker flags for MinGW |
| 697 |
It is needed when building Octave targeting Windows. Without it, the |
| 698 |
implementation of "casin" from the Windows runtime is used instead of |
| 699 |
the replacement from MinGW-w64. That means that results for the |
| 700 |
"casin" function are wrong without that change. |
| 701 |
* lib/autoconf/fortran.m4: Do not remove "-lmingwex" or "-lmoldname" |
| 702 |
from the linker flags when targeting MinGW. Removing "-lmingwex" causes |
| 703 |
an incorrect linker resolution for functions like "casin" for projects |
| 704 |
that consist of Fortran and C++ sources. Removing "-lmoldname" causes |
| 705 |
issues for Fortran projects that try to use POSIX-like C functions |
| 706 |
without a '_' symbol prefix when targeting MinGW. |
| 707 |
|
| 708 |
2025-01-05 Jack Kelly <[email protected]> |
| 709 |
|
| 710 |
AC_USE_SYSTEM_EXTENSIONS: Set _COSMO_SOURCE |
| 711 |
This enables extensions when compiling with Cosmopolitan Libc. |
| 712 |
https://justine.lol/cosmopolitan/ |
| 713 |
* lib/autoconf/specific.m4: Define _COSMO_SOURCE. |
| 714 |
|
| 715 |
2025-01-01 Paul Eggert <[email protected]> |
| 716 |
|
| 717 |
Fix test failure on macOS 15.1.1 |
| 718 |
Problem reported by Sean Denny in: |
| 719 |
https://lists.gnu.org/r/bug-autoconf/2024-12/msg00001.html |
| 720 |
* doc/autoconf.texi (Limitations of Builtins): |
| 721 |
Document the macOS sh bug. |
| 722 |
* tests/base.at (AC_CACHE_CHECK): |
| 723 |
* tests/local.at: Use test -ot rather than ls -t, as POSIX |
| 724 |
requires the former to work reliably, but does not require the |
| 725 |
latter (POSIX does not require a stable sort for ls -t). |
| 726 |
Somewhat ironically, this should work around the macOS bug |
| 727 |
because the use of its buggy test -ot should increase the |
| 728 |
timestamp resolution to 1 s. |
| 729 |
|
| 730 |
maint: update all copyright dates via "make update-copyright" |
| 731 |
|
| 732 |
2024-12-28 Paul Eggert <[email protected]> |
| 733 |
|
| 734 |
Update timestamp doc |
| 735 |
* doc/autoconf.texi (Limitations of Usual Tools) |
| 736 |
(Timestamps and Make): Modernize discussion a bit, |
| 737 |
and give a downside of the GNU make approach. |
| 738 |
|
| 739 |
2024-12-02 Paul Eggert <[email protected]> |
| 740 |
|
| 741 |
doc: mention tr issues in multi-byte locales |
| 742 |
* doc/autoconf.texi (tr): Mention multi-byte issues. |
| 743 |
|
| 744 |
2024-12-02 R. Diez <[email protected]> |
| 745 |
|
| 746 |
bootstrap: Disallow use of undefined shell variables, if possible. |
| 747 |
|
| 748 |
2024-11-17 Paul Eggert <[email protected]> |
| 749 |
|
| 750 |
Further improvements for C23 tests |
| 751 |
Problems reported by Bruno Haible in: |
| 752 |
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00140.html |
| 753 |
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00141.html |
| 754 |
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00145.html |
| 755 |
* lib/autoconf/c.m4 (_AC_C_C23_TEST_GLOBALS): |
| 756 |
In use_u8, add parens to pacify GCC 15 -Wbool-compare, |
| 757 |
and use sizeof to make it a conforming integer constant expression. |
| 758 |
Do not test stdbit.h, as some current sort-of-C23 environments |
| 759 |
lack it and want to use options like -std=gnu23 on such platforms. |
| 760 |
Use null_pointer to pacify GCC -Wunused-const-variable. |
| 761 |
|
| 762 |
2024-11-05 Paul Eggert <[email protected]> |
| 763 |
|
| 764 |
Fix comment typo re malloc |
| 765 |
Problem reported by Bruno Haible in: |
| 766 |
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00048.html |
| 767 |
|
| 768 |
2024-10-31 Paul Eggert <[email protected]> |
| 769 |
|
| 770 |
Fix use of $3 in _AC_FUNC_MALLOC_IF etc |
| 771 |
Use m4_default in case $3 is omitted. |
| 772 |
Problem reported by Bruno Haible in: |
| 773 |
https://lists.gnu.org/r/bug-gnulib/2024-10/msg00284.html |
| 774 |
Also, use AS_CASE to defend against $3 containing macros |
| 775 |
that might be expaned. |
| 776 |
|
| 777 |
2024-10-31 Bruno Haible <[email protected]> |
| 778 |
|
| 779 |
AC_FUNC_MALLOC now guesses yes when cross-compiling |
| 780 |
The only platform that had this problem was native Windows, |
| 781 |
and MSVC's malloc sets errno since 2015 at least. |
| 782 |
|
| 783 |
* lib/autoconf/functions.m4 (AC_FUNC_MALLOC): Guess yes when |
| 784 |
cross-compiling. |
| 785 |
|
| 786 |
2024-10-31 Paul Eggert <[email protected]> |
| 787 |
|
| 788 |
Say malloc/realloc cache vars can have spaces |
| 789 |
|
| 790 |
2024-10-29 Paul Eggert <[email protected]> |
| 791 |
|
| 792 |
* functions.m4: Fix typos in previous change. |
| 793 |
|
| 794 |
Update ‘volatile’ doc for C23 |
| 795 |
* doc/autoconf.texi (Volatile Objects): Update for C23. |
| 796 |
|
| 797 |
Match Gnulib INSTALL for quoting |
| 798 |
The manual was already using curved single quotes, so we |
| 799 |
might as well use curved double quotes and en and em dashes too. |
| 800 |
* doc/local.mk (AM_MAKEINFOFLAGS): Add ASCII_DASHES_AND_QUOTES=0, |
| 801 |
CHECK_NORMAL_MENU_STRUCTURE=1. |
| 802 |
* Makefile.am ($(srcdir)/INSTALL): Also use AM_MAKEINFOFLAGS. |
| 803 |
This matches Gnulib INSTALL’s quoting practice. |
| 804 |
|
| 805 |
Merge from Gnulib for malloc, realloc checking |
| 806 |
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF): |
| 807 |
Add 3rd argument for cross-guessing; all callers changed. |
| 808 |
Use ‘volatile’ so that compilers don’t second-guess. |
| 809 |
Also guess yes on gnu*, midipix*, midnightbsd*. |
| 810 |
|
| 811 |
2024-10-26 Paul Eggert <[email protected]> |
| 812 |
|
| 813 |
Go back to using “POSIX” not “Posix” |
| 814 |
In my Mon Oct 11 20:21:33 2004 +0000 commit when I standardized the |
| 815 |
spelling of various acronyms in documentation and comments I spelled |
| 816 |
it “Posix”. However, it seems that “POSIX” has won out in practice |
| 817 |
(including my own practice!), so let’s change it back to “POSIX”. |
| 818 |
|
| 819 |
Remove some doc for no-longer-used systems; update URLs |
| 820 |
|
| 821 |
Document realloc (p, 0) gotchas |
| 822 |
* doc/autoconf.texi (Function Portability, Particular Functions): |
| 823 |
Don’t recommend realloc-gnu as it doesn’t (and probably shouldn’t) |
| 824 |
enforce glibc compatibility. Document variance in glibc behavior. |
| 825 |
|
| 826 |
2024-10-21 Paul Eggert <[email protected]> |
| 827 |
|
| 828 |
Avoid some echo '...\...' gotchas |
| 829 |
Problem with AC_SUBST_FILE reported by Dylan Palauzov in: |
| 830 |
https://lists.gnu.org/r/bug-autoconf/2024-10/msg00018.html |
| 831 |
The other problems I found by a manual scan. |
| 832 |
* bootstrap: Use printf, not echo. |
| 833 |
* doc/autoconf.texi (Polymorphic Variables): |
| 834 |
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): |
| 835 |
* lib/autoconf/general.m4 (_AC_CANONICAL_SPLIT): |
| 836 |
* lib/autoconf/status.m4 (_AC_SUBST_FILES): |
| 837 |
* lib/autotest/general.m4 (AT_FINISH): |
| 838 |
Use AS_ECHO, not echo. |
| 839 |
|
| 840 |
2024-09-28 Paul Eggert <[email protected]> |
| 841 |
|
| 842 |
Mention autogen.sh sooner in doc |
| 843 |
* doc/install.texi (Basic Installation): |
| 844 |
Be more explicit about bootstrapping scripts |
| 845 |
not named ‘bootstrap’. Problem reported by Gavin Smith in: |
| 846 |
https://lists.gnu.org/r/autoconf/2024-09/msg00003.html |
| 847 |
|
| 848 |
2024-09-22 Paul Eggert <[email protected]> |
| 849 |
|
| 850 |
doc: remove IRIX from manual |
| 851 |
* doc/autoconf.texi: Remove references to IRIX, except for the |
| 852 |
obsolete macro AC_IRIX_SUN. IRIX has not been supported by its |
| 853 |
vendor since 2013, and is no longer a documented Autoconf target. |
| 854 |
|
| 855 |
2024-09-05 Paul Eggert <[email protected]> |
| 856 |
|
| 857 |
Give a URL for COPYING.EXCEPTION in notices |
| 858 |
This can be useful if the file is copied elsewhere |
| 859 |
but the COPYING.EXCEPTION file is not present at the destination. |
| 860 |
|
| 861 |
2024-08-06 Paul Eggert <[email protected]> |
| 862 |
|
| 863 |
Stop documenting Tru64 |
| 864 |
* doc/autoconf.texi: Simplify manual by removing coverage of |
| 865 |
Ultrix, OSF/1, Tru64, and DEC Alpha. HP stopped supporting the |
| 866 |
last release at the end of 2012, so this platform is long dead. |
| 867 |
(Long Lines in Makefiles, Tru64 Directory Magic): Remove. |
| 868 |
|
| 869 |
Improve coverage of ‘echo’ in manual |
| 870 |
In manual, prefer AS_ECHO or printf instead of echo, |
| 871 |
when that might make a difference. |
| 872 |
Don’t use ‘date >timestamp’, to avoid spurious diffs. |
| 873 |
* doc/autoconf.texi (Notices): No need to worry any more about |
| 874 |
RCS or CVS being used to maintain Autoconf. |
| 875 |
(Preset Output Variables): Say that ECHO_N etc. are obsolete. |
| 876 |
(Automatic Remaking): Remove obsolescent mention of CVS. |
| 877 |
(AS_ECHO): Mention that AS_ECHO expands to something involving “'”, |
| 878 |
and how to work around this (rare) issue. |
| 879 |
(Shell Substitutions, Slashes, Limitations of Builtins): Omit |
| 880 |
no-longer-relevant discussion about ancient shell bugs that |
| 881 |
involved a lot of ‘echo’s that would otherwise need to be |
| 882 |
replaced. |
| 883 |
(Limitations of Builtins): Don’t mention ‘echo "x$word"’ trick, as |
| 884 |
it doesn’t resist backslashes. Just use printf. Expand on |
| 885 |
discussion of ‘echo’ options. Say that even modernish shells (e.g., |
| 886 |
ksh93 on OmniOS) sometimes screw up with here-documents. |
| 887 |
(Making testsuite Scripts): Simplify $(srcdir)/package.m4 |
| 888 |
rule by using printf instead of echo, and defend against |
| 889 |
some shell metacharacters in $(srcdir). |
| 890 |
|
| 891 |
More defense against bad echo |
| 892 |
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS) |
| 893 |
(_AC_ARG_VAR_VALIDATE): |
| 894 |
Defend against ‘echo’ interpreting ‘\’ or leading ‘-’. |
| 895 |
(_AC_EVAL, _AC_EVAL_STDERR): Add to comment yet another reason |
| 896 |
that these macros are obsolete and should be removed. There’s no |
| 897 |
point trying to change them as that’s more likely to hurt than |
| 898 |
help the (zero?) callers who still use them. |
| 899 |
|
| 900 |
Allow shell metachars in CONFIG_STATUS |
| 901 |
* lib/autoconf/general.m4 (_AC_INIT_DEFAULTS, _AC_INIT_PREPARE): |
| 902 |
* lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE) |
| 903 |
(_AC_OUTPUT_FILE, _AC_OUTPUT_HEADERS_PREPARE, AC_OUTPUT) |
| 904 |
(_AC_OUTPUT_CONFIG_STATUS): |
| 905 |
Work even if $CONFIG_STATUS contains shell metacharacters, |
| 906 |
leading ‘-’, or no ‘/’. |
| 907 |
|
| 908 |
Support more special chars in $(LIBDIR) etc |
| 909 |
* lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): |
| 910 |
* lib/autoconf/programs.m4 (AC_PROG_MAKE_SET): |
| 911 |
Allow more special characters in ‘make’ macros like LIBDIR and MAKE. |
| 912 |
|
| 913 |
Minor AC_FUNC_SELECT_ARGTYPES speedups |
| 914 |
* lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): |
| 915 |
Don’t use ‘sed 's/\*/\*/g'’, which is a no-op. |
| 916 |
Don’t use ‘echo’ either. |
| 917 |
|
| 918 |
Don’t mishandle ‘\’ in VERSION |
| 919 |
This is minor, it’s just allowing more chars (though not all) |
| 920 |
in $(VERSION). |
| 921 |
* Makefile.am (edit, top_srcdir.version, dist-hook) |
| 922 |
(check-coverage-report): |
| 923 |
* man/local.mk (VERSION): |
| 924 |
Work even if VERSION contains ‘\’. |
| 925 |
|
| 926 |
Follow own advice about \ in shell double-quoted strings |
| 927 |
* lib/autoconf/headers.m4 (_AC_HEADERS_EXPANSION): |
| 928 |
* lib/m4sugar/m4sh.m4 (AS_ECHO): |
| 929 |
Go back to using '%s\n' instead of "%s\n". |
| 930 |
(AS_VAR_GET): Work around the quoting problem by using printf |
| 931 |
directly with "%s\\n" instead of AS_ECHO; this is safe now that we |
| 932 |
assume printf. |
| 933 |
|
| 934 |
2024-08-03 Paul Eggert <[email protected]> |
| 935 |
|
| 936 |
Fix typos in previous $@ doc change |
| 937 |
Problem reported in <https://savannah.gnu.org/support/?111102>. |
| 938 |
|
| 939 |
2024-08-02 Paul Eggert <[email protected]> |
| 940 |
|
| 941 |
Port to AIX 7.2 ksh93 |
| 942 |
Problem reported in <https://savannah.gnu.org/support/?111102>. |
| 943 |
* lib/autotest/general.m4: |
| 944 |
* lib/m4sugar/m4sh.m4 (_AS_REEXEC_WITH_SHELL): |
| 945 |
* tests/wrapper.as: |
| 946 |
Port to AIX 7.2 ksh93, whidh mishandles ${1+"$@"}, by not using |
| 947 |
that construct. |
| 948 |
|
| 949 |
2024-07-17 Zack Weinberg <[email protected]> |
| 950 |
|
| 951 |
Fix syntax-check complaints |
| 952 |
One complaint is correct: house style is “file system” not “filesystem.” |
| 953 |
|
| 954 |
The other one is bogus: sc_two_space_separator_in_usage gets a false |
| 955 |
positive on gendocs.sh, which isn’t even our code. I tried to exclude |
| 956 |
just that file using exclude_file_name_regexp but it didn’t immediately |
| 957 |
work and my patience for debugging maint.mk is nil. |
| 958 |
|
| 959 |
2024-07-17 Zack Weinberg <[email protected]> |
| 960 |
|
| 961 |
Adjust set size correctly in all cases of m4_set_add_all. |
| 962 |
Both the recursive and the iterative versions of m4_set_add_all had a |
| 963 |
bug where they did not update the set size correctly if the set |
| 964 |
contained tombstones. I guess m4_set_remove isn’t used that often. |
| 965 |
(I found this bug by accident while investigating an unrelated thing.) |
| 966 |
|
| 967 |
The root cause of the bug was that in the tombstone case we had two |
| 968 |
different layers quarreling over who got the last word on the size of |
| 969 |
the set: m4_set_add, called for each value argument, was updating the |
| 970 |
set size for each actual addition, and then the outer expansion of |
| 971 |
m4_set_add_all was clobbering those updates with a calculation based |
| 972 |
on the number of times the loop evaluated to a ‘-’ character, which |
| 973 |
in the tombstone case was always zero. |
| 974 |
|
| 975 |
The fix is to not mess with the set size on each actual addition, |
| 976 |
relying on the outer calculation in all cases. Most of the volume |
| 977 |
of the patch is refactoring to eliminate all the duplicate copies of |
| 978 |
the “add this element only if it isn’t already there” logic which were |
| 979 |
confusing the issue. |
| 980 |
|
| 981 |
I also made m4_set_add_all not go into an infinite loop if invoked |
| 982 |
with fewer than two arguments. Possibly it should error out in this |
| 983 |
case instead of silently doing nothing, but I don’t think it matters |
| 984 |
very much. |
| 985 |
|
| 986 |
* lib/m4sugar/m4sugar.m4 (_m4_set_add, _m4_set_add_clean): |
| 987 |
New macros, factoring out common “add element to set” logic. |
| 988 |
(m4_set_add): Redefine using _m4_set_add. |
| 989 |
(_m4_set_add_all): Rename to _m4_set_add_all_clean; use _m4_set_add_clean. |
| 990 |
(_m4_set_add_check): Use _m4_set_add, not m4_set_add; emit a string |
| 991 |
of dashes as _m4_set_add_all_clean does. |
| 992 |
(m4_set_add_all): Update to match renamed _m4_set_add_all_clean. |
| 993 |
Do nothing if invoked with fewer than two arguments. |
| 994 |
|
| 995 |
* lib/m4sugar/foreach.m4: Define variants of _m4_set_add_all_clean and |
| 996 |
_m4_set_add_all_check, matching the behavior of the definitions in |
| 997 |
m4sugar.m4. Do not define m4_set_add_all here. |
| 998 |
|
| 999 |
* tests/m4sugar.at (m4_set): Add more tests of interaction among |
| 1000 |
m4_set_add_all, m4_set_remove, and m4_set_size. |
| 1001 |
|
| 1002 |
2024-07-17 Zack Weinberg <[email protected]> |
| 1003 |
|
| 1004 |
Quote separators in foreach.m4 version of m4_joinall. |
| 1005 |
The entire output of m4_joinall is supposed to be quoted, including |
| 1006 |
separators, but the foreach.m4 implementation (used with M4 1.4.x) |
| 1007 |
was missing some quotes, and we didn’t notice because the test suite |
| 1008 |
wasn’t thorough enough. Fix. |
| 1009 |
|
| 1010 |
* lib/m4sugar/foreach.m4 (m4_joinall): Quote each separator as it’s |
| 1011 |
emitted. |
| 1012 |
* tests/m4sugar.at (m4_join test): Expand tests of both m4_join and |
| 1013 |
m4_joinall. |
| 1014 |
|
| 1015 |
2024-07-17 Zack Weinberg <[email protected]> |
| 1016 |
|
| 1017 |
Add a FLAGS argument to AT_CHECK_M4SUGAR_TEXT. |
| 1018 |
This is not actually used within the testsuite at present, but is |
| 1019 |
handy for troubleshooting m4sugar tests. For instance, you can pass |
| 1020 |
-v to a specific autom4te invocation and get told the underlying m4 |
| 1021 |
invocation. |
| 1022 |
|
| 1023 |
* tests/m4sugar.at (AT_CHECK_M4SUGAR_TEXT): Add fourth argument |
| 1024 |
FLAGS which specifies additional command line arguments to pass to |
| 1025 |
autom4te. |
| 1026 |
|
| 1027 |
2024-07-17 Zack Weinberg <[email protected]> |
| 1028 |
|
| 1029 |
Emit compat shims less often for old AS_ECHO implementation details. |
| 1030 |
The shell variables $as_echo and $as_echo_n and the substitution |
| 1031 |
variables @ECHO_C@, @ECHO_N@, and @ECHO_T@ are implementation |
| 1032 |
details of the old implementation of AS_ECHO and AS_ECHO_N |
| 1033 |
(2.69-era; before the switch to use ‘printf’). We continue |
| 1034 |
to provide them for compatibility with various third-party macros and |
| 1035 |
Makefiles that used them, even though, as far as I can tell, they were |
| 1036 |
never documented. (Someone made ECHO_C etc. substitution variables on |
| 1037 |
purpose, though.) |
| 1038 |
|
| 1039 |
For $as_echo and $as_echo_n, we can tell precisely when they are |
| 1040 |
needed, because all uses are exposed to M4 macro expansion. |
| 1041 |
Therefore, emit the necessary support code on first use and not |
| 1042 |
from AS_INIT. As a side effect this means the -Wobsolete warning |
| 1043 |
only appears on the first use of each, which IMHO is polite. |
| 1044 |
|
| 1045 |
For @ECHO_C@, @ECHO_N@, and @ECHO_T@, we have no way of knowing |
| 1046 |
whether a substitution variable is used, but we *do* know that |
| 1047 |
substitution variables are exclusively a configure.ac thing, so their |
| 1048 |
support code can be moved to general.m4 and emitted from AC_INIT |
| 1049 |
rather than from AS_INIT. |
| 1050 |
|
| 1051 |
(It’s faintly possible that someone decided to use $ECHO_C in an |
| 1052 |
Autotest script but considering how rare it is for people to use |
| 1053 |
Autotest at all, or any other non-Autoconf application of M4sh, |
| 1054 |
I think we can worry about that when we hear about it.) |
| 1055 |
|
| 1056 |
* lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE): Removed. |
| 1057 |
(AS_PREPARE, _AS_PREPARE): Don’t use _AS_ECHO_N_PREPARE. |
| 1058 |
(_as_echo_var_prepare, _as_echo_n_var_prepare): New macros which |
| 1059 |
emit the -Wobsolete warning and the support code for $as_echo and |
| 1060 |
$as_echo_n respectively. |
| 1061 |
(as_echo, as_echo_n): Move to bottom of the block that sets up |
| 1062 |
the current implementation of AS_ECHO. Invoke _as_echo_var_prepare |
| 1063 |
and _as_echo_n_var_prepare, respectively, on first use. |
| 1064 |
|
| 1065 |
* lib/autoconf/general.m4 (_AC_INIT_ECHO_N): New internal macro, |
| 1066 |
contains the probe code that used to be in _AS_ECHO_N_PREPARE. |
| 1067 |
AC_SUBSTs ECHO_C, ECHO_N, and ECHO_T. |
| 1068 |
(AC_INIT): Don’t AC_SUBST ECHO_C, ECHO_N, and ECHO_T here. |
| 1069 |
Invoke _AC_INIT_ECHO_N. |
| 1070 |
|
| 1071 |
2024-07-16 Bruno Haible <[email protected]> |
| 1072 |
|
| 1073 |
Port AC_PROG_OBJC to RHEL 9 |
| 1074 |
* lib/autoconf/c.m4 (AC_PROG_OBJC): Search for gobjc before gcc. |
| 1075 |
* NEWS: Mention the change. |
| 1076 |
|
| 1077 |
2024-07-16 Paul Eggert <[email protected]> |
| 1078 |
|
| 1079 |
Detect Android 5.0 strnlen bug |
| 1080 |
This is useful for GNU Emacs, which still ports to that |
| 1081 |
old Android version. The change here is imported from Gnulib. |
| 1082 |
* lib/autoconf/functions.m4 (AC_FUNC_STRNLEN): |
| 1083 |
Also detect Android 5.0 bug. Use AC_COMPILE_IFELSE rather |
| 1084 |
than AC_CANONICAL_HOST for cross-compile test. |
| 1085 |
|
| 1086 |
2024-07-05 Paul Eggert <[email protected]> |
| 1087 |
|
| 1088 |
doc: mention ACLOCAL_AMFLAGS and # |
| 1089 |
* doc/autoconf.texi: Mention that ACLOCAL_AMFLAGS |
| 1090 |
cannot use makefile comments. Problem reported by |
| 1091 |
Collin Funk in: |
| 1092 |
https://lists.gnu.org/r/bug-gnulib/2024-06/msg00005.html |
| 1093 |
|
| 1094 |
2024-06-23 Zack Weinberg <[email protected]> |
| 1095 |
|
| 1096 |
autoconf.texi: Don’t say that Darwin is “derived from FreeBSD.” |
| 1097 |
This is an oversimplification and is probably going to cause |
| 1098 |
more confusion than it solves. |
| 1099 |
|
| 1100 |
The commit which added this text was attributed to Sevan Janiyan, |
| 1101 |
but the text itself was written by me (Zack Weinberg); I revised |
| 1102 |
the patch but did not remember to also revise the commit message. |
| 1103 |
|
| 1104 |
2024-06-23 Zack Weinberg <[email protected]> |
| 1105 |
|
| 1106 |
autoconf.texi: Move ‘Systemology’ to ‘Portable Shell Programming’ section. |
| 1107 |
It’s not an ideal fit in this location, but it’s better here than |
| 1108 |
where it was (jammed in the middle of ‘Writing Tests’). |
| 1109 |
|
| 1110 |
Add ‘shell.nix’ defining Autoconf’s build dependencies in NixOS terms. |
| 1111 |
Like the existing ‘manifest.scm’, which does the same job for GNU Guix, |
| 1112 |
the point of this file is to facilitate testing Autoconf itself on NixOS: |
| 1113 |
‘nix-shell --pure shell.nix’ gives you an interactive shell with all |
| 1114 |
the necessary tools in $PATH, and nothing else. |
| 1115 |
|
| 1116 |
2024-06-23 Sevan Janiyan <[email protected]> |
| 1117 |
|
| 1118 |
doc/autoconf.texi (Systemology): Update Darwin. |
| 1119 |
Catch up with changes in Darwin since 2002 when the section was added. |
| 1120 |
|
| 1121 |
2024-06-23 KO Myung-Hun <[email protected]> |
| 1122 |
|
| 1123 |
bootstrap: Allow 'ln -s' to be overridden by the user. |
| 1124 |
For example, one might set LN_S=cp when working on an |
| 1125 |
OS or filesystem that does not support symbolic links. |
| 1126 |
|
| 1127 |
* bootstrap: Honor $LN_S environment variable, defaulting |
| 1128 |
to 'ln -s'. |
| 1129 |
|
| 1130 |
2024-06-18 Paul Eggert <[email protected]> |
| 1131 |
|
| 1132 |
Improve wording for Y2038 and largefile probes |
| 1133 |
Problem reported by Bruno Haible in: |
| 1134 |
https://lists.gnu.org/r/bug-gnulib/2024-06/msg00181.html |
| 1135 |
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_PROBE) |
| 1136 |
(_AC_SYS_LARGEFILE_PROBE): Improve wording of chatter. |
| 1137 |
|
| 1138 |
2024-06-15 Paul Eggert <[email protected]> |
| 1139 |
|
| 1140 |
Process C23 #elifdef and #elifndef |
| 1141 |
Inspired by Collin Funk’s suggestion in: |
| 1142 |
https://lists.gnu.org/r/autoconf-patches/2024-06/msg00000.html |
| 1143 |
* bin/autom4te.in (handle_output): |
| 1144 |
* bin/autoscan.in, bin/ifnames.in (scan_c_file): |
| 1145 |
Also recognize #elifdef and #elifndef. |
| 1146 |
* tests/tools.at (ifnames): Test it for ifnames. |
| 1147 |
|
| 1148 |
2024-06-01 Paul Eggert <[email protected]> |
| 1149 |
|
| 1150 |
Document Solaris ‘make’ glitch with ‘!’ |
| 1151 |
* doc/autoconf.texi (Failure in Make Rules): |
| 1152 |
Document that there are some complicated exceptions to |
| 1153 |
the idea that sh -e exits if any subcommand fails. |
| 1154 |
(Command Line Prefixes): New section. |
| 1155 |
|
| 1156 |
2024-05-28 Paul Eggert <[email protected]> |
| 1157 |
|
| 1158 |
AC_PROG_CXX no longer adjusts C++ language version |
| 1159 |
* lib/autoconf/c.m4 (_AC_CXX_CXX98_TEST_GLOBALS) |
| 1160 |
(_AC_CXX_CXX98_TEST_MAIN, _AC_CXX_CXX11_TEST_GLOBALS) |
| 1161 |
(_AC_CXX_CXX11_TEST_MAIN, _AC_CXX_CXX98_TEST_PROGRAM) |
| 1162 |
(_AC_CXX_CXX11_TEST_PROGRAM, _AC_CXX_CXX14_TEST_PROGRAM) |
| 1163 |
(_AC_CXX_CXX17_TEST_PROGRAM, _AC_CXX_CXX20_TEST_PROGRAM) |
| 1164 |
(_AC_CXX_CXX23_TEST_PROGRAM, _AC_CXX_CXX98_OPTIONS) |
| 1165 |
(_AC_CXX_CXX11_OPTIONS, _AC_CXX_CXX14_OPTIONS) |
| 1166 |
(_AC_CXX_CXX17_OPTIONS, _AC_CXX_CXX20_OPTIONS) |
| 1167 |
(_AC_CXX_CXX23_OPTIONS, _AC_PROG_CXX_STDCXX_EDITION_TRY) |
| 1168 |
(_AC_PROG_CXX_STDCXX_EDITION_TRY): Remove. All uses removed. |
| 1169 |
|
| 1170 |
2024-05-26 Paul Eggert <[email protected]> |
| 1171 |
|
| 1172 |
AC_PROG_CXX now tries C++23, C++20, C++17, C++14 |
| 1173 |
The recent glitch with C++11 underscores the fact that it’s |
| 1174 |
long past time for Autoconf to catch up with the C++ standards. |
| 1175 |
Add simple tests for each iteration of the C++ standard. |
| 1176 |
They can be improved later as needed. When testing for these |
| 1177 |
newer standards, do not also test for features required by earlier |
| 1178 |
standards, as this isn’t all that helpful, leads to an O(N**2) |
| 1179 |
growth of ‘configure’, and can result in problems such as the |
| 1180 |
C++11 vs C++20 bug recently fixed. |
| 1181 |
* lib/autoconf/c.m4 (_AC_CXX_CXX14_TEST_PROGRAM) |
| 1182 |
(_AC_CXX_CXX17_TEST_PROGRAM, _AC_CXX_CXX20_TEST_PROGRAM) |
| 1183 |
(_AC_CXX_CXX23_TEST_PROGRAM, _AC_CXX_CXX14_OPTIONS) |
| 1184 |
(_AC_CXX_CXX17_OPTIONS, _AC_CXX_CXX20_OPTIONS) |
| 1185 |
(_AC_CXX_CXX23_OPTIONS): New macros. |
| 1186 |
(_AC_C_C23_TEST_PROGRAM, _AC_C_C23_OPTIONS): New macros. |
| 1187 |
(_AC_PROG_CC_STDC_EDITION): Try C23 first. |
| 1188 |
(_AC_PROG_CXX_STDCXX_EDITION): Use them. |
| 1189 |
|
| 1190 |
Port C11 test to C++20 |
| 1191 |
Trivial fix suggested by Peter Johansson in: |
| 1192 |
https://lists.gnu.org/r/autoconf/2024-05/msg00004.html |
| 1193 |
* lib/autoconf/c.m4 (_AC_CXX_CXX11_TEST_MAIN): |
| 1194 |
Do not test assigning u8"..." to char const *, as this |
| 1195 |
runs afoul of C++20. |
| 1196 |
|
| 1197 |
2024-05-15 Alyssa Ross <[email protected]> |
| 1198 |
|
| 1199 |
AC_FUNC_MALLOC: fix cross compilation to musl |
| 1200 |
This check returned yes for me on musl 1.2.3 on |
| 1201 |
aarch64-unknown-linux-musl. |
| 1202 |
|
| 1203 |
2024-04-30 Paul Eggert <[email protected]> |
| 1204 |
|
| 1205 |
Improve VLA wording in NEWS |
| 1206 |
Thanks to a suggestion by Werner Lemberg in: |
| 1207 |
https://lists.gnu.org/r/autoconf/2024-04/msg00009.html |
| 1208 |
|
| 1209 |
Mention C keywords in NEWS |
| 1210 |
Thanks to Alan Coopersmith for mentioning this in: |
| 1211 |
https://lists.gnu.org/r/autoconf/2024-04/msg00011.html |
| 1212 |
|
| 1213 |
AC_PROG_CC now tries C23 too |
| 1214 |
As C23 is now mostly supported by GCC, it's time for |
| 1215 |
AC_PROG_CC to prefer C23 if available. |
| 1216 |
* lib/autoconf/c.m4 (_AC_C_C23_TEST_GLOBALS, _AC_C_C23_TEST_MAIN): |
| 1217 |
(_AC_C_C23_TEST_PROGRAM, _AC_C_C23_OPTIONS): New macros. |
| 1218 |
(_AC_PROG_CC_STDC_EDITION): Try C23 first. |
| 1219 |
|
| 1220 |
Port better to MSVC |
| 1221 |
Problems reported by Antonin Décimo in: |
| 1222 |
https://lists.gnu.org/r/autoconf/2024-04/msg00001.html |
| 1223 |
* lib/autoconf/c.m4 (_AC_C_C89_TEST_GLOBALS): |
| 1224 |
Do not test the value of __STDC__. |
| 1225 |
(_AC_C_C99_TEST_MAIN): Do not test for VLAs. |
| 1226 |
(_AC_C_C11_OPTIONS): Also test -std:c11. |
| 1227 |
|
| 1228 |
Fix doc typo with " {" |
| 1229 |
Problem reported by Brad Smith |
| 1230 |
<https://savannah.gnu.org/support/?111054>. |
| 1231 |
|
| 1232 |
2024-04-25 Paul Eggert <[email protected]> |
| 1233 |
|
| 1234 |
Adjust tests to match new Automake files |
| 1235 |
* tests/m4sugar.at (bad categories): Adjust test cases |
| 1236 |
to match changed behavior of files copied from Automake. |
| 1237 |
|
| 1238 |
make fetch |
| 1239 |
|
| 1240 |
2024-04-24 Paul Eggert <[email protected]> |
| 1241 |
|
| 1242 |
Port AC_SYS_LARGEFILE to C++ |
| 1243 |
Problem reported by Zack Weinberg |
| 1244 |
<https://savannah.gnu.org/support/?110983>. |
| 1245 |
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_PROBE) |
| 1246 |
(_AC_SYS_LARGEFILE_PROBE): |
| 1247 |
In chatter, say it’s a CPPFLAGS option, not a CC option. |
| 1248 |
(_AC_SYS_LARGEFILE_OPTIONS): Omit -n32, as we no longer |
| 1249 |
need to worry about IRIX. |
| 1250 |
(_AC_SYS_LARGEFILE_PROBE): Fiddle with CPPFLAGS, not CC, |
| 1251 |
and don’t worry about -n32. |
| 1252 |
|
| 1253 |
2024-04-06 Paul Eggert <[email protected]> |
| 1254 |
|
| 1255 |
Improve “possibly undefined macro” diagnostic |
| 1256 |
Simplified version of a suggestion by Reuben Thomas in: |
| 1257 |
https://lists.gnu.org/r/bug-autoconf/2024-04/msg00021.html |
| 1258 |
* bin/autom4te.in (warn_forbidden): Change message wording. |
| 1259 |
* tests/tools.at (autom4te and whitespace in file names) |
| 1260 |
(forbidden tokens, exceptions): Adjust tests to match new behavior. |
| 1261 |
|
| 1262 |
2024-02-07 Paul Eggert <[email protected]> |
| 1263 |
|
| 1264 |
Remove incorrect check in AC_CHECK_SIZEOF |
| 1265 |
* lib/autoconf/types.m4 (AC_CHECK_SIZEOF, AC_CHECK_ALIGNOF): |
| 1266 |
When the size or alignment cannot be determined, do not fail if |
| 1267 |
ac_cv_type_$1 is yes, as there’s no guarantee that ac_cv_type_$1 |
| 1268 |
is defined, and failure here would contradict the documentation |
| 1269 |
that the size or alignment is 0 when sizeof($1)/alignof($1) cannot |
| 1270 |
be compiled. The test for ac_cv_type_$1 made sense long ago when |
| 1271 |
it was checked for in these macros, but the test has not made |
| 1272 |
sense for many years. |
| 1273 |
|
| 1274 |
2024-02-04 Paul Eggert <[email protected]> |
| 1275 |
|
| 1276 |
Document ‘cp’ limitations better |
| 1277 |
* doc/autoconf.texi (Limitations of Usual Tools): |
| 1278 |
Modernize discussion of ‘cp’. |
| 1279 |
|
| 1280 |
2024-01-17 Paul Eggert <[email protected]> |
| 1281 |
|
| 1282 |
Fix typo in previous patch |
| 1283 |
|
| 1284 |
2024-01-16 Paul Eggert <[email protected]> |
| 1285 |
|
| 1286 |
Fix ‘long long’ checks on ancient platforms |
| 1287 |
Problem reported by Nick Bowler in: |
| 1288 |
https://lists.gnu.org/r/bug-autoconf/2024-01/msg00018.html |
| 1289 |
* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT) |
| 1290 |
(AC_TYPE_UNSIGNED_LONG_LONG_INT): Test for these |
| 1291 |
when K&R or c89, not when neither K&R nor C89. |
| 1292 |
This fixes a thinko that I introduced in |
| 1293 |
commit cdef0d2dad57f92301cb4baf782f8c24b01d5f1d |
| 1294 |
dated Wed Feb 16 01:29:40 2011 -0800. |
| 1295 |
|
| 1296 |
make fetch |
| 1297 |
|
| 1298 |
2024-01-10 Paul Eggert <[email protected]> |
| 1299 |
|
| 1300 |
doc: mention join bug |
| 1301 |
* doc/autoconf.texi: Mention BSD ‘join’ bug |
| 1302 |
<https://lists.gnu.org/r/bug-gnulib/2024-01/msg00028.html>. |
| 1303 |
|
| 1304 |
2024-01-05 Jim Meyering <[email protected]> |
| 1305 |
|
| 1306 |
maint: update all copyright dates via "make update-copyright" |
| 1307 |
|
| 1308 |
2023-12-22 Zack Weinberg <[email protected]> |
| 1309 |
|
| 1310 |
maint: post-release administrivia |
| 1311 |
* NEWS: Add header line for next release. |
| 1312 |
* .prev-version: Record previous version. |
| 1313 |
* cfg.mk (old_NEWS_hash): Auto-update. |
| 1314 |
|
| 1315 |
Finalize NEWS for release 2.72. |
| 1316 |
Since 2.72[abcde] did not get widely used, squash all the NEWS entries |
| 1317 |
since 2.71 together, and delete things that were only of interest to |
| 1318 |
people going from a,b,c to d to e. Finalize the release date. |
| 1319 |
|
| 1320 |
2023-12-22 Zack Weinberg <[email protected]> |
| 1321 |
|
| 1322 |
Save/restore AC_LANG setting in AC_PROG_CC_C_O. |
| 1323 |
All of the AC_PROG_{compiler}_C_O macros, *except* AC_PROG_CC_C_O, |
| 1324 |
wrap their test in an AC_LANG_PUSH/POP pair for the appropriate |
| 1325 |
language. https://savannah.gnu.org/support/index.php?110987 reports |
| 1326 |
that AC_PROG_CC_C_O’s not doing this can cause a configure script to |
| 1327 |
malfunction. Specifically, if a script invokes AC_PROG_CC_C_O with |
| 1328 |
AC_LANG([C++]) in effect, AC_PROG_CC_C_O still runs $CC but it passes |
| 1329 |
a .cpp source file, possibly along with C-specific options. Either |
| 1330 |
of those can cause the test to mis-detect support for -c -o. |
| 1331 |
|
| 1332 |
Add an AC_LANG_PUSH/POP pair to AC_PROG_CC_C_O, ensuring we are |
| 1333 |
testing the right compiler and giving it appropriate input. |
| 1334 |
|
| 1335 |
* lib/autoconf/c.m4 (AC_PROG_CC_C_O): Wrap body of test in |
| 1336 |
AC_LANG_PUSH/POP to C. |
| 1337 |
|
| 1338 |
2023-12-22 Zack Weinberg <[email protected]> |
| 1339 |
|
| 1340 |
Remove bashism from tests/local.at. |
| 1341 |
I regret doing development on a machine where /bin/sh is bash. |
| 1342 |
|
| 1343 |
* tests/local.at: Don’t use test ==. |
| 1344 |
|
| 1345 |
2023-12-22 Zack Weinberg <[email protected]> |
| 1346 |
|
| 1347 |
Revert debugging change committed by mistake |
| 1348 |
Commit 3fbfb13e7a846e98fa931b2bce373b5b2364a11b includes a debugging |
| 1349 |
hack that was not intended to be committed. Revert it. |
| 1350 |
|
| 1351 |
* tests/tools.at (autoconf: forbidden tokens, basic): Remove --verbose |
| 1352 |
from second invocation of autoconf. |
| 1353 |
|
| 1354 |
2023-12-22 Zack Weinberg <[email protected]> |
| 1355 |
|
| 1356 |
Address “autom4te preselections” testsuite failure |
| 1357 |
This test failure has the same root cause as described in |
| 1358 |
commit 3fbfb13e7a846e98fa931b2bce373b5b2364a11b: autom4te |
| 1359 |
regenerates the output unexpectedly because the output has |
| 1360 |
the *same* file modification timestamp as the cache file it |
| 1361 |
was generated from. Apply the same stopgap fix. |
| 1362 |
|
| 1363 |
* tests/tools.at (autom4te preselections): Immediately after |
| 1364 |
running autoconf the first time, delay and then touch configure. |
| 1365 |
Move the “echo newer > newer” line after the comment that explains |
| 1366 |
what it’s for. Insert additional blank lines for readability. |
| 1367 |
|
| 1368 |
2023-12-22 Zack Weinberg <[email protected]> |
| 1369 |
|
| 1370 |
Avoid a spurious test failure with shells that ignore write errors. |
| 1371 |
In a surprisingly large number of cases, the ‘printf’ shell utility |
| 1372 |
doesn’t report errors caused by writing to stdout. This can cause |
| 1373 |
a spurious test failure on systems that have this bug in ‘printf’ |
| 1374 |
and also have /dev/full. Detect such systems and skip that subtest. |
| 1375 |
|
| 1376 |
Problem reported by Alan Coopersmith. |
| 1377 |
|
| 1378 |
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): |
| 1379 |
If /bin/sh’s printf doesn’t report an error on writing to /dev/full, |
| 1380 |
skip the subtests that write to /dev/full. |
| 1381 |
|
| 1382 |
2023-12-21 Zack Weinberg <[email protected]> |
| 1383 |
|
| 1384 |
Address “autoconf: forbidden tokens, basic” testsuite failure |
| 1385 |
On file systems with coarse-grained timestamps, this test was broken by |
| 1386 |
<https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=713d9822bbfb2923115065efaefed34a0113f8a1>, |
| 1387 |
which changed autom4te's logic for deciding whether its output file is |
| 1388 |
newer than its cache file. After that commit, if their modification |
| 1389 |
times are equal, the output is considered out of date. Since both |
| 1390 |
files are created in quick succession, on file systems with coarse |
| 1391 |
timestamps (1 or 2s resolution), it is very easy for their |
| 1392 |
modification times to be equal. |
| 1393 |
|
| 1394 |
As a stopgap for 2.72, in this test, force the generated configure |
| 1395 |
script’s mtime to be newer than the cache file. |
| 1396 |
|
| 1397 |
* tests/tools.at (autoconf: forbidden tokens, basic): After the |
| 1398 |
second AT_MTIME_DELAY, touch configure. |
| 1399 |
|
| 1400 |
2023-12-21 Zack Weinberg <[email protected]> |
| 1401 |
|
| 1402 |
testsuite: Skip tests that use aclocal or automake if they’re too old. |
| 1403 |
Old versions of aclocal and/or automake can cause several tests to |
| 1404 |
fail, for two unrelated reasons: |
| 1405 |
|
| 1406 |
- when used with sufficiently new Perl they might print a “your code |
| 1407 |
has a minor bug” message on every invocation, causing tests that |
| 1408 |
check for specific output to choke |
| 1409 |
- aclocal prior to 1.11.2 does not support --system-acdir |
| 1410 |
|
| 1411 |
We already had code (in each individual test) to skip tests that depend |
| 1412 |
on aclocal and/or automake when those programs were *unavailable*, or |
| 1413 |
when buggy wrapper scripts were detected (apparently some BSDs once |
| 1414 |
shipped with a wrapper that required you to set an environment variable |
| 1415 |
before ‘automake’ would do anything at all). Consolidate all of that |
| 1416 |
code into local.at and augment it to detect the above two problems. |
| 1417 |
|
| 1418 |
Individual tests that require automake and/or aclocal should now |
| 1419 |
just say AT_REQUIRE_AUTOMAKE and/or AT_REQUIRE_ACLOCAL at the top. |
| 1420 |
Individual tests that run autoreconf but *don’t* need a real aclocal |
| 1421 |
should instead start with AT_SUPPRESS_ACLOCAL, which sets ACLOCAL=true |
| 1422 |
and creates a dummy aclocal.m4. |
| 1423 |
|
| 1424 |
While I was at it I noticed that AT_TESTED malfunctions if you have a |
| 1425 |
shell variable in there that expands to more than one shell word, so I |
| 1426 |
removed the AT_TESTED line for $M4 $PERL etc and replaced it with a |
| 1427 |
custom report for the most important system-provided programs that the |
| 1428 |
testsuite uses. That report now also includes automake and aclocal. |
| 1429 |
|
| 1430 |
This should fix the problems reported by Sevan Janiyan in |
| 1431 |
<https://lists.gnu.org/archive/html/bug-autoconf/2023-12/msg00159.html>. |
| 1432 |
Tested on x86_64-linux against automake 1.11.1, 1.11.2, 1.13.0, and 1.16.5. |
| 1433 |
|
| 1434 |
* tests/local.at (AT_PREPARE_TESTS): Consolidate code to detect |
| 1435 |
availability of automake and aclocal here. Also detect Perl |
| 1436 |
warning messages that will interfere with matching on the output, |
| 1437 |
and aclocal too old to understand --system-acdir. Produce a custom |
| 1438 |
report of the versions of system-provided programs we need: |
| 1439 |
m4, perl, sh, make, and optionally automake and aclocal. |
| 1440 |
(AT_TESTED): Only list programs that are part of this package. |
| 1441 |
(AT_REQUIRE_AUTOMAKE, AT_REQUIRE_ACLOCAL, AT_SUPPRESS_ACLOCAL): |
| 1442 |
New helper macros. |
| 1443 |
* tests/fortran.at, tests/tools.at, tests/torture.at: |
| 1444 |
Use AT_REQUIRE_AUTOMAKE, AT_REQUIRE_ACLOCAL, AT_SUPPRESS_ACLOCAL |
| 1445 |
throughout, as appropriate. |
| 1446 |
|
| 1447 |
2023-12-20 Zack Weinberg <[email protected]> |
| 1448 |
|
| 1449 |
update NEWS for 2.72e release candidate |
| 1450 |
|
| 1451 |
spelling errors reported by “make syntax-check” |
| 1452 |
|
| 1453 |
2023-12-19 Zack Weinberg <[email protected]> |
| 1454 |
|
| 1455 |
Adjust --help and manpages to make it easier to find the Web manual. |
| 1456 |
Today it came to my attention that, if you don’t already know that all |
| 1457 |
the GNU manuals are readable in HTML format on gnu.org, it’s not easy |
| 1458 |
to find one starting from typical --help output and/or help2man- |
| 1459 |
generated manpages. Let’s do a little to make this easier, and have |
| 1460 |
“https://www.gnu.org/software/autoconf/manual/” appear prominently in |
| 1461 |
both the --help output and the trailer text of our generated manpages. |
| 1462 |
|
| 1463 |
This uses the extended tmac.an “.MT” and “.UR” directives, which are |
| 1464 |
not universal, but I suspect anyone who’s actively using Autoconf on |
| 1465 |
an old system does not need the advice, and they can get it from |
| 1466 |
--help regardless. |
| 1467 |
|
| 1468 |
* bin/autoconf.in, bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in |
| 1469 |
* bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in: |
| 1470 |
Refer specifically to https://www.gnu.org/software/autoconf/manual/ |
| 1471 |
for the web version of the complete Autoconf manual. |
| 1472 |
* man/common.x: Likewise; also, suggest the Savannah tracker as |
| 1473 |
well as bug-autoconf for bug reports. |
| 1474 |
|
| 1475 |
2023-12-19 Zack Weinberg <[email protected]> |
| 1476 |
|
| 1477 |
Run gitlog-to-changelog in source directory. |
| 1478 |
gitlog-to-changelog needs to run in the source directory so it can |
| 1479 |
find the git metadata. This was masked in many cases because “git log” |
| 1480 |
will look in parent directories for .git, but if you have your build |
| 1481 |
directory completely outside the source tree then it can’t find it. |
| 1482 |
|
| 1483 |
* Makefile.am (gen-ChangeLog): Execute gitlog-to-changelog in $(top_srcdir). |
| 1484 |
|
| 1485 |
2023-12-19 Zack Weinberg <[email protected]> |
| 1486 |
|
| 1487 |
Skip test of AC_SYS_YEAR2038_RECOMMENDED if system doesn’t support 64-bit time_t. |
| 1488 |
AC_SYS_YEAR2038_RECOMMENDED causes configure to fail if we can’t find |
| 1489 |
a way to activate support for 64-bit time_t. This makes its |
| 1490 |
mktests.pl test fail on systems that don’t support 64-bit time_t. |
| 1491 |
Switch to a hand-written test that’s skipped on those systems. |
| 1492 |
While I was in there I added slightly more testing of the closely |
| 1493 |
related macros AC_SYS_LARGEFILE and AC_SYS_YEAR2038. |
| 1494 |
|
| 1495 |
While testing this change I noticed that AC_SYS_LARGEFILE and |
| 1496 |
AC_SYS_YEAR2038 malfunction if AC_LANG([C++]) is in effect. |
| 1497 |
The cause is too hairy to fix before the release; add a mention |
| 1498 |
to NEWS instead. (Bug <https://savannah.gnu.org/support/index.php?110983>.) |
| 1499 |
|
| 1500 |
* tests/mktests.pl: Exclude AC_SYS_LARGEFILE, AC_SYS_YEAR2038, and |
| 1501 |
AC_SYS_YEAR2038_RECOMMENDED from automatic test generation. |
| 1502 |
* tests/semantics.at: Add manual tests of those macros. |
| 1503 |
|
| 1504 |
2023-12-18 Zack Weinberg <[email protected]> |
| 1505 |
|
| 1506 |
Revert "config.status: handle CRLF line endings in AC_CONFIG_HEADERS input" |
| 1507 |
Solaris 10 /usr/bin/awk doesn't implement sub(). Let's defer this |
| 1508 |
change until after the release and I have time to think about it |
| 1509 |
some more. |
| 1510 |
|
| 1511 |
This reverts commit bfd3894367e4d1c36c514e02c62173cde157f06b. |
| 1512 |
This reopens bug <https://savannah.gnu.org/support/?110554>. |
| 1513 |
|
| 1514 |
2023-12-18 Paul Eggert <[email protected]> |
| 1515 |
|
| 1516 |
Fix AC_FUNC_MMAP on CheriBSD |
| 1517 |
Problem reported by Brooks Davis in: |
| 1518 |
https://lists.gnu.org/r/autoconf/2023-12/msg00022.html |
| 1519 |
* lib/autoconf/functions.m4: Don’t unmap, since we |
| 1520 |
want to test remapping something already mapped, |
| 1521 |
and unmapping breaks on CheriBSD. |
| 1522 |
|
| 1523 |
2023-12-18 Zack Weinberg <[email protected]> |
| 1524 |
|
| 1525 |
Clarify error messages for misuse of m4_warn and --help for -W. |
| 1526 |
m4_warn([category], [message]) passes its arguments directly to |
| 1527 |
Autom4te::Channels::msg. If the category argument is not a recognized |
| 1528 |
“channel”, that function will crash and emit a *Perl* stack trace, |
| 1529 |
which makes it look like there’s something wrong with autoconf or |
| 1530 |
autom4te, rather than something wrong with the script. |
| 1531 |
|
| 1532 |
Making matters worse, in autoconf 2.69, the manual said you could |
| 1533 |
use “all” and the empty string as the first argument to m4_warn. |
| 1534 |
As far as I can tell, neither of those was ever a valid message |
| 1535 |
channel, and the manual was corrected in 2.70, but we still got |
| 1536 |
a bug report from someone who tried it. |
| 1537 |
|
| 1538 |
This patch makes us issue a nice helpful user error, instead of a |
| 1539 |
confusing internal error, when Autom4te::Channels::msg is called with |
| 1540 |
a bogus channel argument. If the bogus channel is “all” or the empty |
| 1541 |
string, that error is demoted to a -Wobsolete warning. If it is one |
| 1542 |
of the other special tokens recognized by -W, we customize the error |
| 1543 |
message, since someone might’ve thought that “none” being acceptable |
| 1544 |
to -W meant it was also acceptable to m4_warn. The --help output for |
| 1545 |
autoconf, autoheader, autom4te, and autoreconf is also adjusted to |
| 1546 |
clarify that not all of the tokens recognized by -W count as |
| 1547 |
warning categories. |
| 1548 |
|
| 1549 |
(Oddly enough, the lack of filtration at the autom4te level means |
| 1550 |
m4_warn([error], […]) actually does issue an error. There’s no other |
| 1551 |
way to get exactly that effect — m4_errprintn(…) and m4_fatal(…) |
| 1552 |
both do something a little different — so I I propose to leave that |
| 1553 |
alone for now and promote it to a proper, documented feature, probably |
| 1554 |
spelled m4_error(…), post-2.72.) |
| 1555 |
|
| 1556 |
Channels.pm and ChannelDefs.pm are shared with Automake. I believe |
| 1557 |
there is nothing you can write in a Makefile.am that will cause |
| 1558 |
Automake::Channels::msg to be called with an arbitrary user-supplied |
| 1559 |
channel argument, so these changes should have no visible effect on |
| 1560 |
that side of the fence. |
| 1561 |
|
| 1562 |
Addresses <https://savannah.gnu.org/support/?110872>. |
| 1563 |
|
| 1564 |
* lib/Autom4te/Channels.pm (msg): If the channel argument is invalid, |
| 1565 |
don’t crash; report the mistake and use the ‘syntax’ channel. |
| 1566 |
(report_bad_channel): New function for reporting invalid channels. |
| 1567 |
|
| 1568 |
* lib/Autom4te/ChannelDefs.pm (usage): Clarify that the list of |
| 1569 |
warning categories is exhaustive, and that “all”, “none”, |
| 1570 |
“no-CATEGORY”, and “error” are not warning categories. |
| 1571 |
|
| 1572 |
* bin/autoconf.in, bin/autoheader.in, bin/autom4te.in, |
| 1573 |
bin/autoreconf.in: Tweak --help text. |
| 1574 |
|
| 1575 |
* tests/m4sugar.at (m4@&t@_warn (bad categories)): New test. |
| 1576 |
|
| 1577 |
2023-12-15 Zack Weinberg <[email protected]> |
| 1578 |
David Allsopp <[email protected]> |
| 1579 |
|
| 1580 |
config.status: handle CRLF line endings in AC_CONFIG_HEADERS input |
| 1581 |
On systems that normally use Unix line endings, if config.h.in has |
| 1582 |
somehow been generated with DOS line endings, then awk will treat |
| 1583 |
each CR character as part of the line. This breaks the regular |
| 1584 |
expressions used to edit config.h.in into config.h |
| 1585 |
|
| 1586 |
To fix, manually strip trailing CRs from each “input record” before |
| 1587 |
any other processing. For consistency I also made this change to the |
| 1588 |
code dealing with AC_CONFIG_FILES substitutions. On systems that use |
| 1589 |
DOS line endings, both changes should be no-ops. |
| 1590 |
|
| 1591 |
Reported by David Allsopp in <https://savannah.gnu.org/support/?110554>. |
| 1592 |
He offered a different patch, which also worked on my machine, but it |
| 1593 |
used a regular expression as the third argument to ‘split’, which |
| 1594 |
might not be portable across awk implementations (the gawk manual is |
| 1595 |
unclear). Also, it could produce a config.h with _inconsistent_ line |
| 1596 |
endings. |
| 1597 |
|
| 1598 |
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS_PREPARE): In the awk |
| 1599 |
script, strip a trailing CR from each record as the first action. |
| 1600 |
(_AC_OUTPUT_FILES_PREPARE): Likewise. |
| 1601 |
* tests/torture.at (CRLF line endings in .in files): New test. |
| 1602 |
|
| 1603 |
2023-12-13 Paul Eggert <[email protected]> |
| 1604 |
|
| 1605 |
AC_PROG_MKDIR_P: Fix detection of busybox mkdir. |
| 1606 |
Some versions of BusyBox mkdir respond to ‘mkdir --version’ by |
| 1607 |
printing “mkdir: unrecognized option: --version” to stderr, and then |
| 1608 |
the version message we’re looking for, also to stderr. Adjust the |
| 1609 |
pattern matching in AC_PROG_MKDIR_P to account for this. |
| 1610 |
|
| 1611 |
Problem reported by Valery Ushakov. |
| 1612 |
Resolves <https://savannah.gnu.org/support/?110971>. |
| 1613 |
|
| 1614 |
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Fix detection of busybox mkdir. |
| 1615 |
|
| 1616 |
2023-12-12 Detlef Riekenberg <[email protected]> |
| 1617 |
|
| 1618 |
Consistently use block comments at beginning of C99 and C11 tests |
| 1619 |
Purely cosmetic improvement to the C standard version tests: Use /* */ |
| 1620 |
comments above all three checks of __STDC__ and/or __STDC_VERSION__, |
| 1621 |
and make “// See if C++-style comments work” the very first // comment. |
| 1622 |
|
| 1623 |
Resolves issue #110713. |
| 1624 |
|
| 1625 |
* c.m4 (_AC_C_C99_TEST_GLOBALS, _AC_C_C11_TEST_GLOBALS): |
| 1626 |
Improve stylistic consistency with _AC_C_C89_TEST_GLOBALS. |
| 1627 |
Move explicit test of C++-style comments earlier. |
| 1628 |
|
| 1629 |
2023-12-11 Zack Weinberg <[email protected]> |
| 1630 |
|
| 1631 |
autom4te: Don’t crash if Data::Dumper::Sortkeys is unavailable. |
| 1632 |
Commit c2ab755698db245898a4cc89149eb5df256e4bd0 added an unconditional |
| 1633 |
use of Data::Dumper’s Sortkeys method, which was added in version |
| 1634 |
2.12_01 of that module. In terms of Perl versions, it is available in |
| 1635 |
5.8.x and later, and in 5.6.2, but not in 5.6.1 or earlier. At the |
| 1636 |
time, our minimum Perl version was 5.10, but we lowered it to 5.6.0 |
| 1637 |
again in 05e295b60cfdf378b7ed8c1f8563a5644d5d4689. It seems that |
| 1638 |
commit was not actually tested with 5.6.1 or earlier. |
| 1639 |
|
| 1640 |
As we are only using Sortkeys to facilitate manual comparison of |
| 1641 |
autom4te.cache/requests files, we can just ignore the method lookup |
| 1642 |
failure with 5.6.[01] and everything will work fine without it. |
| 1643 |
|
| 1644 |
Tested on x86_64-unknown-netbsd9.3 with perl 5.6.1. |
| 1645 |
|
| 1646 |
* lib/Autom4te/C4che.pm (marshall): Ignore method lookup failure for |
| 1647 |
Data::Dumper::Sortkeys with very old perl. |
| 1648 |
* lib/Autom4te/Request.pm (marshall): Likewise. |
| 1649 |
|
| 1650 |
2023-12-06 Zack Weinberg <[email protected]> |
| 1651 |
|
| 1652 |
autom4te: report subsecond timestamp support in --version |
| 1653 |
The Automake test suite wants this in order to know if it’s safe to |
| 1654 |
reduce the length of various delays for the purpose of ensuring files |
| 1655 |
in autom4te.cache are newer than the corresponding source files. We |
| 1656 |
can also take advantage of this to speed up a couple of tests in our |
| 1657 |
own testsuite. |
| 1658 |
|
| 1659 |
* lib/Autom4te/FileUtils.pm: Provide (but do not export) a flag |
| 1660 |
$subsecond_mtime, indicating whether the ‘mtime’ function reports |
| 1661 |
modification time with precision greater than one second. |
| 1662 |
Reorganize commentary and import logic for clarity. Add |
| 1663 |
configuration for emacs’ perl-mode to the bottom of the file. |
| 1664 |
* bin/autom4te.in ($version): If $Autom4te::FileUtils::subsecond_mtime |
| 1665 |
is true, print “Features: subsecond-mtime” as the second line |
| 1666 |
of --version output. |
| 1667 |
|
| 1668 |
* lib/autotest/general.m4: Move definitions of AS_MESSAGE_LOG_FD, |
| 1669 |
AT_JOB_FIFO_IN_FD, and AT_JOB_FIFO_OUT_FD to top level and change |
| 1670 |
the latter two to be defined using _AT_DEFINE_INIT. This enables |
| 1671 |
use of AS_MESSAGE_LOG_FD in AT_TESTS_PREPARE code. |
| 1672 |
|
| 1673 |
* tests/local.at (AT_MTIME_DELAY): New utility that delays a test for |
| 1674 |
an appropriate time to ensure all files created before its use are |
| 1675 |
considered older than all files created afterward. The delay will |
| 1676 |
be as short as possible. |
| 1677 |
(AT_TESTS_PREPARE): Calculate and log the delay used by AT_MTIME_DELAY. |
| 1678 |
Only use a delay shorter than one second if the build filesystem, |
| 1679 |
our autom4te, and the automake on the PATH all support this. |
| 1680 |
(AT_CMP): En passant removal of unnecessary blank lines. |
| 1681 |
|
| 1682 |
* tests/tools.at: Use AT_MTIME_DELAY, instead of sleeping for a |
| 1683 |
hardcoded interval, everywhere the delay was to control file |
| 1684 |
timestamps. |
| 1685 |
|
| 1686 |
2023-12-01 Paul Eggert <[email protected]> |
| 1687 |
|
| 1688 |
Be more conservative about cache timestamps |
| 1689 |
* bin/autom4te.in (up_to_date): Fix thinko by using the |
| 1690 |
minimum of the cache files’ timestamps, not the maximum. |
| 1691 |
|
| 1692 |
Tweak Annex K doc |
| 1693 |
* doc/autoconf.texi (C and Posix Variants): |
| 1694 |
Don’t insist on C11 when talking about Annex K, as |
| 1695 |
Annex K is also present in later versions of the C standard. |
| 1696 |
|
| 1697 |
* bin/autom4te.in: Fix comments. |
| 1698 |
|
| 1699 |
2023-12-01 Zack Weinberg <[email protected]> |
| 1700 |
|
| 1701 |
testsuite: log version of shell and make as well |
| 1702 |
A lot of bugs recently have been due to unexpected changes in shell |
| 1703 |
and/or make behavior, so let’s log their versions in testsuite.log |
| 1704 |
to make it easier to figure out when that’s the problem. |
| 1705 |
|
| 1706 |
Some shells don’t recognize --version but we still get an indication |
| 1707 |
in the logfile of which shell it is, e.g. |
| 1708 |
|
| 1709 |
$ make check TESTSUITEFLAGS=1 SHELL=/bin/dash; grep dash tests/testsuite.log |
| 1710 |
../../tests/local.at:25: /bin/dash --version |
| 1711 |
/bin/dash: 0: Illegal option -- |
| 1712 |
|
| 1713 |
* tests/local.at: Add ${CONFIG_SHELL-$SHELL} and $MAKE to AT_TESTED. |
| 1714 |
|
| 1715 |
2023-12-01 Bruno Haible <[email protected]> |
| 1716 |
|
| 1717 |
Recognize the *-*-windows* config triplets introduced on 2023-06-26. |
| 1718 |
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Treat windows* as |
| 1719 |
equivalent to mingw*. |
| 1720 |
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF): |
| 1721 |
Likewise. |
| 1722 |
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_PROBE): Likewise. |
| 1723 |
|
| 1724 |
2023-11-30 Zack Weinberg <[email protected]> |
| 1725 |
|
| 1726 |
maint: post-release administrivia |
| 1727 |
* NEWS: Add header line for next release. |
| 1728 |
* .prev-version: Record previous version. |
| 1729 |
* cfg.mk (old_NEWS_hash): Auto-update. |
| 1730 |
|
| 1731 |
Release 2.72d [beta] |
| 1732 |
Revise all NEWS entries since 2.71 for clarity. Add an entry |
| 1733 |
to the compatibility section about the macros that no longer |
| 1734 |
have AC_PROG_{EGREP,CPP} as a side effect. |
| 1735 |
|
| 1736 |
make fetch |
| 1737 |
|
| 1738 |
2023-11-26 Paul Eggert <[email protected]> |
| 1739 |
|
| 1740 |
Remove m4_file_append |
| 1741 |
* lib/m4sugar/m4sugar.m4 (m4_file_append): Remove. |
| 1742 |
In 2000, this undocumented macro was left in by mistake |
| 1743 |
even though all its callers were removed. |
| 1744 |
Inspired by a bug report by Ally Petitt (sr#110961). |
| 1745 |
|
| 1746 |
2023-10-18 KO Myung-Hun <[email protected]> |
| 1747 |
|
| 1748 |
m4/m4.m4: Quote argument to AS_ECHO correctly. |
| 1749 |
AS_ECHO’s argument is required to be “a single shell word,” |
| 1750 |
and this more precisely means it must not be altered by shell |
| 1751 |
word splitting. In particular, if the argument contains shell |
| 1752 |
variables whose values contain whitespace then it needs to be |
| 1753 |
wrapped in "shell double quotes". |
| 1754 |
|
| 1755 |
The absence of these quotes caused one of the embedded M4 scripts |
| 1756 |
to be mangled by the Autoconf 2.69 implementation of AS_ECHO. |
| 1757 |
We don’t officially support bootstrapping with an older version |
| 1758 |
of Autoconf (use the ./bootstrap script instead) but the absence |
| 1759 |
of quotes is still incorrect. |
| 1760 |
|
| 1761 |
For consistency add [M4 quotes] to the use of AS_ECHO that was |
| 1762 |
shell-quoted but not M4-quoted. |
| 1763 |
|
| 1764 |
* m4/m4.m4 (AC_PROG_GNU_M4): Quote argument to AS_ECHO correctly. |
| 1765 |
|
| 1766 |
2023-10-18 Zack Weinberg <[email protected]> |
| 1767 |
KO Myung-Hun <[email protected]> |
| 1768 |
|
| 1769 |
autom4te: OS/2 compat: Do not attempt to chmod an open file. |
| 1770 |
On OS/2, chmod(2) cannot be applied to an open file. |
| 1771 |
|
| 1772 |
Instead set the desired permissions when the file is initially |
| 1773 |
created, using the PERMS argument to File::Temp::tempfile if |
| 1774 |
possible, or by manually emulating that feature if the system |
| 1775 |
perl does not provide a new enough version of File::Temp. |
| 1776 |
|
| 1777 |
This has the nice side effect that we no longer need to handle |
| 1778 |
the umask manually. |
| 1779 |
|
| 1780 |
* autom4te.in (tempfile_with_mode): New function. |
| 1781 |
(handle_output): Use tempfile_with_mode instead of directly using |
| 1782 |
File::Temp plus chmod. |
| 1783 |
|
| 1784 |
2023-08-18 Paul Eggert <[email protected]> |
| 1785 |
|
| 1786 |
Improve INSTALL format |
| 1787 |
* doc/install.texi (Compilers and Options): Fix two @ref |
| 1788 |
instances that don’t work well when making INSTALL. |
| 1789 |
Problem noted by Gavin Smith in: |
| 1790 |
https://lists.gnu.org/r/autoconf/2023-08/msg00004.html |
| 1791 |
|
| 1792 |
2023-08-15 Paul Eggert <[email protected]> |
| 1793 |
|
| 1794 |
Mention ./bootstrap privacy implications |
| 1795 |
* doc/install.texi: Fix some problems noted by Gavin Smith in: |
| 1796 |
https://lists.gnu.org/r/autoconf/2023-08/msg00000.html |
| 1797 |
|
| 1798 |
2023-08-15 Gleb Fotengauer-Malinovskiy <[email protected]> (tiny change) |
| 1799 |
|
| 1800 |
Fix _AC_LANG_IO_PROGRAM(C) to work with glibc 2.38 headers |
| 1801 |
Following the glibc commit glibc-2.38~268 ("libio: Add __nonnull |
| 1802 |
for FILE * arguments of fclose and freopen"), the utilization of the gcc |
| 1803 |
-fanalyzer flag in combination with the -Werror flag leads to an error |
| 1804 |
within the _AC_LANG_IO_PROGRAM(C) function: |
| 1805 |
|
| 1806 |
conftest.c:14:23: error: use of possibly-NULL 'f' where non-null expected [CWE-690] [-Werror=analyzer-possible-null-argument] |
| 1807 |
|
| 1808 |
* lib/autoconf/c.m4 (_AC_LANG_IO_PROGRAM): Exit upon encountering |
| 1809 |
fopen() error. |
| 1810 |
|
| 1811 |
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109570 and |
| 1812 |
https://gcc.gnu.org/g:c9a19621a07e246385ae075b61283140b23c3b5a . |
| 1813 |
|
| 1814 |
2023-06-24 Paul Eggert <[email protected]> |
| 1815 |
|
| 1816 |
Shorten and improve INSTALL |
| 1817 |
Rewrite install.texi so that INSTALL is shorter and hopefully |
| 1818 |
more useful for new installers. |
| 1819 |
* doc/install.texi: When not building the Autoconf manual, put |
| 1820 |
copyright notice at the end, and omit external references as they |
| 1821 |
do not work in INSTALL. |
| 1822 |
Avoid long URLs as they do not work well in INSTALL or |
| 1823 |
in info files. Be more consistent (though not entirely |
| 1824 |
consistent) about “system” vs “architecture”. |
| 1825 |
(System Types, Building for a different system type) |
| 1826 |
(Troubleshooting the Build Type): Coalesce into a single section |
| 1827 |
and rewrite for clarity and brevity. Mention build-aux. Do not |
| 1828 |
mention --target here as it’s too rare to make the cut. |
| 1829 |
|
| 1830 |
2023-06-24 Bruno Haible <[email protected]> |
| 1831 |
|
| 1832 |
INSTALL: Clarify --build, --host, --target, and the system types. |
| 1833 |
* doc/install.texi (Compilers and Options): Add another reference. |
| 1834 |
(System Types): Renamed from System Type. Explain how to canonicalize |
| 1835 |
and how to validate a system type. Don't explain --build, --host, |
| 1836 |
--target here. |
| 1837 |
(Building for a different system type): New section. |
| 1838 |
(Troubleshooting the Build Type): New section. |
| 1839 |
(Configuring a Compiler): New section. |
| 1840 |
(configure Invocation): Mention the --host option, not the --build |
| 1841 |
option, since --build is so rarely needed. |
| 1842 |
|
| 1843 |
2023-06-20 Paul Eggert <[email protected]> |
| 1844 |
|
| 1845 |
doc: fix broken cross-refs |
| 1846 |
|
| 1847 |
Modernize INSTALL |
| 1848 |
Problem reported for gettext bootstrap by Julien Palard in: |
| 1849 |
https://savannah.gnu.org/bugs/?62196 |
| 1850 |
* doc/install.texi: Give a brief info as to how to bootstrap, |
| 1851 |
on packages built from Git rather from a distribution tarball. |
| 1852 |
Remove aging details about c99, macOS, X, HP-UX, OSF/1, Solaris, |
| 1853 |
Haiku, sun4. Improve documentation for enable/disable and |
| 1854 |
with/without options. |
| 1855 |
|
| 1856 |
2023-06-19 Paul Eggert <[email protected]> |
| 1857 |
|
| 1858 |
Fix AC_SYS_LARGEFILE on GNU/Linux alpha, s390x |
| 1859 |
Problem reported by Matoro <https://bugs.gnu.org/64123>. |
| 1860 |
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_TEST_CODE): |
| 1861 |
New overridable macro FTYPE, to test types other than off_t. |
| 1862 |
(_AC_SYS_LARGEFILE_TEST_CODE): Test ino_t for |
| 1863 |
-D_FILE_OFFSETBITS=64 too, if no flags are needed for off_t. |
| 1864 |
Needed for GNU/Linux on alpha and s390x. |
| 1865 |
|
| 1866 |
2023-05-17 Paul Eggert <[email protected]> |
| 1867 |
|
| 1868 |
Improve AC_FUNC_MMAP comments |
| 1869 |
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Add comment. |
| 1870 |
|
| 1871 |
2023-05-13 Paul Eggert <[email protected]> |
| 1872 |
|
| 1873 |
Improve AC_SYS_YEAR2038_RECOMMENDED diagnostic |
| 1874 |
* lib/autoconf/specific.m4 (AC_SYS_YEAR2038_RECOMMENDED): |
| 1875 |
Do not recommend gcc -m64, as that likely will not work. |
| 1876 |
Problem reported by Bruno Haible in: |
| 1877 |
https://lists.gnu.org/r/bug-gnulib/2023-05/msg00060.html |
| 1878 |
Instead, mention that 32-bit time_t is not recommended |
| 1879 |
for this package, before telling the builder how |
| 1880 |
to configure with 32-bit time_t anyway. |
| 1881 |
|
| 1882 |
2023-05-11 Paul Eggert <[email protected]> |
| 1883 |
|
| 1884 |
Fix port of AC_FUNC_MMAP |
| 1885 |
Problem reported by Matt Turner in: |
| 1886 |
https://lists.gnu.org/r/bug-autoconf/2023-05/msg00005.html |
| 1887 |
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Go back to getting the |
| 1888 |
page size, since the zero-fill test needs this after all. |
| 1889 |
However, prefer sysconf (_SC_PAGESIZE) or sysconf (_SC_PAGE_SIZE) |
| 1890 |
to getpagesize (), and use ‘long’ not ‘int’ to store the page size. |
| 1891 |
Also, declare getpagesize if it is used as a function. |
| 1892 |
|
| 1893 |
2023-05-10 Paul Eggert <[email protected]> |
| 1894 |
|
| 1895 |
Port AC_FUNC_MMAP to more-modern systems |
| 1896 |
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Don’t call |
| 1897 |
getpagesize, as it’s tricky to configure, modern POSIX doesn’t |
| 1898 |
require it, and calling it without including <unistd.h> provokes a |
| 1899 |
compile-time error on modern systems. Instead, rework the test |
| 1900 |
to not need getpagesize. Add a FIXME comment for unnecessary |
| 1901 |
tests; I don't want to remove them now as we're too close to |
| 1902 |
a release. Remove long-obsolete comment about GNU grep. |
| 1903 |
|
| 1904 |
2023-04-26 Paul Eggert <[email protected]> |
| 1905 |
|
| 1906 |
Tone down year-2038 changes |
| 1907 |
New macro AC_SYS_YEAR2038_RECOMMENDED replaces new macro |
| 1908 |
AC_SYS_YEAR2038_REQUIRED, and gives the builder an out of |
| 1909 |
specifying --disable-year2038. Remove new macro |
| 1910 |
AC_SYS_LARGEFILE_REQUIRED, which was added only for symmetry and |
| 1911 |
does not seem to have a great need. |
| 1912 |
* NEWS, doc/autoconf.texi: Document this. |
| 1913 |
* lib/autoconf/specific.m4: |
| 1914 |
Be more specific about mid-January 2038 than just Jan 2038. |
| 1915 |
(_AC_SYS_YEAR2038_PROBE): Ignore IF-NOT-DETECTED arg. |
| 1916 |
If support is not detected, merely set ac_have_year2038=no instead |
| 1917 |
of erroring out. All callers changed. |
| 1918 |
(_AC_SYS_YEAR2038_OPT_IN): Remove. All callers removed. |
| 1919 |
(AC_SYS_YEAR2038): Simplify by requiring AC_SYS_LARGEFILE |
| 1920 |
and then testing the result. |
| 1921 |
(AC_SYS_YEAR2038_REQUIRED, AC_SYS_LARGEFILE_REQUIRED): Remove. |
| 1922 |
(AC_SYS_YEAR2038_RECOMMENDED): New macro. |
| 1923 |
(_AC_SYS_LARGEFILE_PROBE): If support is not detected, merely set |
| 1924 |
ac_have_largefile=no instead of erroring out. All callers changed. |
| 1925 |
Take on the burden of invoking year2038 probe as needed. |
| 1926 |
(AC_SYS_LARGEFILE): Simplify. |
| 1927 |
|
| 1928 |
2023-04-19 Bruno Haible <[email protected]> |
| 1929 |
|
| 1930 |
AC_SYS_YEAR2038_REQUIRED: Fix configure failure with MSVC. |
| 1931 |
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_PROBE): Distinguish the results |
| 1932 |
"support not detected" and "supported through gnulib". If the result is |
| 1933 |
"supported through gnulib", don't fail. |
| 1934 |
|
| 1935 |
2023-04-17 Bruno Haible <[email protected]> |
| 1936 |
|
| 1937 |
Document limitation of BusyBox tr. |
| 1938 |
BusyBox 1.35.0 tr, which is shipped with Alpine Linux 3.17, does not support |
| 1939 |
the POSIX [x*n] syntax. |
| 1940 |
|
| 1941 |
* doc/autoconf.texi (Limitations of Usual Tools): Document limitation of 'tr' |
| 1942 |
from BusyBox. |
| 1943 |
|
| 1944 |
2023-04-15 Bruno Haible <[email protected]> |
| 1945 |
|
| 1946 |
AC_SYS_YEAR2038: Fix configure failure on 32-bit mingw. |
| 1947 |
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_PROBE): Use the same option |
| 1948 |
spelling as in _AC_SYS_YEAR2038_OPTIONS. |
| 1949 |
|
| 1950 |
2023-04-09 Paul Eggert <[email protected]> |
| 1951 |
|
| 1952 |
Improve year2038, largefile option processing |
| 1953 |
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_PROBE) |
| 1954 |
(_AC_SYS_YEAR2038_ENABLE, _AC_SYS_YEAR2038_OPT_IN) |
| 1955 |
(AC_SYS_YEAR2038, _AC_SYS_LARGEFILE_PROBE) |
| 1956 |
(_AC_SYS_LARGEFILE_ENABLE): Do not use enable_largefile to record |
| 1957 |
whether largefile is required, as ‘./configure |
| 1958 |
--disable-largefile’ sets enable_largefile=no even if largefile is |
| 1959 |
required and this disables largefile. Instead, use a separate |
| 1960 |
shell variable ac_largefile_required and test it as well. |
| 1961 |
Similarly for enable_year2038. |
| 1962 |
(_AC_SYS_LARGEFILE_ENABLE): Omit --disable-largefile help string |
| 1963 |
if year2038 is required, since largefile is a prereq for year2038. |
| 1964 |
|
| 1965 |
2023-04-03 Paul Eggert <[email protected]> |
| 1966 |
|
| 1967 |
Support circa early 2022 Gnulib |
| 1968 |
Problem reported by Frederic Berat in: |
| 1969 |
https://lists.gnu.org/r/bug-rcs/2023-04/msg00001.html |
| 1970 |
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES): |
| 1971 |
Bring back for compatibility with post-2.71, pre-2.73 Gnulib. |
| 1972 |
|
| 1973 |
2023-04-02 Zack Weinberg <[email protected]> |
| 1974 |
|
| 1975 |
Remove the last few internal uses of AC_EGREP_CPP. |
| 1976 |
Most of the remaining uses were converted to AC_COMPILE_IFELSE. |
| 1977 |
The use in AC_FUNC_LOADAVG becomes an AC_PREPROC_IFELSE because |
| 1978 |
we can’t be sure getloadavg.c can be _compiled_ at this point in |
| 1979 |
the build. The use in AC_C_VARARRAYS could be either _PREPROC_ or |
| 1980 |
_COMPILE_; we use _COMPILE_ because, _PREPROC_ is never used, then |
| 1981 |
we don’t have to do the “checking how to run the C preprocessor” test. |
| 1982 |
|
| 1983 |
* lib/autoconf/c.m4 (AC_C_VARARRAYS): Use AC_COMPILE_IFELSE instead of |
| 1984 |
AC_EGREP_CPP. |
| 1985 |
* lib/autoconf/headers.m4 (_AC_HEADER_TIOCGWINSZ_IN_TERMIOS_H) |
| 1986 |
(_AC_HEADER_TIOCGWINSZ_IN_SYS_IOCTL_H): Likewise. |
| 1987 |
* lib/autoconf/functions.m4 (AC_FUNC_GETLOADAVG): Use AC_PREPROC_IFELSE |
| 1988 |
instead of AC_EGREP_CPP. |
| 1989 |
|
| 1990 |
2023-04-02 Zack Weinberg <[email protected]> |
| 1991 |
|
| 1992 |
Fold AC_C_STRINGIZE into AC_PROG_CC. |
| 1993 |
Another of the last few uses of AC_EGREP_CPP is to check for the ISO C |
| 1994 |
“stringification” operator. As this is a feature of C89, let’s fold |
| 1995 |
the test into the extensive C89 tests we already have, and make |
| 1996 |
AC_C_STRINGIZE just lean on AC_PROG_CC, in the same way |
| 1997 |
AC_C_PROTOTYPES does. |
| 1998 |
|
| 1999 |
* lib/autoconf/c.m4 (_AC_C_C89_TEST_GLOBALS): Add test of preprocessor |
| 2000 |
stringification and token pasting. |
| 2001 |
(AC_C_STRINGIZE): Just check ac_prog_cc_stdc. |
| 2002 |
|
| 2003 |
2023-04-02 Zack Weinberg <[email protected]> |
| 2004 |
|
| 2005 |
Overhaul AC_TYPE_GETGROUPS and AC_FUNC_GETGROUPS. |
| 2006 |
AC_TYPE_GETGROUPS is the last remaining use of AC_EGREP_HEADER in |
| 2007 |
stock Autoconf macros. It uses it only when cross compiling, as a |
| 2008 |
fallback from an AC_RUN_IFELSE check, testing for a bug in system |
| 2009 |
headers from the late 1980s or early 1990s, where gid_t *existed* |
| 2010 |
but the second argument to getgroups needed to be an array of int, |
| 2011 |
and this didn’t cause a compile error (i.e. the system headers |
| 2012 |
declare getgroups with no prototype or an incorrect prototype). |
| 2013 |
AC_FUNC_GETGROUPS also uses AC_RUN_IFELSE to test for obscure |
| 2014 |
problems specific to long-obsolete Unixes. |
| 2015 |
|
| 2016 |
The downsides of AC_RUN_IFELSE and AC_EGREP_HEADER seem more severe |
| 2017 |
than the chances of someone compiling a current-generation program, |
| 2018 |
that uses getgroups, on an OS old enough to have one of the really |
| 2019 |
nasty bugs. Accordingly, this patch changes AC_FUNC_GETGROUPS to use |
| 2020 |
a host_os-based *blacklist* both in native and cross compilation. |
| 2021 |
This is limited to the two host_os values for which either our old |
| 2022 |
code, or Gnulib, documented a serious bug: ultrix* and nextstep*. |
| 2023 |
Currently it does not try to pin down the exact version ranges subject |
| 2024 |
to the bugs — that would require research by someone with access to |
| 2025 |
the full history of these OSes. |
| 2026 |
|
| 2027 |
An incorrect guess by this blacklist can be overridden by setting |
| 2028 |
ac_cv_func_getgroups_works in config.site. AC_TYPE_GETGROUPS, for its |
| 2029 |
part, now does a series of regular old AC_COMPILE_IFELSE checks to |
| 2030 |
probe the prototype of getgroups, and considers that good enough. |
| 2031 |
|
| 2032 |
While I was in there I noticed that AC_FUNC_GETGROUPS does not |
| 2033 |
AC_SUBST a documented output variable, and that the name of this |
| 2034 |
variable is misspelled in the manual. |
| 2035 |
|
| 2036 |
* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Use AC_SEARCH_LIBS |
| 2037 |
to probe for getgroups. Use an AC_CANONICAL_HOST-based blacklist |
| 2038 |
for bug detection, not AC_RUN_IFELSE. AC_SUBST the GETGROUPS_LIB |
| 2039 |
output variable. |
| 2040 |
* lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Check only the prototype |
| 2041 |
of getgroups, using AC_COMPILE_IFELSE; do not use either AC_RUN_IFELSE |
| 2042 |
or AC_EGREP_HEADER. |
| 2043 |
* doc/autoconf.texi: Update to match. Correct misspelling of |
| 2044 |
GETGROUPS_LIB. |
| 2045 |
* tests.local.at (_AT_CHECK_ENV): Allow GETGROUPS_LIB output variable. |
| 2046 |
|
| 2047 |
2023-04-02 Zack Weinberg <[email protected]> |
| 2048 |
|
| 2049 |
Make AC_PROG_GCC_TRADITIONAL a compatibility alias for AC_PROG_CC. |
| 2050 |
This macro is one of the last remaining internal uses of AC_EGREP_CPP. |
| 2051 |
It has only ever done anything useful with GCC, and GCC dropped |
| 2052 |
support for ‘traditional’ compilation in version 3.3 (released 2003) |
| 2053 |
so I do not think it is worth trying to preserve. |
| 2054 |
|
| 2055 |
* lib/autoconf/c.m4 (AC_PROG_GCC_TRADITIONAL): Make into a |
| 2056 |
compatibility alias for AC_PROG_CC, similar to AC_PROG_CC_STDC. |
| 2057 |
* lib/autoconf/general.m4 (AC_EGREP_CPP): Remove stale comment. |
| 2058 |
* doc/autoconf.texi, NEWS: Document this change. |
| 2059 |
* tests/mktests.pl: Exclude AC_PROG_GCC_TRADITIONAL from |
| 2060 |
autoupdate tests. |
| 2061 |
|
| 2062 |
2023-04-02 Zack Weinberg <[email protected]> |
| 2063 |
|
| 2064 |
AC_TYPE_UID_T: Rewrite using AC_CHECK_TYPE. |
| 2065 |
AC_TYPE_UID_T uses AC_EGREP_HEADER to search sys/types.h for |
| 2066 |
occurrences of the string ‘uid_t’ and, if found, assumes both |
| 2067 |
uid_t and gid_t are available. This would be better done using |
| 2068 |
a pair of AC_CHECK_TYPE operations. |
| 2069 |
|
| 2070 |
I also converted two uses of old-style AC_CHECK_TYPE, immediately |
| 2071 |
below, to new-style. (There are probably other old-style uses in |
| 2072 |
this file, I only did the ones I happened to see.) |
| 2073 |
|
| 2074 |
* lib/autoconf/types.m4 (AC_TYPE_UID_T): Check for uid_t and gid_t, |
| 2075 |
separately, using AC_CHECK_TYPE, instead of grepping sys/types.h. |
| 2076 |
(AC_TYPE_SIZE_T, AC_TYPE_SSIZE_T): Use new-style AC_CHECK_TYPE. |
| 2077 |
|
| 2078 |
2023-04-02 Zack Weinberg <[email protected]> |
| 2079 |
|
| 2080 |
AC_XENIX_DIR: Rewrite using AC_CANONICAL_HOST. |
| 2081 |
AC_XENIX_DIR is an obsolete macro, defined as AC_HEADER_DIRENT plus |
| 2082 |
code to make absolutely sure configure scripts that depended on a |
| 2083 |
shell variable internal to the original (2.13 era) definition of |
| 2084 |
AC_XENIX_DIR are not broken by autoupdate. (That variable had the |
| 2085 |
temptingly public-sounding name “XENIX.”) This compatibility code |
| 2086 |
uses AC_EGREP_CPP, which is itself discouraged for use in new |
| 2087 |
configure scripts. |
| 2088 |
|
| 2089 |
(N.B. codesearch.debian.net does not find any uses whatsoever of |
| 2090 |
this macro, nor any code in an .ac or .m4 file that depends on the |
| 2091 |
XENIX variable.) |
| 2092 |
|
| 2093 |
Change the compatibility code to use AC_CANONICAL_HOST instead, |
| 2094 |
and clarify which pieces of the code inserted by autoupdate are |
| 2095 |
probably still necessary. |
| 2096 |
|
| 2097 |
* lib/autoconf/specific.m4 (AC_XENIX_DIR): Set XENIX variable |
| 2098 |
based on value of host_os. Clarify what manual cleanup is |
| 2099 |
recommended after autoupdate replaces this obsolete macro. |
| 2100 |
|
| 2101 |
2023-04-02 Zack Weinberg <[email protected]> |
| 2102 |
|
| 2103 |
New script for building inside Guix containers. |
| 2104 |
build-aux/test-build-guix, goes with the top level manifest.scm. |
| 2105 |
See the top of the file for usage instructions. |
| 2106 |
|
| 2107 |
2023-04-01 Paul Eggert <[email protected]> |
| 2108 |
|
| 2109 |
Support underquoted callers better |
| 2110 |
Problem reported bh Khem Raj for mcpp 2.7.2 (2008) in: |
| 2111 |
https://lists.gnu.org/r/autoconf/2023-04/msg00001.html |
| 2112 |
* lib/autoconf/programs.m4 (_AC_PATH_PROG_FLAVOR_GNU): |
| 2113 |
Add two ‘@%:@(’s to cater to underquoted callers. |
| 2114 |
* lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Use quadrigraph instead of |
| 2115 |
‘#’, for underquoted callers. |
| 2116 |
|
| 2117 |
Fix timing bug on high-speed builds |
| 2118 |
Problem reported by Bogdan via Jacob Bachmeyer in: |
| 2119 |
https://lists.gnu.org/r/autoconf/2023-04/msg00002.html |
| 2120 |
* bin/autom4te.in: If a file timestamp equals a dependency’s |
| 2121 |
timestamp, consider the file to be out of date. Although this may |
| 2122 |
result in extra work, it fixes some rare timing bugs. |
| 2123 |
|
| 2124 |
2023-03-31 Paul Eggert <[email protected]> |
| 2125 |
|
| 2126 |
Go back to requiring only Perl 5.6+ for users |
| 2127 |
Commit 61901a1a14fd50c03cfb1529d091554376fef286 dated 2022-07-10 |
| 2128 |
bumped the Perl requirement to 5.10 or later, because |
| 2129 |
commit 3a9802d60156809c139e9b4620bf04917e143ee2 dated 2021-08-31 |
| 2130 |
added code using Time::HiRes’s ‘stat’ function, a feature |
| 2131 |
added in Perl 5.8.9+ or Perl 5.10+, and it was hard |
| 2132 |
to find Perl 5.8.9 hosts to test with. Also, requiring Perl 5.10 |
| 2133 |
meant that we could then use operators like Digest::SHA, the // and |
| 2134 |
//= operators, the regexp \K escape, and ‘state’ variables. |
| 2135 |
|
| 2136 |
However, that Time::HiRes code, which was taken from Automake, has |
| 2137 |
recently been made optional by Automake, and it now works again with |
| 2138 |
Perl 5.6. And Autoconf is not yet using any other post-5.6 feature, |
| 2139 |
except when developers run help-extract.pl (something Autoconf users |
| 2140 |
do not use). So relax the Autoconf user requirement back to 5.6 as it |
| 2141 |
was in Autoconf 2.71; although Autoconf developers will need 5.10 or |
| 2142 |
better, Autoconf users can get by with 5.6. |
| 2143 |
|
| 2144 |
I ran into this problem when testing the Autoconf release candidate on |
| 2145 |
Solaris 10, which has Perl 5.8.4. Oracle says Solaris 10’s |
| 2146 |
end-of-life is January 2024, so it’s still (barely) a viable porting |
| 2147 |
target. Of course with Solaris 10 one must install a recent-enough |
| 2148 |
GNU m4, but adding a requirement to also install a recent-enough Perl |
| 2149 |
is a new barrier, and if it’s not needed then it might be better to |
| 2150 |
wait until it is needed (or until 2024 arrives). |
| 2151 |
|
| 2152 |
* NEWS: Update news item about Perl 5.6 vs 5.10. |
| 2153 |
* README-hacking: Bump Perl recommendation to 5.10. |
| 2154 |
* build-aux/fetch.pl: Do not munge imported code to require 5.10. |
| 2155 |
|
| 2156 |
2023-03-31 Paul Eggert <[email protected]> |
| 2157 |
|
| 2158 |
Cater to programs misusing AC_EGREP_HEADER |
| 2159 |
Problem reported by Frederic Berat in: |
| 2160 |
https://lists.gnu.org/archive/html/autoconf/2022-11/msg00127.html |
| 2161 |
* lib/autoconf/programs.m4 (AC_PROG_EGREP): Also set |
| 2162 |
EGREP_TRADITIONAL and ac_cv_path_EGREP_TRADITIONAL. |
| 2163 |
* tests/c.at (AC_PROG_EGREP and AC_EGREP_HEADER): |
| 2164 |
New test, taken from Frederic Berat’s email in: |
| 2165 |
https://lists.gnu.org/r/autoconf/2023-03/msg00043.html |
| 2166 |
|
| 2167 |
* NEWS: Tighten up wording. |
| 2168 |
|
| 2169 |
2023-03-29 Paul Eggert <[email protected]> |
| 2170 |
|
| 2171 |
build: run "make fetch", which updated these: |
| 2172 |
* build-aux/texinfo.tex: Update from texinfo. |
| 2173 |
* lib/Autom4te/FileUtils.pm: Update from automake. |
| 2174 |
|
| 2175 |
2023-03-27 Paul Eggert <[email protected]> |
| 2176 |
|
| 2177 |
mention prototypes more prominently in NEWS |
| 2178 |
* NEWS: Mention the function prototype issue early. |
| 2179 |
(From a suggestion by Zack Weinberg.) |
| 2180 |
|
| 2181 |
2023-03-27 Jim Meyering <[email protected]> |
| 2182 |
|
| 2183 |
tests: avoid an unwarranted test failure |
| 2184 |
* tests/autotest.at (parallel autotest and signal handling): This |
| 2185 |
test would consistently fail due to an exit status of 0. That was |
| 2186 |
considered failure because the test required a SIGHUP-indicating |
| 2187 |
exit status. However, an status of 0 is perfectly fine, too, so |
| 2188 |
accept that. |
| 2189 |
|
| 2190 |
2023-03-26 Jim Meyering <[email protected]> |
| 2191 |
|
| 2192 |
build: run "make fetch", which updated these: |
| 2193 |
Preparing to make a pre-release snapshot, update these: |
| 2194 |
* build-aux/announce-gen: Update from gnulib |
| 2195 |
* build-aux/gnupload: Likewise. |
| 2196 |
* build-aux/texinfo.tex: Update from texinfo. |
| 2197 |
|
| 2198 |
2023-03-12 Zack Weinberg <[email protected]> |
| 2199 |
|
| 2200 |
Add experimental manifest.scm for testing Autoconf under guix shell. |
| 2201 |
‘guix shell’ is a utility for constructing isolated environments |
| 2202 |
for development; I’ve put together a “manifest” stating the |
| 2203 |
build and test requirements for autoconf, starting from a git |
| 2204 |
checkout. |
| 2205 |
|
| 2206 |
2023-03-12 Zack Weinberg <[email protected]> |
| 2207 |
|
| 2208 |
bootstrap: Use an absolute path for ACBOOTDIR. |
| 2209 |
If we use a relative path for ACBOOTDIR, Automake can’t tell the |
| 2210 |
difference between Autoconf’s configure script’s aclocal.m4 |
| 2211 |
inclusions (…/m4/*.m4) and the guts of Autoconf |
| 2212 |
itself (…/lib/autoconf/*.m4) so it puts both of them into |
| 2213 |
$(am__aclocal_m4_deps). This would be harmless, except that the |
| 2214 |
guts-of-Autoconf files are named *relative to $ACBOOTDIR*, which |
| 2215 |
means Make can’t find them later. And this is why a build from a |
| 2216 |
clean git checkout always starts by regenerating aclocal.m4 and |
| 2217 |
configure again. |
| 2218 |
|
| 2219 |
Using an absolute path for ACBOOTDIR gives automake enough of a clue |
| 2220 |
what’s going on (see the heuristic circa 5500 of current automake.in, |
| 2221 |
commented “Some modified versions of autoconf don’t use frozen files…”) |
| 2222 |
for it to produce the same value for $(am__aclocal_m4) that it would |
| 2223 |
if we were running an installed Autoconf. |
| 2224 |
|
| 2225 |
2023-03-12 Zack Weinberg <[email protected]> |
| 2226 |
|
| 2227 |
Skip all Autotest parallelism tests if using Guix’s bash. |
| 2228 |
It is not clear to me why, but the “parallel autotest and signal |
| 2229 |
handling” test malfunctions if the active shell is Guix bash. I don’t |
| 2230 |
think it’s worth investigating in detail, considering I intend to |
| 2231 |
reimplement parallel autotest using the same technique that Automake’s |
| 2232 |
parallel test driver uses, i.e. make -j, which should eliminate this |
| 2233 |
entire class of problems. |
| 2234 |
|
| 2235 |
2023-03-12 Zack Weinberg <[email protected]> |
| 2236 |
|
| 2237 |
Fix ‘make syntax-check’ complaints. |
| 2238 |
* cfg.mk (local-checks-to-skip): Add sc_unportable_grep_q, which has |
| 2239 |
too many false positives to bother with; for instance, it triggers |
| 2240 |
on autoconf.texi’s discussion of why grep -q is unportable, and on |
| 2241 |
the code in maint.mk that implements the check! |
| 2242 |
(old_NEWS_hash): Update for commit b751bf49496ea3f0054533cfd63f977640abb07a, |
| 2243 |
which fixed spelling errors in old NEWS. |
| 2244 |
|
| 2245 |
* doc/autoconf.texi: Remove a doubled word. |
| 2246 |
* lib/autoconf/programs.m4: Remove a space immediately before a tab. |
| 2247 |
* lib/m4sugar/m4sh.m4 (_AS_IF): Rephrase documentation to avoid saying |
| 2248 |
“if IF-FALSE” which triggers the prohibit_doubled_word check. |
| 2249 |
|
| 2250 |
2023-02-06 Paul Eggert <[email protected]> |
| 2251 |
|
| 2252 |
doc: improve AS_IF doc |
| 2253 |
* doc/autoconf.texi: Improve documentation of AS_IF, AS_CASE, etc. |
| 2254 |
Clarify the advice about when AS_IF is needed, and follow that |
| 2255 |
advice in examples. |
| 2256 |
|
| 2257 |
Update doc slightly for C23. |
| 2258 |
|
| 2259 |
2023-02-03 Paul Eggert <[email protected]> |
| 2260 |
|
| 2261 |
Clarify NEWS |
| 2262 |
* NEWS: Clarify recent items about AC_SYS_LARGEFILE_REQUIRED, |
| 2263 |
AC_SYS_YEAR2038_REQUIRED, AC_PROG_MKDIR_P. Reported by Bruno Haible in: |
| 2264 |
https://lists.gnu.org/r/bug-autoconf/2023-02/msg00005.html |
| 2265 |
|
| 2266 |
2023-02-02 Paul Eggert <[email protected]> |
| 2267 |
|
| 2268 |
make fetch |
| 2269 |
|
| 2270 |
Improve year-2038 documentation |
| 2271 |
* NEWS, doc/autoconf.texi (System Services): |
| 2272 |
Improve documentation for behavior of largefile and year-2038 support. |
| 2273 |
Say that in the current implementation, year-2038 support |
| 2274 |
requires largefile support. Say that year-2038 support |
| 2275 |
matters only for GNU/Linux glibc 2.34+ on 32-bit x86 and ARM. |
| 2276 |
Prefer brevity when this does not hurt understandability; |
| 2277 |
for example, prefer active to passive voice. |
| 2278 |
Prefer “wider” to “larger” when talking about the number of |
| 2279 |
bits in an integer, as this terminology is more standard. |
| 2280 |
Tone down the wording in warnings about enabling year-2038 support, |
| 2281 |
use similar wording in warnings about enabling largefile support, |
| 2282 |
and warn also about disabling largefile and year-2038 support. |
| 2283 |
No need for @emph. Also mention rlim_t. |
| 2284 |
Be a bit more careful about saying “2 GiB” rather than “2 GB”. |
| 2285 |
Mention that a future version of Autoconf might change |
| 2286 |
AC_SYS_LARGEFILE to default to --enable-year2038, since |
| 2287 |
something has gotta happen before 2038. |
| 2288 |
Coalesce descriptions of --enable-largefile and --enable-year2038 |
| 2289 |
to simplify documentation. Mention that the only system where |
| 2290 |
AC_SYS_LARGEFILE changes CC is IRIX and that these systems |
| 2291 |
are obsolete. Say that ‘stat’ can fail due to time_t |
| 2292 |
overflow. Say that you can’t portably print time_t with %ld. |
| 2293 |
Say that binary compatibilty problems also can occur when one |
| 2294 |
library is linking to amother; it’s not just apps vs libraries. |
| 2295 |
Mention the possibility of modifying libraries to support both |
| 2296 |
32- and 64-bit interfaces. Warn more consistently about |
| 2297 |
ABI compatibility issues, but put the bulk of this text |
| 2298 |
in one location that the other locations refer to. |
| 2299 |
|
| 2300 |
2023-01-21 Paul Eggert <[email protected]> |
| 2301 |
|
| 2302 |
Restore lib/Autom4te/FileUtils.pm local fixes |
| 2303 |
These were lost by 'make fetch'. |
| 2304 |
|
| 2305 |
spelling fixes |
| 2306 |
|
| 2307 |
make update-copyright |
| 2308 |
|
| 2309 |
make fetch |
| 2310 |
|
| 2311 |
2022-12-30 Paul Eggert <[email protected]> |
| 2312 |
|
| 2313 |
Improve OS version commentary |
| 2314 |
* lib/autoconf/specific.m4: Improve comments about which |
| 2315 |
OS releases need -D_LARGE_FILES, -n32, _ALL_SOURCE. |
| 2316 |
|
| 2317 |
2022-12-29 Paul Eggert <[email protected]> |
| 2318 |
|
| 2319 |
Restore *_REQUIRED macros |
| 2320 |
As per: |
| 2321 |
https://lists.gnu.org/r/autoconf-patches/2022-12/msg00004.html |
| 2322 |
|
| 2323 |
2022-12-26 Todd C. Miller <[email protected]> (tiny change) |
| 2324 |
|
| 2325 |
fix AC_CHECK_HEADER_STDBOOL regression |
| 2326 |
Commit 6dcecb780a69bd208088d666b299e92aa7ae7e80 "Port |
| 2327 |
AC_CHECK_HEADER_STDBOOL to C23" causes AC_CHECK_HEADER_STDBOOL to |
| 2328 |
always fail, even on systems with a conforming stdbool.h. |
| 2329 |
|
| 2330 |
There is no longer an 'a' variable so it should not be referenced |
| 2331 |
in the return statement. |
| 2332 |
|
| 2333 |
2022-12-25 Paul Eggert <[email protected]> |
| 2334 |
|
| 2335 |
Omit just-added *_REQUIRED macros |
| 2336 |
They are not needed for Gnulib, and users have an easy way to get |
| 2337 |
their effect, so for now omit them and just document the easy way. |
| 2338 |
Also, redo documentation to make it clear that AC_YEAR_2038 is |
| 2339 |
like AC_SYS_LARGEFILE except with a different year-2038 default. |
| 2340 |
* NEWS, doc/autoconf.texi: Document the above. |
| 2341 |
* lib/autoconf/specific.m4 (AC_SYS_YEAR2038_REQUIRED): |
| 2342 |
(AC_SYS_LARGEFILE_REQUIRED): Remove. Remove some support code. |
| 2343 |
Perhaps further simplification could be done but I quit while |
| 2344 |
I was ahead. |
| 2345 |
|
| 2346 |
2022-12-25 Zack Weinberg <[email protected]> |
| 2347 |
|
| 2348 |
AC_SYS_LARGEFILE: Don’t enlarge time_t by default |
| 2349 |
Having AC_SYS_LARGEFILE enlarge time_t means that any program that has |
| 2350 |
already requested large file support will be abruptly migrated to |
| 2351 |
64-bit time_t (on 32-bit systems) as soon as its configure script is |
| 2352 |
regenerated with a sufficiently new Autoconf. We’ve received reports |
| 2353 |
of several widely used programs and libraries that are not prepared |
| 2354 |
for this migration, with breakage ranging from annoying (garbage |
| 2355 |
timestamps in messages) through serious (binary compatibility break |
| 2356 |
in security-critical shared library) to catastrophic (on-disk data |
| 2357 |
corruption). |
| 2358 |
|
| 2359 |
Partially revert f6657256a37da44c987c04bf9cd75575dfca3b60: in the |
| 2360 |
absence of AC_SYS_YEAR2038, AC_SYS_LARGEFILE will now only add an |
| 2361 |
--enable-year2038 command line option to configure. If this option is |
| 2362 |
used, time_t will be enlarged, allowing people to experiment with the |
| 2363 |
migration without needing to *edit* the configure script in question, |
| 2364 |
only regenerate it. |
| 2365 |
|
| 2366 |
In the process, AC_SYS_LARGEFILE and AC_SYS_YEAR2038 were drastically |
| 2367 |
overhauled for modularity; it should now be much easier to add support |
| 2368 |
for platforms that offer large off_t / time_t but not with the standard |
| 2369 |
feature selection macros. Also, new macros AC_SYS_LARGEFILE_REQUIRED and |
| 2370 |
AC_SYS_YEAR2038_REQUIRED can be used by programs for which large off_t / |
| 2371 |
time_t are essential. |
| 2372 |
|
| 2373 |
The implementation is a little messy because it needs to gracefully |
| 2374 |
handle the case where AC_SYS_LARGEFILE and AC_SYS_LARGEFILE_REQUIRED |
| 2375 |
are both used in the same configure script — or, probably more common, |
| 2376 |
AC_SYS_LARGEFILE (which invokes _AC_SYS_YEAR2038_OPT_IN) followed by |
| 2377 |
AC_SYS_YEAR2038 — but if macro B is invoked after macro A, there’s no |
| 2378 |
way for B to change *what macro A expanded to*. The best kludge I |
| 2379 |
managed to find is to AC_CONFIG_COMMANDS_PRE as a m4-level hook that |
| 2380 |
sets shell variables in an early diversion. |
| 2381 |
|
| 2382 |
* lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Rewrite to avoid dependency |
| 2383 |
on internal subroutines of AC_SYS_LARGEFILE. |
| 2384 |
|
| 2385 |
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_TEST_INCLUDES): Renamed to |
| 2386 |
_AC_SYS_YEAR2038_TEST_CODE. |
| 2387 |
(_AC_SYS_YEAR2038): Refactor into subroutines: _AC_SYS_YEAR2038_OPTIONS, |
| 2388 |
_AC_SYS_YEAR2038_PROBE, _AC_SYS_YEAR2038_ENABLE. |
| 2389 |
(AC_SYS_YEAR2038): Update for refactoring. |
| 2390 |
(_AC_SYS_YEAR2038_OPT_IN): New sorta-top-level macro, for use by |
| 2391 |
AC_SYS_LARGEFILE, that probes for large time_t only if the |
| 2392 |
--enable-year2038 option is given. |
| 2393 |
(AC_SYS_YEAR2038_REQUIRED): New top-level macro that insists on |
| 2394 |
support for large time_t. |
| 2395 |
|
| 2396 |
(_AC_SYS_LARGEFILE_TEST_INCLUDES): Renamed to _AC_SYS_LARGEFILE_TEST_CODE. |
| 2397 |
(_AC_SYS_LARGEFILE_MACRO_VALUE, AC_SYS_LARGEFILE): Refactor along same |
| 2398 |
lines as above: _AC_SYS_LARGEFILE_OPTIONS, _AC_SYS_LARGEFILE_PROBE, |
| 2399 |
_AC_SYS_LARGEFILE_ENABLE. Invoke _AC_SYS_YEAR2038_OPT_IN at end of |
| 2400 |
_AC_SYS_LARGEFILE_PROBE. MinGW-specific logic moved to YEAR2038 |
| 2401 |
macros as it has nothing to do with large file support. |
| 2402 |
(AC_SYS_LARGEFILE_REQUIRED): New top-level macro that insists on |
| 2403 |
support for large off_t. |
| 2404 |
|
| 2405 |
* tests/local.at (_AT_CHECK_ENV): Also allow changes in CPPFLAGS, |
| 2406 |
enableval, enable_*, withval, with_*. |
| 2407 |
|
| 2408 |
* doc/autoconf.texi, NEWS: Update documentation to match above changes. |
| 2409 |
Fix typo in definition of @dvarv. |
| 2410 |
|
| 2411 |
2022-12-25 Paul Eggert <[email protected]> |
| 2412 |
|
| 2413 |
Move NEWS entry to better location |
| 2414 |
|
| 2415 |
2022-12-24 Paul Eggert <[email protected]> |
| 2416 |
|
| 2417 |
Document C23 <stdckdint.h> |
| 2418 |
|
| 2419 |
Use UTF-8 and spell "François" correctly |
| 2420 |
|
| 2421 |
AC_USE_SYSTEM_EXTENSIONS now enables C23 Annex F |
| 2422 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): |
| 2423 |
Also define __STDC_WANT_IEC_60559_EXT__, for C23. |
| 2424 |
|
| 2425 |
2022-11-16 Paul Eggert <[email protected]> |
| 2426 |
|
| 2427 |
Cater better to underquoted callers |
| 2428 |
Problem reported by Frederic Berat in: |
| 2429 |
https://lists.gnu.org/r/autoconf/2022-11/msg00092.html |
| 2430 |
* lib/autoconf/c.m4 (AC_LANG_CALL(C)): Omit comma in comment, |
| 2431 |
which triggers bugs in underquoted callers. |
| 2432 |
|
| 2433 |
2022-11-12 Bruno Haible <[email protected]> |
| 2434 |
|
| 2435 |
Fix misspelled NEWS entry |
| 2436 |
|
| 2437 |
2022-11-11 Paul Eggert <[email protected]> |
| 2438 |
|
| 2439 |
Modernize and regularize doc for C89 etc. |
| 2440 |
In documentation and comments, prefer the more-common “C89” to the |
| 2441 |
equivalent “C90”, and use 2-digit years for C standards as that’s |
| 2442 |
common usage. Remove some confusing old doc for pre-C89 systems, |
| 2443 |
as Autoconf assumes C89 or later. Mention C17 and C23 briefly. |
| 2444 |
Improve doc for malloc, realloc. |
| 2445 |
|
| 2446 |
2022-11-10 Zack Weinberg <[email protected]> |
| 2447 |
|
| 2448 |
More fixes for compilers that reject K&R function definitions. |
| 2449 |
This fixes all of the remaining failures exposed by running the |
| 2450 |
testsuite with GCC 12 and |
| 2451 |
CC='cc -Wimplicit-function-declaration -Wold-style-definition |
| 2452 |
-Wimplicit-int -Werror' |
| 2453 |
. |
| 2454 |
|
| 2455 |
* lib/autoconf/c.m4 (_AC_C_C89_TEST_GLOBALS): Don’t use K&R function |
| 2456 |
definitions. |
| 2457 |
* lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise. |
| 2458 |
(AC_FUNC_MKTIME): Declare functions taking no arguments as ‘fn (void)’ |
| 2459 |
not ‘fn ()’. |
| 2460 |
* lib/autoconf/c.m4 (_AC_C_C99_TEST_GLOBALS): Declare free(). |
| 2461 |
|
| 2462 |
2022-10-28 Paul Eggert <[email protected]> |
| 2463 |
|
| 2464 |
Warn about TMPDIR |
| 2465 |
* doc/autoconf.texi (Initialization Macros): Warn about |
| 2466 |
setting TMPDIR, following up on this Paul Smith remark: |
| 2467 |
https://lists.gnu.org/r/autoconf/2022-10/msg00024.html |
| 2468 |
|
| 2469 |
2022-10-12 Paul Eggert <[email protected]> |
| 2470 |
|
| 2471 |
MKDIR_P now falls back on mkdir -p |
| 2472 |
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): |
| 2473 |
Fall back on mkdir -p instead of on a relative path to |
| 2474 |
install-sh, as the latter now seems to be more of a problem |
| 2475 |
than the former. |
| 2476 |
|
| 2477 |
2022-10-05 Paul Eggert <[email protected]> |
| 2478 |
|
| 2479 |
Update M4 version numbers in documentation |
| 2480 |
|
| 2481 |
2022-09-30 Xi Ruoyao <[email protected]> (tiny change) |
| 2482 |
|
| 2483 |
Fix testsuite failures with bash 5.2. |
| 2484 |
Bash v5.2 includes several new optimizations to the number of |
| 2485 |
subshells used for various constructs; as a side effect, the value of |
| 2486 |
SHLVL is less stable than it used to be. Add SHLVL to the list of |
| 2487 |
built-in shell variables with unstable values, to be ignored when |
| 2488 |
checking for inappropriate differences to the shell environment |
| 2489 |
before and after a macro invocation / between two configure runs. |
| 2490 |
|
| 2491 |
Problem and solution reported by Xi Ruoyao in |
| 2492 |
https://lists.gnu.org/archive/html/autoconf/2022-09/msg00015.html |
| 2493 |
Problem also reported by Bruce Dubbs in |
| 2494 |
https://lists.gnu.org/archive/html/bug-autoconf/2022-09/msg00010.html |
| 2495 |
|
| 2496 |
* tests/local.at (_AT_CHECK_ENV, AT_CONFIG_CMP): Ignore changes in |
| 2497 |
value of SHLVL. |
| 2498 |
|
| 2499 |
2022-09-18 Paul Eggert <[email protected]> |
| 2500 |
|
| 2501 |
Mention latest change in NEWS |
| 2502 |
|
| 2503 |
2022-09-17 Paul Eggert <[email protected]> |
| 2504 |
|
| 2505 |
Improve comment in previous change |
| 2506 |
|
| 2507 |
2022-09-17 Paul Eggert <[email protected]> (tiny change) |
| 2508 |
|
| 2509 |
Allow users to clear BINSH |
| 2510 |
Problem and solution reported by Roger Crew in: |
| 2511 |
https://lists.gnu.org/r/bug-autoconf/2022-09/msg00005.html |
| 2512 |
* lib/m4sugar/m4sh.m4 (_m4_divert(BINSH)): Change from 0 to 1, |
| 2513 |
and add 2 to HEADER-REVISION, HEADER-COMMENT, HEADER-COPYRIGHT, |
| 2514 |
M4SH-SANITIZE, M4SH-INIT-FN, and M4SH-INIT. |
| 2515 |
|
| 2516 |
2022-09-09 Sergei Trofimovich <[email protected]> (tiny change) |
| 2517 |
|
| 2518 |
autoconf: store autom4te request keys in sorted order |
| 2519 |
Notced unstable key order when debugging unrelated bug. |
| 2520 |
Data::Dumper's SortKeys() makes ordering stable and decreases |
| 2521 |
diffs from run to run. No functional change otherwise. |
| 2522 |
|
| 2523 |
* lib/Autom4te/C4che.pm |
| 2524 |
* lib/Autom4te/Request.pm: Sort request keys in serialization. |
| 2525 |
|
| 2526 |
2022-09-09 Paul Eggert <[email protected]> |
| 2527 |
|
| 2528 |
Port to GNU make 4.4 |
| 2529 |
* cfg.mk (PATH): Assign eagerly, and simplify shell use, avoiding |
| 2530 |
use of the shell entirely if PWD is set, as it should be. |
| 2531 |
Problem reported by Sergei Trofimovich in: |
| 2532 |
https://lists.gnu.org/r/autoconf-patches/2022-09/msg00007.html |
| 2533 |
|
| 2534 |
2022-09-02 Paul Eggert <[email protected]> |
| 2535 |
|
| 2536 |
Port to compilers that moan about K&R func decls |
| 2537 |
* lib/autoconf/c.m4 (AC_LANG_CALL, AC_LANG_FUNC_LINK_TRY): |
| 2538 |
Use '(void)' rather than '()' in function prototypes, as the latter |
| 2539 |
provokes fatal errors in some compilers nowadays. |
| 2540 |
* lib/autoconf/functions.m4 (AC_FUNC_STRTOD): |
| 2541 |
* tests/fortran.at (AC_F77_DUMMY_MAIN usage): |
| 2542 |
* tests/semantics.at (AC_CHECK_DECLS): |
| 2543 |
Don’t use () in a function decl. |
| 2544 |
|
| 2545 |
2022-08-25 Paul Eggert <[email protected]> |
| 2546 |
|
| 2547 |
Remove obsolete Solaris info from manual |
| 2548 |
Don't mention anything about Solaris 9 or older, |
| 2549 |
as Oracle no longer supports those old versions |
| 2550 |
and the obsolete info merely clutters the manual. |
| 2551 |
|
| 2552 |
2022-08-18 Paul Eggert <[email protected]> |
| 2553 |
|
| 2554 |
Improve doc for AC_SYS_LARGEFILE etc. |
| 2555 |
|
| 2556 |
2022-08-13 Paul Eggert <[email protected]> |
| 2557 |
|
| 2558 |
Port AC_CHECK_HEADER_STDBOOL to C23 |
| 2559 |
Modernize the bool documentation a bit too. |
| 2560 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADER_STDBOOL): |
| 2561 |
Allow C23 too. |
| 2562 |
|
| 2563 |
2022-08-09 Paul Eggert <[email protected]> |
| 2564 |
|
| 2565 |
AC_SYS_LARGEFILE now widens time_t if possible |
| 2566 |
This change is taken from Gnulib, and is needed for apps like GDB. |
| 2567 |
* lib/autoconf/specific.m4 (_AC_SYS_YEAR2038_TEST_INCLUDES) |
| 2568 |
(_AC_SYS_YEAR2038, AC_SYS_YEAR2038): New macros, taken (with |
| 2569 |
renaming) from Gnulib. |
| 2570 |
(_AC_SYS_LARGEFILE_MACRO_VALUE): #undef before #define. |
| 2571 |
(AC_SYS_LARGEFILE): Prefer AS_IF and AS_CASE to doing it by hand. |
| 2572 |
Widen time_t if possible, too. Define __MINGW_USE_VC2005_COMPAT |
| 2573 |
early if needed. |
| 2574 |
|
| 2575 |
Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64 |
| 2576 |
This should render unnecessary Gnulib’s gl_SET_LARGEFILE_SOURCE hack |
| 2577 |
https://lists.gnu.org/r/bug-gnulib/2019-12/msg00046.html |
| 2578 |
* lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): |
| 2579 |
On that platform, simply set _LARGEFILE_SOURCE. |
| 2580 |
|
| 2581 |
2022-07-27 Paul Eggert <[email protected]> |
| 2582 |
|
| 2583 |
Port AC_C_BIGENDIAN to cross gcc -std=c11 -flto |
| 2584 |
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Improve the |
| 2585 |
inherently-unportable grep trick well enough to survive gcc |
| 2586 |
-std=c11 -flto when cross-compiling (sr#110687). |
| 2587 |
|
| 2588 |
2022-07-21 Paul Eggert <[email protected]> |
| 2589 |
|
| 2590 |
basename and dirname are portable now |
| 2591 |
* doc/autoconf.texi (Limitations of Usual Tools): |
| 2592 |
basename and dirname are portable shell commands now. |
| 2593 |
|
| 2594 |
2022-07-14 Paul Eggert <[email protected]> (tiny change) |
| 2595 |
|
| 2596 |
Handle z/OS Unix ‘set’ output |
| 2597 |
Problem and fix reported by Jeff Shimoda in: |
| 2598 |
https://lists.gnu.org/r/autoconf-patches/2022-06/msg00007.html |
| 2599 |
* tests/local.at (AT_CONFIG_CMP): Treat ‘var=""’ like ‘var=''’. |
| 2600 |
|
| 2601 |
2022-07-10 Zack Weinberg <[email protected]> |
| 2602 |
|
| 2603 |
Fix testsuite failures on Darwin (aka macOS). |
| 2604 |
Tests of AC_{CHECK_,}HEADER_STDBOOL were failing on Darwin for two |
| 2605 |
reasons: an m4 quoting bug in tests/local.at causing Darwin sed to |
| 2606 |
throw syntax errors, and an excessively precise interpretation of how |
| 2607 |
C99 and C++11 interact. The latter is worth mentioning in NEWS. |
| 2608 |
|
| 2609 |
* tests/local.at (_AT_DEFINES_CMP_PRUNE): Insert [] before ‘dnl’ in |
| 2610 |
two places to keep it separate from the result of the m4_bpatsubsts |
| 2611 |
operation that immediately precedes it. |
| 2612 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADER_STDBOOL): Allow ‘bool’, |
| 2613 |
‘true’, and ‘false’ not to be macros, after including stdbool.h, |
| 2614 |
whenever __cplusplus is defined. |
| 2615 |
* NEWS: Document change to AC_{CHECK_,}HEADER_STDBOOL. |
| 2616 |
|
| 2617 |
2022-07-10 Zack Weinberg <[email protected]> |
| 2618 |
|
| 2619 |
Make help-extract.pl work with Perl 5.10.x. |
| 2620 |
The main issue was use of s///r; the /r modifier was added in 5.14. |
| 2621 |
Since the baseline is now 5.10.0 instead of 5.6.0, a couple places |
| 2622 |
can be tidied up using slightly newer constructs. |
| 2623 |
|
| 2624 |
* help-extract.pl: Use File::Spec::Functions instead of File::Spec |
| 2625 |
for reduced clunkiness. |
| 2626 |
(eval_qq_no_interpolation): Don’t use s///r. Do use \K and (?=...) |
| 2627 |
to match the empty string (but only in just the right locations), |
| 2628 |
so we don’t need to use $& in the replacement. |
| 2629 |
(main): Don’t use s///r. |
| 2630 |
|
| 2631 |
2022-07-10 Zack Weinberg <[email protected]> |
| 2632 |
|
| 2633 |
Remove ancient backward compatibility code from m4/m4.m4. |
| 2634 |
We have had AC_PREREQ([2.69]) in our own configure.ac since 2021, |
| 2635 |
and before that it was AC_PREREQ([2.62]) since 2012, so backcompat |
| 2636 |
code for 2.61 is not necessary anymore. |
| 2637 |
|
| 2638 |
Also add logging of the name of each candidate executable and bump the |
| 2639 |
serial number. |
| 2640 |
|
| 2641 |
2022-07-10 Zack Weinberg <[email protected]> |
| 2642 |
|
| 2643 |
make fetch |
| 2644 |
Our local patches to lib/Autom4te/FileUtils.pm and maint.mk were |
| 2645 |
manually reapplied. |
| 2646 |
|
| 2647 |
2022-07-10 Zack Weinberg <[email protected]> |
| 2648 |
|
| 2649 |
Require Perl 5.10.0 or later. |
| 2650 |
The minimum Perl version was raised to 5.8.0 from 5.6.0 in commit |
| 2651 |
3a9802d60156809c139e9b4620bf04917e143ee2 (but not documented as |
| 2652 |
such until e8c2d79ec42c70b6e4fa282bc0c024bf42f0585f, and not |
| 2653 |
actually *enforced* by our own configure script until, er, now) |
| 2654 |
in order to use Time::HiRes::stat. |
| 2655 |
|
| 2656 |
Unfortunately, while the Time::HiRes *module* was added in 5.8.0, it |
| 2657 |
did not export a ‘stat’ function until 5.8.9. More precisely, this |
| 2658 |
feature was added to Time::HiRes in version 1.92 of that module; Perl |
| 2659 |
core 5.8.8 shipped Time::HiRes 1.86, 5.8.9 shipped 1.9715. The only |
| 2660 |
system I have convenient access to, that has older Perls installed, |
| 2661 |
offers me a choice of 5.8.8 or 5.10.1, so the new requirement means |
| 2662 |
I cannot test with 5.8.x anymore. |
| 2663 |
|
| 2664 |
Per https://perldoc.perl.org/perlhist the release history of these |
| 2665 |
versions of Perl is, in chronological order, |
| 2666 |
|
| 2667 |
5.8.0 2002-Jul-18 |
| 2668 |
5.8.8 2006-Jan-31 |
| 2669 |
5.10.0 2007-Dec-18 |
| 2670 |
5.8.9 2008-Dec-14 <-- almost a year later than 5.10.0 |
| 2671 |
5.10.1 2009-Aug-22 |
| 2672 |
5.12.0 2010-Apr-12 |
| 2673 |
|
| 2674 |
Per https://perldoc.perl.org/perl5101delta the differences between |
| 2675 |
5.10.0 and 5.10.1 are small, and do not make me worry about |
| 2676 |
accidentally introducing code that works on my test boxes but not for |
| 2677 |
our users, unlike the gulf between 5.8.x and 5.10.x. |
| 2678 |
|
| 2679 |
Requiring 5.10 will mean that we have access to Digest::SHA, the // |
| 2680 |
and //= operators, the regexp \K escape, and ‘state’ variables |
| 2681 |
(lexical scope, persistent value) all of which I can think |
| 2682 |
of uses for (but none of them are actually used in this patch). |
| 2683 |
|
| 2684 |
Putting it all together, I think a requirement bump to version 5.10.0 |
| 2685 |
is justified. We are already chopping off the trailing edge at 2006 |
| 2686 |
due to the requirement for M4 1.4.8 (/de facto/ since 2.70) and late |
| 2687 |
2007 is still 15 years ago. |
| 2688 |
|
| 2689 |
This patch also makes configure search $PATH for executables named |
| 2690 |
‘perl5*’ and ‘perl-5.*’ if bare ‘perl’ is too old. To do this, it |
| 2691 |
introduces a helper macro AClocal_PATH_PROG_GLOBS_FEATURE_CHECK, which |
| 2692 |
I would *like* to promote to a new Autoconf feature, but I got stuck |
| 2693 |
on quoting issues — see comments in m4/perl-time-hires.m4. |
| 2694 |
|
| 2695 |
* NEWS: Document requirement for Perl 5.10. |
| 2696 |
* m4/perl-time-hires.m4: New file. |
| 2697 |
* configure.ac: Use AC_PATH_PERL_WITH_TIME_HIRES_STAT to probe for |
| 2698 |
perl. |
| 2699 |
* build-aux/fetch.pl (fetch): For .pm files fetched from Automake, |
| 2700 |
rewrite “use 5.006” to “use 5.010”. |
| 2701 |
|
| 2702 |
* build-aux/help-extract.pl |
| 2703 |
* lib/Autom4te/C4che.pm |
| 2704 |
* lib/Autom4te/ChannelDefs.pm |
| 2705 |
* lib/Autom4te/Channels.pm |
| 2706 |
* lib/Autom4te/Config.pm |
| 2707 |
* lib/Autom4te/Configure_ac.pm |
| 2708 |
* lib/Autom4te/FileUtils.pm |
| 2709 |
* lib/Autom4te/General.pm |
| 2710 |
* lib/Autom4te/Getopt.pm |
| 2711 |
* lib/Autom4te/Request.pm |
| 2712 |
* lib/Autom4te/XFile.pm |
| 2713 |
* tests/mktests.pl: Change “use 5.006” to “use 5.010”. |
| 2714 |
|
| 2715 |
2022-07-06 Zack Weinberg <[email protected]> |
| 2716 |
|
| 2717 |
Require GNU M4 1.4.8 or later. |
| 2718 |
The former minimum version was 1.4.6. 1.4.6 and 1.4.7 do not track |
| 2719 |
the original location of text fed to ‘m4wrap’, which breaks autom4te’s |
| 2720 |
ability to trace macros invoked from _AC_FINALIZE. |
| 2721 |
|
| 2722 |
Right now, the only _user_ visible effect of this is that autoconf |
| 2723 |
running on M4 1.4.6 or 1.4.7 will emit an internal error, instead of |
| 2724 |
the intended warning message, when it processes a configure.ac that |
| 2725 |
neglects to invoke AC_INIT or AC_OUTPUT. Perhaps more importantly, |
| 2726 |
it causes a bunch of scary-sounding failures in our own testsuite, |
| 2727 |
which deliberately doesn’t use AC_OUTPUT sometimes. |
| 2728 |
|
| 2729 |
M4 1.4.6 and 1.4.7 also have bugs in location tracking of macro |
| 2730 |
invocations spread over multiple lines, which, guess what, causes |
| 2731 |
even more testsuite failures. |
| 2732 |
|
| 2733 |
1.4.8 came out in 2006. As a practical matter, this change to our |
| 2734 |
requirements means that people using macOS *to run autoconf* (not just |
| 2735 |
to run generated configure scripts) cannot use the system-provided m4 |
| 2736 |
anymore. {Free,Net,Open}BSD already don’t ship GNU M4 as their system |
| 2737 |
m4, so users of those OSes should not be affected. |
| 2738 |
|
| 2739 |
2022-07-06 Zack Weinberg <[email protected]> |
| 2740 |
|
| 2741 |
testsuite: Handle `balanced ASCII quotes' correctly in m4 errors. |
| 2742 |
AT_CHECK_M4 was _documented_ to convert |
| 2743 |
|
| 2744 |
m4: cannot open `foo': No such file or directory |
| 2745 |
|
| 2746 |
to |
| 2747 |
|
| 2748 |
m4: cannot open 'foo': No such file or directory |
| 2749 |
|
| 2750 |
but the regexp that was supposed to do this didn’t work. |
| 2751 |
|
| 2752 |
Fix the regexp, and remove a workaround for the bug in one test |
| 2753 |
(yes, we had code in our own testsuite to work around bugs in our |
| 2754 |
own testsuite!) |
| 2755 |
|
| 2756 |
* tests/local.at (AT_CHECK_M4): Fix regex for “cannot open” messages. |
| 2757 |
* tests/tools.at (autom4te cache): Remove workaround for buggy regex |
| 2758 |
in AT_CHECK_M4. |
| 2759 |
|
| 2760 |
2022-06-28 Paul Eggert <[email protected]> |
| 2761 |
|
| 2762 |
Port _AC_COMPILER_EXEEXT to IBM z/OS Unix |
| 2763 |
Problem reported by Jeff Shimoda in: |
| 2764 |
https://lists.gnu.org/r/autoconf-patches/2022-06/msg00001.html |
| 2765 |
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT): |
| 2766 |
Also remove conftest.o and conftest.obj. |
| 2767 |
We can't use $ac_objext as it might not be defined yet. |
| 2768 |
|
| 2769 |
Avoid \] in BREs and EREs |
| 2770 |
* bootstrap (PACKAGE_NAME, PACKAGE_BUGREPORT): |
| 2771 |
* lib/autoconf/status.m4 (AC_OUTPUT_MAKE_DEFS): |
| 2772 |
* maint.mk (longopt_re, gpg_key_ID): |
| 2773 |
* tests/m4sugar.at (m4_dumpdef): |
| 2774 |
Avoid \] in POSIX-specified regular expressions, as POSIX says \] |
| 2775 |
produces undefined results in BREs and EREs. |
| 2776 |
|
| 2777 |
Refactor recent AC_FUNC_ALLOCA fix |
| 2778 |
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Simplify and use |
| 2779 |
AS_IF. Had I done it this way originally I would have avoided the |
| 2780 |
bug that Jim just fixed. |
| 2781 |
|
| 2782 |
2022-06-28 Jim Meyering <[email protected]> |
| 2783 |
|
| 2784 |
AC_FUNC_ALLOCA: fix a misplaced (now fatal) closing "fi" |
| 2785 |
"autoconf quoting is a pain" |
| 2786 |
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): Its AC_CACHE_CHECK |
| 2787 |
contains an if/else block, but the closing "fi" lay just after its ")". |
| 2788 |
Before, this error didn't trigger any failure because the if/else code was |
| 2789 |
in the "else" block of AC_CACHE_CHECK's AS_IF invocation and AS_IF was also |
| 2790 |
implemented using an if..fi block. So the ostensibly-"outer" "fi" provided |
| 2791 |
by AS_IF matched the inner "if/else", and that stray-after-end "fi" served |
| 2792 |
to close the AS_IF block. However, when AS_IF switched from if..fi to |
| 2793 |
case..esac, this became a nesting error: no matching "fi". |
| 2794 |
Initially-harmless error introduced by v2.69-52-gfd29dbd7 in 2012. |
| 2795 |
Error exposed by v2.72a-30-gc8d6d6eb. |
| 2796 |
* tests/mktests.pl (scan_m4_files): Do not elide direct test |
| 2797 |
of AC_FUNC_ALLOCA. |
| 2798 |
|
| 2799 |
FTR, here's the list of macros whose direct tests were being suppressed: |
| 2800 |
AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_CANONICAL_TARGET |
| 2801 |
AC_CHECK_INCLUDES_DEFAULT AC_DISABLE_OPTION_CHECKING |
| 2802 |
AC_ERLANG_NEED_ERL AC_ERLANG_NEED_ERLC AC_ERLANG_SUBST_ERTS_VER |
| 2803 |
AC_ERLANG_SUBST_INSTALL_LIB_DIR AC_ERLANG_SUBST_LIB_DIR AC_F77_DUMMY_MAIN |
| 2804 |
AC_F77_LIBRARY_LDFLAGS AC_FC_DUMMY_MAIN AC_FC_LIBRARY_LDFLAGS |
| 2805 |
AC_FUNC_ALLOCA AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK AC_GNU_SOURCE |
| 2806 |
AC_HEADER_DIRENT AC_HEADER_SYS_WAIT AC_PATH_X AC_PROG_CPP AC_PROG_CXX |
| 2807 |
AC_PROG_CXXCPP AC_PROG_F77 AC_PROG_FC AC_PROG_GO AC_PROG_GREP |
| 2808 |
AC_PROG_OBJC AC_PROG_OBJCPP AC_PROG_OBJCXX AC_PROG_OBJCXXCPP |
| 2809 |
AC_STRUCT_TM AC_TYPE_GETGROUPS AC_TYPE_LONG_LONG_INT AC_TYPE_MBSTATE_T |
| 2810 |
AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_UID_T AC_TYPE_UNSIGNED_LONG_LONG_INT |
| 2811 |
AC_USE_SYSTEM_EXTENSIONS |
| 2812 |
|
| 2813 |
2022-06-28 Jim Meyering <[email protected]> |
| 2814 |
|
| 2815 |
tests: avoid test failures due to new EGREP_TRADITIONAL |
| 2816 |
Some tests require that filtered pre- and post-test |
| 2817 |
environments be identical. The filtering removes assignments |
| 2818 |
to known (set-by-test) envvar names, like GREP, SED, YACC. |
| 2819 |
* tests/local.at (_AT_CHECK_ENV): Also filter out assignments to |
| 2820 |
EGREP_TRADITIONAL, added in v2.72a-35-g0c762675. |
| 2821 |
|
| 2822 |
2022-06-22 Paul Eggert <[email protected]> |
| 2823 |
|
| 2824 |
Improve regex documentation |
| 2825 |
* doc/autoconf.texi (Running the Preprocessor) |
| 2826 |
(Limitations of Usual Tools): |
| 2827 |
Improve comments on limitations of regular expressions. |
| 2828 |
|
| 2829 |
2022-06-08 Paul Eggert <[email protected]> |
| 2830 |
|
| 2831 |
Fix bug: AC_EGREP_CPP with leading '-' in pattern |
| 2832 |
Also, port AC_EGREP_CPP to AT&T UnixPC. |
| 2833 |
Latter problem reported by Alain Knaff [sr #110657]. |
| 2834 |
* lib/autoconf/general.m4 (AC_EGREP_CPP): Use new _AC_PROG_GREP. |
| 2835 |
Work even if the pattern starts with "-". |
| 2836 |
* lib/autoconf/programs.m4 (_AC_PROG_GREP): |
| 2837 |
New optional arg ACTION-IF-NOT-FOUND. |
| 2838 |
(_AC_PROG_EGREP_TRADITIONAL): New macro. |
| 2839 |
|
| 2840 |
2022-05-19 Paul Eggert <[email protected]> |
| 2841 |
|
| 2842 |
make update-copyright |
| 2843 |
|
| 2844 |
2022-05-16 Paul Eggert <[email protected]> |
| 2845 |
|
| 2846 |
Work around AT&T 3b1 bug |
| 2847 |
* lib/m4sugar/m4sh.m4: Work around bug in ancient sed. |
| 2848 |
Problem reported by Alain Knaff [sr#110654] for AT&T 3b1. |
| 2849 |
The Autoconf manual says this sed bug also occurs for |
| 2850 |
RISC/OS and IRIX 5.3. |
| 2851 |
|
| 2852 |
2022-05-10 Paul Eggert <[email protected]> |
| 2853 |
|
| 2854 |
Document AC_RUN_IFELSE([], ...) etc. |
| 2855 |
* doc/autoconf.texi (Running the Preprocessor) |
| 2856 |
(Running the Compiler, Running the Linker, Runtime): |
| 2857 |
Document that the _IFELSE macros reuse an existing input file |
| 2858 |
if their input is empty. |
| 2859 |
|
| 2860 |
2022-04-01 Paul Eggert <[email protected]> |
| 2861 |
|
| 2862 |
Work around memory-leak false alarms |
| 2863 |
Problem reported by Raphael Isemann in: |
| 2864 |
https://lists.gnu.org/r/autoconf-patches/2022-03/msg00007.html |
| 2865 |
* lib/autoconf/c.m4 (_AC_C_C99_TEST_MAIN, AC_C_FLEXIBLE_ARRAY_MEMBER): |
| 2866 |
* tests/data/gnulib_std_gnu11_2020_08_17.m4 (_AC_C_C99_TEST_HEADER): |
| 2867 |
Free storage allocated via malloc, to pacify overly-picky |
| 2868 |
implementations that issue false alarms about memory leaks. |
| 2869 |
|
| 2870 |
Fix bug with AS_IF and ‘set -e’ |
| 2871 |
Problem reported by Peter Johansson in: |
| 2872 |
https://lists.gnu.org/r/bug-autoconf/2022-03/msg00009.html |
| 2873 |
The bug was introduced in 2020-11-15T18:56:[email protected] |
| 2874 |
with commit message saying “If anyone has a better idea for how to |
| 2875 |
make this work I will be glad to hear it”, and this patch uses a |
| 2876 |
trick with ‘case’ that should be a better idea. |
| 2877 |
* lib/m4sugar/m4sh.m4 (as_nop, as_fn_nop, _AS_EMPTY_ELSE_PREPARE): |
| 2878 |
Remove. All uses removed. |
| 2879 |
(_AS_IF_ELSE): Wrap the non-blank IF-ELSE inside a no-op case, |
| 2880 |
which works since a case branch can be empty in the shell. |
| 2881 |
* tests/m4sh.at (AS_IF and AS_CASE): Test the fix. |
| 2882 |
|
| 2883 |
2022-03-12 Paul Eggert <[email protected]> |
| 2884 |
|
| 2885 |
doc: update Manthey name+email |
| 2886 |
|
| 2887 |
2022-02-18 Paul Eggert <[email protected]> |
| 2888 |
|
| 2889 |
Fix unwanted globbing of sed script |
| 2890 |
Problem reported by mirabilos via Eric Blake in: |
| 2891 |
https://www.austingroupbugs.net/view.php?id=1558 |
| 2892 |
https://lists.gnu.org/r/bug-autoconf/2022-02/msg00003.html |
| 2893 |
* lib/m4sugar/m4sh.m4 (_AS_TR_SH_PREPARE): |
| 2894 |
Define as_sed_sh as the sed script. All uses of as_tr_sh changed. |
| 2895 |
Define as_tr_sh as before, but only for compatibility with scripts |
| 2896 |
that mistakenly use as_tr_sh directly. |
| 2897 |
(AS_TR_CPP_PREPARE): Likewise for as_sed_cpp and as_tr_cpp. |
| 2898 |
|
| 2899 |
2022-02-12 Paul Eggert <[email protected]> |
| 2900 |
|
| 2901 |
Clarify documentation of number format |
| 2902 |
Problem reported by Mike Frysinger in: |
| 2903 |
https://lists.gnu.org/r/autoconf-patches/2022-02/msg00007.html |
| 2904 |
|
| 2905 |
2022-01-24 Mike Frysinger <[email protected]> |
| 2906 |
|
| 2907 |
add new AC_PROG_AR helper |
| 2908 |
This mirrors the existing RANLIB and related toolchain macros that |
| 2909 |
autoconf already exports. Some projects assume `ar` is available |
| 2910 |
which isn't always safe, so provide a macro that probes the full |
| 2911 |
toolchain settings. |
| 2912 |
|
| 2913 |
This also makes it easier to use AC_REQUIRE with the macro instead |
| 2914 |
of duplicating the AC_CHECK_TOOL call in projects. |
| 2915 |
|
| 2916 |
* lib/autoconf/programs.m4 (AC_PROG_AR): New macro. |
| 2917 |
* doc/autoconf.texi: Document it. |
| 2918 |
* tests/local.at (_AT_CHECK_ENV): Allow $AR output variable. |
| 2919 |
|
| 2920 |
2022-01-12 Bruno Haible <[email protected]> |
| 2921 |
|
| 2922 |
doc: Document how to deal with missing 'join'. |
| 2923 |
* doc/autoconf.texi (Limitations of Usual Tools): Mention that 'join' is missing |
| 2924 |
in BusyBox. |
| 2925 |
|
| 2926 |
2022-01-01 Paul Eggert <[email protected]> |
| 2927 |
|
| 2928 |
doc: document BusyBox sed w bug |
| 2929 |
|
| 2930 |
2021-10-09 Paul Eggert <[email protected]> |
| 2931 |
|
| 2932 |
doc: update ‘find’ info |
| 2933 |
* doc/autoconf.texi (Limitations of Usual Tools): |
| 2934 |
Mention a few more GNU ‘find’ options that are not portable. |
| 2935 |
Modernize a bit. |
| 2936 |
|
| 2937 |
2021-10-03 Zack Weinberg <[email protected]> |
| 2938 |
|
| 2939 |
Update .gitignore for move of version.m4. |
| 2940 |
Commit af5c11ed moved version.m4 from lib/m4sugar to lib, but did not |
| 2941 |
update .gitignore to match. |
| 2942 |
|
| 2943 |
2021-09-15 Zack Weinberg <[email protected]> |
| 2944 |
|
| 2945 |
Add a bootstrap script like Automake has. |
| 2946 |
The bootstrap script generates the same files ‘autoreconf -vi’ would, |
| 2947 |
in a normal package, but it uses autoconf *from the git sources* to do |
| 2948 |
it. This means people building from git do not need autoconf to be |
| 2949 |
installed already. More importantly, it eliminates the extra steps |
| 2950 |
when building from git, of re-generating autoconf’s own configure |
| 2951 |
script with the just-built autoconf, then rebuilding the entire tree. |
| 2952 |
|
| 2953 |
(This process still requires Automake to be installed already, and |
| 2954 |
Automake’s bootstrap script requires Autoconf to be installed already, |
| 2955 |
so there is still a dependency loop between Autoconf and Automake when |
| 2956 |
building from git—you need at least one of them installed from a |
| 2957 |
tarball to get started.) |
| 2958 |
|
| 2959 |
The bootstrap script works by creating a partial installation tree in |
| 2960 |
a temporary directory, containing bin/autoconf, bin/autom4te, and just |
| 2961 |
enough of the usual contents of $(pkgdatadir) for autoconf and |
| 2962 |
autom4te to work. It then runs a hardcoded list of commands, |
| 2963 |
corresponding to what ‘autoreconf -i -Wall,error’ would run, but |
| 2964 |
setting environment variables AUTOCONF and AUTOM4TE to ensure the |
| 2965 |
bootstrap versions of these tools are used. (We have to create both, |
| 2966 |
because automake runs autoconf, not autom4te, to trace configure.ac.) |
| 2967 |
|
| 2968 |
The ‘Autom4te’, ‘autoconf’, and ‘m4sugar’ subdirectories of the |
| 2969 |
partial installation tree are symlinked back to the source tree; this |
| 2970 |
is why version.m4 needed to be moved out of the m4sugar subdirectory, |
| 2971 |
so the bootstrap script can create it without scribbling on the source |
| 2972 |
tree. autom4te is run in --melt mode, so we don’t need to create |
| 2973 |
freeze files in any subdirectories either. All of the substitution |
| 2974 |
variables that are needed for autoconf and autom4te to both run, and |
| 2975 |
create the same output that they would have if fully configured, are |
| 2976 |
honored (unfortunately this does involve digging around in |
| 2977 |
configure.ac with sed expressions). |
| 2978 |
|
| 2979 |
2021-09-15 Zack Weinberg <[email protected]> |
| 2980 |
|
| 2981 |
Rewrite bin/autoconf in Perl. |
| 2982 |
Of all the installed programs (autoconf, autoheader, autom4te, |
| 2983 |
autoreconf, autoscan, autoupdate, ifnames) autoconf is the only one |
| 2984 |
that is a shell script instead of a Perl script. This means it has to |
| 2985 |
do a lot of fiddly quoting and requoting to assemble an autom4te |
| 2986 |
command line, it doesn’t get to use the shared option handling code in |
| 2987 |
Autom4te/{General,Getopt}.pm, and it has to duplicate usage text that |
| 2988 |
properly should only be in Autom4te/ChannelDefs.pm. It also means |
| 2989 |
there’s extra code in build-aux/help-extract.pl just for it, and a |
| 2990 |
special two-phase generation process in bin/local.mk. |
| 2991 |
|
| 2992 |
This also paves the way for the bootstrap script mentioned in the |
| 2993 |
previous commit; it will only have to know how to deal with |
| 2994 |
substitution variables, not generation of m4sh scripts. |
| 2995 |
|
| 2996 |
The new script winds up being slightly longer on disk but that’s |
| 2997 |
because our boilerplate for Perl scripts is quite long. The code is |
| 2998 |
visibly simpler. |
| 2999 |
|
| 3000 |
* bin/autoconf.as: Rename to bin/autoconf.in and rewrite in Perl. |
| 3001 |
* bin/local.mk (EXTRA_DIST): Change autoconf.as to autoconf.in. |
| 3002 |
(MOSTLYCLEANFILES): Don’t delete autoconf.in. |
| 3003 |
(bin/autoconf.in): Delete rule. |
| 3004 |
(ETAGS_PERL): Add autoconf.in and sort list. |
| 3005 |
(ETAGS_SH): Delete, no longer needed. |
| 3006 |
* tests/tools.at: Syntax-check autoconf as a Perl script. |
| 3007 |
|
| 3008 |
* build-aux/help-extract.pl: Remove all code for extracting usage text |
| 3009 |
from shell scripts. |
| 3010 |
* man/autoconf.w, man/local.mk: Refer to autoconf.in, not autoconf.as. |
| 3011 |
|
| 3012 |
2021-09-15 Zack Weinberg <[email protected]> |
| 3013 |
|
| 3014 |
Generate version.m4 from config.status, in lib/ not lib/m4sugar/. |
| 3015 |
This simplifies the Makefile a bit and also paves the way for a |
| 3016 |
bootstrap script (replacing the process of re-running autoreconf with |
| 3017 |
the just-built autoconf) which will be able to cope with generated |
| 3018 |
files that get installed in @pkgdatadir@ but not in @pkgdatadir@/m4sugar. |
| 3019 |
|
| 3020 |
* lib/version.in: New file, contents extracted from lib/local.mk. |
| 3021 |
* lib/local.mk: Do not generate version.m4 here. |
| 3022 |
* configure.ac: Generate lib/version.m4 from lib/version.in via |
| 3023 |
config.status. |
| 3024 |
|
| 3025 |
* lib/freeze.mk, lib/local.mk, lib/m4sugar/m4sugar.m4: |
| 3026 |
version.m4 now lives in @pkgdatadir@ rather than @pkgdatadir@/m4sugar. |
| 3027 |
|
| 3028 |
2021-09-01 Paul Eggert <[email protected]> |
| 3029 |
|
| 3030 |
fortran: *mingw* → mingw* in previous patch |
| 3031 |
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): Omit a ‘*’. |
| 3032 |
|
| 3033 |
2021-09-01 Keno Fischer <[email protected]> (tiny change) |
| 3034 |
|
| 3035 |
fortran.m4: Filter mingw intrinsic libraries |
| 3036 |
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): |
| 3037 |
Filter out mingw libraries too. |
| 3038 |
Problem and fix reported by Keno Fischer in |
| 3039 |
https://lists.gnu.org/r/autoconf-patches/2021-09/msg00000.html |
| 3040 |
|
| 3041 |
2021-09-01 Jim Meyering <[email protected]> |
| 3042 |
|
| 3043 |
fix a typo |
| 3044 |
* doc/autoconf.texi (Integer Overflow): Fix typo: s/many/may/ |
| 3045 |
|
| 3046 |
2021-08-31 Paul Eggert <[email protected]> |
| 3047 |
|
| 3048 |
Add commentary for Time::HiRes patches |
| 3049 |
|
| 3050 |
2021-08-31 Andreas K. Hüttel <[email protected]> |
| 3051 |
|
| 3052 |
Fix bug when autom4te updates too quickly |
| 3053 |
Use stat from Time::HiRes (instead of File::stat). |
| 3054 |
|
| 3055 |
Problem reported by Ionen Wolkens <https://bugs.gentoo.org/782985>. |
| 3056 |
|
| 3057 |
2021-08-31 Paul Eggert <[email protected]> |
| 3058 |
|
| 3059 |
Port AC_LANG_CALL(C) to C++ |
| 3060 |
* lib/autoconf/c.m4 (AC_LANG_CALL(C)): Add an extern "C" if C++. |
| 3061 |
Problem reported by Vincent Lefèvre (sr #110532). |
| 3062 |
|
| 3063 |
Modernize discussion of integer overflow |
| 3064 |
* doc/autoconf.texi (Integer Overflow, Integer Overflow Basics) |
| 3065 |
(Signed Overflow Examples, Optimization and Wraparound): |
| 3066 |
Modernize discussion to take current compiler and Gnulib |
| 3067 |
technology into account. |
| 3068 |
|
| 3069 |
Port test to next m4 version |
| 3070 |
* tests/tools.at (autom4te cache): |
| 3071 |
Allow m4 to quote 'like this' as well as 'like this'. |
| 3072 |
|
| 3073 |
2021-08-16 Marshall Ward <[email protected]> |
| 3074 |
|
| 3075 |
Fortran Cray pointer macro support |
| 3076 |
This patch adds the AC_F77_CRAY_POINTERS and AC_FC_CRAY_POINTERS macros, |
| 3077 |
which test if the Fortran compiler supports Cray pointers. |
| 3078 |
|
| 3079 |
The macros are written such that the tests share a common backend |
| 3080 |
(_AC_FC_CRAY_POINTERS) which works on both F77 and FC compilers. |
| 3081 |
Wrappers are provided to address any future potential compatibility |
| 3082 |
issues. |
| 3083 |
|
| 3084 |
The macros include additional tests for particular flags required by |
| 3085 |
GFortran and PGI compilers. The current set of flags is sparse, but can |
| 3086 |
be extended for other compilers if needed. |
| 3087 |
|
| 3088 |
Documentation and a minimal test of the macro have been included. |
| 3089 |
|
| 3090 |
Two minor variable name typos (@EXEEXT@ as @EEXEXT@) were also fixed in |
| 3091 |
two of the other Fortran tests. |
| 3092 |
|
| 3093 |
2021-08-12 Eric Blake <[email protected]> |
| 3094 |
|
| 3095 |
tests: typo fix |
| 3096 |
* tests/base.at: Fix typo. |
| 3097 |
Spotted by anonymous in https://savannah.gnu.org/support/?110526 |
| 3098 |
|
| 3099 |
2021-07-20 Paul Eggert <[email protected]> |
| 3100 |
|
| 3101 |
Autoconf now quotes 'like this' instead of `like this' |
| 3102 |
Autoconf’s diagnostics now follow current GNU coding standards, |
| 3103 |
which say that diagnostics in the C locale should quote 'like this' |
| 3104 |
with plain apostrophes instead of the older GNU style `like this' |
| 3105 |
with grave accent and apostrophe. |
| 3106 |
|
| 3107 |
2021-07-19 Paul Eggert <[email protected]> |
| 3108 |
|
| 3109 |
Document unquoted here-documents better |
| 3110 |
Problem reported by Bruno Haible (sr #110518). |
| 3111 |
* doc/autoconf.texi (Generating Sources) |
| 3112 |
(Running the Preprocessor, Running the Compiler) |
| 3113 |
(Running the Linker, Runtime): Briefly mention that the program |
| 3114 |
snippets are expanded as unquoted here-documents. |
| 3115 |
(Here-Documents): Document escaping needed in unquoted |
| 3116 |
here-documents. Remove mention of \" glitch in OpenBSD 2.7 sh; |
| 3117 |
that old system has not been supported for many years. |
| 3118 |
Remove advice that every \ must be quoted, as that sort |
| 3119 |
of quoting (though harmless) is not needed and is rarely done. |
| 3120 |
* lib/autoconf/c.m4 (AC_C_BIGENDIAN, _AC_LANG_OPENMP(Fortran 77)): |
| 3121 |
* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT): Properly quote |
| 3122 |
code snippets. The backslash-newline typos were harmless, and the |
| 3123 |
backslash-$ typo has unspecified behavior as per POSIX though the |
| 3124 |
typo is harmless on all shells I know of. However, Autoconf |
| 3125 |
should follow its own quoting advice. |
| 3126 |
|
| 3127 |
2021-06-30 Emanuele Giaquinta <[email protected]> |
| 3128 |
|
| 3129 |
doc: fix typo in variable name |
| 3130 |
Message-Id: <YJ4Tm3WEkv86L/[email protected]> |
| 3131 |
(tiny change) |
| 3132 |
|
| 3133 |
_AC_PROG_CXX_STDCXX_EDITION_TRY: fix typo in variable name |
| 3134 |
The typo causes "ac_prog_cxx_stdcxx" to be always set to "cxx11", |
| 3135 |
regardless of whether the C++ compiler supports C++11. |
| 3136 |
Message-Id: <[email protected]> |
| 3137 |
(tiny change) |
| 3138 |
|
| 3139 |
2021-05-10 Eric Blake <[email protected]> |
| 3140 |
|
| 3141 |
maint: advertise GNU in README |
| 3142 |
* README: Add section to attract more people towards the GNU project. |
| 3143 |
Inspired by a suggestion from Jose E. Marchesi <[email protected]> on |
| 3144 |
the gnu-prog-discuss mailing list. |
| 3145 |
|
| 3146 |
maint: ensure autoconf-latest.* links stay up-to-date |
| 3147 |
* cfg.mk (GNUPLOADFLAGS): New. |
| 3148 |
https://lists.gnu.org/archive/html/autoconf/2021-05/msg00006.html |
| 3149 |
|
| 3150 |
maint: Add names to THANKS |
| 3151 |
* THANKS: Add names that resulted in several recent commits. Also |
| 3152 |
tweak addresses per owner requests. |
| 3153 |
|
| 3154 |
2021-05-10 Ben Elliston <[email protected]> |
| 3155 |
|
| 3156 |
update HACKING file |
| 3157 |
Fairly obvious - be gender neutral in who gets thanked. |
| 3158 |
* HACKING: Tweak pronouns. |
| 3159 |
Message-Id: <[email protected]> |
| 3160 |
|
| 3161 |
2021-01-28 Zack Weinberg <[email protected]> |
| 3162 |
|
| 3163 |
trunk post-release administrivia |
| 3164 |
Matching the commits on the release branch: |
| 3165 |
|
| 3166 |
* NEWS: Bring over record of release notes. |
| 3167 |
* .prev-version: Record previous version. |
| 3168 |
* cfg.mk (old_NEWS_hash): Auto-update. |
| 3169 |
|
| 3170 |
2021-01-28 Zack Weinberg <[email protected]> |
| 3171 |
|
| 3172 |
make fetch |
| 3173 |
|
| 3174 |
make update-copyright |
| 3175 |
|
| 3176 |
2021-01-04 Zack Weinberg <[email protected]> |
| 3177 |
|
| 3178 |
autoreconf: don’t error out when AM_GNU_GETTEXT is used alone. |
| 3179 |
Some projects intentionally don't call AM_GNU_GETTEXT_(REQUIRE_)VERSION |
| 3180 |
because they have all of the gettext infrastructure checked into version |
| 3181 |
control and they want autoreconf to _not_ run autopoint. Therefore, make |
| 3182 |
the “AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_(REQUIRE_)VERSION” |
| 3183 |
and “AM_GNU_GETTEXT_(REQUIRE_)VERSION is used, but not AM_GNU_GETTEXT” |
| 3184 |
diagnostics be warnings again, as they were in 2.69. |
| 3185 |
|
| 3186 |
(Technically these diagnostics were always errors, in the sense that |
| 3187 |
they were reported with a call to Autom4te::Channels::error(), but |
| 3188 |
prior to 2.70, error() calls made by autoreconf did not cause |
| 3189 |
autoreconf to exit unsuccessfully, due to an unrelated bug. So people |
| 3190 |
came to depend on these diagnostics not being fatal.) |
| 3191 |
|
| 3192 |
2020-12-30 Bruno Haible <[email protected]> |
| 3193 |
|
| 3194 |
doc: Document another portability problem of 'od'. |
| 3195 |
* doc/autoconf.texi (Limitations of Usual Tools): Document that decimal output |
| 3196 |
is not portable. |
| 3197 |
|
| 3198 |
2020-12-30 Paul Eggert <[email protected]> |
| 3199 |
|
| 3200 |
doc: modernize grep discussion |
| 3201 |
|
| 3202 |
2020-12-29 Zack Weinberg <[email protected]> |
| 3203 |
|
| 3204 |
autom4te: always update the output file, even if it hasn’t changed |
| 3205 |
Automake generates a Makefile rule for regenerating the configure |
| 3206 |
script, that relies on an invocation of ‘autoconf’ always bumping the |
| 3207 |
timestamp on the configure script, even if it hasn’t changed. |
| 3208 |
The patch to make autom4te update the output file atomically |
| 3209 |
(1725c947144d9bebfe7817c2c5f0d53d884b1297) broke this. |
| 3210 |
|
| 3211 |
Fixes several failures in automake’s test suite. |
| 3212 |
|
| 3213 |
* bin/autom4te.in (handle_output): Always call update_file with force=1. |
| 3214 |
* tests/tools.at (autoconf: timestamp changes): New test. |
| 3215 |
|
| 3216 |
2020-12-23 Zack Weinberg <[email protected]> |
| 3217 |
|
| 3218 |
Restore compatibility with older std-gnu11.m4. |
| 3219 |
Gnulib’s std-gnu11.m4 backports C11 and C++11 detection to autoconf |
| 3220 |
2.69. It does this by replacing the definitions of AC_PROC_CC and |
| 3221 |
AC_PROG_CXX and most of their subroutines. In particular, it replaces |
| 3222 |
the definitions of _AC_PROG_CC_C11, _AC_PROG_CC_C99, and _AC_C_STD_TRY, |
| 3223 |
but it does *not* replace the definition of _AC_PROG_CC_C89. |
| 3224 |
|
| 3225 |
Autoconf commit 131d8c69f31dc6fc8dc93abe1096d52d1fe19fd3 changed the |
| 3226 |
calling convention of _AC_C_STD_TRY, and changed the internal |
| 3227 |
definitions of _AC_PROG_CC_C{11,99,89} to match. If std-gnu11.m4 is |
| 3228 |
in use, our _AC_PROG_CC_C89 calls their _AC_C_STD_TRY with the new |
| 3229 |
calling convention, and this produces a syntactically invalid |
| 3230 |
configure script. (This is is fortunate: it could easily have been a |
| 3231 |
runtime malfunction that only manifested with compilers that only |
| 3232 |
implement C89, and then we might not have noticed the problem for |
| 3233 |
years.) |
| 3234 |
|
| 3235 |
Gnulib commit a3b3fc85e3e632374811b27cb2111e50fa177e36 makes |
| 3236 |
std-gnu11.m4 do nothing when used with autoconf >=2.70, but older |
| 3237 |
versions of the file will circulate for years to come, so this patch |
| 3238 |
works around the problem in autoconf. It does this by renaming all of |
| 3239 |
the internal macros involved with C and C++ standard edition |
| 3240 |
detection, *except* _AC_PROG_CC_C89. AC_PROG_CC now calls |
| 3241 |
_AC_PROG_CC_STDC_EDITION, which loops over all supported editions |
| 3242 |
calling _AC_PROG_CC_STDC_EDITION_TRY, which uses the data provided by |
| 3243 |
the existing _AC_C_C${edition}_TEST_PROGRAM macros and a new set of |
| 3244 |
macros called _AC_C_C${edition}_OPTIONS to perform the test for that |
| 3245 |
edition of the standard. Similarly, AC_PROG_CXX calls |
| 3246 |
_AC_PROG_CXX_STDCXX_EDITION, which loops calling |
| 3247 |
_AC_PROG_CXX_STDCXX_EDITION_TRY, which uses data from |
| 3248 |
_AC_CXX_CXX${edition}_TEST_PROGRAM and _AC_CXX_CXX${edition}_OPTIONS. |
| 3249 |
|
| 3250 |
_AC_PROG_CC_C89 is the only macro from the old set that we still |
| 3251 |
define, and its definition is reverted to what std-gnu11.m4 expects it |
| 3252 |
to be. Nothing in Autoconf proper uses it anymore. |
| 3253 |
|
| 3254 |
foreign.at grows a test to verify that the compatibility stub version |
| 3255 |
of _AC_PROG_CC_C89 does its job. Since this is now the third test |
| 3256 |
involving an embedded copy of a third-party macro, I broke them all |
| 3257 |
out of foreign.at to separate files in test/data/. |
| 3258 |
|
| 3259 |
In addition to fixing the breakage, this patch should make it easier |
| 3260 |
to extend C / C++ standard edition detection in the future, by getting |
| 3261 |
rid of the if-else chains in AC_PROG_CC/CXX and by disentangling the |
| 3262 |
lists of command-line options to test from the logic. |
| 3263 |
|
| 3264 |
I also changed the manual to suggest people refer to the variables |
| 3265 |
‘ac_prog_cc_stdc’ and ‘ac_prog_cxx_stdcxx’ to learn which edition |
| 3266 |
of the C and C++ standards are selected; these are much easier to |
| 3267 |
work with than the ac_cv_prog_cc_cNN cache variables. |
| 3268 |
|
| 3269 |
* lib/autoconf/c.m4 (_AC_C_STD_TRY, _AC_PROG_CC_C99, _AC_PROG_CC_C11) |
| 3270 |
(_AC_CXX_STD_TRY, _AC_PROG_CXX_CXX98, _AC_PROG_CXX_CXX11): Remove macro. |
| 3271 |
|
| 3272 |
(_AC_C_C89_OPTIONS, _AC_C_C99_OPTIONS, _AC_C_C11_OPTIONS) |
| 3273 |
(_AC_PROG_CC_STDC_EDITION, _AC_PROG_CC_STDC_EDITION_TRY) |
| 3274 |
(_AC_CXX_CXX98_OPTIONS, _AC_CXX_CXX11_OPTIONS) |
| 3275 |
(_AC_PROG_CXX_STDCXX_EDITION, _AC_PROG_CXX_STDCXX_EDITION_TRY): New macros. |
| 3276 |
|
| 3277 |
(_AC_PROG_CC_C89): Convert to compatibility stub for std-gnu11.m4. |
| 3278 |
|
| 3279 |
(AC_PROG_CC): Use _AC_PROG_CC_STDC_EDITION. |
| 3280 |
(AC_PROG_CXX): Use _AC_PROG_CXX_STDCXX_EDITION. |
| 3281 |
|
| 3282 |
* tests/data/ax_prog_cc_for_build_v18.m4 |
| 3283 |
* tests/data/ax_prog_cxx_for_build_v3.m4 |
| 3284 |
* tests/data/gnulib_std_gnu11_2020_08_17.m4: New files. |
| 3285 |
* tests/foreign.at (AX_PROG_CC_FOR_BUILD, AX_PROG_CXX_FOR_BUILD): |
| 3286 |
Remove embedded copy of ax_prog_cc_for_build_v18.m4, |
| 3287 |
ax_prog_cxx_for_build_v3.m4 respectively. |
| 3288 |
(gnulib-std-gnu11.m4): New test. |
| 3289 |
* tests/local.mk: Distribute tests/data/*.m4. |
| 3290 |
|
| 3291 |
* doc/autoconf.texi (AC_PROG_CC, AC_PROG_CXX): Document use of |
| 3292 |
ac_prog_cc_stdc / ac_prog_cxx_stdcxx, respectively, to tell which |
| 3293 |
edition of the C / C++ standards are selected, instead of looking |
| 3294 |
through a series of cache variables with awkward definitions. |
| 3295 |
|
| 3296 |
2020-12-23 Zack Weinberg <[email protected]> |
| 3297 |
|
| 3298 |
Use -fno-builtin, not -Werror, in AC_CHECK_DECLS (#110400) |
| 3299 |
clang issues only a warning, not an error, when an undeclared |
| 3300 |
identifier that names a built-in function is used: for instance |
| 3301 |
|
| 3302 |
char *(*p)(const char *, int) = strchr; |
| 3303 |
|
| 3304 |
(with no `#include <string.h>`) is an error with most compilers, |
| 3305 |
a warning with clang. This broke the 2.69 implementation of |
| 3306 |
AC_CHECK_DECL. In commit 82ef7805faffa151e724aa76c245ec590d174580, |
| 3307 |
we tried to work around this quirk by using -Werror, but that put us |
| 3308 |
at risk of being tripped up by other warnings. Bug 110400 reports, |
| 3309 |
for instance, that this fragment (which is roughly what you get, after |
| 3310 |
preprocessing, when AC_CHECK_DECL is applied to a function that *is* |
| 3311 |
properly declared) |
| 3312 |
|
| 3313 |
extern void ac_decl (int, char *); |
| 3314 |
int main (void) |
| 3315 |
{ |
| 3316 |
(void) ac_decl; |
| 3317 |
; |
| 3318 |
return 0; |
| 3319 |
} |
| 3320 |
|
| 3321 |
provokes a warning from clang (and thus an error) when -Wextra-semi-stmt |
| 3322 |
has been added to CFLAGS earlier in the configure script. The extra |
| 3323 |
semicolon comes from AC_LANG_PROGRAM, and we can’t get rid of it |
| 3324 |
because we have no way of telling reliably when someone wrote |
| 3325 |
something like |
| 3326 |
|
| 3327 |
AC_LANG_PROGRAM([[#include <stdio.h>]], |
| 3328 |
[[puts("hello world")]]) |
| 3329 |
|
| 3330 |
with no semicolon at the end of the statement; this has been |
| 3331 |
acceptable for decades. Besides, that’s just one warning, who knows |
| 3332 |
what compilers will start complaining about tomorrow? |
| 3333 |
|
| 3334 |
So: change AC_CHECK_DECL to compile its programs with -fno-builtin, |
| 3335 |
instead, when the default compilation mode fails to detect an |
| 3336 |
undeclared strchr. The code is restructured so that we can try other |
| 3337 |
options as well, if we find another compiler with the same quirk but |
| 3338 |
different command-line syntax. |
| 3339 |
|
| 3340 |
(All of this logic is very C-family specific, but it appears to me |
| 3341 |
that AC_CHECK_DECL has never worked with other languages, so we can |
| 3342 |
continue to live with that for now.) |
| 3343 |
|
| 3344 |
Fixes bug 110400; partially reverts 82ef7805faffa151e724aa76c245ec590d174580. |
| 3345 |
|
| 3346 |
* lib/autoconf/general.m4 (_AC_UNDECLARED_WARNING): Rename to |
| 3347 |
_AC_UNDECLARED_BUILTIN. Instead of looking at diagnostic output, |
| 3348 |
loop trying to find a command-line option that makes the compiler |
| 3349 |
error out on undeclared builtins. |
| 3350 |
(_AC_CHECK_DECL_BODY): Don’t AC_REQUIRE anything here. |
| 3351 |
Make shell code language-agnostic, except for the actual test program. |
| 3352 |
Add arguments to the shell function for additional compiler options |
| 3353 |
to use. |
| 3354 |
(AC_CHECK_DECL): AC_REQUIRE _AC_UNDECLARED_BUILTIN here. |
| 3355 |
Supply $ac_{AC_LANG_ABBREV}_undeclared_builtin_options to |
| 3356 |
ac_fn_check_decl. |
| 3357 |
|
| 3358 |
* tests/local.at (AT_CONFIG_CMP): Update list of variables to ignore |
| 3359 |
when comparing C and C++ configure runs. |
| 3360 |
* tests/semantics.at (AC_CHECK_DECLS): Add memcpy and strchr to |
| 3361 |
AC_CHECK_DECLS call for functions that may be known to the compiler. |
| 3362 |
|
| 3363 |
* doc/autoconf.texi (AC_CHECK_DECL, AC_CHECK_DECLS): Remove note |
| 3364 |
about compiler warnings. |
| 3365 |
|
| 3366 |
2020-12-23 Zack Weinberg <[email protected]> |
| 3367 |
|
| 3368 |
autom4te: correct error message when we can’t create autom4te.cache. |
| 3369 |
While testing something else, I noticed that autom4te may print a |
| 3370 |
nonsensical error message when it fails to create autom4te.cache, |
| 3371 |
because it checks again whether the directory already exists before |
| 3372 |
giving up, and this clobbers errno. |
| 3373 |
|
| 3374 |
Instead of doing (the perl equivalent of) |
| 3375 |
test -d $cache || mkdir $cache || test -d $cache |
| 3376 |
call mkdir unconditionally. If it fails with an errno code other than |
| 3377 |
EEXIST, consider that a hard failure; if it fails with EEXIST, check |
| 3378 |
whether the thing that exists is in fact a directory. (A symlink to |
| 3379 |
a directory qualifies; I wouldn’t be surprised if people are moving |
| 3380 |
autom4te.cache around with symlinks.) |
| 3381 |
|
| 3382 |
Either way, if we fail, report strerror(errno) from the original |
| 3383 |
mkdir failure. Also, print the current working directory as part |
| 3384 |
of the error message; this aids debugging when you’re working with a |
| 3385 |
big hairy nested tree. |
| 3386 |
|
| 3387 |
* bin/autom4te.in: Don’t check whether autom4te.cache exists before |
| 3388 |
attempting to create it. Only stat autom4te.cache if mkdir fails |
| 3389 |
with EEXIST, otherwise fail immediately. Make sure to report the |
| 3390 |
errno code from mkdir, not the subsequent stat (if any). Report |
| 3391 |
the current working directory as part of the error message. |
| 3392 |
|
| 3393 |
* tests/tools.at: Verify that autom4te reports the actual reason when |
| 3394 |
it fails to create autom4te.cache. Verify that failure to create |
| 3395 |
autom4te.cache because that name exists, but isn’t a directory, |
| 3396 |
is detected. |
| 3397 |
|
| 3398 |
2020-12-12 Paul Eggert <[email protected]> |
| 3399 |
|
| 3400 |
Merge branch 'branch-2.70' into master |
| 3401 |
|
| 3402 |
2020-12-11 Paul Eggert <[email protected]> |
| 3403 |
|
| 3404 |
Improve AC_USE_SYSTEM_EXTENSIONS port to HP-UX 11.11 |
| 3405 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): |
| 3406 |
Define _HPUX_ALT_XOPEN_SOCKET_API, for HP-UX 11.11. |
| 3407 |
This patch is adapted from Gnulib. |
| 3408 |
|
| 3409 |
Port minor AC_HEADER_MAJOR fixes from Gnulib |
| 3410 |
* lib/autoconf/headers.m4 (AC_HEADER_MAJOR): |
| 3411 |
Improve m4 quoting. |
| 3412 |
|
| 3413 |
Port minor AC_FUNC_ALLOCA fixes from Gnulib |
| 3414 |
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_ALLOCA): |
| 3415 |
Use ' not ` in generated comments, as per current GNU coding style. |
| 3416 |
(_AC_LIBOBJ_ALLOCA): Use plain # instead of unnecessary quadrigraph. |
| 3417 |
This patch is adapted from Gnulib. |
| 3418 |
|
| 3419 |
Improve port of AC_C_RESTRICT to Oracle C++ |
| 3420 |
Problem reported by Christian Biesinger in: |
| 3421 |
https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html |
| 3422 |
* lib/autoconf/c.m4 (AC_C_RESTRICT): Port better to |
| 3423 |
Oracle Developer Studio C++ 12.5 or later. |
| 3424 |
This patch is adapted from Gnulib. |
| 3425 |
|
| 3426 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3427 |
|
| 3428 |
_AC_PROG_CC_C99: fix typo (#110396) |
| 3429 |
_AC_PROG_CC_C99 was using the wrong test program. |
| 3430 |
|
| 3431 |
Fixes #110396, reported anonymously. |
| 3432 |
|
| 3433 |
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Use the C99 test program, not |
| 3434 |
the C89 test program. |
| 3435 |
|
| 3436 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3437 |
|
| 3438 |
maint: add outline for future NEWS (release branch). |
| 3439 |
|
| 3440 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3441 |
|
| 3442 |
_AC_PROG_CC_C99: fix typo (#110396) |
| 3443 |
_AC_PROG_CC_C99 was using the wrong test program. |
| 3444 |
|
| 3445 |
Fixes #110396, reported anonymously. |
| 3446 |
|
| 3447 |
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Use the C99 test program, not |
| 3448 |
the C89 test program. |
| 3449 |
|
| 3450 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3451 |
|
| 3452 |
maint: add outline for future NEWS |
| 3453 |
|
| 3454 |
maint: post-release administrivia |
| 3455 |
* NEWS: Add header line for next release. |
| 3456 |
* .prev-version: Record previous version. |
| 3457 |
* cfg.mk (old_NEWS_hash): Auto-update. |
| 3458 |
|
| 3459 |
Release 2.70. |
| 3460 |
|
| 3461 |
Remove obsolete instructions from HACKING. |
| 3462 |
configure CC=g++ is no longer supported, so don’t tell maintainers to |
| 3463 |
test that. |
| 3464 |
|
| 3465 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3466 |
|
| 3467 |
testsuite: log version of M4 and Perl |
| 3468 |
Jannick reported problems on OSX for which the most plausible |
| 3469 |
explanation is that the system-provided M4 is emitting error messages |
| 3470 |
with different line numbers than we expect, perhaps because Apple |
| 3471 |
froze their copy of GNU M4 to the last GPLv2 release. To test this |
| 3472 |
hypothesis, add $PERL and $M4 to AT_TESTED in our testsuite. |
| 3473 |
|
| 3474 |
* tests/atlocal.in: Also set $M4 from configure. |
| 3475 |
* tests/local.at: Add AT_TESTED([$PERL $M4]). |
| 3476 |
|
| 3477 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3478 |
|
| 3479 |
lib/autotest/general.m4: typo fix |
| 3480 |
The absolute-path case in AT_TESTED had a typo in it, causing bizarre |
| 3481 |
error messages and preventing programs identified by absolute path |
| 3482 |
from being logged properly. |
| 3483 |
|
| 3484 |
* lib/autotest/general.m4 (AT_TESTED): Fix typoed shell syntax in |
| 3485 |
handling of programs identified by absolute path. |
| 3486 |
|
| 3487 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3488 |
|
| 3489 |
Three minor testsuite fixes. |
| 3490 |
1. To insulate the test suite from a system-provided config.site file, |
| 3491 |
set the CONFIG_SITE environment variable to a file that is known not |
| 3492 |
to exist. Problem reported by Jannick. |
| 3493 |
|
| 3494 |
2. AC_PROG_CC, AC_PROG_CXX, AC_PROG_CPP, and AC_PROG_CXXCPP may set |
| 3495 |
cache variables named ‘ac_cv_prog_$tool’ or ‘ac_cv_prog_ac_ct_$tool’, |
| 3496 |
depending on system conditions; _AT_CONFIG_CMP_PRUNE needs to handle |
| 3497 |
both possibilities. Found by testing on FreeBSD 12; I have no idea |
| 3498 |
why it didn’t show up on _any_ of my other test platforms. |
| 3499 |
|
| 3500 |
3. The ‘AC_PROG_LEX with yywrap’ test needs to be skipped on systems |
| 3501 |
that don’t provide libl.a nor libfl.a. This change needed yet another |
| 3502 |
hook for AT_CHECK_MACRO. Found by testing on Alpine Linux. |
| 3503 |
|
| 3504 |
(Ideally, instead of skipping this test, we would test that this |
| 3505 |
configure script *errors out* on these systems, but that would involve |
| 3506 |
much more invasive changes to AT_CHECK_MACRO, which I don’t want to |
| 3507 |
hold the release for.) |
| 3508 |
|
| 3509 |
* tests/local.at (AT_PREPARE_TESTS): Set CONFIG_SITE to refer to |
| 3510 |
a file that is known not to exist, and export it. |
| 3511 |
(_AT_CONFIG_CMP_PRUNE): Prune all variables matching the |
| 3512 |
ERE ‘ac_cv_prog_(ac_ct_)?(CC|CXX|CPP|CXXCPP)’. |
| 3513 |
(AT_CHECK_MACRO): Add PRETEST-CMDS argument which takes commands to |
| 3514 |
execute immediately after AT_SETUP. |
| 3515 |
* tests/semantics.at (AC_PROG_LEX with yywrap): Using PRETEST-CMDS, |
| 3516 |
skip this test on OSes where neither -ll nor -lfl provides a |
| 3517 |
definition of yywrap. |
| 3518 |
|
| 3519 |
2020-12-08 Zack Weinberg <[email protected]> |
| 3520 |
|
| 3521 |
autoreconf --install --force: replace install-sh with no timestamp |
| 3522 |
Old versions of install-sh did not have a timestamp line. Therefore, |
| 3523 |
treat the absence of a timestamp line as indicating a very old file |
| 3524 |
(that --install --force should replace), not as an error. |
| 3525 |
|
| 3526 |
Problem reported by Pascal Terjan. |
| 3527 |
|
| 3528 |
* bin/autoreconf.in (extract_time_stamp): Return 1970-01-01 when |
| 3529 |
no timestamp line is found. |
| 3530 |
* tests/torture.at (Missing auxiliary files (--force)): |
| 3531 |
Test replacement of old install-sh with no timestamp line. |
| 3532 |
|
| 3533 |
2020-12-07 Zack Weinberg <[email protected]> |
| 3534 |
|
| 3535 |
make fetch |
| 3536 |
|
| 3537 |
2020-12-07 Zack Weinberg <[email protected]> |
| 3538 |
|
| 3539 |
Update documentation of AC_USE_SYSTEM_EXTENSIONS. |
| 3540 |
The list of macros documented as being defined by |
| 3541 |
AC_USE_SYSTEM_EXTENSIONS had gotten out of sync with the actual list. |
| 3542 |
Update it thoroughly. |
| 3543 |
|
| 3544 |
Also, I introduced an error into the commentary when I merged Julien |
| 3545 |
ÉLIE’s patch to define _NETBSD_SOURCE and _OPENBSD_SOURCE in |
| 3546 |
AC_USE_SYSTEM_EXTENSIONS. _OPENBSD_SOURCE does something on NetBSD |
| 3547 |
and *doesn’t* do anything on OpenBSD. This is corrected. |
| 3548 |
|
| 3549 |
Clean up the code in AC_USE_SYSTEM_EXTENSIONS a bit while I’m in |
| 3550 |
there; we now had a redundant definition of _NETBSD_SOURCE (one |
| 3551 |
unconditional and one conditional on minix/config.h existing). |
| 3552 |
Reorganize the macro to make it easier to catch problems like this in |
| 3553 |
the future. |
| 3554 |
|
| 3555 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Reorganize; |
| 3556 |
remove redundant AC_DEFINE of _NETBSD_SOURCE; add some missing |
| 3557 |
AC_BEFOREs; use _AC_CHECK_HEADER_ONCE for header checks; |
| 3558 |
revise all commentary. |
| 3559 |
* doc/autoconf.texi (AC_USE_SYSTEM_EXTENSIONS): Update. |
| 3560 |
|
| 3561 |
2020-12-07 Zack Weinberg <[email protected]> |
| 3562 |
|
| 3563 |
Revise documentation of AT_CHECK. |
| 3564 |
Patch originally by Jannick but then about 10x more words added by me. |
| 3565 |
|
| 3566 |
2020-12-07 Zack Weinberg <[email protected]> |
| 3567 |
|
| 3568 |
Revise documentation of AC_PROG_CC and comments on conformance checks. |
| 3569 |
Makes the documentation of AC_PROG_CC consistent with the |
| 3570 |
documentation of AC_PROG_CXX. Also removes a bunch of redundant text |
| 3571 |
from c.m4 and adds lists of the headers that *can* be used in the |
| 3572 |
conformance tests, so future hackers don’t have to look them up. |
| 3573 |
|
| 3574 |
* doc/autoconf.texi (AC_PROG_CC): Make description consistent with |
| 3575 |
description of AC_PROG_CXX. |
| 3576 |
* lib/autoconf/c.m4: Clean up some outdated or repetitive commentary |
| 3577 |
and add lists of the freestanding headers above the code that needs |
| 3578 |
to avoid using non-freestanding headers. |
| 3579 |
|
| 3580 |
2020-12-07 Zack Weinberg <[email protected]> |
| 3581 |
|
| 3582 |
Add checks of __STDC__ and __STDC_VERSION__ to C conformance tests. |
| 3583 |
This makes the C conformance tests more consistent with the C++ |
| 3584 |
conformance tests, and should also speed up cycling through the |
| 3585 |
possible options to turn on C99/C11. |
| 3586 |
|
| 3587 |
Tested with gcc, clang, SunPRO C, and AIX xlc. |
| 3588 |
|
| 3589 |
* lib/autoconf/c.m4 (_AC_C_C89_TEST_GLOBALS): Add preprocessor test |
| 3590 |
for __STDC__ being defined (to any value). |
| 3591 |
(_AC_C_C99_TEST_GLOBALS, _AC_C_C11_TEST_GLOBALS): Add preprocessor |
| 3592 |
test of the value of __STDC_VERSION__. |
| 3593 |
|
| 3594 |
2020-12-07 Zack Weinberg <[email protected]> |
| 3595 |
|
| 3596 |
autom4te: don’t crash when warnings have no stacktrace |
| 3597 |
In testing on Darwin (OSX), sometimes warnings reported from M4 code |
| 3598 |
reach autom4te with no stack trace at all, causing the perl script to |
| 3599 |
crash with a “use of uninitialized value” error. The root cause of |
| 3600 |
the problem is not clear to me, but the script certainly shouldn’t |
| 3601 |
crash. |
| 3602 |
|
| 3603 |
Problem found by Jannick <[email protected]>. |
| 3604 |
|
| 3605 |
* bin/autom4te.in: When processing warnings, make sure $stacktrace is |
| 3606 |
defined. |
| 3607 |
|
| 3608 |
2020-12-07 Jannick <[email protected]> |
| 3609 |
|
| 3610 |
Small bug fixes for the test suite. |
| 3611 |
* tests/atlocal.in: Also set AWK to value detected by configure. |
| 3612 |
Alphabetize list of shell variables set by config.status. |
| 3613 |
* tests/local.mk: Add a rule to recreate tests/atconfig when |
| 3614 |
config.status changes. |
| 3615 |
|
| 3616 |
2020-12-06 Zack Weinberg <[email protected]> |
| 3617 |
|
| 3618 |
Don’t use hosted headers when testing for C(++) standard level (#110393) |
| 3619 |
The tests for the level of the C and C++ standard supported by their |
| 3620 |
respective compilers should also avoid using any headers that are not |
| 3621 |
guaranteed to be available in the respective freestanding environment. |
| 3622 |
|
| 3623 |
Unlike the previous change, the only user-visible consequence of this |
| 3624 |
one should be that C11/C99/C89/C++11/C++98 *compiler* support is now |
| 3625 |
correctly detected when the compilation target is a freestanding |
| 3626 |
environment. |
| 3627 |
|
| 3628 |
This patch also refactors how we “emit [the text of the C/C++ |
| 3629 |
standard-conformance test programs] only once per [configure script], |
| 3630 |
into shell variables which can then be referenced repeatedly,” from |
| 3631 |
c3853873, because editing them just a little made the M4 quotation |
| 3632 |
break. Clearly too fragile. |
| 3633 |
|
| 3634 |
I believe this completes the fix for bug #110393. |
| 3635 |
|
| 3636 |
* lib/autoconf/c.m4 (_AC_PROG_CC_C89, _AC_PROG_CC_C99, _AC_PROG_CC_C11) |
| 3637 |
_AC_C_C99_TEST_HEADER, _AC_C_C99_TEST_BODY): Move all test program |
| 3638 |
fragments into new macros that can be AC_REQUIREd individually: |
| 3639 |
_AC_C_C89_TEST_GLOBALS, _AC_C_C89_TEST_MAIN, _AC_C_C89_TEST_PROGRAM, |
| 3640 |
_AC_C_C99_TEST_GLOBALS, _AC_C_C99_TEST_MAIN, _AC_C_C99_TEST_PROGRAM, |
| 3641 |
_AC_C_C11_TEST_GLOBALS, _AC_C_C11_TEST_MAIN, _AC_C_C11_TEST_PROGRAM. |
| 3642 |
Each emits test code at most once, into a shell variable in the |
| 3643 |
INIT_PREPARE diversion. |
| 3644 |
Revise each test program to use only library features of the |
| 3645 |
respective standard’s freestanding environment. |
| 3646 |
(_AC_C_STD_TRY): Take the *name* of the shell variable holding the |
| 3647 |
complete test program as an argument, not the code itself. All |
| 3648 |
callers adjusted to match. |
| 3649 |
|
| 3650 |
(_AC_PROG_CXX_CXX98, _AC_PROG_CXX_CXX11, _AC_CXX_STD_TRY) |
| 3651 |
(_AC_CXX_CXX98_TEST_HEADER, _AC_CXX_CXX98_TEST_BODY) |
| 3652 |
(_AC_CXX_CXX11_TEST_HEADER, _AC_CXX_CXX11_TEST_BODY): Similarly. |
| 3653 |
New macros are: |
| 3654 |
_AC_CXX_CXX98_TEST_GLOBALS, _AC_CXX_CXX98_TEST_MAIN, |
| 3655 |
_AC_CXX_CXX98_TEST_PROGRAM, |
| 3656 |
_AC_CXX_CXX11_TEST_GLOBALS, _AC_CXX_CXX11_TEST_MAIN, |
| 3657 |
_AC_CXX_CXX11_TEST_PROGRAM. |
| 3658 |
|
| 3659 |
2020-12-06 Zack Weinberg <[email protected]> |
| 3660 |
|
| 3661 |
AC_INCLUDES_DEFAULT: Check for presence of C90 hosted headers (#110393) |
| 3662 |
Since 1993, Autoconf has been assuming that it is safe to include any |
| 3663 |
of the headers defined by ISO C90 without checking for them; this is |
| 3664 |
inaccurate, since only a subset are necessarily available in a |
| 3665 |
C90 *freestanding* environment. |
| 3666 |
|
| 3667 |
It is OK to assume the presence of a header in a macro that checks |
| 3668 |
specifically for something declared by that header (if the header is |
| 3669 |
not present, we will think the specific declaration is unavailable, |
| 3670 |
which is probably accurate for modern embedded environments). It is |
| 3671 |
also OK to continue recommending that user code use these headers |
| 3672 |
unconditionally—anyone working with a freestanding environment knows |
| 3673 |
it. But it is not OK for very generic code within Autoconf itself, |
| 3674 |
such as AC_INCLUDES_DEFAULT, to make this assumption. |
| 3675 |
|
| 3676 |
Note that the set of headers that are not always available includes |
| 3677 |
stdio.h, which we have been assuming can be included unconditionally |
| 3678 |
for even longer. |
| 3679 |
|
| 3680 |
In AC_INCLUDES_DEFAULT, revert to checking for string.h and stdlib.h |
| 3681 |
before including them. Also revert to defining STDC_HEADERS only when |
| 3682 |
string.h and stdlib.h are available (but do not check for float.h and |
| 3683 |
stdarg.h, as these are part of the freestanding set). Add a new check |
| 3684 |
for stdio.h. Sort the inclusion list by standard (C90 freestanding; |
| 3685 |
C90 hosted; C99; POSIX) and alphabetically within each group. Revise |
| 3686 |
all the documentation and update the testsuite. |
| 3687 |
|
| 3688 |
This partially reverts commit 86c213d0e355296f026a36e3203c0813041aae89 |
| 3689 |
and is a partial fix for bug #110393. |
| 3690 |
|
| 3691 |
* lib/autoconf/headers.m4 (AC_CHECK_INCLUDES_DEFAULT): Check for |
| 3692 |
stdio.h, stdlib.h, and string.h before including them. Define |
| 3693 |
STDC_HEADERS only when string.h and stdlib.h are both available. |
| 3694 |
Organize includes list by standard, then alphabetically. |
| 3695 |
|
| 3696 |
* doc/autoconf.texi, NEWS: Update to match. |
| 3697 |
|
| 3698 |
* tests/local.at (AT_CHECK_DEFINES): Make regexes more specific. |
| 3699 |
Also expect a definition of HAVE_STDIO_H. |
| 3700 |
* tests/c.at, tests/semantics.at, tests/tools.at: Use <float.h>, |
| 3701 |
not <stdio.h>, as a header that we expect always to exist. |
| 3702 |
Add HAVE_STDIO_H to various lists of macros that are expected to |
| 3703 |
appear in config.h. |
| 3704 |
|
| 3705 |
2020-12-06 Julien ÉLIE <[email protected]> |
| 3706 |
|
| 3707 |
Define _NETBSD_SOURCE and _OPENBSD_SOURCE in AC_USE_SYSTEM_EXTENSIONS (#110392) |
| 3708 |
These expose additional extensions specific to those operating |
| 3709 |
systems, similar to _DARWIN_C_SOURCE, _GNU_SOURCE, etc. |
| 3710 |
|
| 3711 |
(DragonflyBSD and FreeBSD currently do not have any equivalent |
| 3712 |
macros.) |
| 3713 |
|
| 3714 |
Fixes bug #110392. See also |
| 3715 |
https://git.savannah.gnu.org/cgit/gnulib.git/tree/m4/extensions.m4 |
| 3716 |
https://git.eyrie.org/?p=devel/rra-c-util.git;a=commitdiff;h=f8a922cf31804dcc25ac176dcc22fdcdffcb5fdf |
| 3717 |
|
| 3718 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Also define |
| 3719 |
_NETBSD_SOURCE and _OPENBSD_SOURCE. Add comment explaining that |
| 3720 |
there are (currently) no equivalent macros on DragonflyBSD and |
| 3721 |
FreeBSD. Put macro list in alphabetical order. |
| 3722 |
|
| 3723 |
2020-12-04 Zack Weinberg <[email protected]> |
| 3724 |
|
| 3725 |
Revert "AC_PROG_CC: define via AC_DEFUN_ONCE". (#110350) |
| 3726 |
Revert commit 18c140b50b0619454d4da50d58a318cc257d580a, restoring |
| 3727 |
AC_PROG_CC to being defined as an ordinary AC_DEFUN. This broke |
| 3728 |
third-party macros (e.g. the Autoconf Macro Archive’s |
| 3729 |
AX_PROG_CC_FOR_BUILD) that intentionally invoked AC_PROG_CC a second |
| 3730 |
time with its guts redefined via a whole bunch of ‘pushdef’s. I don’t |
| 3731 |
think we want to support this long-term, but needing access to a |
| 3732 |
build-native compiler in cross-compilation is common enough that we |
| 3733 |
should have *some* supported way to do it, and it may as well be |
| 3734 |
AX_PROG_CC_FOR_BUILD until we come up with something better. |
| 3735 |
|
| 3736 |
If we go back to AC_DEFUN_ONCE for AC_PROG_CC in the future, we should |
| 3737 |
do it consistently for all the “find me a compiler” macros -- it |
| 3738 |
was *only* done for AC_PROG_CC in 18c140b5. |
| 3739 |
|
| 3740 |
The rationale for AC_DEFUN_ONCE seems to have been to reduce the size |
| 3741 |
of the generated configure script. The bulk of the size accountable to |
| 3742 |
AC_PROG_CC is the test programs for figuring out which version of the |
| 3743 |
C standard is available, so I tweaked _AC_C_STD_TRY (and _AC_CXX_STD_TRY) |
| 3744 |
to emit that text only once per program, into shell variables which |
| 3745 |
can then be referenced repeatedly. |
| 3746 |
|
| 3747 |
Fixes bug #110350. |
| 3748 |
|
| 3749 |
* NEWS, doc/autoconf.texi: Revert documentation changes associated |
| 3750 |
with AC_PROG_CC being a one-shot macro. |
| 3751 |
* lib/autoconf/c.m4 (AC_PROG_CC): Revert to defining with AC_DEFUN. |
| 3752 |
(_AC_C_STD_TRY, _AC_CXX_STD_TRY): Emit the test program only once, |
| 3753 |
even if invoked multiple times with the same arguments. |
| 3754 |
|
| 3755 |
* tests/foreign.at (AX_PROG_CC_FOR_BUILD, AX_PROG_CXX_FOR_BUILD): |
| 3756 |
New tests. |
| 3757 |
|
| 3758 |
2020-12-02 Zack Weinberg <[email protected]> |
| 3759 |
|
| 3760 |
Autotest: add official way to execute code before all/each test. |
| 3761 |
Currently, there isn’t any documented way for an Autotest testsuite to |
| 3762 |
add custom code to be run either right before the main driver loop, or |
| 3763 |
at the point of each AT_SETUP. For instance, there’s no good place to |
| 3764 |
put environment variable sanitization that should apply to the entire |
| 3765 |
testsuite (but isn’t universally relevant), or shell function |
| 3766 |
definitions to be used by custom test macros. |
| 3767 |
|
| 3768 |
Autoconf’s test suite is poking shell functions directly into the |
| 3769 |
PREPARE_TESTS diversion, and doing environment variable sanitization |
| 3770 |
in each individual test. Both of these are obviously undesirable. |
| 3771 |
|
| 3772 |
This patch adds three new AT_* macros that can be used to do these |
| 3773 |
things in an officially-supported way: AT_PREPARE_TESTS adds code to |
| 3774 |
be run right before the main driver loop, AT_PREPARE_EACH_TEST adds |
| 3775 |
code to be run at the beginning of each test, and AT_TEST_HELPER_FN |
| 3776 |
defines a shell function that will be available to each test. In |
| 3777 |
Autoconf’s test suite, I use AT_PREPARE_TESTS to factor out |
| 3778 |
environment variable sanitization that *ought* to apply across the |
| 3779 |
board, and AT_TEST_HELPER_FN for the helper function used by |
| 3780 |
AT_CHECK_ENV. |
| 3781 |
|
| 3782 |
(This fixes the testsuite bug reported by Jannick at |
| 3783 |
https://lists.gnu.org/archive/html/autoconf/2020-10/msg00052.html : |
| 3784 |
CONFIG_SITE in the parent environment will no longer be visible to tests.) |
| 3785 |
|
| 3786 |
It would be nice to give an example of when AT_PREPARE_EACH_TEST is |
| 3787 |
useful, in the documentation, but I didn’t find one in the autoconf |
| 3788 |
test suite. |
| 3789 |
|
| 3790 |
* lib/autotest/general.m4 (AT_PREPARE_TESTS, AT_PREPARE_EACH_TEST) |
| 3791 |
(AT_TEST_HELPER_FN): New macros. |
| 3792 |
(AT_INIT, AT_TESTED): Emit the code to report tested programs only |
| 3793 |
if it’s needed, and make sure it’s after any code added by |
| 3794 |
AT_PREPARE_TESTS. |
| 3795 |
|
| 3796 |
* tests/local.at: Add AT_PREPARE_TESTS block that ensures |
| 3797 |
$MAKE is set sensibly and $MAKEFLAGS and $CONFIG_SITE are unset. |
| 3798 |
Use AT_TEST_HELPER_FN for the helper function needed by AT_CHECK_ENV. |
| 3799 |
(AT_CHECK_MAKE): No need to sanitize $MAKE or $MAKEFLAGS here. |
| 3800 |
* tests/base.at, tests/compile.at, tests/m4sh.at, tests/torture.at: |
| 3801 |
No need to unset or neutralize $CONFIG_SITE in individual tests. |
| 3802 |
* tests/autotest.at: Add tests for new macros. |
| 3803 |
|
| 3804 |
* doc/autoconf.texi, NEWS: Document new macros. |
| 3805 |
|
| 3806 |
2020-12-01 Bruno Haible <[email protected]> |
| 3807 |
|
| 3808 |
Document better where to put -m32 or -m64 compiler options. |
| 3809 |
* doc/autoconf.texi (Preset Output Variables): Clarify that options -m32 or -m64 |
| 3810 |
must go into CC, not CFLAGS and not CPPFLAGS either. This is needed because on |
| 3811 |
bi-arch platforms, config.guess runs $CC without $CFLAGS nor $CPPFLAGS. |
| 3812 |
|
| 3813 |
2020-12-01 Zack Weinberg <[email protected]> |
| 3814 |
|
| 3815 |
Add a note to NEWS about ac_cv_header_stdlib_h not being set... |
| 3816 |
... even though HAVE_STDLIB_H is. |
| 3817 |
|
| 3818 |
2020-11-30 Zack Weinberg <[email protected]> |
| 3819 |
|
| 3820 |
Make autoreconf --force --install overwrite existing files (#110371) |
| 3821 |
The new feature of autoreconf --install installing config.guess, |
| 3822 |
config.sub, and install-sh itself didn’t implement --force mode |
| 3823 |
correctly; existing files would not be overwritten. |
| 3824 |
|
| 3825 |
The fix has two parts. If --force is in effect, we try to install |
| 3826 |
everything that we can from the needed-auxfiles list *before* checking |
| 3827 |
which of them already exist. But also, we don’t overwrite existing |
| 3828 |
files unconditionally, even with --force; we only do so if the file we |
| 3829 |
can install has a newer “timestamp” line than the copy at the |
| 3830 |
destination. This is because Automake can also install all of the |
| 3831 |
files we can install. Suppose someone is using autoconf 2.70 with a |
| 3832 |
newly released automake 1.17; automake 1.17 will presumably ship with |
| 3833 |
a newer config.guess than autoconf 2.70 did; that version should win. |
| 3834 |
|
| 3835 |
Fixes bug #110371. |
| 3836 |
|
| 3837 |
* bin/autoreconf.in (extract_time_stamp, our_aux_file_is_newer): New functions. |
| 3838 |
(install_aux_file): If the destination exists, and our copy is not |
| 3839 |
newer, do not overwrite it. |
| 3840 |
(autoreconf_current_directory): When $force is true, attempt to |
| 3841 |
install all needed aux files *before* scanning for missing aux files. |
| 3842 |
(throughout): Remove extra \n from various error messages. |
| 3843 |
|
| 3844 |
* tests/torture.at (Missing auxiliary files (--force)): New test. |
| 3845 |
|
| 3846 |
2020-11-30 Zack Weinberg <[email protected]> |
| 3847 |
|
| 3848 |
Add more release notes about compatibility problems. |
| 3849 |
See https://savannah.gnu.org/support/?110382 and |
| 3850 |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97998 for background. |
| 3851 |
|
| 3852 |
2020-11-30 Zack Weinberg <[email protected]> |
| 3853 |
|
| 3854 |
AT_CHECK_MACRO: test C++ as well as C, cross as well as native |
| 3855 |
Many of the reported regressions in Autoconf 2.70 betas went unnoticed |
| 3856 |
for years because Autoconf’s bundled test suite didn’t test most of |
| 3857 |
the macros with a C++ compiler and/or in cross compilation mode. |
| 3858 |
There’s a special makefile target ‘maintainer-check-c++’ that runs all |
| 3859 |
the tests with CC=g++, but that doesn’t catch the regressions either, |
| 3860 |
because it doesn’t compare the configure results with what you’d have |
| 3861 |
gotten with a C compiler. Also, C and C++ have diverged to the point |
| 3862 |
where setting CC to a C++ compiler doesn’t work reliably anymore. |
| 3863 |
|
| 3864 |
This patch overhauls AT_CHECK_MACRO to test each macro four times: |
| 3865 |
(C compiler, C++ compiler) x (native mode, cross-compilation mode). |
| 3866 |
All four tests are expected to produce the same config.cache and |
| 3867 |
config.h, except for certain predictable differences due to running |
| 3868 |
AC_PROG_CXX instead of AC_PROG_CC, and a short list of known, |
| 3869 |
acceptable differences, maintained in mktests.pl. |
| 3870 |
|
| 3871 |
There are two classes of known, acceptable differences. Macros that |
| 3872 |
use AC_RUN_IFELSE aren’t tested in cross-compilation mode at all, |
| 3873 |
because they may crash the script (this is temporary and will be |
| 3874 |
revisited after 2.70). Macros that correctly detect a difference |
| 3875 |
between C and C++ (e.g. AC_HEADER_STDBOOL will notice that C++ doesn’t |
| 3876 |
have the _Bool type) are annotated with the specific cache variable |
| 3877 |
and #define that varies. |
| 3878 |
|
| 3879 |
mktests.pl now also has the capability to provide values for the |
| 3880 |
MACRO-USE, ADDITIONAL-COMMANDS, and AUTOCONF-FLAGS arguments to |
| 3881 |
AT_CHECK_(AU_)MACRO, on a per-macro basis, but that’s not used in this |
| 3882 |
patch. |
| 3883 |
|
| 3884 |
Some of the manual uses of AT_CHECK_MACRO do not need to test C++ |
| 3885 |
and/or cross compilation; for them, there is a new test helper, |
| 3886 |
AT_CHECK_CONFIGURE_AC. Another new helper, AT_PRESERVE_CONFIG_STATUS, |
| 3887 |
is used extensively in AT_CHECK_(AU_)MACRO but may be also useful in |
| 3888 |
manual tests that need to do multiple configure runs. |
| 3889 |
|
| 3890 |
This change supersedes AT_CHECK_MACRO_CROSS and |
| 3891 |
‘make maintainer-check-c++’, which are removed. |
| 3892 |
|
| 3893 |
In my testing, setting CC to a C++ compiler no longer works at all, |
| 3894 |
for reasons that are impractical to fix (e.g. C++ compilers choke on |
| 3895 |
the test for C2011 features) so I have added a note to NEWS saying |
| 3896 |
that this is not supported anymore. |
| 3897 |
|
| 3898 |
* tests/local.at (AT_CHECK_MACRO): Default behavior is now to test |
| 3899 |
the macro in both native and cross-compilation mode, and expect the |
| 3900 |
results to be identical. If the macro transitively required |
| 3901 |
AC_PROG_CC, and a C++ compiler is available, then test it twice |
| 3902 |
more with AC_LANG([C++]) in effect, and again expect the results to |
| 3903 |
be identical. New fifth argument TEST-PARAMETERS can modify this |
| 3904 |
behavior. |
| 3905 |
(_AT_FILTER_CXX_CV_VARIES, _AT_FILTER_CXX_DEFINE_VARIES): New, |
| 3906 |
subroutines of AT_CHECK_MACRO. |
| 3907 |
|
| 3908 |
(AT_CHECK_MACRO_CROSS): Remove, subsumed by new AT_CHECK_MACRO |
| 3909 |
behavior. |
| 3910 |
(AT_CHECK_AU_MACRO): Forward to AT_CHECK_MACRO for the basic test; |
| 3911 |
then do the same autoupdate test as before, as a separate test group. |
| 3912 |
|
| 3913 |
(at_check_env): Also ignore OPENMP_CXXFLAGS. |
| 3914 |
(AT_CONFIG_CMP): Add third argument EXTRA-VARIANCE that specifies |
| 3915 |
additional variables that are expected to vary in a particular test. |
| 3916 |
(_AT_CONFIG_CMP_PRUNE): New, subroutine of AT_CONFIG_CMP. |
| 3917 |
(AT_DEFINES_CMP): New helper macro that compares config.h headers, |
| 3918 |
with the ability to ignore variation in specific defines. |
| 3919 |
(_AT_DEFINES_CMP_PRUNE): New, subroutine of AT_DEFINES_CMP. |
| 3920 |
|
| 3921 |
(AT_PRESERVE_CONFIG_STATUS): New helper that makes copies of |
| 3922 |
config.h, config.log, config.status, and state-env.after under |
| 3923 |
names that won’t be clobbered by a subsequent run of configure. |
| 3924 |
|
| 3925 |
(AT_CHECK_CONFIGURE_AC): New helper that defines a complete test |
| 3926 |
group consisting of a single invocation of _AT_CHECK_AC_MACRO; |
| 3927 |
effectively what AT_CHECK_MACRO used to be. |
| 3928 |
(_AT_CHECK_AC_MACRO): Correct documentation comment; the PRE-TESTS |
| 3929 |
argument has always been optional. |
| 3930 |
|
| 3931 |
* tests/mktests.pl (test_parameters): New global data object giving |
| 3932 |
extra arguments to pass to AT_CHECK_MACRO/AT_CHECK_AU_MACRO on a |
| 3933 |
per-macro basis. |
| 3934 |
(emit_test): New function that handles emitting calls to |
| 3935 |
AT_CHECK_(AU_)MACRO with the desired arguments. |
| 3936 |
(scan_m4_files): Use emit_test. |
| 3937 |
|
| 3938 |
(au_exclude_list): Add AC_HAVE_LIBRARY, AC_COMPILE_CHECK, |
| 3939 |
AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK, and AC_TRY_RUN. |
| 3940 |
|
| 3941 |
* tests/semantics.at (AC_CHECK_LIB, AC_SEARCH_LIBS): Rewrite test |
| 3942 |
using symbols from zlib instead of libm, to get consistent behavior |
| 3943 |
from C and C++. |
| 3944 |
(AC_SEARCH_LIBS (none needed)): Revise to clarify what is being tested. |
| 3945 |
(AC_CHECK_DECLS): Use _AC_LANG_ABBREV when inspecting cache variables. |
| 3946 |
(AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct) |
| 3947 |
(AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct) |
| 3948 |
No need for AT_CHECK_MACRO_CROSS. |
| 3949 |
(AC_CHECK_FILES): Switch to AT_CHECK_CONFIGURE_AC. |
| 3950 |
(AC_SYS_RESTARTABLE_SYSCALLS, AC_FUNC_WAIT3): Do not test in cross |
| 3951 |
compilation mode. |
| 3952 |
(AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK, AC_TRY_RUN) |
| 3953 |
(AC_COMPILE_CHECK, AC_HAVE_LIBRARY): New manual AT_CHECK_AU_MACRO tests. |
| 3954 |
|
| 3955 |
* tests/c.at (Extensions, C keywords, AC_PROG_CPP requires AC_PROG_CC) |
| 3956 |
(AC_NO_EXECUTABLES (working linker), AC_NO_EXECUTABLES (broken linker)): |
| 3957 |
Switch to AT_CHECK_CONFIGURE_AC. Also convert case statements to AS_CASE. |
| 3958 |
(Broken/missing compilers): Pass CC=no-such-compiler on the command |
| 3959 |
line instead of hardwiring it in the configure script. |
| 3960 |
|
| 3961 |
* tests/local.mk (maintainer-check-c++): Remove target. |
| 3962 |
(maintainer-check): Run the ordinary ‘make check’ as well as |
| 3963 |
‘make maintainer-check-posix’. |
| 3964 |
|
| 3965 |
2020-11-30 Zack Weinberg <[email protected]> |
| 3966 |
|
| 3967 |
Rewrite mktests.sh in Perl. |
| 3968 |
This is probably marginally faster since it doesn’t have to read the |
| 3969 |
.m4 files twice or muck around with temporary files and subprocesses, |
| 3970 |
but the actual point of this rewrite is that it will make it easier to |
| 3971 |
provide additional arguments to AT_CHECK_MACRO and AT_CHECK_AU_MACRO |
| 3972 |
on a per-macro basis; this capability will be added and used in the |
| 3973 |
next patch. |
| 3974 |
|
| 3975 |
In *this* patch, the ac*.at files are not functionally changed at all. |
| 3976 |
(The comments come out slightly differently, though.) |
| 3977 |
|
| 3978 |
* tests/mktests.sh: Delete and... |
| 3979 |
* tests/mktests.pl: ...rewrite in Perl. |
| 3980 |
* tests/local.mk: Update to match. |
| 3981 |
|
| 3982 |
2020-11-30 Zack Weinberg <[email protected]> |
| 3983 |
|
| 3984 |
Overhaul Erlang support. |
| 3985 |
Erlang is similar to Java in that it doesn’t compile to standalone |
| 3986 |
machine code; the output of ‘erlc’ is byte-code files that are then |
| 3987 |
interpreted by ‘erl’. We handle this poorly in a whole bunch of ways, |
| 3988 |
particularly when cross-compiling. This patch fixes up the more |
| 3989 |
serious problems: |
| 3990 |
|
| 3991 |
- AC_COMPILE_IFELSE now actually works when AC_LANG([Erlang]) is in |
| 3992 |
effect. |
| 3993 |
- ‘conftest.beam’ is now deleted in several more places where it |
| 3994 |
could be created. |
| 3995 |
- The various AC_ERLANG_* macros that interrogate the runtime |
| 3996 |
environment do so by invoking ‘$ERL’ directly, rather than using |
| 3997 |
AC_RUN_IFELSE, and thus do not crash the configure script when |
| 3998 |
we think we’re cross-compiling. (It is not clear to me whether |
| 3999 |
they get the correct answer when cross-compiling, but this should |
| 4000 |
still be strictly an improvement.) |
| 4001 |
- The Erlang-related tests have been streamlined. |
| 4002 |
|
| 4003 |
Further improvements are definitely possible, but we’d have to teach |
| 4004 |
the infrastructure to make $ac_objext language-specific first, which |
| 4005 |
seems like too big of a change for 2.70. |
| 4006 |
|
| 4007 |
(This patch is all fallout from a logically unrelated testsuite change |
| 4008 |
which is coming up next. Gotta love the fundamental interconnectedness |
| 4009 |
of things.) |
| 4010 |
|
| 4011 |
* lib/autoconf/general.m4 (_AC_COMPILE_IFELSE_BODY) |
| 4012 |
(_AC_LINK_IFELSE_BODY): Delete conftest.beam as well as conftest.$ac_objext. |
| 4013 |
|
| 4014 |
* lib/autoconf/erlang.m4 (AC_ERLANG_PATH_ERLC, AC_ERLANG_PATH_ERL): |
| 4015 |
Don’t repeat work done by AC_PATH_TOOL. |
| 4016 |
(Erlang $ac_compile): Fake an .o file so AC_TRY_COMPILE will be happy. |
| 4017 |
(AC_LANG_COMPILER(Erlang)): AC_REQUIRE AC_ERLANG_NEED_ERLC, not |
| 4018 |
AC_ERLANG_PATH_ERLC. Also AC_REQUIRE AC_ERLANG_NEED_ERL so |
| 4019 |
AC_RUN_IFELSE works reliably. |
| 4020 |
(AC_ERLANG_CHECK_LIB, AC_ERLANG_SUBST_ROOT_DIR) |
| 4021 |
(AC_ERLANG_SUBST_LIB_DIR, AC_ERLANG_SUBST_ERTS_VER): |
| 4022 |
Use $ERL -eval, not AC_RUN_IFELSE. |
| 4023 |
No need to AC_REQUIRE AC_ERLANG_NEED_ERLC. |
| 4024 |
|
| 4025 |
* tests/erlang.at: Don’t test anything here that’s tested adequately |
| 4026 |
by acerlang.at; document which macros those are expected to be. |
| 4027 |
Remove unnecessary AC_ERLANG_PATH_ERL/ERLC invocations throughout. |
| 4028 |
(AT_CHECK_MACRO([Erlang])): Rename test to ‘Erlang basic compilation’; |
| 4029 |
expect both AC_COMPILE_IFELSE and AC_RUN_IFELSE to work; |
| 4030 |
handle cross compilation mode properly. |
| 4031 |
* tests/mktests.sh: Exclude from acerlang.at all macros completely |
| 4032 |
covered by erlang.at. |
| 4033 |
|
| 4034 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4035 |
|
| 4036 |
Make “redefining AS_ECHO internals” test more robust. |
| 4037 |
M4-redefining ‘printf’ as ‘echo’ brings back all the variations in |
| 4038 |
‘echo’ behavior that we were trying to get away from by switching to |
| 4039 |
‘printf’ in the first place. This caused a spurious failure on AIX. |
| 4040 |
|
| 4041 |
* tests/m4sh.at (Redefining AS_ECHO internals): Redefine ‘printf’ as |
| 4042 |
a shell function with fully predictable output, not as ‘echo’. |
| 4043 |
|
| 4044 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4045 |
|
| 4046 |
torture.at: Insulate more tests from buggy third-party m4 files. |
| 4047 |
All tests that run autoreconf need to defend against the possibility |
| 4048 |
of aclocal not existing and/or barfing on bugs in third-party m4 files |
| 4049 |
installed on the build system. Two of the “Missing auxiliary files” |
| 4050 |
tests were missing this defensive code. |
| 4051 |
|
| 4052 |
* tests/torture.at (Missing auxiliary files (install-sh)) |
| 4053 |
(Missing auxiliary files (foreign)): Prevent autoreconf from |
| 4054 |
running aclocal. |
| 4055 |
|
| 4056 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4057 |
|
| 4058 |
Avoid ‘new File::Temp’ in Perl scripts. |
| 4059 |
Despite what the documentation says, ‘new File::Temp’ does not work |
| 4060 |
reliably in perl 5.6.x. Rather than figure out exactly what is wrong |
| 4061 |
with it, let’s just stick to ‘tempfile’. |
| 4062 |
|
| 4063 |
* bin/autom4te.in (handle_output): Use tempfile function instead of |
| 4064 |
object-oriented File::Temp interface. |
| 4065 |
* bin/autoreconf.in (install_aux_file): Likewise. |
| 4066 |
|
| 4067 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4068 |
|
| 4069 |
Disentangle HAVE__BOOL from ac_cv_header_stdbool_h. |
| 4070 |
AC_CHECK_HEADER_STDBOOL is documented to make two checks: whether the |
| 4071 |
C99 header <stdbool.h> is available and fulfills its |
| 4072 |
specification (i.e. including it makes the type ‘bool’ and the |
| 4073 |
constants ‘true’ and ‘false’ available), and, independently, whether |
| 4074 |
the type ‘_Bool’ is available. |
| 4075 |
|
| 4076 |
In C++, the type ‘_Bool’ is usually _not_ available, but <stdbool.h> |
| 4077 |
is still supposed to be include-able and the type ‘bool’ and the |
| 4078 |
constants ‘true’ and ‘false’ are still supposed to be available |
| 4079 |
(unconditionally). However, the test for <stdbool.h> fulfilling its |
| 4080 |
specification freely used _Bool, and would therefore fail spuriously. |
| 4081 |
Correct this by checking for _Bool first, and then refactoring the |
| 4082 |
test program for <stdbool.h> so that it does all its tests using bool, |
| 4083 |
then repeats them with _Bool only when available. |
| 4084 |
|
| 4085 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADER_STDBOOL): Do the test for |
| 4086 |
_Bool before the test for stdbool.h. Test semantics of bool |
| 4087 |
unconditionally; test _Bool only when HAVE__BOOL is defined. |
| 4088 |
|
| 4089 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4090 |
|
| 4091 |
AC_FUNC_SETPGRP: Don’t depend on the return type of setpgrp. |
| 4092 |
AC_FUNC_SETPGRP determines whether you have the historic BSD setpgrp, |
| 4093 |
which takes two arguments and returns int, or the historic POSIX |
| 4094 |
setpgrp, which takes no arguments and returns int. Solaris has yet a |
| 4095 |
third variant, which takes no arguments and returns a pid_t (the new |
| 4096 |
process group ID). This difference causes AC_FUNC_SETPGRP’s test |
| 4097 |
program to fail to compile under AC_LANG([C++]), which in turn causes |
| 4098 |
the macro to report that setpgrp does take arguments, which is wrong. |
| 4099 |
|
| 4100 |
It is not worth adding a new result #define for this variant, |
| 4101 |
since *all* forms of setpgrp are deprecated in favor of setpgid, which |
| 4102 |
is old enough that it can be used unconditionally. However, it is |
| 4103 |
worth documenting that this variant exists, and fixing AC_FUNC_SETPGRP |
| 4104 |
to produce the right value for its existing result #define on Solaris |
| 4105 |
with C++. |
| 4106 |
|
| 4107 |
* lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): Redesign test program to |
| 4108 |
not depend on the return type of setpgrp. |
| 4109 |
* doc/autoconf.texi (AC_FUNC_SETPGRP): Mention that the macro does not |
| 4110 |
check for the Solaris variant of setpgrp that returns pid_t. Change |
| 4111 |
programming advice to recommend use of setpgid. |
| 4112 |
|
| 4113 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4114 |
|
| 4115 |
AC_C_CHAR_UNSIGNED: Remove check of $GCC. |
| 4116 |
On systems where plain ‘char’ is unsigned (e.g. AIX) we would define |
| 4117 |
__CHAR_UNSIGNED__ only when $GCC was not true at configure time. |
| 4118 |
If AC_LANG([C++]) has been in effect since the beginning of the |
| 4119 |
script (so AC_PROG_CC was never invoked), $GCC will be false |
| 4120 |
regardless; this causes an inconsistency between the C and C++ |
| 4121 |
behaviors, even when both compilers are GNU. |
| 4122 |
|
| 4123 |
The point of checking $GCC here is that GCC has command line options |
| 4124 |
to override the signedness of plain ‘char’, and it predefines |
| 4125 |
__CHAR_UNSIGNED__ to indicate what the signedness actually is. |
| 4126 |
We don’t want config.h to override that. However, there is already |
| 4127 |
a special autoheader template for __CHAR_UNSIGNED__ that prevents it |
| 4128 |
being redefined if it’s defined already, so checking $GCC at |
| 4129 |
configure time is redundant and can safely be removed. |
| 4130 |
|
| 4131 |
* lib/autoconf/c.m4 (AC_C_CHAR_UNSIGNED): Do not make result depend on |
| 4132 |
value of $GCC. Adjust commentary. |
| 4133 |
|
| 4134 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4135 |
|
| 4136 |
sc_error_message_uppercase: allow fully uppercased words |
| 4137 |
If an error message starts with an entire fully uppercased word, |
| 4138 |
that’s probably a proper noun and it should stay that way. For |
| 4139 |
instance, autoreconf has an error message that starts with |
| 4140 |
"AM_GNU_GETTEXT is used, but ..."; AM_GNU_GETTEXT is the name of an |
| 4141 |
Automake macro, it needs to stay uppercased. |
| 4142 |
|
| 4143 |
This subsumes the existing exception for the words FATAL and WARNING. |
| 4144 |
While I was in there I generalized the exception for PRIuMAX to cover |
| 4145 |
all of the inttypes.h PRI* and SCN* macros. |
| 4146 |
|
| 4147 |
This patch has been submitted to Gnulib; until it is merged there, |
| 4148 |
anyone running ‘make fetch’ should take care not to drop this change. |
| 4149 |
|
| 4150 |
* maint.mk (sc_error_message_uppercase): Allow error messages that |
| 4151 |
begin with any fully uppercased word, or with any of the inttypes.h |
| 4152 |
PRI[dioux]\w+ or SCN[dioux]\w+ macros. |
| 4153 |
|
| 4154 |
2020-11-30 Zack Weinberg <[email protected]> |
| 4155 |
|
| 4156 |
make fetch and update savannah gitweb urls to cgit. |
| 4157 |
Several of the files updated by make fetch have made this change, so |
| 4158 |
we follow suit for consistency: |
| 4159 |
|
| 4160 |
* README-hacking |
| 4161 |
* build-aux/fetch.pl |
| 4162 |
* doc/autoconf.texi: Replace all git.savannah.gnu.org/gitweb URLs with |
| 4163 |
equivalent /cgit URLs. |
| 4164 |
|
| 4165 |
2020-11-16 Zack Weinberg <[email protected]> |
| 4166 |
|
| 4167 |
AC_INIT: better handling of unusual arguments (#110349) |
| 4168 |
Fix some subtle quotation bugs in _AC_INIT_PACKAGE that made it |
| 4169 |
impossible to put ‘,’ or an unbalanced close parenthesis in some of |
| 4170 |
the arguments to AC_INIT. Document that arguments to AC_INIT |
| 4171 |
containing parentheses, square brackets, ‘,’ or ‘#’ may need to be |
| 4172 |
double-quoted. Provide more detailed examples and exposition re |
| 4173 |
computing the arguments to AC_INIT when autoconf is run (e.g. with |
| 4174 |
git-version-gen). Add a whole bunch more tests for unusual arguments |
| 4175 |
to AC_INIT, and a test that the backward-compatibility behavior of |
| 4176 |
AC_INIT with only one argument is still correct. |
| 4177 |
|
| 4178 |
This may still break some of the existing configure scripts described |
| 4179 |
in the threads at |
| 4180 |
https://lists.gnu.org/r/autoconf/2020-10/msg00013.html and |
| 4181 |
https://lists.gnu.org/r/bug-autoconf/2020-10/msg00012.html |
| 4182 |
but, I hope, only in ways covered by the existing warning in NEWS |
| 4183 |
about pickier M4 quotation. |
| 4184 |
|
| 4185 |
* lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Redo argument |
| 4186 |
normalization and default value selection in a simpler, less |
| 4187 |
error-prone fashion. |
| 4188 |
(_AC_INIT_PACKAGE_N): New helper subroutine. |
| 4189 |
(AC_INIT): Always call _AC_INIT_PACKAGE, but supply no arguments if |
| 4190 |
we were called with only one argument. |
| 4191 |
|
| 4192 |
* tests/base.at (AC_INIT (obsolete invocation)): New test. |
| 4193 |
(AC_INIT with unusual version strings): Expand test. |
| 4194 |
|
| 4195 |
* doc/autoconf.texi (AC_INIT): Revise. |
| 4196 |
|
| 4197 |
2020-11-16 Zack Weinberg <[email protected]> |
| 4198 |
|
| 4199 |
AS_ECHO(_N): Do not expand macros named ‘s’ or ‘n’ (#110377) |
| 4200 |
AS_ECHO expands to ‘printf "%s\n" $1’. If a configure script defines |
| 4201 |
an M4 macro named ‘s’ or ‘n’ it will be expanded in the first argument |
| 4202 |
to printf, which is almost certainly not what was intended. |
| 4203 |
The configure script for ruby 2.7.2 uses ‘AS_VAR_PUSHDEF([s], ...)’ |
| 4204 |
and breaks with 2.69d because of this. |
| 4205 |
|
| 4206 |
Add some extra quoting so that the ‘%s\n’ is treated as literal; |
| 4207 |
similarly for AS_ECHO_N and the legacy shell variables $as_echo |
| 4208 |
and $as_echo_n. |
| 4209 |
|
| 4210 |
For now, anyway, don’t quote the word ‘printf’; if someone does |
| 4211 |
define that as a M4 macro they might well mean to affect AS_ECHO. |
| 4212 |
(Whether this is something we *want* to allow, we can worry about |
| 4213 |
when it comes up.) |
| 4214 |
|
| 4215 |
Fixes bug #110377. |
| 4216 |
|
| 4217 |
* lib/m4sugar/m4sh.m4 (_AS_ECHO_N_PREPARE, AS_ECHO, AS_ECHO_N): |
| 4218 |
Add another layer of quoting around the first argument to printf. |
| 4219 |
* tests/m4sh.at (Redefining AS_ECHO internals): New test. |
| 4220 |
|
| 4221 |
2020-11-15 Zack Weinberg <[email protected]> |
| 4222 |
|
| 4223 |
Don’t issue obsoletion warnings for AC_LANG_SAVE/RESTORE (#110375) |
| 4224 |
The most recently released version of libtool.m4 is five years old as |
| 4225 |
of this commit, and no new release is likely to appear anytime soon. |
| 4226 |
It uses AC_LANG_SAVE and AC_LANG_RESTORE, in a way that doesn’t |
| 4227 |
obviously translate to AC_LANG_PUSH and AC_LANG_POP. This will need |
| 4228 |
to be fixed by libtool upstream. Until that actually happens, disable |
| 4229 |
the -Wobsolete warnings for AC_LANG_SAVE and AC_LANG_RESTORE. (They |
| 4230 |
are still documented as obsolete in the manual, as they have been for |
| 4231 |
many years.) |
| 4232 |
|
| 4233 |
Fixes bug #110375. |
| 4234 |
|
| 4235 |
* lib/autoconf/lang.m4 (AC_LANG_SAVE, AC_LANG_RESTORE): Define with |
| 4236 |
AC_DEFUN, not AU_DEFUN; remove manual -Wobsolete warnings. |
| 4237 |
|
| 4238 |
2020-11-15 Zack Weinberg <[email protected]> |
| 4239 |
|
| 4240 |
AS_IF: Handle else clause being empty after macro expansion (#110369) |
| 4241 |
AS_IF can emit a syntactically invalid shell if-then-else, |
| 4242 |
|
| 4243 |
if CONDITION |
| 4244 |
then : |
| 4245 |
# ... |
| 4246 |
else |
| 4247 |
fi |
| 4248 |
|
| 4249 |
when its IF-FALSE argument consists of macros that don’t produce any |
| 4250 |
shell code. This was a documented limitation in AS_IF, but it’s a bad |
| 4251 |
limitation to have, because macros that *used* to expand to shell |
| 4252 |
commands might start expanding to nothing in future releases. For |
| 4253 |
instance, this broke the libzmq configure script, which did |
| 4254 |
|
| 4255 |
AC_PROG_CC |
| 4256 |
AX_CHECK_COMPILE_FLAG([-std=gnu11], |
| 4257 |
[CFLAGS+=" -std=gnu11"], |
| 4258 |
[AC_PROG_CC_C99]) |
| 4259 |
|
| 4260 |
Perfectly valid in 2.69, but in 2.70 AC_PROG_CC_C99 doesn’t produce |
| 4261 |
any shell code and the script crashes. |
| 4262 |
|
| 4263 |
We had that limitation for good reason: we can’t just put ‘:’ at the |
| 4264 |
beginning of the else-clause, like we do for the then-clause, because |
| 4265 |
that would clobber $? and the IF-FALSE commands might want to inspect |
| 4266 |
it. (This doesn’t matter for the then-clause, because $? is always |
| 4267 |
zero at the beginning of a then-clause anyway.) The simplest and |
| 4268 |
least inefficient shell construct I can find that works in this |
| 4269 |
context is a shell function that does ‘return $?’. Due to awkward |
| 4270 |
M4sh initialization ordering constraints (AS_IF gets used before we |
| 4271 |
can safely use shell functions) an indirection through a shell |
| 4272 |
variable is necessary. The structure of a m4sh script is now |
| 4273 |
|
| 4274 |
#! /bin/sh |
| 4275 |
## M4sh Initialization |
| 4276 |
as_nop=: |
| 4277 |
|
| 4278 |
... |
| 4279 |
## M4sh Shell Functions |
| 4280 |
|
| 4281 |
as_fn_nop () { return $?; } |
| 4282 |
as_nop=as_fn_nop |
| 4283 |
... |
| 4284 |
|
| 4285 |
and AS_IF emits |
| 4286 |
|
| 4287 |
if CONDITION |
| 4288 |
then : |
| 4289 |
# ... |
| 4290 |
else $as_nop |
| 4291 |
# ... |
| 4292 |
fi |
| 4293 |
|
| 4294 |
The uses of AS_IF that appear before the beginning of the M4sh Shell |
| 4295 |
Functions section are all under our control and they don’t need to |
| 4296 |
look at $?. |
| 4297 |
|
| 4298 |
If anyone has a better idea for how to make this work I will be glad |
| 4299 |
to hear it. |
| 4300 |
|
| 4301 |
Fixes bug #110369. |
| 4302 |
|
| 4303 |
* lib/m4sugar/m4sh.m4 |
| 4304 |
(_AS_IF_ELSE): When $1 is nonempty, invoke _AS_EMPTY_ELSE_PREPARE. |
| 4305 |
Emit $as_nop at beginning of else clause. |
| 4306 |
(_AS_BOURNE_COMPATIBLE): Initialize as_nop to ‘:’. |
| 4307 |
(_AS_EMPTY_ELSE_PREPARE): New macro which emits a definition of |
| 4308 |
as_fn_nop and resets as_nop to as_fn_nop. |
| 4309 |
(AS_PREPARE, _AS_PREPARE): Invoke _AS_EMPTY_ELSE_PREPARE. |
| 4310 |
(_AS_UNSET_PREPARE): Tweak white space. |
| 4311 |
|
| 4312 |
* tests/m4sh.at (AS_IF and AS_CASE): Test AS_IF’s IF-FALSE argument |
| 4313 |
being empty after macro expansion. |
| 4314 |
|
| 4315 |
* doc/autoconf.texi (AS_IF): Remove warning about use with |
| 4316 |
‘run-if-false’ argument empty after macro expansion. |
| 4317 |
|
| 4318 |
2020-11-11 Ross Burton <[email protected]> |
| 4319 |
|
| 4320 |
Support CONFIG_SITE being a list of entries. |
| 4321 |
Instead of treating CONFIG_SITE as a single path, treat it as a |
| 4322 |
space-separated list of paths and load them in order. |
| 4323 |
|
| 4324 |
Also remove the special-casing of entries starting with a dash, this is |
| 4325 |
redundant as they'll be caught by the wildcard case. |
| 4326 |
|
| 4327 |
Finally add a test case to verify that multiple files are loaded |
| 4328 |
correctly. |
| 4329 |
|
| 4330 |
* lib/autoconf/general.m4 (AC_SITE_LOAD): Treat CONFIG_SITE as a |
| 4331 |
space-separated list of scripts to be sourced. Simplify handling |
| 4332 |
of default config.site locations using this capability. |
| 4333 |
* tests/base.at (AC_CACHE_CHECK): Test loading of multiple site files. |
| 4334 |
* doc/autoconf.texi (Site Defaults): Update documentation of CONFIG_SITE. |
| 4335 |
|
| 4336 |
2020-11-11 Zack Weinberg <[email protected]> |
| 4337 |
|
| 4338 |
tests/compile.at (AC_RUN_IFELSE): typo fix |
| 4339 |
|
| 4340 |
2020-11-10 Ben Pfaff <[email protected]> |
| 4341 |
|
| 4342 |
autom4te: replace output file atomically (#110305) |
| 4343 |
In 2003, Joey Hess reported the following bug against Debian's |
| 4344 |
autoconf package (see http://bugs.debian.org/221483): |
| 4345 |
|
| 4346 |
I noticed that if I ctrl-c autoconf, it can leave a partially |
| 4347 |
written, executable configure script. I was lucky enough to |
| 4348 |
get a configure script that exited with a shell parse error, |
| 4349 |
but if I had been unlucky, it might have exited 0 without |
| 4350 |
doing all the tests I expected it to do. That would have |
| 4351 |
sucked to ship to users. |
| 4352 |
|
| 4353 |
There are many ways to update a file in a way that is not |
| 4354 |
prone to these problems, and I suggest that autoconf adopt |
| 4355 |
one of them. |
| 4356 |
|
| 4357 |
Ben Pfaff wrote a patch to make autom4te replace the output file |
| 4358 |
atomically; Debian has carried it since 2006. He submitted it |
| 4359 |
to autoconf upstream in 2008 but it never went anywhere. |
| 4360 |
|
| 4361 |
I (Zack) have dusted off the patch and made some minor improvements: |
| 4362 |
using File::Temp (with DIR set to the directory of the output file) |
| 4363 |
instead of a predictable temporary file name, and using |
| 4364 |
Autom4te::FileUtils::update_file instead of File::Copy::move. |
| 4365 |
|
| 4366 |
I do not attempt to test the fix (the test would be inherently racey) |
| 4367 |
nor do I have autom4te delete the temp file if it crashes while the |
| 4368 |
file is being written (there is no way to do this with 100% |
| 4369 |
reliability and it strikes me as likely to cause more problems than it |
| 4370 |
solves). |
| 4371 |
|
| 4372 |
Fixes our bug #110305. |
| 4373 |
|
| 4374 |
* bin/autom4te.in (handle_output): When $output is to a regular or |
| 4375 |
nonexistent file, write to a temporary file in the same directory |
| 4376 |
and then rename it over $output after completion. |
| 4377 |
|
| 4378 |
2020-11-09 Zack Weinberg <[email protected]> |
| 4379 |
|
| 4380 |
make fetch |
| 4381 |
|
| 4382 |
2020-11-09 Zack Weinberg <[email protected]> |
| 4383 |
|
| 4384 |
m4sh: Require shell to support $(...) command substitution. |
| 4385 |
As of the 2020-11-07 update, config.sub and config.guess |
| 4386 |
unconditionally use $(...) command substitution; see |
| 4387 |
<https://lists.gnu.org/archive/html/config-patches/2020-11/msg00011.html>. |
| 4388 |
|
| 4389 |
Therefore, add this to the set of required shell features, searched |
| 4390 |
for by _AS_DETECT_BETTER_SHELL. On a system where /bin/sh doesn’t |
| 4391 |
support $(...), $CONFIG_SHELL will be set to one that does (and the |
| 4392 |
primary configure script will be re-executed using that shell). |
| 4393 |
AC_CANONICAL_* use $CONFIG_SHELL to execute config.guess/sub, so they |
| 4394 |
will keep working. This also means that configure scripts and |
| 4395 |
third-party macros that use $(...) will quietly start working |
| 4396 |
correctly on such ancient systems. |
| 4397 |
|
| 4398 |
The test code is simple, but sufficient to weed out Solaris 10’s |
| 4399 |
/bin/sh, which doesn’t support $(...) but *does* support shell |
| 4400 |
functions. |
| 4401 |
|
| 4402 |
I’m not going to touch any of the existing uses of `...` command |
| 4403 |
substitution in Autoconf proper for now, but it might make sense to |
| 4404 |
bulk upgrade them early in the 2.71 release cycle; if nothing else, |
| 4405 |
it would remove a major obstacle to running shellcheck over our |
| 4406 |
scripts. |
| 4407 |
|
| 4408 |
* lib/m4sugar/m4sh.m4 (_AS_MODERN_CMDSUBST_WORKS): New macro. |
| 4409 |
(AS_INIT, AS_SHELL_SANITIZE): Call _AS_DETECT_REQUIRED for |
| 4410 |
_AS_MODERN_CMDSUBST_WORKS. |
| 4411 |
* NEWS: Mention the requirement for $(...). |
| 4412 |
|
| 4413 |
2020-11-09 Zack Weinberg <[email protected]> |
| 4414 |
|
| 4415 |
Check in install-sh as synced from automake (#110368) |
| 4416 |
As pointed out in sr #110368, since install-sh is now being installed |
| 4417 |
as part of autoconf, we should make sure to ship the latest version |
| 4418 |
rather than the version shipped by the automake that was used to |
| 4419 |
bootstrap the autoconf release tarball. |
| 4420 |
|
| 4421 |
The build-aux/fetch.pl script is already supposed to fetch the latest |
| 4422 |
version, but install-sh is listed in .gitignore so any updates are |
| 4423 |
discarded when starting from a clean tree. Correct this. |
| 4424 |
|
| 4425 |
At the same time, since mdate-sh is *not* installed by autoconf nor is |
| 4426 |
it directly referenced in any code maintained in the autoconf |
| 4427 |
repository, remove it from the list of files to fetch and keep it in |
| 4428 |
.gitignore. |
| 4429 |
|
| 4430 |
This change exposed a bug in fetch.pl where it would crash when |
| 4431 |
there was no old copy of a file being updated. |
| 4432 |
|
| 4433 |
* .gitignore: Remove /build-aux/install-sh. |
| 4434 |
* build-aux/fetch.pl (%to_fetch): Remove build-aux/mdate-sh. |
| 4435 |
(slurp): Don’t die on ENOENT, return undef. |
| 4436 |
(replace_if_change): Handle $oldcontents being undef. |
| 4437 |
* build-aux/install-sh: Is now checked in. |
| 4438 |
|
| 4439 |
2020-11-09 Zack Weinberg <[email protected]> |
| 4440 |
|
| 4441 |
Mention AM_GNU_GETTEXT_REQUIRE_VERSION support in NEWS. |
| 4442 |
|
| 4443 |
2020-11-09 Michał Górny <[email protected]> |
| 4444 |
|
| 4445 |
autoreconf: Support AM_GNU_GETTEXT_REQUIRE_VERSION |
| 4446 |
As reported in https://github.com/gentoo/gentoo/pull/163, gettext 0.19.6 |
| 4447 |
supports using AM_GNU_GETTEXT_REQUIRE_VERSION (specifying a *minimum* |
| 4448 |
required version of gettext) instead of AM_GNU_GETTEXT_VERSION |
| 4449 |
(which specifies a *fixed* required version of gettext). |
| 4450 |
Update autoreconf to support both. |
| 4451 |
|
| 4452 |
* bin/autoreconf.in (autoreconf_current_directory): Check for |
| 4453 |
AM_GNU_GETTEXT_REQUIRE_VERSION as well as AM_GNU_GETTEXT_VERSION. |
| 4454 |
Update diagnostics about using AM_GNU_GETTEXT_VERSION but not |
| 4455 |
AM_GNU_GETTEXT, or vice versa, to match. |
| 4456 |
* doc/autoconf.texi (autoreconf Invocation): Update to match. |
| 4457 |
|
| 4458 |
2020-11-09 Zack Weinberg <[email protected]> |
| 4459 |
|
| 4460 |
Fix more bugs in specific tests under AC_LANG(C++). |
| 4461 |
Found by exhaustive testing for differences between probe results |
| 4462 |
under AC_LANG(C) and AC_LANG(C++). |
| 4463 |
|
| 4464 |
* lib/autoconf/c.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Cast result of |
| 4465 |
malloc for C++ compatibility. |
| 4466 |
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Declare yywrap |
| 4467 |
as extern "C" when compiling as C++. |
| 4468 |
|
| 4469 |
2020-11-05 Zack Weinberg <[email protected]> |
| 4470 |
|
| 4471 |
Make ‘forbidden tokens, basic’ test more robust. |
| 4472 |
While testing the previous patch I noticed that the ‘forbidden tokens, |
| 4473 |
basic’ test can fail if it runs too fast, because the autom4te cache |
| 4474 |
files aren’t considered newer than configure.ac. |
| 4475 |
|
| 4476 |
* tests/tools.at (forbidden tokens, basic): Add delays to ensure |
| 4477 |
autom4te.cache files are newer than configure.ac. |
| 4478 |
|
| 4479 |
2020-11-05 Zack Weinberg <[email protected]> |
| 4480 |
|
| 4481 |
Do not apply --program-transform-name to build-aux scripts. |
| 4482 |
autoreconf expects to find $(pkgdatadir)/build-aux/config.sub etc |
| 4483 |
under those names, not names modified by --program-transform-name. |
| 4484 |
Placing them in $(pkgdatadir) is sufficient to keep parallel |
| 4485 |
installations of autoconf separate: anyone doing that would need |
| 4486 |
to adjust @PACKAGE@ anyway. |
| 4487 |
|
| 4488 |
* lib/local.mk: Use a _DATA rule, not a _SCRIPTS rule, to install |
| 4489 |
config.guess, config.sub, and install-sh. |
| 4490 |
(install-data-hook-make-aux-scripts-executable): New hook rule. |
| 4491 |
|
| 4492 |
2020-11-05 Zack Weinberg <[email protected]> |
| 4493 |
|
| 4494 |
AC_FUNC_STRERROR_R: Include string.h in test program. |
| 4495 |
I misremembered how AC_LANG_PROGRAM works. We don’t need to invoke |
| 4496 |
AC_INCLUDES_DEFAULT here but we *do* need to explicitly include |
| 4497 |
string.h. |
| 4498 |
|
| 4499 |
Unfortunately we have no good way of testing for this regression with |
| 4500 |
the testsuite as it is today. |
| 4501 |
|
| 4502 |
* lib/autoconf/functions.m4 (AC_FUNC_STRERROR_R): Include string.h in |
| 4503 |
test program. |
| 4504 |
|
| 4505 |
2020-11-05 Zack Weinberg <[email protected]> |
| 4506 |
|
| 4507 |
Define AC_REQUIRE_AUX_FILE with AC_DEFUN. |
| 4508 |
Some widely used Automake recipes involve putting AC_REQUIRE_AUX_FILE |
| 4509 |
at top level of a configure script, and it uses AC_REQUIRE now, so it |
| 4510 |
needs to be defined with AC_DEFUN. |
| 4511 |
|
| 4512 |
* lib/autoconf/general.m4 (AC_REQUIRE_AUX_FILE): Define with AC_DEFUN. |
| 4513 |
* tests/torture.at (Missing auxiliary files (foreign)): New test. |
| 4514 |
|
| 4515 |
2020-11-03 Zack Weinberg <[email protected]> |
| 4516 |
|
| 4517 |
make fetch |
| 4518 |
|
| 4519 |
fix ‘make syntax-check’ complaints (only affects comments). |
| 4520 |
|
| 4521 |
2020-11-03 Jannick <[email protected]> |
| 4522 |
|
| 4523 |
_AC_PROG_YYTEXT_DECL: Forward declare yywrap (#110312) |
| 4524 |
Some versions of lex need you to forward-declare yywrap in a %{ %} |
| 4525 |
block before the rules section, if you’re going to define it yourself. |
| 4526 |
|
| 4527 |
May help with bug #110312. |
| 4528 |
|
| 4529 |
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): In the test |
| 4530 |
input to lex, forward-declare yywrap before the rules. |
| 4531 |
|
| 4532 |
2020-11-02 Zack Weinberg <[email protected]> |
| 4533 |
|
| 4534 |
autoreconf.in: improve compatibility with old perl |
| 4535 |
In very old perls (I noticed this with 5.8.4), File::Temp objects are |
| 4536 |
not automatically stringified in all contexts where we expect them to |
| 4537 |
be, causing autoreconf to crash. |
| 4538 |
|
| 4539 |
* bin/autoreconf.in (install_aux_file): Explicitly extract the |
| 4540 |
temporary file’s name from $temp, and use that in all the places we |
| 4541 |
were using $temp. |
| 4542 |
|
| 4543 |
2020-11-02 Zack Weinberg <[email protected]> |
| 4544 |
|
| 4545 |
Revert to 2.69-compatible behavior in AC_PROG_LEX (#110346) |
| 4546 |
Commit 29ede6b96feee29c0c477d1659081bbdb82cd8b3 caused AC_PROG_LEX to |
| 4547 |
stop looking for a library that provides yywrap. This broke several |
| 4548 |
packages in a Debian archive rebuild. |
| 4549 |
|
| 4550 |
Revert all the way to the 2.69 behavior, which was to set LEXLIB to |
| 4551 |
-ll or -lfl if that library defines yywrap, but allow AC_PROG_LEX to |
| 4552 |
succeed if neither -ll nor -lfl exists on the system, even if a lex |
| 4553 |
program that doesn't define yywrap would need it. |
| 4554 |
(This behavior was a bug, but people have come to depend on it. |
| 4555 |
See https://savannah.gnu.org/support/index.php?110269 and the |
| 4556 |
thread starting from |
| 4557 |
https://lists.gnu.org/r/autoconf-patches/2020-07/msg00013.html |
| 4558 |
for gory details.) |
| 4559 |
|
| 4560 |
To provide a path away from bug-compatibility, AC_PROG_LEX now takes |
| 4561 |
one argument, documented as a whitespace-separated list of options. |
| 4562 |
Two options are defined: ‘yywrap’ means to look for yywrap and behave |
| 4563 |
as if lex is unavailable if it isn’t found; ‘noyywrap’ means to not |
| 4564 |
look for yywrap at all. These are mutually exclusive. |
| 4565 |
|
| 4566 |
Fixes bug #110346. |
| 4567 |
|
| 4568 |
* lib/autoconf/programs.m4 (AC_PROG_LEX): Add an argument which |
| 4569 |
can be either ‘yywrap’, meaning to look for yywrap in -ll, or |
| 4570 |
‘noyywrap’, meaning to not look for yywrap at all. In the |
| 4571 |
absence of either option, issue an obsoletion warning and |
| 4572 |
revert to behavior bug-compatible with 2.69. |
| 4573 |
|
| 4574 |
* tests/semantics.at: Add more tests of AC_PROG_LEX. |
| 4575 |
* tests/mktests.sh: Exclude AC_PROG_LEX from autogenerated tests. |
| 4576 |
|
| 4577 |
* doc/autoconf.texi: Update documentation of AC_PROG_LEX. |
| 4578 |
* NEWS: Update notes on AC_PROG_LEX. |
| 4579 |
|
| 4580 |
2020-11-02 Zack Weinberg <[email protected]> |
| 4581 |
|
| 4582 |
AC_OPENMP: Avoid clobbering ‘mp’ and/or ‘penmp’ (#110353) |
| 4583 |
Some of the compiler options that AC_OPENMP tests, mean “enable |
| 4584 |
OpenMP” to one compiler, but “write output to a file named ‘mp’ or |
| 4585 |
‘penmp’” to other compilers. The author of AC_OPENMP believed that |
| 4586 |
this could only happen if compilation was *successful*, but didn’t |
| 4587 |
realize that one of the options means “write *preprocessed* output to |
| 4588 |
a file named ‘penmp’” to SunPRO C, and that this *would* succeed on |
| 4589 |
the test program. (AC_LINK_IFELSE fails anyway, because the |
| 4590 |
compilation didn’t create conftest$exeext.) |
| 4591 |
|
| 4592 |
The option that actually means “enable OpenMP” to SunPRO C is earlier |
| 4593 |
in the list than the option that means “write preprocessed output to a |
| 4594 |
file named ‘penmp’”, so we might never have noticed this, but for a |
| 4595 |
second bug: if you have a bad combination of Solaris operating system |
| 4596 |
patches installed, it’s possible for this compiler to |
| 4597 |
successfully *compile* a program that uses OpenMP, but then fail |
| 4598 |
to *link* it because the OpenMP runtime library is out of sync with |
| 4599 |
the core C library. AC_OPENMP doesn’t distinguish this case from |
| 4600 |
“that option doesn’t mean ‘enable OpenMP’” so it goes on to other |
| 4601 |
entries in the list and hits the “write preprocessed output” one. |
| 4602 |
|
| 4603 |
Implement four layers of defensive measures against this mess: |
| 4604 |
|
| 4605 |
- Use an #error directive instead of a compile-time syntax error |
| 4606 |
to halt compilation when _OPENMP is not defined. |
| 4607 |
- For each option that might mean “enable OpenMP”, first do an |
| 4608 |
AC_COMPILE_IFELSE to find out whether it really means that, and |
| 4609 |
then an AC_LINK_IFELSE to find out whether it works. If the |
| 4610 |
compilation succeeds but the link fails, bail out of the loop and |
| 4611 |
declare OpenMP to be unsupported. |
| 4612 |
- If a file named ‘mp’ or ‘openmp’ exists in configure’s working |
| 4613 |
directory when AC_OPENMP begins, error out. This means it is safe |
| 4614 |
to delete any file named ‘mp’ or ‘openmp’ that exists at the *end* |
| 4615 |
of AC_OPENMP. |
| 4616 |
- If a file named ‘mp’ or ‘openmp’ exists in the top level of the |
| 4617 |
source tree with a configure.ac that uses AC_OPENMP, have autoconf |
| 4618 |
error out, too. |
| 4619 |
|
| 4620 |
Fixes bug #110353. Problem reported by Dagobert Michelsen. |
| 4621 |
|
| 4622 |
* lib/autoconf/c.m4 (_AC_LANG_OPENMP(C)): Change ‘choke me’ to |
| 4623 |
‘#error "OpenMP not supported"’. |
| 4624 |
(AC_OPENMP): AC_REQUIRE _AC_OPENMP_SAFE_WD. For each option, do |
| 4625 |
both a compile test and a link test; if the compile test succeeds |
| 4626 |
but the link fails, don’t go on to other candidate options. |
| 4627 |
Delete files named ‘mp’ and ‘penmp’ after the loop. |
| 4628 |
(_AC_OPENMP_SAFE_WD): New macro, subroutine of AC_OPENMP. If files |
| 4629 |
named ‘mp’ or ‘penmp’ exist, error out both at autoconf time and at |
| 4630 |
configure time. |
| 4631 |
|
| 4632 |
* tests/torture.at (Files clobbered by AC_OPENMP): New test. |
| 4633 |
* doc/autoconf.texi: Document requirement not to have files |
| 4634 |
named ‘mp’ or ‘penmp’ next to a configure.ac that uses AC_OPENMP. |
| 4635 |
|
| 4636 |
2020-11-02 Zack Weinberg <[email protected]> |
| 4637 |
|
| 4638 |
testsuite: Isolate aclocal from third-party macros (#110352). |
| 4639 |
Several tests in the testsuite run a system-provided aclocal, which |
| 4640 |
will look into its $prefix/share/aclocal for third-party macros. |
| 4641 |
If those macros are buggy, aclocal may bomb out even though the test |
| 4642 |
doesn’t use them, causing the test to fail spuriously. |
| 4643 |
|
| 4644 |
In all tests that need to run aclocal, create an empty directory and |
| 4645 |
give aclocal the --system-acdir option pointing at that directory. |
| 4646 |
This masks out all these potentially buggy macros. (It does *not* |
| 4647 |
mask out AM_INIT_AUTOMAKE, which aclocal will find in a different |
| 4648 |
directory.) |
| 4649 |
|
| 4650 |
In all tests that run autoreconf but *don’t* need to run aclocal, |
| 4651 |
create an empty aclocal.m4 and set ACLOCAL=true in the environment. |
| 4652 |
|
| 4653 |
Fixes bug #110352. Problem reported by Dagobert Michelsen. |
| 4654 |
|
| 4655 |
* tests/fortran.at |
| 4656 |
* tests/tools.at |
| 4657 |
* tests/torture.at: |
| 4658 |
Set ACLOCAL=true in the environment in all tests that run |
| 4659 |
autoreconf but don’t need to run aclocal. |
| 4660 |
Set ACLOCAL="aclocal --system-acdir <empty directory>" in all |
| 4661 |
tests that do need to run aclocal. |
| 4662 |
|
| 4663 |
2020-11-01 Zack Weinberg <[email protected]> |
| 4664 |
|
| 4665 |
AC_LANG_CALL(C++): Use ‘int’ for return type of conftest::$2. |
| 4666 |
Commit 326c9a547423d25c621bc5c0ef76edbf6eda8c92 introduced a custom |
| 4667 |
AC_LANG_CALL for C++. Jani Välimaa reports in |
| 4668 |
https://lists.gnu.org/archive/html/bug-autoconf/2020-10/msg00054.html |
| 4669 |
that the new code does not handle AC_CHECK_LIB([foo], [main]) |
| 4670 |
correctly. This is not the recommended way to use AC_CHECK_LIB, but |
| 4671 |
it’s what you get if you autoupdate from AC_HAVE_LIBRARY, and some |
| 4672 |
people may not have bothered replacing main with a more appropriate |
| 4673 |
symbol. |
| 4674 |
|
| 4675 |
This patch changes the return type of the fake function declaration |
| 4676 |
for AC_CHECK_LIB’s second argument to be ‘int’, which is sufficient to |
| 4677 |
make g++ 10.2.0 happy again. We’re still on thin ice, unfortunately; |
| 4678 |
the code generated by AC_LANG_CALL *always* has undefined behavior, in |
| 4679 |
both C and C++, unless by chance the real prototype of the function |
| 4680 |
we’re probing for happens to match our fake declaration. The only |
| 4681 |
permanent cure is to stop faking declarations, and that’s going to be |
| 4682 |
a challenge. |
| 4683 |
|
| 4684 |
* lib/autoconf/c.m4 (AC_LANG_CALL(C++)): Use ‘int’ for the return |
| 4685 |
type of the fake function declaration, to avoid problems when |
| 4686 |
the function whose declaration we’re faking is ‘main’. |
| 4687 |
|
| 4688 |
2020-11-01 Zack Weinberg <[email protected]> |
| 4689 |
|
| 4690 |
Don’t search for X11 when cross compiling (#110345) |
| 4691 |
This is undesirable because X11 development headers and libraries |
| 4692 |
found by searching /usr are much more likely to belong to the build |
| 4693 |
operating system than the host operating system (being cross-compiled |
| 4694 |
for). A particularly problematic case, from the original bug report, |
| 4695 |
is “using a sysroot where the target is binary compatible with the |
| 4696 |
host. In this case AC_PATH_X will happily look at /usr and say that |
| 4697 |
yes, X is available, even if the sysroot doesn't have X.” |
| 4698 |
|
| 4699 |
To cross-compile X client applications, the recommended procedure is |
| 4700 |
to put X11 headers and libraries for the host system in the cross |
| 4701 |
compiler’s default search path; alternatively, --x-includes and |
| 4702 |
--x-libraries can be used. |
| 4703 |
|
| 4704 |
Fixes bug #110345. Problem reported by Ross Burton. |
| 4705 |
|
| 4706 |
* lib/autoconf/libs.m4 (_AC_PATH_X): Before doing anything else, |
| 4707 |
see whether a test compilation with no special options (just -lX11) |
| 4708 |
will work. If it doesn’t, only invoke _AC_PATH_X_XMKMF and |
| 4709 |
_AC_PATH_X_DIRECT when not cross compiling. |
| 4710 |
|
| 4711 |
2020-10-31 Zack Weinberg <[email protected]> |
| 4712 |
|
| 4713 |
Ignore stderr when testing parallel autotest (#110351). |
| 4714 |
Non-release versions of bash (notably 5.1.0(1)-rc1, which was uploaded |
| 4715 |
to Debian unstable) print internal debugging messages like |
| 4716 |
|
| 4717 |
TRACE: pid 411364: bgp_delete: deleting 432074 |
| 4718 |
|
| 4719 |
to the test driver’s stderr while executing the parallel test driver. |
| 4720 |
This causes spurious failures in the test suite. Chet Ramsey assures |
| 4721 |
me these are not a symptom of a bug in either bash or the driver code |
| 4722 |
(see https://lists.gnu.org/archive/html/bug-autoconf/2020-10/msg00047.html) |
| 4723 |
so have the test suite ignore them. |
| 4724 |
|
| 4725 |
This fixes Savannah bug #110351. |
| 4726 |
|
| 4727 |
* tests/autotest.at: Ignore stderr whenever running a micro-suite in |
| 4728 |
parallel mode, to avoid spurious failures due to internal debugging |
| 4729 |
messages that may be printed by bash. |
| 4730 |
|
| 4731 |
2020-10-29 Zack Weinberg <[email protected]> |
| 4732 |
|
| 4733 |
tests/m4sh.at: prevent an undesirable expansion of __oline__. |
| 4734 |
The descriptive comment for AT_DATA_LINENO mentions __oline__, and |
| 4735 |
this is expanded when generating the testsuite, which is confusing |
| 4736 |
to anyone reading the generated testuite. Defang it with @&t@. |
| 4737 |
|
| 4738 |
* tests/m4sh.at (AT_DATA_LINENO): Prevent expansion of __oline__ |
| 4739 |
in the descriptive comment. |
| 4740 |
|
| 4741 |
2020-10-28 Jannick <[email protected]> |
| 4742 |
|
| 4743 |
Treat msys(2) the same as cygwin when looking at host_os. |
| 4744 |
In most cases, checks depending on the value of $host_os should |
| 4745 |
treat *-*-cygwin*, *-*-msys*, and *-*-mingw* all the same. |
| 4746 |
|
| 4747 |
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): |
| 4748 |
Discard -lkernel32 on msys* as well. |
| 4749 |
When not discarding -lkernel32, deduplicate it, like other -l options. |
| 4750 |
|
| 4751 |
* lib/autoconf/functions.m4 (AC_FUNC_MALLOC, AC_FUNC_REALLOC): |
| 4752 |
msys* also guarantee to return nonnull for malloc(0)/realloc(0). |
| 4753 |
|
| 4754 |
* tests/local.at (at_check_env): Also ignore MSYS as an environment |
| 4755 |
variable. |
| 4756 |
|
| 4757 |
2020-10-20 Zack Weinberg <[email protected]> |
| 4758 |
|
| 4759 |
Improve handling of missing aux scripts (autoreconf) |
| 4760 |
Make ‘autoreconf --install’ add config.sub, config.guess, and |
| 4761 |
install-sh to the source tree when necessary. This is only relevant |
| 4762 |
for packages that don’t use Automake, because ‘automake --add-missing’ |
| 4763 |
already adds these scripts to the source tree, but apparently there |
| 4764 |
are plenty of packages out there that don’t use Automake, didn’t need |
| 4765 |
config.{sub,guess} with autoconf 2.69, and do need them with 2.70. |
| 4766 |
Such packages will need to have their equivalent of ‘make dist’ |
| 4767 |
manually updated to ship the new files, of course. |
| 4768 |
|
| 4769 |
This patch also has ‘autoreconf’ issue an error if aux files are |
| 4770 |
missing and ‘--install’ *wasn’t* used, or if --install *was* used but |
| 4771 |
could not install all the missing files. This error is more likely to |
| 4772 |
be caught by maintainers than the configure-time error added in the |
| 4773 |
previous patch. It is not currently practical to make autoconf itself |
| 4774 |
issue this error message, because of how the autoconf wrapper script |
| 4775 |
is different from all the other wrapper scripts. Also, autoreconf |
| 4776 |
runs automake *after* autoconf, so we’d get spurious errors from |
| 4777 |
packages that do use automake. |
| 4778 |
|
| 4779 |
* bin/autoreconf.in ($buildauxdir): New package global, initialized |
| 4780 |
to $pkgdatadir/build-aux, or to $ENV{autom4te_buildauxdir} if that’s set. |
| 4781 |
(find_missing_aux_files, can_install_aux_files, try_install_aux_files) |
| 4782 |
(install_aux_file, make_executable): New subs. |
| 4783 |
(autoreconf_current_directory): Trace AC_REQUIRE_AUX_FILE. |
| 4784 |
After running all tools that might install aux files, try to |
| 4785 |
install aux files ourself if --install was given. |
| 4786 |
After that, report on any that are still missing. |
| 4787 |
* lib/autom4te.in (Autoreconf-preselections): Add AC_REQUIRE_AUX_FILE. |
| 4788 |
Make list order consistent with list order in autoreconf.in. |
| 4789 |
* tests/wrapper.as: Set autom4te_buildauxdir to point to location of |
| 4790 |
config.guess, config.sub, and install-sh within the source tree. |
| 4791 |
|
| 4792 |
* lib/local.mk: Install config.guess, config.sub, and install-sh |
| 4793 |
into $(pkgdatadir)/build-aux. |
| 4794 |
|
| 4795 |
* doc/autoconf.texi: Document that autoreconf can now install |
| 4796 |
config.guess, config.sub, and install-sh itself without help from |
| 4797 |
automake, but packages not using automake will need to arrange for |
| 4798 |
tarball distribution of these files by hand. |
| 4799 |
|
| 4800 |
* tests/torture.at (Missing auxiliary files): Test autoreconf as well. |
| 4801 |
|
| 4802 |
2020-10-20 Zack Weinberg <[email protected]> |
| 4803 |
|
| 4804 |
Improve handling of missing aux scripts. |
| 4805 |
Another regression identified by the Debian archive rebuild was that |
| 4806 |
more macros require the presence of config.sub and config.guess now. |
| 4807 |
‘autoreconf --install’ doesn’t install these itself, it relies on |
| 4808 |
‘automake --add-missing’ to do that; so, packages that don’t use |
| 4809 |
Automake will fail at the configure stage after configure is |
| 4810 |
regenerated. To make matters worse, AC_CONFIG_AUX_DIRS assumes that |
| 4811 |
everyone who needs config.sub and config.guess also needs install-sh, |
| 4812 |
so in about half of the affected packages, the failure manifested as a |
| 4813 |
complaint about install-sh being missing -- technically true but |
| 4814 |
adding install-sh wouldn’t have resolved the problem by itself. |
| 4815 |
|
| 4816 |
This patch overhauls the AC_CONFIG_AUX_DIR(S) mechanism so that a |
| 4817 |
configure script knows the complete set of aux scripts that were |
| 4818 |
AC_REQUIRE_AUX_FILE’d for it, checks for the existence of all of |
| 4819 |
them, and not any others. Thus, this configure script |
| 4820 |
|
| 4821 |
AC_INIT([test], [1.0]) |
| 4822 |
AC_FUNC_MALLOC |
| 4823 |
AC_CONFIG_HEADERS([config.h]) |
| 4824 |
AC_OUTPUT |
| 4825 |
|
| 4826 |
will work fine in a directory that contains config.sub and |
| 4827 |
config.guess but not install-sh. Also, if it’s in a directory |
| 4828 |
that *doesn’t* contain config.sub and config.guess, it will print an |
| 4829 |
accurate error message |
| 4830 |
|
| 4831 |
configure: error: cannot find required auxiliary files: config.guess config.sub |
| 4832 |
|
| 4833 |
instead of the misleading |
| 4834 |
|
| 4835 |
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." |
| 4836 |
|
| 4837 |
A side-effect: it doesn’t make sense for AC_CONFIG_SUBDIRS to demand |
| 4838 |
the presence of Cygnus configure in the aux dir, on the off-chance |
| 4839 |
that one of the subdirectories *might* be using it -- I have no idea |
| 4840 |
where someone would even get a copy of that nowadays -- so I dropped |
| 4841 |
that feature. I rather suspect nobody has needed it in over a decade. |
| 4842 |
|
| 4843 |
I also documented the expanded need for config.sub and config.guess in |
| 4844 |
NEWS as well as the manual. |
| 4845 |
|
| 4846 |
* NEWS: Document expanded need for config.sub and config.guess. |
| 4847 |
Document removed support for Cygnus configure in subdirectories. |
| 4848 |
|
| 4849 |
* doc/autoconf.texi: Clarify exactly when install-sh, config.sub, |
| 4850 |
and/or config.guess are required. Document canonical online sources |
| 4851 |
for these scripts. Revise documentation of AC_CONFIG_AUX_DIR and |
| 4852 |
AC_REQUIRE_AUX_FILE. Minor improvements to documentation of |
| 4853 |
AC_CONFIG_SRCDIR. Remove mentions of Cygnus configure in |
| 4854 |
subdirectories. |
| 4855 |
|
| 4856 |
* lib/autoconf/general.m4 |
| 4857 |
(_AC_INIT_PARSE_ARGS): Remove mention of Cygnus configure; |
| 4858 |
clarify function of configure.gnu. |
| 4859 |
(AC_CONFIG_AUX_DIR): Support multiple invocations. |
| 4860 |
(AC_CONFIG_AUX_DIRS): Now an undocumented compatibility interface |
| 4861 |
rather than an internal subroutine; just runs AC_CONFIG_AUX_DIR on |
| 4862 |
each of its arguments. |
| 4863 |
(AC_CONFIG_AUX_DIR_DEFAULT): Now a backward compatibility stub that |
| 4864 |
requires _AC_INIT_AUX_DIR without adding anything to _AC_AUX_FILES. |
| 4865 |
|
| 4866 |
(AC_REQUIRE_AUX_FILE): Now adds the named aux file to _AC_AUX_FILES |
| 4867 |
and requires _AC_INIT_AUX_DIR, as well as being a trace hook. |
| 4868 |
|
| 4869 |
(_AC_INIT_AUX_DIR): New home of the loop searching for necessary aux |
| 4870 |
files (formerly in AC_CONFIG_AUX_DIRS). Looks for all the necessary |
| 4871 |
aux files, not just for install-sh. |
| 4872 |
|
| 4873 |
(ac_config_guess, ac_config_sub, ac_configure): Issue deprecation |
| 4874 |
warnings if these undocumented shell variables are actually used. |
| 4875 |
|
| 4876 |
(AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET): |
| 4877 |
No need to require AC_CONFIG_AUX_DIR_DEFAULT. |
| 4878 |
Can rely on $ac_aux_dir ending with a slash. |
| 4879 |
|
| 4880 |
* lib/autoconf/programs.m4 (AC_PROG_INSTALL, AC_PROG_MKDIR_P): |
| 4881 |
No need to require AC_CONFIG_AUX_DIR_DEFAULT. |
| 4882 |
|
| 4883 |
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS): |
| 4884 |
No need to require AC_CONFIG_AUX_DIR_DEFAULT. |
| 4885 |
Remove check for Cygnus configure; clarify function of configure.gnu. |
| 4886 |
|
| 4887 |
* lib/autotest/general.m4: Remove mention of Cygnus configure. |
| 4888 |
|
| 4889 |
* tests/torture.at (Missing auxiliary files): New test. |
| 4890 |
|
| 4891 |
2020-10-14 Ross Burton <[email protected]> |
| 4892 |
|
| 4893 |
autoreconf: remove redundant xsystem calls |
| 4894 |
xsystem_hint() executes the command, so there's no need to call xsystem() |
| 4895 |
afterwards. |
| 4896 |
|
| 4897 |
* bin/autoreconf.in: No need to call xsystem($cmd) immediately after |
| 4898 |
calling xsystem_hint("message", $cmd). |
| 4899 |
|
| 4900 |
2020-10-14 Zack Weinberg <[email protected]> |
| 4901 |
|
| 4902 |
autoreconf: cope with empty AC_CONFIG_SUBDIRS (bug 110331) |
| 4903 |
Commit 41edf99f9515f3f83398428c39d79e11266a5a0d made all Perl warnings |
| 4904 |
fatal. This caused autoreconf to crash on packages that call |
| 4905 |
AC_CONFIG_SUBDIRS with no arguments. They probably shouldn’t do that, |
| 4906 |
but we shouldn’t crash if they do. |
| 4907 |
|
| 4908 |
Problem reported by Ross Burton. |
| 4909 |
|
| 4910 |
* bin/autoreconf.in (autoreconf_current_directory): |
| 4911 |
Convert undef to '' before attempting to split it. |
| 4912 |
* tests/torture.at (Empty AC_CONFIG_SUBDIRS): New test. |
| 4913 |
|
| 4914 |
2020-10-12 Paul Eggert <[email protected]> |
| 4915 |
|
| 4916 |
doc: improve AS_CASE, AS_IF doc |
| 4917 |
See the thread containing: |
| 4918 |
https://lists.gnu.org/r/bug-gnulib/2020-10/msg00033.html |
| 4919 |
* doc/autoconf.texi: Distinguish between Solaris 10 and later. |
| 4920 |
(Balancing Parentheses): Mention the Posix syntax for ‘case’, |
| 4921 |
typically a better solution nowadays. |
| 4922 |
(AS_CASE, AS_IF): Mention AC_REQUIRE, portability, parens. |
| 4923 |
(Prerequisite Macros): Tighten up example and make it less dated. |
| 4924 |
Say that AS_CASE and AS_IF are not needed outside macros. |
| 4925 |
* NEWS: Don’t mention AS_FOR. It’s not documented, and for |
| 4926 |
good reason since it is so ... quirky. |
| 4927 |
|
| 4928 |
2020-10-10 Zack Weinberg <[email protected]> |
| 4929 |
|
| 4930 |
_AS_PATH_WALK: Use AS_IF for IF-NOT-FOUND argument. |
| 4931 |
The construct _AS_PATH_WALK was using to conditionally execute its |
| 4932 |
IF-NOT-FOUND argument, was a little too fragile: relatively natural |
| 4933 |
variations in usage, such as putting the final `])` on a line by |
| 4934 |
itself, could cause shell syntax errors. Use AS_IF instead. |
| 4935 |
|
| 4936 |
* lib/m4sugar/m4sh.m4: Use AS_IF to execute IF-NOT-FOUND conditionally. |
| 4937 |
|
| 4938 |
2020-10-10 Zack Weinberg <[email protected]> |
| 4939 |
|
| 4940 |
Fix regressions when using the C++ compiler to perform tests. |
| 4941 |
The Debian project has done an archive rebuild using autoconf 2.69c, |
| 4942 |
which found several serious regressions from 2.69 where test programs |
| 4943 |
used to be accepted by a C++ compiler, but are now rejected. Part of |
| 4944 |
the problem is that newer C++ compilers are more likely to reject |
| 4945 |
“traditional” sloppy C, but part of it is that bug fixes since 2.69 |
| 4946 |
did not consider the possibility of test macros being used with |
| 4947 |
AC_LANG([C++]) in effect. |
| 4948 |
|
| 4949 |
I’m still working on test suite improvements that will catch these |
| 4950 |
regressions in the future, but I don’t see any reason to delay the |
| 4951 |
actual bugfixes. (I’ve gotten far enough on the test suite changes |
| 4952 |
that I know they _will_ catch the bugs.) |
| 4953 |
|
| 4954 |
* NEWS: Document that AC_FUNC_STRERROR_R no longer tries to detect a |
| 4955 |
strerror_r that exists in the C library but isn’t declared by string.h. |
| 4956 |
|
| 4957 |
* lib/autoconf/c.m4 |
| 4958 |
(AC_LANG_CALL(C++)): New macro. Use a more robust technique for |
| 4959 |
avoiding a type conflict with any intrinsic prototype. |
| 4960 |
(AC_LANG_CALL(C)): Remove #ifdef __cplusplus, this macro is no longer |
| 4961 |
used to generate C++ code. |
| 4962 |
|
| 4963 |
* lib/autoconf/functions.m4 |
| 4964 |
(AC_FUNC_CLOSEDIR_VOID): Rely on <dirent.h> to declare closedir. |
| 4965 |
Simplify test program. Use AC_COMPILE_IFELSE, not AC_RUN_IFELSE. |
| 4966 |
(_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF): Use void *, not char *, |
| 4967 |
for variable holding a value returned by malloc/realloc respectively. |
| 4968 |
(AC_FUNC_STRERROR_R): Don’t AC_CHECK_FUNCS_ONCE strerror_r. |
| 4969 |
AC_DEFINE HAVE_STRERROR_R if and only if we are also going to define |
| 4970 |
HAVE_DECL_STRERROR_R. Remove AC_RUN_IFELSE fallback when strerror_r |
| 4971 |
is not declared. |
| 4972 |
|
| 4973 |
* lib/autoconf/headers.m4 (AC_USG): Use "", not 0, for the first |
| 4974 |
argument to rindex. |
| 4975 |
|
| 4976 |
2020-10-07 Zack Weinberg <[email protected]> |
| 4977 |
|
| 4978 |
Don’t issue obsoletion warnings for AC_DIAGNOSE. |
| 4979 |
AC_DIAGNOSE is used in several extremely popular add-on macros, |
| 4980 |
notably AM_INIT_AUTOMAKE, AM_GNU_GETTEXT, and AC_LIBTOOL_DLOPEN. |
| 4981 |
Until newer versions of these macros are available, -Wobsolete |
| 4982 |
warnings for AC_DIAGNOSE will be unhelpful noise. |
| 4983 |
|
| 4984 |
Therefore, make it so AC_DIAGNOSE(...) will still be replaced with |
| 4985 |
m4_warn(...) by autoupdate, but autoconf runs will not complain about |
| 4986 |
AC_DIAGNOSE. The bulk of the patch is augmenting AU_DEFUN so that it |
| 4987 |
can define a “silent” autoupdate replacement, and documenting the new |
| 4988 |
feature. |
| 4989 |
|
| 4990 |
* lib/autoconf/autoupdate.m4 (AU_DEFUN): Add a fourth argument, SILENT, |
| 4991 |
which must be either empty or the word ‘silent’. If it is ‘silent’, |
| 4992 |
the macro being defined will *not* issue a -Wobsolete warning when |
| 4993 |
expanded by autoconf. |
| 4994 |
Tweak quotation to prevent emacs’ parenthesis matching from getting |
| 4995 |
confused. |
| 4996 |
(AU_ALIAS): Add the SILENT argument here as well. |
| 4997 |
|
| 4998 |
* lib/autoconf/general.m4 (AC_DIAGNOSE): Define as a silent AU_DEFUN. |
| 4999 |
Add commentary explaining why this was done and when it can be |
| 5000 |
changed back. |
| 5001 |
|
| 5002 |
* doc/autoconf.texi (AU_DEFUN, AU_ALIAS): Revise; document new SILENT |
| 5003 |
argument. |
| 5004 |
|
| 5005 |
2020-10-05 Zack Weinberg <[email protected]> |
| 5006 |
|
| 5007 |
NEWS: Mention more bug fixes. |
| 5008 |
|
| 5009 |
2020-09-26 Zack Weinberg <[email protected]> |
| 5010 |
|
| 5011 |
Reorganize 2.70 NEWS |
| 5012 |
The changes are now classified into “backward incompatibilities”, |
| 5013 |
“new features”, “obsolete features and new warnings”, |
| 5014 |
“notable bug fixes”, and “autotest enhancements”. |
| 5015 |
|
| 5016 |
Also make the warning about argument-quotation bugs more prominent |
| 5017 |
and explicit. (See for instance Savannah bug 110319.) |
| 5018 |
|
| 5019 |
2020-09-24 Zack Weinberg <[email protected]> |
| 5020 |
|
| 5021 |
mktmpdir: Ensure that $tmp is always an absolute pathname. |
| 5022 |
Several autotools programs use ‘do’ to evaluate Perl code |
| 5023 |
generated into a file in the temporary directory created by |
| 5024 |
Autom4te::General::mktmpdir. If the environment variable |
| 5025 |
TMPDIR is a relative path, mktmpdir will set $tmp to a |
| 5026 |
relative path and we’ll end up trying to ‘do’ a relative |
| 5027 |
path, which searches for the file in @INC. This doesn’t |
| 5028 |
work under perl 5.26 or later, because ‘.’ was removed |
| 5029 |
from @INC in that version (for security reasons). |
| 5030 |
|
| 5031 |
Ensure that mktmpdir sets $tmp to an absolute pathname. |
| 5032 |
Also use File::Temp::tempdir to create the temporary |
| 5033 |
directory, instead of shelling out to ‘mktemp -d’; |
| 5034 |
this eliminates a subprocess and means we don’t have |
| 5035 |
to worry about cleaning up the directory on exit. |
| 5036 |
|
| 5037 |
Problem found by Kent Fredric and reported as |
| 5038 |
<https://bugs.gentoo.org/625576>. |
| 5039 |
Supersedes Gentoo’s autoconf-2.69-perl-5.26-2.patch. |
| 5040 |
|
| 5041 |
* lib/Autom4te/General.pm |
| 5042 |
(mktmpdir): Use File::Temp to create temporary directory. |
| 5043 |
Ensure that $tmp is an absolute path. |
| 5044 |
(END): No need to clean up $tmp. |
| 5045 |
|
| 5046 |
* tests/tools.at (autotools and relative TMPDIR): New test. |
| 5047 |
|
| 5048 |
2020-09-24 Zack Weinberg <[email protected]> |
| 5049 |
|
| 5050 |
tests/mktests.sh: fix awk syntax error. |
| 5051 |
I forgot that you can’t start an awk action block on the next line |
| 5052 |
from its condition. |
| 5053 |
|
| 5054 |
build-aux/fetch.pl: Fetch ChannelDefs.pm from automake. |
| 5055 |
|
| 5056 |
2020-09-22 Zack Weinberg <[email protected]> |
| 5057 |
|
| 5058 |
Autoupdate AC_{DIAGNOSE,FATAL,OBSOLETE,WARNING} and _AC_COMPUTE_INT. |
| 5059 |
While working on the previous patches I noticed that all of these |
| 5060 |
macros are officially obsolete, but autoupdate doesn’t replace them. |
| 5061 |
|
| 5062 |
_AC_COMPUTE_INT is easy to autoupdate. AC_{DIAGNOSE,FATAL,WARNING} |
| 5063 |
require a little special handling because their replacements are |
| 5064 |
m4sugar macros, and autoupdate normally expands m4sugar macros as it |
| 5065 |
goes. Fortunately, the same workaround as is used for AC_FOREACH can |
| 5066 |
be applied. AC_OBSOLETE also needs that workaround, and cannot be |
| 5067 |
fully replaced automatically. |
| 5068 |
|
| 5069 |
The bulk of the patch is removing internal uses of AC_DIAGNOSE. |
| 5070 |
|
| 5071 |
* lib/autoconf/autoupdate.m4 |
| 5072 |
* lib/autoconf/c.m4 |
| 5073 |
* lib/autoconf/functions.m4 |
| 5074 |
* lib/autoconf/general.m4 |
| 5075 |
* lib/autoconf/headers.m4 |
| 5076 |
* lib/autoconf/lang.m4 |
| 5077 |
* lib/autoconf/status.m4 |
| 5078 |
* lib/autoconf/types.m4 |
| 5079 |
* tests/local.at |
| 5080 |
* tests/tools.at: |
| 5081 |
Use, and/or refer to, m4_warn instead of AC_DIAGNOSE. |
| 5082 |
|
| 5083 |
* lib/autoconf/general.m4 (_AC_COMPUTE_INT): Define using AU_DEFUN. |
| 5084 |
(AC_DIAGNOSE, AC_FATAL, AC_WARNING): Autoupdate to m4_warn, |
| 5085 |
m4_fatal, and m4_warn([syntax], [$1]) respectively, using the same |
| 5086 |
paired AU_DEFUN/AC_DEFUN trick that is used for AC_FOREACH. |
| 5087 |
(AC_OBSOLETE): Autoupdate to m4_warn([obsolete], [$1]) and advise |
| 5088 |
hand-conversion to AU_DEFUN. |
| 5089 |
|
| 5090 |
* lib/autoconf/autoupdate.m4 (AU_DEFUN): Tweak quoting so m4_warn([$3]) |
| 5091 |
is emitted into the edited configure.ac instead of being expanded at |
| 5092 |
autoupdate time. |
| 5093 |
|
| 5094 |
* tests/tools.at (autoupdating AC_FOREACH): Adjust grep expressions. |
| 5095 |
(autoupdating AC_DIAGNOSE and AC_WARNING): New test. |
| 5096 |
(autoupdating AC_FATAL): New test. |
| 5097 |
(autoupdating AC_OBSOLETE): New test. |
| 5098 |
* tests/mktests.sh (ac_exclude_list, au_exclude_list): |
| 5099 |
Exclude AC_DIAGNOSE, AC_FATAL, AC_FOREACH, AC_OBSOLETE, and AC_WARNING |
| 5100 |
if not already excluded. |
| 5101 |
|
| 5102 |
2020-09-22 Zack Weinberg <[email protected]> |
| 5103 |
|
| 5104 |
Update documentation related to warnings. |
| 5105 |
This makes the Texinfo documentation consistent with the previous |
| 5106 |
changes. --help output regarding warnings is already drawn directly |
| 5107 |
from ChannelDefs.pm and thus does not need to be updated. |
| 5108 |
|
| 5109 |
* doc/autoconf.texi: Update all ‘invocation’ sections to describe |
| 5110 |
-W/--warnings consistently, and to refer to m4_warn for the list |
| 5111 |
of categories. |
| 5112 |
(m4_warn): Document the complete current list of categories. |
| 5113 |
(Reporting Messages): Delete section. |
| 5114 |
(AC_DIAGNOSE, AC_WARNING, AC_FATAL): Move to Obsolete Macros. |
| 5115 |
|
| 5116 |
2020-09-22 Zack Weinberg <[email protected]> |
| 5117 |
|
| 5118 |
Use WARNINGS to pass down warnings options from autoreconf. |
| 5119 |
autoreconf runs a bunch of subsidiary tools, and is expected to pass |
| 5120 |
along various command-line settings, such as those controlling |
| 5121 |
warnings. It has historically done this via the command line. |
| 5122 |
However, not all of the tools recognize the same set of command-line |
| 5123 |
warnings options. There’s an existing check for whether aclocal and |
| 5124 |
automake understand ‘--warnings’ at all, but it currently assumes that |
| 5125 |
automake will accept the same set of warnings *categories* that |
| 5126 |
autoconf does. This hasn’t actually been true for many years |
| 5127 |
and is known to cause problems; see the discussion starting at |
| 5128 |
<https://lists.gnu.org/archive/html/autoconf/2020-09/msg00000.html>. |
| 5129 |
|
| 5130 |
Previous patches in this series (and related patches applied to |
| 5131 |
automake) have restored agreement between the current development |
| 5132 |
trunks of the two sets of tools on the set of warnings categories, but |
| 5133 |
we still need to deal with the possibility of the *installed* tools |
| 5134 |
not being in agreement. |
| 5135 |
|
| 5136 |
If we use the WARNINGS environment variable to pass down warnings |
| 5137 |
options, instead of the command line, then all the tools are already |
| 5138 |
coded to ignore unknown warning categories, and this ceases to be an |
| 5139 |
issue. And we no longer need the check for ‘--warnings’ support in |
| 5140 |
automake, either. |
| 5141 |
|
| 5142 |
Also, autoreconf as well should suppress warnings from its first |
| 5143 |
invocation of autoconf, which is for tracing purposes only and may |
| 5144 |
emit spurious warnings because aclocal.m4 is not yet in place. |
| 5145 |
|
| 5146 |
* bin/autoreconf.in |
| 5147 |
($aclocal_supports_warnings, $automake_supports_warnings): Delete. |
| 5148 |
(@warning): Make local to sub parse_args. |
| 5149 |
(parse_args): Do not add --warnings options to $autoconf, |
| 5150 |
$autoheader, $aclocal, or $automake. Instead, set $ENV{WARNINGS} |
| 5151 |
appropriately. No longer necessary to probe for --warnings support |
| 5152 |
from aclocal and automake. |
| 5153 |
(autoreconf_current_directory): Set $ENV{WARNINGS} temporarily to |
| 5154 |
“none” when running autoconf in trace mode. Fix typo in comment. |
| 5155 |
Close $traces immediately after we’re done with it. |
| 5156 |
|
| 5157 |
* tests/torture.at (Specific warnings options for autoreconf): |
| 5158 |
New test. |
| 5159 |
|
| 5160 |
2020-09-22 Zack Weinberg <[email protected]> |
| 5161 |
|
| 5162 |
Disable all warnings when running autoconf as a subprocess. |
| 5163 |
autoheader and autoscan both run autoconf in trace mode, and |
| 5164 |
autoheader makes a point of passing down the warnings options. |
| 5165 |
This means autoheader prints warnings that a regular invocation |
| 5166 |
of autoconf would also print, so in the common case where both |
| 5167 |
are being run by autoreconf, the warnings are duplicated. |
| 5168 |
autoscan doesn’t pass down warnings options but it _does_ leave |
| 5169 |
the WARNINGS environment variable alone, which means it may issue |
| 5170 |
completely spurious warnings because the configure script is still |
| 5171 |
under construction. |
| 5172 |
|
| 5173 |
Change this so that both programs disable all warnings for the |
| 5174 |
subsidiary invocation of autoconf, by not passing any warnings |
| 5175 |
options themselves, and by setting the WARNINGS environment variable |
| 5176 |
to “none” for the subprocess. For this to work correctly, the |
| 5177 |
‘args: --warnings syntax’ line has to be removed from autom4te.cfg |
| 5178 |
(m4sugar section). Since syntax warnings are on by default anyway, |
| 5179 |
the sole effect of this is to allow WARNINGS=none to turn off syntax |
| 5180 |
warnings. |
| 5181 |
|
| 5182 |
The test suite changes are all to remove expectations of duplicate |
| 5183 |
diagnostics from autoheader. |
| 5184 |
|
| 5185 |
* bin/autoheader.in: Do not pass warnings options down to subsidiary |
| 5186 |
autoconf, and set WARNINGS=none in the environment for that process. |
| 5187 |
* bin/autoscan.in: Set WARNINGS=none in the environment for subsidiary |
| 5188 |
autoconf. |
| 5189 |
* lib/autom4te.in (M4sugar): Remove ‘--warnings syntax’. |
| 5190 |
* tests/semantics.at, tests/torture.at: No longer expect various |
| 5191 |
diagnostics from autoheader as well as autoconf. |
| 5192 |
|
| 5193 |
2020-09-22 Zack Weinberg <[email protected]> |
| 5194 |
|
| 5195 |
New utility function Autom4te::ChannelDefs::merge_WARNINGS. |
| 5196 |
This function merges a list of warnings categories into the environment |
| 5197 |
variable WARNINGS, returning a new value to set it to. The intended use |
| 5198 |
is in code of the form |
| 5199 |
|
| 5200 |
{ |
| 5201 |
local $ENV{WARNINGS} = merge_WARNINGS ("this", "that"); |
| 5202 |
|
| 5203 |
# run a command here with WARNINGS=this,that,etc |
| 5204 |
} |
| 5205 |
|
| 5206 |
This is not used yet, but will be in the next patch. |
| 5207 |
|
| 5208 |
* lib/Autom4te/ChannelDefs.pm (merge_WARNINGS): New function. |
| 5209 |
|
| 5210 |
2020-09-22 Zack Weinberg <[email protected]> |
| 5211 |
|
| 5212 |
Manually sync ChannelDefs.pm from automake. |
| 5213 |
ChannelDefs.pm *ought* to be kept in sync between automake and autoconf, |
| 5214 |
because it defines the set of valid -W options, and autoreconf assumes |
| 5215 |
that it can pass arbitrary -W options to all of the tools it invokes. |
| 5216 |
However, it isn’t covered by either project’s ‘make fetch’ and it hasn’t |
| 5217 |
actually *been* in sync for more than 17 years. |
| 5218 |
|
| 5219 |
This patch manually brings over all of the changes made on the |
| 5220 |
automake side. Once the complementary patch is applied by the |
| 5221 |
automake team, both versions of the file will be the same, and then we |
| 5222 |
can add it to the list in fetch.pl and not have this problem any more |
| 5223 |
in the future. |
| 5224 |
|
| 5225 |
There are some user-visible consequences to bringing this file back |
| 5226 |
into sync. The only one worth mentioning in NEWS is that the ‘obsolete’ |
| 5227 |
category of warnings is now on by default. This had quite a bit of |
| 5228 |
fallout throughout the testsuite. There are also some new warning |
| 5229 |
categories that get mentioned in --help output, but we don’t actually |
| 5230 |
generate any warnings in those categories, so people using ‘-Wall’ |
| 5231 |
won’t see any change. More diagnostics are automatically tagged with |
| 5232 |
‘warning:’ or ‘error:’, which also had some fallout in the testsuite. |
| 5233 |
Finally, ‘-Werror’ no longer causes complaints about unknown warning |
| 5234 |
categories to be treated as hard errors. |
| 5235 |
|
| 5236 |
Internally, there are some small API changes: ‘parse_warnings’ is no |
| 5237 |
longer usable as a ‘getopt’ callback function, and we now have a stub |
| 5238 |
Autom4te/Config.pm to match the automake code’s expectations. (This |
| 5239 |
file *should* also be synced from automake by ‘make fetch’, but we |
| 5240 |
can’t quite do that yet because it’s a generated file and our build |
| 5241 |
system is not prepared to handle adding *two* directories to @INC when |
| 5242 |
running a not-yet-installed Perl script. I plan to fix that after 2.70.) |
| 5243 |
|
| 5244 |
As a side-effect of adding a Config.pm, ‘prog_error’ now says to |
| 5245 |
report the bug to bug-autoconf, not bug-automake. If this is why we |
| 5246 |
mostly haven’t been using prog_error for internal errors, we can stop |
| 5247 |
avoiding it. (I did not change anything to use prog_error in this |
| 5248 |
patch.) |
| 5249 |
|
| 5250 |
* lib/Autom4te/ChannelDefs.pm: Merge from automake. |
| 5251 |
* lib/Autom4te/Config.pm: New file. |
| 5252 |
* lib/local.mk (dist_perllib_DATA): Add Autom4te/Config.pm. |
| 5253 |
|
| 5254 |
* bin/autoconf.as: Update list of warning categories to match |
| 5255 |
Autom4te::ChannelDefs::usage. |
| 5256 |
* bin/autoheader.in (@warnings): New global. |
| 5257 |
(parse_args): Don’t use parse_warnings as a getopt callback. |
| 5258 |
(main): Add warnings options from our command line to $autoconf. |
| 5259 |
No need to turn on 'obsolete' warnings explicitly. |
| 5260 |
No need to include "warning: " in warning messages. |
| 5261 |
* bin/autom4te.in (parse_args): Don’t use parse_warnings as a getopt callback. |
| 5262 |
(main): No need to include "warning: " in warning messages. |
| 5263 |
* bin/autoreconf.in (parse_args): parse_warnings now takes only one argument. |
| 5264 |
* bin/autoupdate.in: Set WARNINGS=none in environment for all child processes. |
| 5265 |
|
| 5266 |
* tests/local.at |
| 5267 |
(AT_CHECK_M4): Handle `autom4te: error: /usr/bin/m4 ...` like |
| 5268 |
`autom4te: /usr/bin/m4 ...`. |
| 5269 |
(_AT_CHECK_AC_MACRO): Add AUTOCONF-FLAGS argument, passed to both |
| 5270 |
autoconf and autoheader. |
| 5271 |
(AT_CHECK_MACRO): Default AUTOCONF-FLAGS argument to empty. |
| 5272 |
Pass that argument to autoheader as well as autoconf. |
| 5273 |
(AT_CHECK_AU_MACRO): Expect a “macro ‘NAME’ is obsolete’ diagnostic |
| 5274 |
on the first run of autoconf. Pass -Wno-obsolete to autoconf on the |
| 5275 |
second run, and to autoheader on both runs. |
| 5276 |
|
| 5277 |
* tests/base.at |
| 5278 |
* tests/c.at |
| 5279 |
* tests/compile.at |
| 5280 |
* tests/m4sh.at |
| 5281 |
* tests/m4sugar.at |
| 5282 |
* tests/semantics.at |
| 5283 |
* tests/tools.at |
| 5284 |
* tests/torture.at: |
| 5285 |
No need to pass -Wobsolete to autoconf. |
| 5286 |
Pass -Wno-obsolete to autoheader where needed to avoid handling |
| 5287 |
the same warning twice. |
| 5288 |
Update various expectations for diagnostics to match behavior |
| 5289 |
changes. |
| 5290 |
|
| 5291 |
* tests/tools.at (autoupdating AU_ALIAS): Add an AC_CONFIG_HEADERS |
| 5292 |
line to the test configure.ac to eliminate an unrelated diagnostic. |
| 5293 |
|
| 5294 |
2020-09-22 Jonathan Wakely <[email protected]> |
| 5295 |
|
| 5296 |
doc: Fix cross-reference for AC_TRY_LINK |
| 5297 |
The documentation for AC_TRY_LINK has a cross-reference to "Running |
| 5298 |
the Compiler". This should be "Running the Linker" instead. Also |
| 5299 |
make the link in AC_TRY_LINK_FUNC consistent. |
| 5300 |
|
| 5301 |
2020-09-22 Zack Weinberg <[email protected]> |
| 5302 |
|
| 5303 |
bin/autoconf.as: Fix --help. |
| 5304 |
Commit 9b5c0f17741836e99d0a801c6309389d391c03f9 introduced a bug where |
| 5305 |
autoconf --help would only print “Try 'autoconf --help' for more information.” |
| 5306 |
Correct this. |
| 5307 |
|
| 5308 |
* bin/autoconf.as: Print $help, not $usage_err, for --help. |
| 5309 |
Consistently use AS_ECHO, not bare echo. |
| 5310 |
|
| 5311 |
2020-09-21 Zack Weinberg <[email protected]> |
| 5312 |
|
| 5313 |
Consistently use ‘our’ instead of ‘use vars’ in Perl. |
| 5314 |
At file scope of a file containing at most one ‘package’ declaration, |
| 5315 |
‘use vars’ is exactly equivalent to ‘our’, and the latter is preferred |
| 5316 |
starting with Perl 5.6.0, which happens to be the oldest version we |
| 5317 |
support. |
| 5318 |
|
| 5319 |
In one place ‘our’ was not actually necessary and was switched to ‘my’. |
| 5320 |
|
| 5321 |
(This change has already been made in Automake and applied to the |
| 5322 |
shared Perl code via the previous ‘make fetch’ commit.) |
| 5323 |
|
| 5324 |
* lib/Autom4te/C4che.pm |
| 5325 |
* lib/Autom4te/ChannelDefs.pm |
| 5326 |
* lib/Autom4te/General.pm: Replace all uses of ‘use vars’ with ‘our’. |
| 5327 |
* bin/autoheader.in: Replace all uses of ‘use vars’ with ‘our’. |
| 5328 |
Remove an unnecessary ‘local’. |
| 5329 |
* bin/autoscan.in: Convert ‘use vars’ variables to ‘my’ variables. |
| 5330 |
|
| 5331 |
2020-09-21 Zack Weinberg <[email protected]> |
| 5332 |
|
| 5333 |
make fetch yet again |
| 5334 |
|
| 5335 |
2020-09-18 Bruno Haible <[email protected]> |
| 5336 |
|
| 5337 |
doc: Mention two more shell portability problems. |
| 5338 |
* doc/autoconf.texi (File Descriptors): Mention a problem of Solaris 10. |
| 5339 |
Mention that a known problem also occurs in dash. |
| 5340 |
|
| 5341 |
2020-09-11 Zack Weinberg <[email protected]> |
| 5342 |
|
| 5343 |
make fetch |
| 5344 |
|
| 5345 |
2020-09-11 Zack Weinberg <[email protected]> |
| 5346 |
|
| 5347 |
Fetch more files from their official upstream. |
| 5348 |
‘make fetch’ was updating several auxiliary files from the copy |
| 5349 |
embedded in Gnulib instead of from their official home. This patch |
| 5350 |
teaches fetch.pl to update as many as possible of them from their |
| 5351 |
official homes. The remaining exception is GNU license files, which, |
| 5352 |
except for fdl.texi, do not appear to have a public version control |
| 5353 |
system. Gnulib has a script for updating them, but it appears one |
| 5354 |
must be logged into some specific FSF-operated shell host for it to |
| 5355 |
work. |
| 5356 |
|
| 5357 |
The files affected, and their official homes, are: |
| 5358 |
|
| 5359 |
build-aux/install-sh automake |
| 5360 |
build-aux/mdate-sh automake |
| 5361 |
build-aux/config.guess config |
| 5362 |
build-aux/config.sub config |
| 5363 |
doc/fdl.texi gnustandards |
| 5364 |
doc/gnu-oids.texi gnustandards |
| 5365 |
doc/make-stds.texi gnustandards |
| 5366 |
doc/standards.texi gnustandards |
| 5367 |
doc/texinfo.tex texinfo |
| 5368 |
|
| 5369 |
This change exposed a bug in fetch.sh: there is a subtle difference |
| 5370 |
between File::Spec->catpath and ->catfile and I should have been using |
| 5371 |
the latter. |
| 5372 |
|
| 5373 |
* build-aux/fetch.pl: Can now fetch from arbitrary Savannah |
| 5374 |
repositories, not just from gnulib and automake. Fetch as |
| 5375 |
many files as possible from their official home, instead of |
| 5376 |
from gnulib. Use File::Spec->catfile, not ->catpath. |
| 5377 |
Strip trailing whitespace from all files. |
| 5378 |
|
| 5379 |
2020-09-11 Zack Weinberg <[email protected]> |
| 5380 |
|
| 5381 |
Rewrite fetch.sh in Perl. |
| 5382 |
Using HTTP::Tiny to talk to the network, instead of wget, means that |
| 5383 |
we can make just one TCP connection to git.savannah.gnu.org to do the |
| 5384 |
whole job, which is quite a bit faster. It should also be more |
| 5385 |
robust against weird characters in filenames / URLs and stuff. |
| 5386 |
|
| 5387 |
The script has a higher requirement for Perl than is the standard in |
| 5388 |
autoconf -- 5.14 (first version with HTTP::Tiny), with IO::Socket::SSL |
| 5389 |
installed -- but that’s ok, I hope, because it’s maintainer-only and |
| 5390 |
not installed. |
| 5391 |
|
| 5392 |
fetch.sh was the sole user of move-if-change, and the Perl script does |
| 5393 |
that job itself, but I left move-if-change in build-aux and on the fetch |
| 5394 |
list anyway, in case we discover another use for it in the future. |
| 5395 |
|
| 5396 |
* build-aux/fetch.sh: Replace with... |
| 5397 |
* build-aux/fetch.pl: ... reimplementation in Perl. |
| 5398 |
* cfg.mk (fetch): Update to match. |
| 5399 |
|
| 5400 |
2020-09-10 Zack Weinberg <[email protected]> |
| 5401 |
|
| 5402 |
AC_PROG_*CPP: Try ‘cpp’ before ‘/lib/cpp’ |
| 5403 |
All of the AC_PROG_*CPP macros fall back to ‘/lib/cpp’ if invoking the |
| 5404 |
relevant compiler with ‘-E’ doesn’t work. This is an obsolete |
| 5405 |
location to find the C preprocessor. Linux distributions tend to ship |
| 5406 |
a compatibility symlink, as do Solaris and AIX (as of the versions in the |
| 5407 |
GCC compile farm, anyway), but the BSDs no longer do. |
| 5408 |
|
| 5409 |
The tests for this fallback are already expecting ‘cpp’ to be a |
| 5410 |
command findable via $PATH, so make the probe macros do the same |
| 5411 |
thing. (We still try ‘/lib/cpp’ if ‘cpp’ _isn’t_ in $PATH.) |
| 5412 |
|
| 5413 |
* lib/autoconf/c.m4 |
| 5414 |
(AC_PROG_CPP, AC_PROG_CXXCPP, AC_PROG_OBJCPP, AC_PROG_OBJCXXCPP): |
| 5415 |
If $CC / $CXX / $OBJC / $OBJCXX -E (respectively) does not run the |
| 5416 |
preprocessor, look for ‘cpp’ in $PATH before falling back to ‘/lib/cpp’. |
| 5417 |
|
| 5418 |
* doc/autoconf.texi |
| 5419 |
(AC_PROG_CPP, AC_PROG_CXXCPP, AC_PROG_OBJCPP, AC_PROG_OBJCXXCPP): |
| 5420 |
Update to match. |
| 5421 |
|
| 5422 |
2020-09-03 Zack Weinberg <[email protected]> |
| 5423 |
|
| 5424 |
make fetch |
| 5425 |
|
| 5426 |
2020-09-03 Zack Weinberg <[email protected]> |
| 5427 |
|
| 5428 |
Add Configure_ac.pm to set of files to be synced from automake. |
| 5429 |
This file seems to have been accidentally left off of the list of .pm |
| 5430 |
files that should be kept the same between automake and autom4te. |
| 5431 |
It’s already almost identical in both codebases. |
| 5432 |
|
| 5433 |
It would make sense to sync ChannelDefs.pm too, but the copies of that |
| 5434 |
file in the two codebases have diverged; they would need to be |
| 5435 |
reconciled by hand first. |
| 5436 |
|
| 5437 |
* build-aux/fetch.sh (automake_files): Add lib/Automake/Configure_ac.pm. |
| 5438 |
|
| 5439 |
2020-09-03 Zack Weinberg <[email protected]> |
| 5440 |
|
| 5441 |
Fetch gnulib files from gitweb. |
| 5442 |
‘make fetch’ pulls the files maintained by Automake from gitweb, so we |
| 5443 |
always get the HEAD revision at the time of the operation. The files |
| 5444 |
maintained by Gnulib, on the other hand, are just copied from whatever |
| 5445 |
local gnulib checkout you happen to have on your hard drive at the |
| 5446 |
time, which might not have been updated recently and might not even be |
| 5447 |
checked out from gnulib trunk. |
| 5448 |
|
| 5449 |
This patch makes us use the same logic for Gnulib that we do for |
| 5450 |
Automake. It also pulls all of the code out of cfg.mk to a separate |
| 5451 |
shell script. The lists of files to update from each repository are |
| 5452 |
also moved to that file. |
| 5453 |
|
| 5454 |
* build-aux/fetch.sh: New script. Lists of files to fetch from |
| 5455 |
Gnulib and Automake are now kept here. |
| 5456 |
* cfg.mk (fetch): Run fetch.sh, it does all the work. |
| 5457 |
(gnulib-update, autom4te-update, WGETFLAGS, automake_gitweb) |
| 5458 |
(autom4te_files, move_if_change): Delete. |
| 5459 |
|
| 5460 |
2020-08-31 Zack Weinberg <[email protected]> |
| 5461 |
|
| 5462 |
Fatalize all warnings in Perl code. |
| 5463 |
Search-and-replace change ‘use warnings;’ to ‘use warnings FATAL => 'all';’ |
| 5464 |
in all Perl code. |
| 5465 |
|
| 5466 |
Notwithstanding the dire cautions in ‘perldoc warnings’ about this, |
| 5467 |
I think it’s the right call for us. One file was already doing it. |
| 5468 |
No new testsuite failures are observed on Linux with Perl 5.30.3 |
| 5469 |
nor on NetBSD with Perl 5.6.1. |
| 5470 |
|
| 5471 |
* bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in |
| 5472 |
* bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in |
| 5473 |
* lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm |
| 5474 |
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm |
| 5475 |
* lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm |
| 5476 |
* lib/Autom4te/Request.pm, lib/Autom4te/XFile.pm: |
| 5477 |
Make all warnings from the Perl interpreter into fatal errors. |
| 5478 |
|
| 5479 |
2020-08-31 Zack Weinberg <[email protected]> |
| 5480 |
|
| 5481 |
Autom4te::XFile: Remove unnecessary imports. |
| 5482 |
Autom4te::XFile does not appear to have any use for Carp, DynaLoader, |
| 5483 |
or File::Basename. |
| 5484 |
|
| 5485 |
This happened to catch my eye while I was doing the previous two |
| 5486 |
patches. I have not done a comprehensive audit of imports in the Perl |
| 5487 |
code. |
| 5488 |
|
| 5489 |
* lib/Autom4te/XFile.pm: Remove ‘use’s of Carp, DynaLoader, |
| 5490 |
and File::Basename. |
| 5491 |
(@ISA): Remove DynaLoader. |
| 5492 |
|
| 5493 |
2020-08-31 Zack Weinberg <[email protected]> |
| 5494 |
|
| 5495 |
Rationalize ‘use’ order in Perl code. |
| 5496 |
All the Perl scripts and modules now ‘use’ other modules in the |
| 5497 |
following order: |
| 5498 |
|
| 5499 |
- use 5.006; use strict; use warnings; in that order. |
| 5500 |
If a file was not already use-ing one of these three, it was added. |
| 5501 |
|
| 5502 |
- The BEGIN block that adds the installation directory for the |
| 5503 |
Autom4te:: modules to @INC, if necessary. |
| 5504 |
|
| 5505 |
- All stdlib modules whose name begins with a capital letter, |
| 5506 |
in ASCII sort order. |
| 5507 |
|
| 5508 |
- All Autom4te:: modules, in ASCII sort order. |
| 5509 |
|
| 5510 |
- ‘use vars qw (...)’, if any, last. |
| 5511 |
|
| 5512 |
Also, ‘use foo qw (...)’ and @ISA lists have been sorted into ASCII |
| 5513 |
sort order. (@EXPORT lists, which often follow immediately after @ISA |
| 5514 |
lists, have *not* been sorted, as these appear to have been organized |
| 5515 |
semantically in many cases.) qw delimiters have been normalized to |
| 5516 |
round parentheses with a space between the qw and the open paren. |
| 5517 |
|
| 5518 |
* bin/autoheader.in, bin/autom4te.in, bin/autoreconf.in |
| 5519 |
* bin/autoscan.in, bin/autoupdate.in, bin/ifnames.in |
| 5520 |
* lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm |
| 5521 |
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm |
| 5522 |
* lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm |
| 5523 |
* lib/Autom4te/Getopt.pm, lib/Autom4te/Request.pm |
| 5524 |
* lib/Autom4te/XFile.pm: Rationalize order and format of ‘use’ |
| 5525 |
directives and @ISA lists. Add any of ‘use 5.006’, ‘use strict’, |
| 5526 |
and ‘use warnings’ that was not already present. |
| 5527 |
|
| 5528 |
2020-08-31 Serhii Popovych <[email protected]> |
| 5529 |
|
| 5530 |
perl: Replace -w option in shebangs with ‘use warnings’ in code |
| 5531 |
Some downstream redistributors for Autoconf wish to use |
| 5532 |
‘/usr/bin/env perl’ as the #! line for the installed Perl scripts. |
| 5533 |
This does not work with command-line options on the #! line, as the |
| 5534 |
kernel doesn’t support supplying more than one argument to a #! |
| 5535 |
interpreter (this limitation is universal across Unixes that |
| 5536 |
support #!, as far as I know). |
| 5537 |
|
| 5538 |
Remove ‘-w’ from all perl #! lines and instead add ‘use warnings’ |
| 5539 |
to all the scripts and .pm files that didn’t already have it. |
| 5540 |
This ‘use’ directive was added to Perl in version 5.6.0 (aka 5.006) |
| 5541 |
so there is no change to our minimum Perl requirement. |
| 5542 |
|
| 5543 |
(It is necessary to add ‘use warnings’ to all the .pm files as well as |
| 5544 |
the scripts, because the ‘-w’ command-line option turns on warnings |
| 5545 |
globally, but ‘use warnings’ does so only for the current lexical scope.) |
| 5546 |
|
| 5547 |
Patch uplifted from OpenEmbedded, originally by Serhii Popovych. |
| 5548 |
It’s a mechanical search-and-replace change so I do not believe a |
| 5549 |
copyright assignment is necessary. |
| 5550 |
|
| 5551 |
* bin/autom4te.in, bin/autoreconf.in, bin/autoscan.in |
| 5552 |
* bin/autoupdate.in, bin/ifnames.in: Remove -w from #! line |
| 5553 |
and add ‘use warnings’ to imports. |
| 5554 |
|
| 5555 |
* lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm |
| 5556 |
* lib/Autom4te/Channels.pm, lib/Autom4te/Configure_ac.pm |
| 5557 |
* lib/Autom4te/FileUtils.pm, lib/Autom4te/General.pm |
| 5558 |
* lib/Autom4te/Request.pm, lib/Autom4te/XFile.pm: |
| 5559 |
Add ‘use warnings’ to imports. |
| 5560 |
|
| 5561 |
2020-08-28 Zack Weinberg <[email protected]> |
| 5562 |
|
| 5563 |
BUGS: Remove mention of old shells lacking functions. |
| 5564 |
The change to require shell functions in configure scripts happened |
| 5565 |
circa 2009, well before the release of autoconf 2.69; if this was |
| 5566 |
causing problems for people we would have heard about it by now. |
| 5567 |
|
| 5568 |
2020-08-28 Zack Weinberg <[email protected]> |
| 5569 |
|
| 5570 |
Fix testsuite failures from ‘make maintainer-check-c++’. |
| 5571 |
‘make maintainer-check-c++’ has two test failures that don’t show in |
| 5572 |
an ordinary ‘make check’. One of these is a pair of problems with the |
| 5573 |
semantics.at test of AC_CHECK_DECL(S): |
| 5574 |
|
| 5575 |
* AC_CHECK_DECL cannot handle a function argument whose declared type |
| 5576 |
is ‘char []’; it generates a cast to the array type, which is |
| 5577 |
invalid in both C and C++. This was masked by an M4 quotation bug, |
| 5578 |
causing it to emit a cast to ‘char’ instead, prodicing code that |
| 5579 |
was valid C but invalid C++. I don’t think it’s practical to teach |
| 5580 |
AC_CHECK_DECL to do argument type decay, so I changed the type |
| 5581 |
signature in the AC_CHECK_DECL call (not in the actual declaration) |
| 5582 |
to ‘char *’. Conveniently this also avoids the quotation issue. |
| 5583 |
|
| 5584 |
* In C++, apparently ‘extern struct { int x; } foo;’ is invalid. |
| 5585 |
(clang++ explains at length: “variable ‘foo’ is used but not |
| 5586 |
defined in this translation unit, and cannot be defined in any |
| 5587 |
other translation unit because its type does not have linkage.”) |
| 5588 |
Fixed by giving the struct a tag. |
| 5589 |
|
| 5590 |
The other failure is an actual bug in AC_PROG_LEX: the test program |
| 5591 |
used by _AC_PROG_LEX_YYTEXT_DECL uses the flex utility function |
| 5592 |
‘input’, which is renamed to ‘yyinput’ when the scanner is compiled as |
| 5593 |
C++. Fixed with ifdefs in the offending action--it might seem cleaner |
| 5594 |
to use a macro defined in a %{ %} block, but that would be inserted into |
| 5595 |
the skeleton *above* the declaration of (yy)input, so I didn’t feel |
| 5596 |
it was safe. |
| 5597 |
|
| 5598 |
* tests/semantics.at (AC_CHECK_DECLS): Adjust test programs for C++ |
| 5599 |
compatibility and to work around lack of support for argument type |
| 5600 |
decay. |
| 5601 |
|
| 5602 |
* programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): Call yyinput(), not input(), |
| 5603 |
in scanner action when scanner is compiled as C++. |
| 5604 |
|
| 5605 |
2020-08-28 Zack Weinberg <[email protected]> |
| 5606 |
|
| 5607 |
Suppress ‘make syntax-check’ complaint about use of strcmp. |
| 5608 |
Recently ‘make syntax-check’ added a lint rule discouraging use of |
| 5609 |
bare ‘strcmp’ (in favor of gnulib’s streq/strneq wrappers), which |
| 5610 |
triggers on some code in c.m4’s test for C++98 compliance. |
| 5611 |
|
| 5612 |
This lint rule makes sense for typical C programs coded to GNU’s |
| 5613 |
standards, but not for autoconf’s test programs. There is no way to |
| 5614 |
disable it from outside the code, so this patch adds parentheses |
| 5615 |
around the name ‘strcmp’, which is sufficient to disable this |
| 5616 |
grep-based lint but doesn’t change the meaning of the code as |
| 5617 |
understood by an actual C++ compiler. |
| 5618 |
|
| 5619 |
* c.m4 (_AC_CXX_CXX98_TEST_HEADER): Suppress ‘make syntax-check’ |
| 5620 |
error on use of strcmp. |
| 5621 |
|
| 5622 |
2020-08-28 Zack Weinberg <[email protected]> |
| 5623 |
|
| 5624 |
AS_INIT: ensure fds 0, 1, 2 are open |
| 5625 |
A patch was recently proposed for GNU libc to make *all* processes |
| 5626 |
start up with file descriptors 0, 1, and 2 guaranteed to be open. |
| 5627 |
Part of the rationale for this patch was that configure scripts fail |
| 5628 |
catastrophically if these fds are closed, even if you just want to run |
| 5629 |
--help or --version, e.g. |
| 5630 |
|
| 5631 |
$ ./configure --version <&-; echo $? |
| 5632 |
./configure: line 555: 0: Bad file descriptor |
| 5633 |
1 |
| 5634 |
|
| 5635 |
configure scripts cannot rely on behavior specific to GNU libc, so |
| 5636 |
whether or not that patch gets committed, it makes sense for us to |
| 5637 |
make configure scripts robust against being started up with closed |
| 5638 |
stdin/stdout/stderr. |
| 5639 |
|
| 5640 |
This patch adds code to ensure fds 0, 1, and 2 are open, early in |
| 5641 |
_AS_SHELL_SANITIZE. It uses a construct, ‘(exec 3>&n)’, that’s known |
| 5642 |
not to work in very old shells, but that’s OK because those shells |
| 5643 |
will be rejected by _AS_DETECT_BETTER_SHELL anyway. The worst-case |
| 5644 |
scenario is that the “This script requires a shell more modern than |
| 5645 |
all the shells I found on your system” error message won’t get printed. |
| 5646 |
|
| 5647 |
When these fds are found not to be open, we open them on /dev/null, in |
| 5648 |
the normal I/O direction (0 for reading, 1 and 2 for writing). There |
| 5649 |
is a case for opening them in the *opposite* direction so that, for |
| 5650 |
instance, writes to fd 1 will fail when fd 1 started out closed. |
| 5651 |
However, that would expose latent bugs that I think should be dealt |
| 5652 |
with *after* 2.70. (See Savannah bug #110300 for more detail.) |
| 5653 |
|
| 5654 |
I also took the opportunity to rationalize the order of operations in |
| 5655 |
_AS_SHELL_SANITIZE a little. All the special shell and environment |
| 5656 |
variables that we care about are dealt with immediately after |
| 5657 |
AS_BOURNE_COMPATIBLE, and _AS_PATH_SEPARATOR_PREPARE happens |
| 5658 |
immediately before the first use of _AS_PATH_WALK. |
| 5659 |
|
| 5660 |
* lib/m4sugar/m4sh.m4 (_AS_ENSURE_STANDARD_FDS): New macro. |
| 5661 |
(_AS_SHELL_SANITIZE): Move the “Unset variables that we do not need” |
| 5662 |
and “NLS nuisances” blocks immediately after setting IFS; merge the |
| 5663 |
unsetting of CDPATH into the main unsetting loop; move invocation of |
| 5664 |
_AS_PATH_SEPARATOR_PREPARE to immediately above the “Find who we are” |
| 5665 |
block; invoke _AS_ENSURE_STANDARD_FDS immediately before |
| 5666 |
_AS_PATH_SEPARATOR_PREPARE. |
| 5667 |
|
| 5668 |
* tests/base.at (configure with closed standard fds): New test. |
| 5669 |
* tests/torture.at (--help and --version in unwritable directory): New test. |
| 5670 |
|
| 5671 |
2020-08-26 Zack Weinberg <[email protected]> |
| 5672 |
|
| 5673 |
Add ‘START_TIME’ and ‘ToD’ to shell variable filter list. |
| 5674 |
NetBSD sh has invented more magic shell variables with values related |
| 5675 |
to the current time: ‘START_TIME’ and ‘ToD’. Like ‘SECONDS’, these |
| 5676 |
can cause spurious testsuite failures and should be filtered out when |
| 5677 |
checking for undesirable changes to the environment. |
| 5678 |
|
| 5679 |
* tests/local.at (_AT_CHECK_ENV, AT_CONFIG_CMP): Add shell variables |
| 5680 |
START_TIME and ToD to filter list. |
| 5681 |
|
| 5682 |
2020-08-26 Zack Weinberg <[email protected]> |
| 5683 |
|
| 5684 |
Pass $(MAKE) down to testsuite. |
| 5685 |
If Make is not available under the command name ‘make’, only some |
| 5686 |
other name (e.g. ‘gmake’) then the test suite’s internal invocations |
| 5687 |
of Make will all fail unless you explicitly set MAKE=<the other name> |
| 5688 |
in the environment, which is obnoxious. Pass the value of $(MAKE) |
| 5689 |
down to the testsuite so that ‘gmake check’ Just Works. |
| 5690 |
|
| 5691 |
* tests/local.mk (run_testsuite): Append MAKE=$(MAKE). |
| 5692 |
|
| 5693 |
2020-08-26 Zack Weinberg <[email protected]> |
| 5694 |
|
| 5695 |
Add NetBSD /bin/sh to the -n whitelist. |
| 5696 |
NetBSD’s /bin/sh sets a special variable “NETBSD_SHELL” to identify |
| 5697 |
itself. This means we can whitelist it as not having a buggy -n |
| 5698 |
implementation. |
| 5699 |
|
| 5700 |
* configure.ac: Assume -n mode works in shells that have a preset |
| 5701 |
variable named NETBSD_SHELL. |
| 5702 |
|
| 5703 |
2020-08-23 Paul Eggert <[email protected]> |
| 5704 |
|
| 5705 |
* lib/autoconf/types.m4: Say "Microsoft" before "Windows". |
| 5706 |
|
| 5707 |
2020-08-23 Bruno Haible <[email protected]> |
| 5708 |
|
| 5709 |
AC_TYPE_PID_T: Define pid_t correctly on 64-bit native Windows. |
| 5710 |
Reported at <https://savannah.gnu.org/support/index.php?110296>. |
| 5711 |
|
| 5712 |
* lib/autoconf/types.m4 (AC_TYPE_PID_T): Define pid_t to '__int64' on 64-bit |
| 5713 |
native Windows, and to 'int' otherwise. |
| 5714 |
|
| 5715 |
2020-08-21 Zack Weinberg <[email protected]> |
| 5716 |
|
| 5717 |
Generate manpages directly from source code. |
| 5718 |
We generate manpages for autoconf’s installed programs (autoconf, |
| 5719 |
autoheader, etc.) using help2man, which runs each program in order to |
| 5720 |
learn its --help output. Each manpage therefore has a dependency on |
| 5721 |
the existence of the corresponding program, but this dependency is |
| 5722 |
intentionally left out of the Makefile so that one can build from a |
| 5723 |
tarball release (which will include prebuilt manpages) without having |
| 5724 |
help2man installed. |
| 5725 |
|
| 5726 |
But when building from a git checkout with high levels of |
| 5727 |
parallelism (-j20 or so), the missing dependency can lead to build |
| 5728 |
failures, because help2man will try to run the program before it |
| 5729 |
exists. In an earlier patch I tried to work around this with a |
| 5730 |
recursive make invocation in the ‘.x.1’ rule, to ensure the existence |
| 5731 |
of the program. That only traded one concurrency bug for another, now |
| 5732 |
we could have two jobs trying to build the same program simultaneously |
| 5733 |
and they would clobber each other’s work and the build would still |
| 5734 |
fail. |
| 5735 |
|
| 5736 |
Instead, this patch introduces a utility script ‘help-extract.pl’ that |
| 5737 |
reads --help and --version information directly from the source code |
| 5738 |
for each program. This utility, wrapped appropriately for each |
| 5739 |
program, is what help2man now runs. Usage is a little weird because |
| 5740 |
help2man doesn’t let you specify any arguments to the “executable” |
| 5741 |
that it runs, but it works, and lets us write all of the true |
| 5742 |
dependencies of each manpage into the Makefile without naming any file |
| 5743 |
that would be created during a build from a tarball. help-extract.pl |
| 5744 |
is a Perl script, so it introduces no new build-time requirements. |
| 5745 |
|
| 5746 |
A downside is that we have to make sure each of the script sources in |
| 5747 |
bin/, and also part of lib/Autom4te/ChannelDefs.pm, are parseable by |
| 5748 |
help-extract. The most important constraints are that the text output |
| 5749 |
by --help must be defined in a global variable named ‘help’, and its |
| 5750 |
definition has to be formatted just the way these definitions are |
| 5751 |
currently formatted. Similarly for --version. Furthermore, only some |
| 5752 |
non-literal substitutions are possible in these texts; each has to be |
| 5753 |
explicitly supported in help-extract.pl. The current list of supported |
| 5754 |
substitutions is $0, @PACKAGE_NAME@, @VERSION@, @RELEASE_YEAR@, and |
| 5755 |
Autom4te::ChannelDefs::usage. |
| 5756 |
|
| 5757 |
The generated manpages themselves are character-for-character |
| 5758 |
identical before and after this patch. |
| 5759 |
|
| 5760 |
* build-aux/help-extract.pl: New build script that extracts --help |
| 5761 |
and --version output from manpages. |
| 5762 |
|
| 5763 |
* man/autoconf.w, man/autoheader.w, man/autom4te.w, man/autoreconf.w |
| 5764 |
* man/autoscan.w, man/autoupdate.w, man/ifnames.w: New shell scripts |
| 5765 |
which wrap build-aux/help-extract.pl. |
| 5766 |
|
| 5767 |
* man/local.mk: Generate each manpage by running help2man on the |
| 5768 |
corresponding .w script, not on the built utility itself. |
| 5769 |
Revise all dependencies to match. |
| 5770 |
|
| 5771 |
* bin/autoconf.as: Rename ‘usage’ variable to ‘help’ and |
| 5772 |
‘help’ variable to ‘usage_err’. |
| 5773 |
* bin/autoheader.in: Call Autom4te::ChannelDefs::usage with no |
| 5774 |
function-call parentheses, matching all the other scripts. |
| 5775 |
* bin/autom4te.in: Initialize $version with a regular double-quoted |
| 5776 |
string, not a heredoc, matching all the other scripts. |
| 5777 |
* bin/autoscan.in: Remove global variable $configure_scan. |
| 5778 |
|
| 5779 |
2020-08-21 Zack Weinberg <[email protected]> |
| 5780 |
|
| 5781 |
Fix ‘make distcheck’ failure due to generated manpages in build dir. |
| 5782 |
If we are doing a VPATH build and we generate the manpages, |
| 5783 |
they will be written to the build directory, and should be |
| 5784 |
deleted by ‘make distclean’; ‘make distcheck’ fails if this |
| 5785 |
is not done. However, if we are doing a build in the source |
| 5786 |
directory, the manpages might have been shipped to us and we |
| 5787 |
should *not* delete them in ‘make distclean’. |
| 5788 |
|
| 5789 |
Correction to 5d3c99e56247d5a6496729931774cff08cf8dc0f. |
| 5790 |
|
| 5791 |
* man/local.mk (distclean-local-man): New rule. Delete $(dist_man_MANS) |
| 5792 |
in VPATH builds only. |
| 5793 |
(MOSTLYCLEANFILES, .x.1): Don’t use globs to decide what to delete. |
| 5794 |
|
| 5795 |
2020-08-20 Zack Weinberg <[email protected]> |
| 5796 |
|
| 5797 |
tests: New helper macro AT_CHECK_MAKE. |
| 5798 |
This macro factors out some repeated code surrounding tests that run |
| 5799 |
make, such as honoring $MAKE, *not* honoring $MAKEFLAGS, and |
| 5800 |
normalizing the exit status. Partially addresses bug #110267 |
| 5801 |
(problems with Sun’s make barfing on GNU make options from |
| 5802 |
$MAKEFLAGS). |
| 5803 |
|
| 5804 |
Also addresses some unrelated problems I noticed while changing all |
| 5805 |
the tests that run make to use this macro: |
| 5806 |
|
| 5807 |
The shtool test is now properly skipped if shtool is not available on |
| 5808 |
the host system. |
| 5809 |
|
| 5810 |
Some of the Fortran tests would create an executable and then run it, |
| 5811 |
others would create an executable and then the AT_CHECK operation that |
| 5812 |
would run it was commented out. There’s no evidence in the changelog |
| 5813 |
or the git history for why this was done. I uncommented all of the |
| 5814 |
commented-out cases; this can be undone easily if it causes |
| 5815 |
problems. (It can’t be an issue with cross-compilation because some |
| 5816 |
of the tests do run the executable.) |
| 5817 |
|
| 5818 |
* tests/local.at (AT_CHECK_MAKE): New macro wrapping an AT_CHECK |
| 5819 |
invocation of make. All tests that run make updated to use this macro. |
| 5820 |
* tests/fortran.at: Uncomment all AT_CHECKs that run the just-compiled |
| 5821 |
program. |
| 5822 |
* tests/foreign.at (shtool): Skip the test if shtool is not available |
| 5823 |
from the host system. Simplify shell logic. |
| 5824 |
|
| 5825 |
2020-08-20 Zack Weinberg <[email protected]> |
| 5826 |
|
| 5827 |
Properly skip erlang tests when erl/erlc are not available. |
| 5828 |
Fallout from the previous change, which I should’ve tested on a |
| 5829 |
machine without Erlang tools installed, before pushing. |
| 5830 |
|
| 5831 |
It bugs me a little that we have to put these special exit codes into |
| 5832 |
autoconf itself instead of the testsuite, but it is what it is. |
| 5833 |
|
| 5834 |
* lib/autoconf/erlang.m4 (AC_ERLANG_NEED_ERLC, AC_ERLANG_NEED_ERL): |
| 5835 |
Exit with code 77 on failure so testsuite understands to skip Erlang |
| 5836 |
tests in this case. |
| 5837 |
(AC_ERLANG_CHECK_LIB): Use AC_ERLANG_NEED_ERLC and AC_ERLANG_NEED_ERL |
| 5838 |
instead of the _PATH_ versions. |
| 5839 |
|
| 5840 |
2020-08-20 Zack Weinberg <[email protected]> |
| 5841 |
|
| 5842 |
tests/suite.at: m4_include acerlang.at. |
| 5843 |
This corrects a long-standing oversight; the “blind” tests for the |
| 5844 |
Erlang macros have never actually gotten run. |
| 5845 |
|
| 5846 |
2020-08-18 Zack Weinberg <[email protected]> |
| 5847 |
|
| 5848 |
_AC_COMPILER_EXEEXT_CROSS: exit 77 if test program does not run |
| 5849 |
This causes our testsuite to report a skipped test, rather than a |
| 5850 |
failure, if the detected compiler for _AC_LANG produces broken |
| 5851 |
executables. It matches the behavior of _AC_COMPILER_EXEEXT_DEFAULT, |
| 5852 |
which has exited with that code for a long time if it hits the |
| 5853 |
“_AC_LANG compiler cannot *create* executables” failure case. |
| 5854 |
|
| 5855 |
Partially addresses bug #110267. The Solaris 10 machine I have access |
| 5856 |
to, has a broken gccgo installation that generates executables that |
| 5857 |
crash on startup. Without this patch, test “358: Go” fails. With |
| 5858 |
this patch, it is skipped. |
| 5859 |
|
| 5860 |
2020-08-18 Zack Weinberg <[email protected]> |
| 5861 |
|
| 5862 |
Generate manpages in build directory. |
| 5863 |
It is not necessary to generate the manpages in the source directory |
| 5864 |
during a split build; ‘make dist’ can still find them in the build |
| 5865 |
directory and put them in the tarball. |
| 5866 |
|
| 5867 |
Also add some defensive logic to the .x.1 rule to ensure that |
| 5868 |
bin/command and tests/command exist before generating man/command.1. |
| 5869 |
Without this, if you do a sufficiently parallel build, help2man may |
| 5870 |
generate the manpage from an older installed copy of ‘command’. |
| 5871 |
(Ideally, we wouldn’t have to run ‘command’ at all and this would not |
| 5872 |
be an issue, but ‘help2man’ doesn’t appear to support that.) |
| 5873 |
|
| 5874 |
After this patch, the only files written to the source directory |
| 5875 |
during the ‘make’ phase of a split build (starting from a clean Git |
| 5876 |
checkout) are |
| 5877 |
|
| 5878 |
doc/version.texi |
| 5879 |
doc/stamp-vti |
| 5880 |
doc/autoconf.info |
| 5881 |
doc/standards.info |
| 5882 |
|
| 5883 |
These are not under our control, they’re being created by automake’s |
| 5884 |
built-in rules for Texinfo documentation. |
| 5885 |
|
| 5886 |
* man/local.mk: Replace all instances of $(mansrcdir) with literal ‘man’. |
| 5887 |
(.x.1): Ensure that bin/command, tests/command, and the man |
| 5888 |
directory exist before creating man/command.1. |
| 5889 |
|
| 5890 |
2020-08-18 Zack Weinberg <[email protected]> |
| 5891 |
|
| 5892 |
Delete a dummy ChangeLog in ‘make distclean’. |
| 5893 |
‘make distcheck’ from git may create a dummy ChangeLog file in the |
| 5894 |
build directory. Delete this on ‘make distclean’, but don’t delete |
| 5895 |
a real ChangeLog (generated by the gen-ChangeLog rule). |
| 5896 |
|
| 5897 |
* Makefile.am (distclean-local): Delete ChangeLog if it is the dummy |
| 5898 |
created to pacify automake. |
| 5899 |
|
| 5900 |
2020-08-18 Zack Weinberg <[email protected]> |
| 5901 |
|
| 5902 |
Don’t distribute tests/ac*.at. |
| 5903 |
tests/ac*.at are generated files containing basic test cases for all |
| 5904 |
the public AC_* macros that can be invoked without arguments. They’re |
| 5905 |
generated using a simple awk script, and we already require awk at |
| 5906 |
build time because of automake, so there is no reason to ship them in |
| 5907 |
the tarball. If we don’t ship them in the tarball, we can simplify |
| 5908 |
the logic in tests/local.mk, and avoid writing these files to the |
| 5909 |
source directory in a split build. |
| 5910 |
|
| 5911 |
This should fix a problem with split builds using Solaris’ dmake |
| 5912 |
(see bug #110289). |
| 5913 |
|
| 5914 |
tests/mktests.sh probably doesn’t work right if any of its argument |
| 5915 |
paths have spaces in their names, but that’s a separate issue. |
| 5916 |
|
| 5917 |
* tests/local.mk (tests/mktests.stamp): Don’t change directory or |
| 5918 |
rewrite the contents of $(AUTOCONF_FILES). |
| 5919 |
(TESTSUITE_GENERATED_AT): Remove $(srcdir) prefix. |
| 5920 |
Add tests/acerlang.at (accidentally omitted). |
| 5921 |
(CLEANFILES): Add $(TESTSUITE_GENERATED_AT), mktests.stamp and mktests.tmp. |
| 5922 |
(MAINTAINERCLEANFILES): Don’t set. |
| 5923 |
(EXTRA_DIST): Include only the hand-written .at files, $(TESTSUITE_HAND_AT). |
| 5924 |
|
| 5925 |
* configure.ac: Run AC_PROG_AWK, if for some reason AM_INIT_AUTOMAKE |
| 5926 |
hasn’t done it for us. |
| 5927 |
* tests/mktests.sh: Use $AWK if set in environment. Shell script linting. |
| 5928 |
|
| 5929 |
2020-08-18 Zack Weinberg <[email protected]> |
| 5930 |
|
| 5931 |
autoreconf: mention intltoolize and gtkdocize in --help output. |
| 5932 |
|
| 5933 |
2020-08-18 Eli Schwartz <[email protected]> |
| 5934 |
|
| 5935 |
autoreconf: integrate intltoolize into the standard configuration tools |
| 5936 |
In addition to the gtkdocize tool, gtk-related software may utilize the |
| 5937 |
IT_PROG_INTLTOOL macro in order to require the intltoolize tool. So too |
| 5938 |
here should the tool be run by autoreconf itself, in order to guarantee |
| 5939 |
its initialization via the unified frontend for all autotools projects. |
| 5940 |
|
| 5941 |
autoreconf: integrate gtkdocize into the standard reconfiguration tools |
| 5942 |
When the GTK_DOC_CHECK macro is in use, this flags a given configure.ac |
| 5943 |
as belonging the the common class of gtk-related software that requires |
| 5944 |
the gtkdocize tool to be run before autoreconf, in order to install the |
| 5945 |
gtk-doc macro and Makefile fragment. Make this easier to accomplish via |
| 5946 |
teaching autoreconf how to detect and run this tool automatically; this |
| 5947 |
gets us one step closer to a world in which `autoreconf -fi` on its own |
| 5948 |
is enough to bootstrap any autotools project into a configurable state. |
| 5949 |
|
| 5950 |
2020-08-18 Zack Weinberg <[email protected]> |
| 5951 |
|
| 5952 |
Warn if AC_INIT or AC_OUTPUT are missing from configure.ac (#107986) |
| 5953 |
It is almost always incorrect for a configure script to omit either |
| 5954 |
AC_INIT or AC_OUTPUT. Issue warnings in the ‘syntax’ category for |
| 5955 |
this. |
| 5956 |
|
| 5957 |
The implementation is, unfortunately, a bit of a kludge. To check for |
| 5958 |
the _absence_ of a macro invocation, we can use m4_provide_if inside a |
| 5959 |
m4_wrap hook. However, if we activate the m4_wrap hook directly from |
| 5960 |
general.m4, we get spurious warnings at freeze time. We also get |
| 5961 |
warnings whenever a script that’s missing AC_INIT and/or AC_OUTPUT |
| 5962 |
is *traced*, which means we get double warnings from autoconf, and |
| 5963 |
autoheader and aclocal complain about it too, which seems unnecessary. |
| 5964 |
|
| 5965 |
A clean way to deal with this would be to make the hook look for a |
| 5966 |
special macro that’s defined only when autoconf (the program) is |
| 5967 |
invoked without any --trace arguments. Unfortunately, autom4te |
| 5968 |
doesn’t pass --define down to M4, and changing that would involve |
| 5969 |
coordinating with Automake (the project), so instead I’ve gone for the |
| 5970 |
kludge: a new file lib/autoconf/trailer.m4 that calls m4_wrap. This |
| 5971 |
file is *not* included in autoconf.m4f, but it’s installed, and it’s |
| 5972 |
added to the m4 invocation by autoconf (the program) only when not |
| 5973 |
tracing. (It still uses m4_wrap, because we pass it to m4 *before* |
| 5974 |
configure.ac, because otherwise we get nonsense locations for any |
| 5975 |
*other* diagnostics coming out of this autoconf invocation. I don’t |
| 5976 |
know why.) |
| 5977 |
|
| 5978 |
The additional checks in autoreconf are intended to make sure that if |
| 5979 |
autoreconf skips a directory entirely, you get told why. |
| 5980 |
|
| 5981 |
Lots of tests in the testsuite didn’t bother with AC_OUTPUT, and |
| 5982 |
somewhat fewer didn’t bother with AC_INIT; where possible I just added |
| 5983 |
them. |
| 5984 |
|
| 5985 |
Suggested by David A. Wheeler, who submitted a patch, but I didn’t |
| 5986 |
wind up using any of his code. (His implementation used an extra |
| 5987 |
tracing pass, only checked for a missing AC_INIT, and invented a new |
| 5988 |
command-line option to turn off this specific warning. I thought this |
| 5989 |
was tidier overall, despite the kludge.) |
| 5990 |
|
| 5991 |
* lib/autoconf/general.m4 (_AC_FINALIZE): New macro: code to be run |
| 5992 |
when generating configure, after the entire configure.ac is |
| 5993 |
processed. Currently only checks that AC_INIT and AC_OUTPUT were |
| 5994 |
called at some point, issuing syntax-category warnings if not. |
| 5995 |
(AC_INIT, AC_OUTPUT): m4_provide self. |
| 5996 |
* lib/autoconf/trailer.m4: New file that just calls m4_wrap([_AC_FINALIZE]). |
| 5997 |
* lib/local.mk: Install new file. |
| 5998 |
|
| 5999 |
* bin/autoconf.as: Add trailer.m4 to the final invocation of autom4te, |
| 6000 |
but only when not tracing. |
| 6001 |
* bin/autoreconf.in (autoreconf_current_directory): Distinguish in |
| 6002 |
diagnostics between “directory skipped because it doesn’t have a |
| 6003 |
configure.ac or configure.in” (e.g. Cygnus configure) and “directory |
| 6004 |
has a configure.ac but it doesn’t appear to be autoconf input.” |
| 6005 |
|
| 6006 |
* tests/*.at: Fix all tests affected by the new warnings. |
| 6007 |
|
| 6008 |
2020-08-18 Zack Weinberg <[email protected]> |
| 6009 |
|
| 6010 |
Trim whitespace from arguments of AC_INIT (#107986) |
| 6011 |
Specifically, all five arguments, if present, are passed through |
| 6012 |
m4_normalize before doing anything else with them. For instance, |
| 6013 |
AC_INIT([ GNU Hello ], [1.0]) is now equivalent to |
| 6014 |
AC_INIT([GNU Hello], [1.0]). |
| 6015 |
|
| 6016 |
As a consequence, newlines in the arguments to AC_INIT are now |
| 6017 |
converted to spaces and no longer trigger warnings. |
| 6018 |
|
| 6019 |
Also, diagnose inappropriate contents of the fourth and fifth |
| 6020 |
arguments as well as the first three. The fifth argument should be |
| 6021 |
“usable as-is in single- and double-quoted strings and quoted and |
| 6022 |
unquoted here-docs,” like the first three. (This is the check |
| 6023 |
performed by _AC_INIT_LITERAL.) The fourth argument (TARNAME) is used |
| 6024 |
to construct filenames, so apply an even more stringent test, namely |
| 6025 |
AS_LITERAL_WORD_IF. |
| 6026 |
|
| 6027 |
Suggested by David A. Wheeler, who submitted a patch, but I didn’t |
| 6028 |
wind up using any of his code. |
| 6029 |
|
| 6030 |
* lib/autoconf/general.m4 (_AC_INIT_LITERAL): Not necessary to check |
| 6031 |
for newlines anymore. |
| 6032 |
(_AC_INIT_PACKAGE): Pass all five arguments through m4_normalize |
| 6033 |
before doing anything else with them. New warning: apply |
| 6034 |
_AC_INIT_LITERAL to fifth argument (URL). New warning: complain |
| 6035 |
if fourth argument (TARNAME) is not a literal word according to |
| 6036 |
AS_LITERAL_WORD_IF. Simplify a conditional by using m4_default. |
| 6037 |
|
| 6038 |
* tests/base.at (AC_INIT with unusual version strings): Adjust to |
| 6039 |
match above changes, add more subtests. |
| 6040 |
|
| 6041 |
2020-08-06 Paul Eggert <[email protected]> |
| 6042 |
|
| 6043 |
Avoid one-argument ‘main’ |
| 6044 |
* tests/autotest.at (C unit tests, C unit tests (EXEEXT)): |
| 6045 |
Avoid ‘int main (int argc)’ as the C standard says this |
| 6046 |
is not portable. |
| 6047 |
|
| 6048 |
Pacify -Werror in two places |
| 6049 |
Although this cannot easily be done in general, there are a couple |
| 6050 |
of places where it’s easy. |
| 6051 |
* lib/autoconf/c.m4 (AC_LANG_INT_SAVE (C)): |
| 6052 |
Change ‘()’ to ‘(void)’ to pacify picky compilers. |
| 6053 |
Problem reported by Vincent Lefevre in: |
| 6054 |
https://lists.gnu.org/r/autoconf-patches/2020-08/msg00000.html |
| 6055 |
(AC_C_INLINE): Likewise. |
| 6056 |
|
| 6057 |
* lib/autoconf/c.m4: Bring XL C comments up to date. |
| 6058 |
|
| 6059 |
* TODO: Add -Werror support. |
| 6060 |
|
| 6061 |
2020-08-05 Zack Weinberg <[email protected]> |
| 6062 |
|
| 6063 |
AT_CHECK_MACRO: Preserve config.log and config.status from run 1. |
| 6064 |
AT_CHECK_MACRO runs a test configure script twice and looks for |
| 6065 |
differences in the results. If something goes wrong, it’ll be helpful |
| 6066 |
for debugging to preserve the config.log and config.status files from |
| 6067 |
both runs. |
| 6068 |
|
| 6069 |
* tests/local.at (AT_CHECK_MACRO): Also copy config.log and |
| 6070 |
config.status to config-log.$at_run and config-status.$at_run |
| 6071 |
respectively. |
| 6072 |
|
| 6073 |
2020-08-04 Zack Weinberg <[email protected]> |
| 6074 |
|
| 6075 |
Only probe C++ language features, not library, for speed (#110285) |
| 6076 |
The test programs used by _AC_PROG_CXX_CXX98 and _AC_PROG_CXX_CXX11 |
| 6077 |
can take several seconds to compile, even on current-generation CPUs. |
| 6078 |
Each of them may be test-compiled up to six times as the configure |
| 6079 |
script searches for appropriate command-line switches. This is |
| 6080 |
reported to cancel out all of the other performance gains made since |
| 6081 |
2.69. |
| 6082 |
|
| 6083 |
Replace these programs with simpler ones that do not exercise the C++ |
| 6084 |
standard *library* and can be compiled in less than a second each. |
| 6085 |
On my computer, which is quite new, the minimal configure script |
| 6086 |
|
| 6087 |
AC_INIT |
| 6088 |
AC_PROG_CXX |
| 6089 |
|
| 6090 |
executes in 4.5 seconds (wall-clock) before this change and 0.5 |
| 6091 |
seconds after. |
| 6092 |
|
| 6093 |
* lib/autoconf/c.m4 (_AC_CXX_CXX98_TEST_HEADER, _AC_CXX_CXX98_TEST_BODY): |
| 6094 |
Rewrite to test only C++ 1998 language features, not library features. |
| 6095 |
(_AC_CXX_CXX11_TEST_HEADER, _AC_CXX_CXX11_TEST_BODY): |
| 6096 |
Similarly for C++ 2011. |
| 6097 |
* doc/autoconf.texi (AC_PROG_CXX): Document this change. |
| 6098 |
|
| 6099 |
2020-08-04 Zack Weinberg <[email protected]> |
| 6100 |
|
| 6101 |
Filter out _AST_FEATURES when comparing environment state. (#110283) |
| 6102 |
ksh93 uses an environment variable called _AST_FEATURES to communicate |
| 6103 |
with subshell instances of itself. Its value may change at any time |
| 6104 |
so AT_CHECK_ENV and AT_CONFIG_CMP should ignore it. |
| 6105 |
|
| 6106 |
This was responsible for many spurious testsuite failures on |
| 6107 |
OpenIndiana. Problem reported by Bob Friesenhahn. |
| 6108 |
|
| 6109 |
* tests/local.at (_AT_CHECK_ENV, AT_CONFIG_CMP): Add _AST_FEATURES to |
| 6110 |
list of variables set by shells to unstable values. |
| 6111 |
|
| 6112 |
2020-08-04 Zack Weinberg <[email protected]> |
| 6113 |
|
| 6114 |
Partially revert e54e3f90: restore use of $(MAKE) in error message. |
| 6115 |
In commit 14d58bfd, the error message printed by the |
| 6116 |
‘abort-due-to-no-makefile’ rule in GNUmakefile was changed to refer to |
| 6117 |
the value of ‘$(MAKE)’ instead of a literal ‘make’. A subsequent |
| 6118 |
‘make fetch’ (e54e3f90) clobbered this. Put it back. |
| 6119 |
|
| 6120 |
2020-08-02 Paul Eggert <[email protected]> |
| 6121 |
|
| 6122 |
Expect OpenIndiana test failure |
| 6123 |
On OpenIndiana, Perl file locking does not work atop NFS. |
| 6124 |
* tests/tools.at (autom4te cache locking): |
| 6125 |
Expect this test to file if Perl file locking does not work. |
| 6126 |
|
| 6127 |
Work around ksh93 bug that broke config.status |
| 6128 |
* lib/autoconf/status.m4 (_AC_OUTPUT_HEADER): |
| 6129 |
Use ‘>&1’, which is a no-op, to work around a bug in ksh93 |
| 6130 |
Version JM 93t+ 2010-03-05 as used in OpenIndiana. |
| 6131 |
The bug causes ‘printf "foo"’ to mistakenly succeed in |
| 6132 |
some cases even though the underlying ‘write’ syscall fails. |
| 6133 |
The ‘>&1’ causes the printf to fail, as it should. |
| 6134 |
|
| 6135 |
2020-08-01 Paul Eggert <[email protected]> |
| 6136 |
|
| 6137 |
Fix regression: autotools and whitespace in file names |
| 6138 |
* bin/autoheader.in (templates_for_header): Fix previous change by |
| 6139 |
not warning about file names with shell metacharacters, as this is |
| 6140 |
OK for command-line file names. |
| 6141 |
|
| 6142 |
make fetch |
| 6143 |
|
| 6144 |
Fix regression that broke Automake ‘make check’ |
| 6145 |
Problem reported by Ken Moffat (sr#110287); the problem was |
| 6146 |
introduced in 2016-12-21T16:15:[email protected]. |
| 6147 |
* bin/autoheader.in (templates_for_header): |
| 6148 |
When generating warnings about symbols lacking templates, |
| 6149 |
downgrade template read failure from a fatal error to a warning. |
| 6150 |
Also, don’t even try to read from a template file whose name has |
| 6151 |
shell metavariables (which Autoconf 2.50 withdrew support for); |
| 6152 |
just warn about that, too. These changes cause the Automake |
| 6153 |
tests to merely generate warnings that are ignored, instead |
| 6154 |
of failing. |
| 6155 |
* doc/autoconf.texi (Configuration Files, Configuration Headers) |
| 6156 |
(Configuration Commands, Configuration Links): |
| 6157 |
Also document here that the file names should not contain |
| 6158 |
shell metacharacters, to make this constraint more obvious. |
| 6159 |
|
| 6160 |
2020-07-31 Paul Eggert <[email protected]> |
| 6161 |
|
| 6162 |
* doc/autoconf.texi: Tweak wording. |
| 6163 |
|
| 6164 |
2020-07-31 Bruno Haible <[email protected]> |
| 6165 |
|
| 6166 |
doc: Update some more macro descriptions. |
| 6167 |
* doc/autoconf.texi (Particular Functions): Add a remark about AC_FUNC_MMAP. |
| 6168 |
Clarify AC_FUNC_STRCOLL. |
| 6169 |
|
| 6170 |
doc: Refer to Gnulib where it makes sense. |
| 6171 |
* doc/autoconf.texi (Particular Functions): Point to Gnulib wherever Gnulib has |
| 6172 |
more workarounds than mentioned for the particular macro, namely for |
| 6173 |
AC_FUNC_CHOWN, AC_FUNC_FSEEKO, AC_FUNC_GETGROUPS, AC_FUNC_GETMNTENT, |
| 6174 |
AC_FUNC_MBRTOWC, AC_FUNC_STRERROR_R, AC_FUNC_STRTOLD. |
| 6175 |
|
| 6176 |
doc: Refer to Gnulib instead of asking clients to provide replacement code. |
| 6177 |
* doc/autoconf.texi (Particular Functions): Point to Gnulib for all macros that |
| 6178 |
may call AC_LIBOBJ, namely AC_FUNC_ALLOCA, AC_FUNC_MALLOC, AC_FUNC_OBSTACK, |
| 6179 |
AC_FUNC_REALLOC, AC_FUNC_STRNLEN. |
| 6180 |
|
| 6181 |
2020-07-30 Paul Eggert <[email protected]> |
| 6182 |
|
| 6183 |
Remove obsolete Cray support |
| 6184 |
Gnulib removed this recently, and we should be consistent. |
| 6185 |
* doc/autoconf.texi (Autoheader Macros): |
| 6186 |
Use a more up-to-date example. |
| 6187 |
* lib/autoconf/functions.m4 (CRAY_STACKSEG_END): Remove. |
| 6188 |
This is backported from the following Gnulib patch: |
| 6189 |
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=41a2d446c7984f8f39e3eeca40c6d30630969c10 |
| 6190 |
|
| 6191 |
2020-07-27 Zack Weinberg <[email protected]> |
| 6192 |
|
| 6193 |
Simplify Makefiles embedded in autotest.at |
| 6194 |
This is a follow-up for the various patches to address problems with |
| 6195 |
tests 221 and 222 with various non-GNU make implementations. We’re |
| 6196 |
not trying to exercise Make at all in these tests; it’s just a |
| 6197 |
convenient way to invoke the compiler found by AC_PROG_CC on a test |
| 6198 |
program. The tests will be more reliable if we minimize the number of |
| 6199 |
Make features we are using. So: no implicit rules at all, and no |
| 6200 |
intermediates. Generate ‘testprog’ directly from ‘testprog.c’. |
| 6201 |
|
| 6202 |
Also copy from fortran.at a more thorough set of substitution |
| 6203 |
variables for the compilation command, mainly for consistency, |
| 6204 |
and don’t use Makefile variables, again for consistency with |
| 6205 |
fortran.at. |
| 6206 |
|
| 6207 |
(This is also, theoretically, faster since we’re only invoking the |
| 6208 |
compiler driver once, but it’s probably not enough of a difference to |
| 6209 |
measure.) |
| 6210 |
|
| 6211 |
2020-07-22 Paul Eggert <[email protected]> |
| 6212 |
|
| 6213 |
Port AC_F77_LIBRARY_LDFLAGS to oneAPI HPC Toolkit |
| 6214 |
Problem reported by Bill Dieter in: |
| 6215 |
https://lists.gnu.org/r/bug-autoconf/2020-07/msg00089.html |
| 6216 |
* lib/autoconf/fortran.m4 (_AC_FC_LIBRARY_LDFLAGS): |
| 6217 |
Defend against ‘clang -mllvm -loopopt=0’. |
| 6218 |
|
| 6219 |
2020-07-20 Paul Eggert <[email protected]> |
| 6220 |
|
| 6221 |
Don’t assume plain ‘make’ in C unit tests |
| 6222 |
Problem reported by Bruno Haible in: |
| 6223 |
https://savannah.gnu.org/support/?110273#comment6 |
| 6224 |
* lib/autoconf/general.m4 (_AC_ARG_VAR_VALIDATE): |
| 6225 |
* tests/autotest.at (C unit tests, C unit tests (EXEEXT)): |
| 6226 |
Prefer ‘${MAKE-make}’ to ‘make’ in shell code. |
| 6227 |
|
| 6228 |
Prefer ‘$(MAKE)’ to ‘make’ in Makefiles |
| 6229 |
* GNUmakefile (abort-due-to-no-makefile): |
| 6230 |
* Makefile.am (check-coverage-report): |
| 6231 |
Prefer ‘$(MAKE)’ to ‘make’ in diagnostics. |
| 6232 |
|
| 6233 |
2020-07-17 Paul Eggert <[email protected]> |
| 6234 |
|
| 6235 |
Port build procedure to AIX 7.1 |
| 6236 |
* lib/freeze.mk (MY_AUTOM4TE, build_libdir, m4f_dependencies): |
| 6237 |
Prefer ‘$(top_build_prefix)’ to ‘$(top_builddir)/’. |
| 6238 |
The difference matters on AIX 7.1, where ‘make’ doesn’t know that |
| 6239 |
bin/autom4te and ./bin/autom4te are the same file, |
| 6240 |
and gets confused about dependencies without this change. |
| 6241 |
‘$(top_build_prefix)bin/autom4te’ expands to ‘bin/automake’ |
| 6242 |
whereas ‘$(top_builddir)/bin/autom4te’ expands to |
| 6243 |
‘./bin/automake’, and the former works where the latter doesn’t. |
| 6244 |
|
| 6245 |
Test AC_FC_LINE_LENGTH only to 250 columns |
| 6246 |
* NEWS, doc/autoconf.texi, lib/autoconf/fortran.m4: |
| 6247 |
Document 250, not 254. |
| 6248 |
* tests/fortran.at (AC_FC_LINE_LENGTH): Test lines with 250 |
| 6249 |
columns not 253, since Oracle Studio 12.6 Fortran 95 8.8 |
| 6250 |
2017/05/30 goes up only to 250. |
| 6251 |
|
| 6252 |
Fix ${VAR-NONWORD} bugs |
| 6253 |
* lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): |
| 6254 |
* lib/autoconf/programs.m4 (AC_FUNC_SELECT_ARGTYPES): |
| 6255 |
* lib/autotest/general.m4 (AT_INIT): |
| 6256 |
Rewrite to avoid ${VAR-VALUE} where VALUE is not a shell word. |
| 6257 |
|
| 6258 |
2020-07-16 Paul Eggert <[email protected]> |
| 6259 |
|
| 6260 |
Document that VAL must be a word in ${VAR-VALUE} |
| 6261 |
* doc/autoconf.texi (Shell Substitutions): |
| 6262 |
Document that in ${VAR-VALUE}, VALUE must be a shell word, |
| 6263 |
and omit examples implying otherwise. |
| 6264 |
|
| 6265 |
2020-07-16 Zack Weinberg <[email protected]> |
| 6266 |
|
| 6267 |
tests/autotest.at: don’t use suffix rules to generate executables |
| 6268 |
In two tests, when @EXEEXT@ is empty, we were generating Makefiles |
| 6269 |
containing suffix rules with only one explicit suffix, e.g. |
| 6270 |
|
| 6271 |
.o: |
| 6272 |
$(CC) -o $@ $^ |
| 6273 |
|
| 6274 |
Solaris 10’s ‘dmake’ does not understand this as a rule to create |
| 6275 |
‘foo’ from ‘foo.o’. That’s not the point of the tests, so use |
| 6276 |
ordinary per-rule commands to link the executables in these tests |
| 6277 |
instead. |
| 6278 |
|
| 6279 |
Partially addresses #110267. |
| 6280 |
|
| 6281 |
2020-07-16 Zack Weinberg <[email protected]> |
| 6282 |
|
| 6283 |
tests/local.at: improve sed portability |
| 6284 |
Solaris 10 /bin/sed does not support * after \( … \), only after |
| 6285 |
subexpressions that match a _single character_. |
| 6286 |
|
| 6287 |
Partially addresses #110267. Problem reported by Dagobert Michelsen. |
| 6288 |
|
| 6289 |
* tests/local.at (AT_CHECK_M4): Do not use star after parenthesized |
| 6290 |
subexpression in sed s/// commands. |
| 6291 |
|
| 6292 |
2020-07-16 Zack Weinberg <[email protected]> |
| 6293 |
|
| 6294 |
Revise documentation for AC_PROG_LEX. |
| 6295 |
- Better explanation of the additional tests performed by this macro, |
| 6296 |
once the tool has been located. |
| 6297 |
|
| 6298 |
- Update advice re using Flex to generate a bundled lex.yy.c. |
| 6299 |
|
| 6300 |
- Remove text describing a bug in Automake that has long since been |
| 6301 |
corrected. |
| 6302 |
|
| 6303 |
2020-07-16 Paul Eggert <[email protected]> |
| 6304 |
|
| 6305 |
AC_PROG_LEX no longer sets LEXLIB for yywrap |
| 6306 |
Suggested by Zack Weinberg in: |
| 6307 |
https://lists.gnu.org/r/autoconf-patches/2020-07/msg00016.html |
| 6308 |
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): |
| 6309 |
Define yywrap too. |
| 6310 |
|
| 6311 |
Fix AC_PROG_LEX regression |
| 6312 |
Problem reported by Ross Burton in: |
| 6313 |
https://savannah.gnu.org/support/?110269 |
| 6314 |
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): |
| 6315 |
If tests indicate that LEX or LEXLIB does not work, set LEX to ":" |
| 6316 |
and LEXLIB empty, instead of failing out of 'configure' entirely. |
| 6317 |
|
| 6318 |
2020-07-15 Paul Eggert <[email protected]> |
| 6319 |
|
| 6320 |
Document AC_EGREP* better |
| 6321 |
From a suggestion by Bruno Haible in: |
| 6322 |
https://lists.gnu.org/archive/html/bug-autoconf/2017-02/msg00001.html |
| 6323 |
|
| 6324 |
2020-07-15 Bruno Haible <[email protected]> |
| 6325 |
|
| 6326 |
doc: More clarifications regarding --host and --build. |
| 6327 |
* doc/autoconf.texi (Specifying Target Triplets): Describe the effects |
| 6328 |
of --host in more detail. Don't recommend to specify --build when |
| 6329 |
specifying --host. Add another example regarding MinGW. |
| 6330 |
|
| 6331 |
2020-07-15 Paul Eggert <[email protected]> |
| 6332 |
|
| 6333 |
Revert mistaken patch for Bison |
| 6334 |
Problem reported by Bruno Haible in: |
| 6335 |
https://savannah.gnu.org/support/?110266 |
| 6336 |
* lib/autoconf/programs.m4 (AC_PROG_YACC): |
| 6337 |
Go back to using bison -y instead of bison -o y.tab.c. |
| 6338 |
|
| 6339 |
Use more-modern cross-compilation examples |
| 6340 |
* doc/autoconf.texi (Generic Programs) |
| 6341 |
(Specifying Target Triplets, Transformation Examples) |
| 6342 |
(Hosts and Cross-Compilation): Use more-modern examples. |
| 6343 |
|
| 6344 |
Revert mistaken patch for Wine |
| 6345 |
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_CROSS): |
| 6346 |
Revert patch trying to cater to GNU/Linux builds |
| 6347 |
for Wine. They should use --build as well as --host. |
| 6348 |
Problem reported by Bruno Haible in: |
| 6349 |
https://savannah.gnu.org/support/?110268 |
| 6350 |
|
| 6351 |
2020-07-14 Nick Alcock <[email protected]> |
| 6352 |
|
| 6353 |
NEWS: don’t describe Automake 1.13 as “upcoming.” |
| 6354 |
Automake 1.13 was released eight years ago. The current version is |
| 6355 |
1.16.2. |
| 6356 |
|
| 6357 |
2020-07-13 Paul Eggert <[email protected]> |
| 6358 |
|
| 6359 |
* doc/autoconf.texi: Fix mishandling of `. |
| 6360 |
|
| 6361 |
make fetch |
| 6362 |
|
| 6363 |
2020-07-12 Zack Weinberg <[email protected]> |
| 6364 |
|
| 6365 |
Formally obsolete AC_CONFIG_HEADER (#105403) |
| 6366 |
This macro was replaced by AC_CONFIG_HEADERS many years ago (before |
| 6367 |
the beginning of the VCS history) and isn’t even documented, but we |
| 6368 |
never got around to making autoupdate notice it. Problem reported |
| 6369 |
*in 2006* by [email protected]. |
| 6370 |
|
| 6371 |
There was one use of AC_CONFIG_HEADER in our source tree, which is |
| 6372 |
converted. Also, to avoid confusing people reading old NEWS or TODO |
| 6373 |
entries, all mentions of AC_CONFIG_HEADER therein are also replaced |
| 6374 |
with AC_CONFIG_HEADERS. |
| 6375 |
|
| 6376 |
* lib/autoconf/status.m4 (AC_CONFIG_HEADER): Make an AU_ALIAS for |
| 6377 |
AC_CONFIG_HEADERS. |
| 6378 |
|
| 6379 |
2020-07-12 Zack Weinberg <[email protected]> |
| 6380 |
|
| 6381 |
Add AC_PROG_EGREP to AU_DEFUN for AC_HEADER_STDC (#110215) |
| 6382 |
AC_HEADER_STDC used to use AC_EGREP_CPP, and therefore had the side |
| 6383 |
effect of AC_REQUIRE([AC_PROG_EGREP]). In 2.70 AC_HEADER_STDC is an |
| 6384 |
AU_DEFUN and, before this change, the replacement didn’t invoke |
| 6385 |
AC_PROG_EGREP, which broke configure scripts that assumed $EGREP would |
| 6386 |
be set. Problem reported by Ross Burton. |
| 6387 |
|
| 6388 |
* lib/autoconf/headers.m4 (AU::AC_HEADER_STDC): Also invoke AC_PROG_EGREP. |
| 6389 |
|
| 6390 |
2020-07-12 Tom <[email protected]> |
| 6391 |
|
| 6392 |
Fix logic error in _AC_PROG_LEX_YYTEXT_DECL (#109320) |
| 6393 |
The search for the appropriate value for @LEXLIB@ did not distinguish |
| 6394 |
correctly between success (‘break’ out of a shell for loop, having set |
| 6395 |
$ac_cv_lib_lex) and failure (normal termination of the loop, value in |
| 6396 |
$ac_cv_lib_lex is garbage). Bug report and original patch by |
| 6397 |
Tom <[email protected]> with refinements by Zack Weinberg. |
| 6398 |
|
| 6399 |
* lib/autoconf/programs.m4 (_AC_PROG_LEX_YYTEXT_DECL): |
| 6400 |
Error out if we cannot find the library that (f)lex scanners |
| 6401 |
need to be linked against, instead of continuing with @LEXLIB@ |
| 6402 |
set to the empty string. |
| 6403 |
|
| 6404 |
2020-07-11 Zack Weinberg <[email protected]> |
| 6405 |
|
| 6406 |
make fetch |
| 6407 |
URLs in gnu-oids.texi are now consistent with standards.texi. |
| 6408 |
|
| 6409 |
2020-07-10 Zack Weinberg <[email protected]> |
| 6410 |
|
| 6411 |
Update hyperlinks in the manual and README-hacking. |
| 6412 |
Lots of http:// -> https:// conversions; |
| 6413 |
refer to XZ Utils instead of the obsolete LZMA Utils; |
| 6414 |
remove dead link to dbaspot.com; |
| 6415 |
replace mention of -fmudflap with -fsanitize= |
| 6416 |
and add a proper cross-reference to the GCC manual for that. |
| 6417 |
|
| 6418 |
2020-07-10 Zack Weinberg <[email protected]> |
| 6419 |
|
| 6420 |
Update links in COPYING, COPYINGv3, and COPYING.EXCEPTION. |
| 6421 |
- COPYINGv3 now exactly matches |
| 6422 |
https://www.gnu.org/licenses/gpl-3.0.txt |
| 6423 |
as of 2020-07-10. |
| 6424 |
The only change was to turn a bunch of http:// URLs |
| 6425 |
into https:// URLs. |
| 6426 |
|
| 6427 |
- COPYING now exactly matches |
| 6428 |
https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt |
| 6429 |
as of 2020-07-10 |
| 6430 |
except that the FSF’s old postal address has been deleted |
| 6431 |
and <https://fsf.org/> inserted |
| 6432 |
(consistent with COPYINGv3). |
| 6433 |
Besides the above, the only change was to whitespace. |
| 6434 |
|
| 6435 |
- A typo in a URL in COPYING.EXCEPTION was corrected. |
| 6436 |
|
| 6437 |
2020-07-10 Paul Eggert <[email protected]> |
| 6438 |
|
| 6439 |
Document AS_IF(..., ..., [[]]) glitch |
| 6440 |
* doc/autoconf.texi (Common Shell Constructs): |
| 6441 |
Note the if-false arg problem reported by Jannick in: |
| 6442 |
https://lists.gnu.org/r/autoconf/2020-03/msg00045.html |
| 6443 |
|
| 6444 |
Fix ac_compiler_gnu bug |
| 6445 |
Problem and fix reported by Jannick in: |
| 6446 |
https://lists.gnu.org/r/autoconf/2020-03/msg00045.html |
| 6447 |
except that I omitted the comment, which I thought unnecessary. |
| 6448 |
* lib/autoconf/lang.m4 (_AC_LANG_COMPILER_GNU): Set |
| 6449 |
ac_compiler_gnu regardless of whether result was from cache. |
| 6450 |
|
| 6451 |
2020-07-10 Zack Weinberg <[email protected]> |
| 6452 |
|
| 6453 |
NEWS: add notes about known breakage due to pickier macros. |
| 6454 |
These are all cases where the offending configure script or |
| 6455 |
third-party macro was always incorrect, but autoconf 2.69 let you get |
| 6456 |
away with it. |
| 6457 |
|
| 6458 |
2020-07-09 Zack Weinberg <[email protected]> |
| 6459 |
|
| 6460 |
NEWS: mention that AS_INIT no longer embeds full paths to source files. |
| 6461 |
(Change made in c6daae41276a49b52a9d5e2f70c95651364ed619.) |
| 6462 |
|
| 6463 |
Also reorder some of the NEWS entries more logically. |
| 6464 |
|
| 6465 |
2020-07-05 Luke Mewburn <[email protected]> |
| 6466 |
|
| 6467 |
AS_INIT: basename __file__ |
| 6468 |
Fix AS_INIT to encode the basename of __file__ |
| 6469 |
instead of the full path to the source directory. |
| 6470 |
Allows for reproducible builds. |
| 6471 |
|
| 6472 |
2020-07-03 Paul Eggert <[email protected]> |
| 6473 |
|
| 6474 |
Fix AC_CHECK_LIB quoting bug |
| 6475 |
Problem reported by Bert Wesarg in: |
| 6476 |
https://lists.gnu.org/archive/html/autoconf/2016-04/msg00020.html |
| 6477 |
* lib/autoconf/libs.m4 (AC_CHECK_LIB): Fix quoting bug. |
| 6478 |
* tests/semantics.at (AC_CHECK_LIB): Add a test for the bug. |
| 6479 |
|
| 6480 |
2020-06-30 Paul Eggert <[email protected]> |
| 6481 |
|
| 6482 |
* tests/local.at: Fix space-tab problems. |
| 6483 |
|
| 6484 |
2020-06-30 Zack Weinberg <[email protected]> |
| 6485 |
|
| 6486 |
Consistently expand macros in whitespace-separated lists. |
| 6487 |
Several of the most commonly used Autoconf macros (starting with |
| 6488 |
AC_CHECK_FUNCS and AC_CHECK_HEADERS) take a whitespace-separated list |
| 6489 |
of symbols as their primary argument. It would abstractly be best if |
| 6490 |
this list were _not_ subject to M4 macro expansion, in case there’s a |
| 6491 |
collision between a M4 macro name and something to be looked for. |
| 6492 |
However, we have historically not been careful about this, and there’s |
| 6493 |
been reports of configure scripts using ‘dnl’ to write comments inside |
| 6494 |
the list. The AS_LITERAL_IF optimizations added to AC_CHECK_FUNCS and |
| 6495 |
AC_CHECK_HEADERS since 2.69 broke some of those scripts with bizarre |
| 6496 |
shell syntax errors. |
| 6497 |
|
| 6498 |
Also, the macro expansion behavior is not consistent among all of the |
| 6499 |
macros that take whitespace-separated lists, nor is it consistent |
| 6500 |
between autoconf and autoheader. |
| 6501 |
|
| 6502 |
Address this by introducing a new m4sugar macro, currently called |
| 6503 |
‘m4_validate_w’ (I’m open to suggestions for better names). Here’s |
| 6504 |
its documentation comment: |
| 6505 |
|
| 6506 |
| m4_validate_w(STRING): Expands into m4_normalize(m4_expand([STRING])), |
| 6507 |
| but if that is not the same as just m4_normalize([STRING]), |
| 6508 |
| issue a warning. |
| 6509 |
|
| 6510 |
The text of the warning is |
| 6511 |
|
| 6512 |
| configure.ac:N: warning: whitespace-separated-list contains macros; |
| 6513 |
| configure.ac:N: in a future version of Autoconf they will not be expanded |
| 6514 |
|
| 6515 |
If the unexpanded form of the string contains the token ‘dnl’ then |
| 6516 |
there’s an additional line: |
| 6517 |
|
| 6518 |
| configure.ac:N: note: ‘dnl’ is a macro |
| 6519 |
|
| 6520 |
All of the public macros that take a whitespace-separated list of |
| 6521 |
symbols are changed to pass that argument through m4_validate_w before |
| 6522 |
doing anything else with it, and the test suite is updated to verify |
| 6523 |
consistent behavior for every last one of them. |
| 6524 |
|
| 6525 |
This addresses Savannah issues #110210 and #110211, and the harmless |
| 6526 |
but annoying autoheader behavior described at |
| 6527 |
https://lists.gnu.org/archive/html/bug-autoconf/2018-02/msg00005.html . |
| 6528 |
|
| 6529 |
In order to avoid expanding relatively expensive m4sugar macros |
| 6530 |
multiple times per top-level macro invocation, several of the affected |
| 6531 |
Autoconf macros are restructured along the same lines as I did for |
| 6532 |
AC_REPLACE_FUNCS in the previous patch. |
| 6533 |
|
| 6534 |
* lib/m4sugar/m4sugar.m4 (m4_validate_w): New macro. |
| 6535 |
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE) |
| 6536 |
(AC_REPLACE_FUNCS) |
| 6537 |
* lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIRS, AC_CHECK_FILES) |
| 6538 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE) |
| 6539 |
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Pass $1 through |
| 6540 |
m4_validate_w before use. |
| 6541 |
|
| 6542 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Refactor with helpers |
| 6543 |
_AC_CHECK_HEADERS_ONE_U, _AC_CHECK_HEADERS_ONE_S, _AC_CHECK_HEADERS_ONE_C. |
| 6544 |
(AC_CHECK_HEADERS_ONCE): Eliminate _AC_CHECK_HEADERS_ONCE. |
| 6545 |
(AC_CHECK_INCLUDES_DEFAULT): Don’t use _AC_CHECK_HEADERS_ONCE. |
| 6546 |
|
| 6547 |
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Refactor with helpers |
| 6548 |
_AC_CHECK_FUNCS_ONE_U, _AC_CHECK_FUNCS_ONE_S, _AC_CHECK_FUNCS_ONE_C. |
| 6549 |
|
| 6550 |
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS): No need to use m4_normalize. |
| 6551 |
|
| 6552 |
* tests/semantics.at: Add tests for expansion of M4 macros in |
| 6553 |
whitespace-separated list arguments to all of the above. |
| 6554 |
|
| 6555 |
2020-06-30 Zack Weinberg <[email protected]> |
| 6556 |
|
| 6557 |
AC_REPLACE_FUNCS: invoke _AH_CHECK_FUNC and AC_LIBSOURCE unconditionally. |
| 6558 |
While investigating something else, I noticed that AC_REPLACE_FUNCS |
| 6559 |
calls _AH_CHECK_FUNC and AC_LIBSOURCE in the success branch of an |
| 6560 |
AC_CHECK_FUNC. This doesn’t work; both of those are marker macros |
| 6561 |
that need to be expanded unconditionally at m4 time so that traces |
| 6562 |
(placed by autoheader and automake, respectively) will fire. In order |
| 6563 |
to fix this while keeping the code readable, I would up doing a major |
| 6564 |
refactor. There are now four internal macros implementing AC_REPLACE_FUNCS. |
| 6565 |
|
| 6566 |
_AC_REPLACE_FUNC_U is called unconditionally for every shell word in |
| 6567 |
the list passed to AC_REPLACE_FUNCS, and does _AH_CHECK_FUNC + |
| 6568 |
AC_LIBSOURCE if it can, or issues a warning if it can’t. (It could |
| 6569 |
make sense to make this a public function, if we think shell variables |
| 6570 |
in the AC_REPLACE_FUNCS list need to be supported long-term. I dunno |
| 6571 |
if there’s a use case that can’t be handled by AC_REPLACE_FUNCS inside |
| 6572 |
a shell conditional just as well.) |
| 6573 |
|
| 6574 |
_AC_REPLACE_FUNC_L and _AC_REPLACE_FUNC_NL implement the actual test |
| 6575 |
performed for each function to be replaced; the difference is that _L |
| 6576 |
(for literal) can only be used on a function whose name is known at m4 |
| 6577 |
expansion time, _NL (nonliteral) works regardless. _AC_REPLACE_FUNCS, |
| 6578 |
which already existed, handles looping either at m4 time or shell time |
| 6579 |
as appropriate. AC_REPLACE_FUNCS remains a thin wrapper that runs |
| 6580 |
_AC_REPLACE_FUNCS(m4_flatten([$1])). |
| 6581 |
|
| 6582 |
The _bulk_ of the patch is changes to the testsuite so that it notices |
| 6583 |
the original bug. Specifically, AT_CHECK_AUTOHEADER now takes an |
| 6584 |
argument which is a whitespace-separated list of preprocessor macro |
| 6585 |
names that ought to appear in the generated config.h.in. This can be |
| 6586 |
set to ‘ignore’ to skip the test, and unfortunately that’s what the |
| 6587 |
“trivial” per-macro tests have to do (AT_CHECK_MACRO and friends), so |
| 6588 |
coverage is not ideal, but it’s better than what we had. Also, |
| 6589 |
AT_CHECK_M4 now normalizes the backtrace lines that appear in the |
| 6590 |
output of an AC_DIAGNOSE, e.g. |
| 6591 |
|
| 6592 |
configure.ac:6: warning: The macro `AC_LANG_SAVE' is obsolete. |
| 6593 |
configure.ac:6: You should run autoupdate. |
| 6594 |
../../lib/autoconf/lang.m4:125: AC_LANG_SAVE is expanded from... |
| 6595 |
configure.ac:6: the top level |
| 6596 |
|
| 6597 |
becomes |
| 6598 |
|
| 6599 |
configure.ac:6: warning: The macro `AC_LANG_SAVE' is obsolete. |
| 6600 |
configure.ac:6: You should run autoupdate. |
| 6601 |
lang.m4: AC_LANG_SAVE is expanded from... |
| 6602 |
configure.ac:6: the top level |
| 6603 |
|
| 6604 |
This allows us to write tests for these diagnostics that don’t depend |
| 6605 |
on the relationship between the source and build directories, and |
| 6606 |
won’t break when unrelated patches change the line number of a macro |
| 6607 |
definition. |
| 6608 |
|
| 6609 |
* lib/autoconf/functions.m4 (AC_REPLACE_FUNCS, _AC_REPLACE_FUNCS) |
| 6610 |
(_AC_REPLACE_FUNC): Refactor into AC_REPLACE_FUNCS, |
| 6611 |
_AC_REPLACE_FUNCS, _AC_REPLACE_FUNC_U, _AC_REPLACE_FUNC_L, |
| 6612 |
_AC_REPLACE_FUNC_NL. Ensure that _AH_CHECK_FUNC and |
| 6613 |
AC_LIBSOURCE are invoked unconditionally at m4 expansion |
| 6614 |
time for each literal function name in the argument to |
| 6615 |
AC_CHECK_FUNCS. Issue warnings about non-literal names. |
| 6616 |
|
| 6617 |
* tests/local.at (AT_CHECK_M4): Normalize backtrace lines from |
| 6618 |
the output of AC_DIAGNOSE / m4_warn. |
| 6619 |
(AT_CHECK_AUTOHEADER): Add arg EXPECTED-TMPLS |
| 6620 |
giving a list of preprocessor macro names that should appear |
| 6621 |
in the generated config.h.in. Use AT_CHECK_M4 to invoke autoheader. |
| 6622 |
(_AT_CHECK_AC_MACRO, AT_CHECK_MACRO, AT_CHECK_AU_MACRO): |
| 6623 |
Update uses of AT_CHECK_AUTOHEADER. |
| 6624 |
* tests/fortran.at, tests/semantics.at, tests/tools.at |
| 6625 |
* tests/torture.at: Update all uses of AT_CHECK_AUTOHEADER. |
| 6626 |
|
| 6627 |
* tests/semantics.at (AC_REPLACE_FUNCS test): Make somewhat |
| 6628 |
more thorough, using new functionality of AT_CHECK_M4 and |
| 6629 |
AT_CHECK_AUTOHEADER. |
| 6630 |
|
| 6631 |
2020-06-30 Zack Weinberg <[email protected]> |
| 6632 |
|
| 6633 |
Look harder for a shell whose -n is known to work. |
| 6634 |
The test suite was insisting on using /bin/sh -n for syntax checking, |
| 6635 |
which meant that if /bin/sh wasn’t one of the short list of shells |
| 6636 |
whose -n is known to work, we would skip all of the syntax-check |
| 6637 |
tests, even if some other shell was available that would work. |
| 6638 |
|
| 6639 |
Instead do like _AS_DETECT_BETTER_SHELL, and loop over possible |
| 6640 |
shells, starting with $SHELL and going on to a hardwired list of |
| 6641 |
known-good possibilities. The result is written to the substitution |
| 6642 |
variable @SHELL_N@ and the testsuite uses that. |
| 6643 |
|
| 6644 |
(Should we invoke AC_PATH_PROG on the result of the search if it’s not |
| 6645 |
already absolute?) |
| 6646 |
|
| 6647 |
* configure.ac: Search for a shell whose -n mode is known to |
| 6648 |
work, instead of just checking /bin/sh. Set @SHELL_N@ to |
| 6649 |
what we find. |
| 6650 |
* tests/atlocal.in: Propagate @SHELL_N@ to testsuite. |
| 6651 |
* tests/local.at (AT_CHECK_SHELL_SYNTAX): Use $SHELL_N instead |
| 6652 |
of hardcoding /bin/sh. Update test for usable shell -n. |
| 6653 |
(AT_CHECK_AUTOCONF): Update test for usable shell -n. |
| 6654 |
* tests/tools.at: Update test for usable shell -n. |
| 6655 |
|
| 6656 |
2020-06-29 Paul Eggert <[email protected]> |
| 6657 |
|
| 6658 |
make fetch |
| 6659 |
|
| 6660 |
Update release advice |
| 6661 |
|
| 6662 |
Stop using up_to_date_p |
| 6663 |
* bin/autom4te.in (up_to_date): Rewrite to stop using |
| 6664 |
up_to_date_p, which has been removed from Automake. |
| 6665 |
|
| 6666 |
make fetch |
| 6667 |
|
| 6668 |
Save and check Autom4te version in cache |
| 6669 |
Problem reported in <https://bugs.debian.org/219621>. |
| 6670 |
* bin/autom4te.in: Save and check autom4te version number into cache index. |
| 6671 |
* lib/Autom4te/C4che.pm (save): New arg $version. All callers changed. |
| 6672 |
(good_version): New sub. |
| 6673 |
|
| 6674 |
Fix undefined behavior in AC_SYS_LARGEFILE |
| 6675 |
* lib/autoconf/specific.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES): |
| 6676 |
Avoid undefined behavior on platforms where off_t is 32 bits. See: |
| 6677 |
https://bugs.debian.org/742780 |
| 6678 |
|
| 6679 |
2020-06-29 Andreas Barth <[email protected]> (tiny change) |
| 6680 |
|
| 6681 |
Look for AM_PROG_LIBTOOL too |
| 6682 |
This helps out dh-autoreconf on Debian |
| 6683 |
<https://bugs.debian.org/759739>. |
| 6684 |
* bin/autoreconf.in (autoreconf_current_directory): |
| 6685 |
* lib/autom4te.in (args): Look for AM_PROG_LIBTOOL too. |
| 6686 |
|
| 6687 |
2020-03-13 Zack Weinberg <[email protected]> |
| 6688 |
|
| 6689 |
Define $as_echo and $as_echo_n for backward compatibility. |
| 6690 |
Commit 2b59b6f8a79b8bf77e178ff4e5aa0ede433d39cf removed the internal |
| 6691 |
shell variables $as_echo and $as_echo_n. It turns out that these are |
| 6692 |
used by several widely-used third-party m4 files (notably both |
| 6693 |
gnulib-common.m4 from gnulib, and ax_pthread.m4 from the Autoconf |
| 6694 |
macro archive) as well as any number of existing configure.ac’s. |
| 6695 |
|
| 6696 |
Restore these shell variables, unconditionally defining them to use |
| 6697 |
printf. Issue -Wobsolete warnings if they are used, recommending the |
| 6698 |
use of AS_ECHO and AS_ECHO_N respectively. Add a test which checks |
| 6699 |
both that they do work and that they trigger warnings. |
| 6700 |
|
| 6701 |
2020-03-13 Zack Weinberg <[email protected]> |
| 6702 |
|
| 6703 |
_AS_REEXEC_WITH_SHELL: don’t use AS_EXIT. |
| 6704 |
If _AS_REEXEC_WITH_SHELL fails to exec the selected “better” shell |
| 6705 |
interpreter, and that failure somehow doesn’t terminate the process, |
| 6706 |
it calls AS_EXIT([255]). This expands to an invocation of as_fn_exit. |
| 6707 |
However, the definition of as_fn_exit goes into the M4SH-INIT-FN |
| 6708 |
diversion, whereas _AS_REEXEC_WITH_SHELL goes into the M4SH-SANITIZE |
| 6709 |
diversion, so as_fn_exit won’t be defined at the point of this use. |
| 6710 |
We can’t move the definition of as_fn_exit earlier, because we don’t |
| 6711 |
know that the shell supports shell functions until after we get to the |
| 6712 |
end of the M4SH-SANITIZE diversion. |
| 6713 |
|
| 6714 |
This is only a theoretical bug because, as the comments say, “all the |
| 6715 |
known shells bail out after a failed exec.” However, a shell that |
| 6716 |
doesn’t bail out will instead give the user a flood of nonsensical |
| 6717 |
error messages (starting with “as_fn_exit: not found” and then going |
| 6718 |
on to choke on the rest of the script) so I think we should fix it |
| 6719 |
anyway. There shouldn’t be any problem with using a plain ‘exit’ at |
| 6720 |
this point; no traps are active yet, and we are exiting with an |
| 6721 |
explicit error code. |
| 6722 |
|
| 6723 |
2020-03-13 Zack Weinberg <[email protected]> |
| 6724 |
|
| 6725 |
README-hacking: re-configure from scratch during bootstrap. |
| 6726 |
When building autoconf from a git checkout, recommend running |
| 6727 |
‘make distclean’ and a second ‘./configure’ after regenerating |
| 6728 |
autoconf’s own configure script using the just-built autoconf. |
| 6729 |
If one only runs ‘make check’ at that point, some configure-time |
| 6730 |
tests will not be repeated using the new code, such as detection |
| 6731 |
of a “better” shell. |
| 6732 |
|
| 6733 |
2020-03-12 Paul Eggert <[email protected]> |
| 6734 |
|
| 6735 |
Fix _AS_DETECT_BETTER_SHELL breakage |
| 6736 |
Problem reported by Zack Weinberg in: |
| 6737 |
https://lists.gnu.org/r/autoconf/2020-03/msg00017.html |
| 6738 |
* lib/m4sugar/m4sh.m4 (_AS_RUN): Use sh -c instead of |
| 6739 |
the no-longer-existent $as_echo. This fixes a bug introduced |
| 6740 |
in 2013-01-28T03:44:[email protected]. |
| 6741 |
|
| 6742 |
2020-02-26 Zack Weinberg <[email protected]> |
| 6743 |
|
| 6744 |
Fix `make syntax-check'. |
| 6745 |
There are two errors caught by make syntax-check currently. |
| 6746 |
|
| 6747 |
First, the recent make update-copyright |
| 6748 |
(d78a7dd95fed24e417dfb4d08124a9ce7c1f7d1e) missed autoconf.texi, I |
| 6749 |
think because there are a bunch of .texi files in doc/ whose copyright |
| 6750 |
years should *not* be updated (e.g. standards.texi, fdl.texi) and the |
| 6751 |
exclusion pattern is too broad. I can't actually *find* the exclusion |
| 6752 |
pattern in the twisty maze of .mk files, all alike, so I just manually |
| 6753 |
updated autoconf.texi. |
| 6754 |
|
| 6755 |
Second, it objects to an edit to an old section of NEWS. This is |
| 6756 |
because of d3dcd5895d64f6c86275c9333e2760a867e540e7, which is a |
| 6757 |
legitimate change (replacing http:// with https:// in a URL) so the |
| 6758 |
correct action is to change old_NEWS_hash to match. |
| 6759 |
|
| 6760 |
* doc/autoconf.texi: Update copyright year. |
| 6761 |
* cfg.mk (old_NEWS_hash): Update to acknowledge commit |
| 6762 |
d3dcd5895d64f6c86275c9333e2760a867e540e7. |
| 6763 |
|
| 6764 |
2020-02-21 Paul Eggert <[email protected]> |
| 6765 |
|
| 6766 |
Mention 32-bit GNU/Linux 64-bit inodes |
| 6767 |
* lib/autoconf/specific.m4 (AC_SYS_LARGEFILE): |
| 6768 |
In a comment, mention 64-bit inode problem on 32-bit GNU/Linux. |
| 6769 |
This is taken from Gnulib. |
| 6770 |
|
| 6771 |
Remove definition of _DARWIN_USE_64_BIT_INODE |
| 6772 |
It’s not needed in currently-supported macOS versions, and was |
| 6773 |
problematic anyway in MacOS X 10.5 which was the only version that |
| 6774 |
could use it. Problem reported by Peter Eisentraut in: |
| 6775 |
https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html |
| 6776 |
* lib/autoconf/specific.m4 (AC_SYS_LARGEFILE): |
| 6777 |
Don’t define _DARWIN_USE_64_BIT_INODE. |
| 6778 |
|
| 6779 |
2020-01-01 Jim Meyering <[email protected]> |
| 6780 |
|
| 6781 |
maint: make update-copyright |
| 6782 |
|
| 6783 |
2019-12-25 Paul Eggert <[email protected]> |
| 6784 |
|
| 6785 |
Document AIX 7.2 printf command gotcha |
| 6786 |
* doc/autoconf.texi (Limitations of Builtins): |
| 6787 |
Document AIX 7.2 sh printf problem with octal escapes. |
| 6788 |
|
| 6789 |
2019-10-06 Paul Eggert <[email protected]> |
| 6790 |
|
| 6791 |
Fix terminology typo in mkdir -p check |
| 6792 |
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Say “race-free”, not |
| 6793 |
“thread-safe”. Problem reported by Reuben Thomas in: |
| 6794 |
https://lists.gnu.org/r/bug-autoconf/2019-09/msg00003.html |
| 6795 |
|
| 6796 |
2019-09-10 Ondrej Dubaj <[email protected]> |
| 6797 |
|
| 6798 |
Port tests to Bash 5 |
| 6799 |
* tests/local.at (AT_CHECK_ENV, AT_CONFIG_CMP): |
| 6800 |
Add BASH_ARGC, BASH_ARGV to list of variables to be ignored when |
| 6801 |
comparing variable space dumps. |
| 6802 |
(AT_CONFIG_CMP): Also ignore LINENO. |
| 6803 |
* tests/m4sh.at: Also unset LINENO in 'reference' and 'test/test-1'. |
| 6804 |
|
| 6805 |
2019-05-29 Paul Eggert <[email protected]> |
| 6806 |
|
| 6807 |
Port AC_C_BIGENDIAN to recent clang |
| 6808 |
Problem and trivial patch reported by Matthieu Gautier in: |
| 6809 |
https://lists.gnu.org/r/bug-autoconf/2019-05/msg00006.html |
| 6810 |
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Use unsigned short for |
| 6811 |
values greater than 2**15 - 1. |
| 6812 |
|
| 6813 |
2018-12-15 Jim Meyering <[email protected]> |
| 6814 |
|
| 6815 |
doc/autoconf.texi: fix spelling/grammar nits |
| 6816 |
|
| 6817 |
2018-11-24 Noah Misch <[email protected]> |
| 6818 |
|
| 6819 |
AC_CHECK_DECL: when cached, don't overwrite a werror flag |
| 6820 |
* lib/autoconf/general.m4 (_AC_CHECK_DECL_BODY): Restore werror flags |
| 6821 |
inside the AC_CACHE_CHECK that saves them. Commit |
| 6822 |
82ef7805faffa151e724aa76c245ec590d174580 broke this. From Tom Lane |
| 6823 |
(trivial change). |
| 6824 |
* tests/semantics.at (AC_CHECK_DECLS): Test this. |
| 6825 |
|
| 6826 |
2018-03-19 Paul Eggert <[email protected]> |
| 6827 |
|
| 6828 |
lib: use list of unsafe chars, not safe ones |
| 6829 |
* lib/autoconf/general.m4 (_AC_INIT_CONFIG_LOG): |
| 6830 |
Rely on list of unsafe chars instead of list of safe ones. |
| 6831 |
This corresponds more closely to POSIX and should result |
| 6832 |
in less quoting. |
| 6833 |
* lib/autoconf/status.m4 (_AC_OUTPUT_CONFIG_STATUS): |
| 6834 |
Adjust to this change. |
| 6835 |
x |
| 6836 |
|
| 6837 |
2018-03-19 Daniel Colascione <[email protected]> |
| 6838 |
|
| 6839 |
fix quoting |
| 6840 |
|
| 6841 |
Fix test suite with modern Perl |
| 6842 |
|
| 6843 |
2017-10-29 Paul Eggert <[email protected]> |
| 6844 |
|
| 6845 |
lib: fix update_file timestamps |
| 6846 |
Problem reported by Bruno Haible in: |
| 6847 |
https://savannah.gnu.org/support/?109406 |
| 6848 |
* lib/Autom4te/FileUtils.pm (update_file): Use rename + system |
| 6849 |
instead of move, since move truncates file timestamps. |
| 6850 |
|
| 6851 |
2017-09-23 Paul Eggert <[email protected]> |
| 6852 |
|
| 6853 |
maint: update URLs |
| 6854 |
Most of this is replacing http: with https: when either will do. |
| 6855 |
|
| 6856 |
lib: check ‘install file dir/’ |
| 6857 |
* lib/autoconf/programs.m4 (AC_PROG_INSTALL): Check that the |
| 6858 |
system install program works when the destination name has a |
| 6859 |
trailing slash. This helped catch problems in an experimental and |
| 6860 |
never-published version of GNU Coreutils, and is a good thing to |
| 6861 |
check in general. |
| 6862 |
|
| 6863 |
maint: sync from Automake |
| 6864 |
This just updates comments, notably URLs. |
| 6865 |
|
| 6866 |
2017-09-16 Paul Eggert <[email protected]> |
| 6867 |
|
| 6868 |
Prefer HTTPS to FTP and HTTP |
| 6869 |
|
| 6870 |
make fetch |
| 6871 |
|
| 6872 |
"time stamp" -> "timestamp", as per POSIX |
| 6873 |
|
| 6874 |
2017-01-25 Eric Blake <[email protected]> |
| 6875 |
|
| 6876 |
doc: emphasize that config.h must be first |
| 6877 |
* doc/autoconf.texi (C and Posix Variants, System Services): |
| 6878 |
Remind user to include config.h first. |
| 6879 |
(Configuration Headers): Give another reason why config.h must be |
| 6880 |
first, and mention that only .c files need it. |
| 6881 |
Based on discussion on bugs.debian.org/158969 |
| 6882 |
|
| 6883 |
2017-01-01 Jim Meyering <[email protected]> |
| 6884 |
|
| 6885 |
maint: update copyright dates for 2017 |
| 6886 |
* all files: Run "make update-copyright". |
| 6887 |
* doc/autoconf.texi: Update manually. |
| 6888 |
|
| 6889 |
2016-12-23 Eric Blake <[email protected]> |
| 6890 |
|
| 6891 |
doc: Mention effect of 'autoreconf -fi' on INSTALL |
| 6892 |
Several projects have a bootstrap script that invokes |
| 6893 |
'autoreconf -fi' as part of a fresh version control checkout, |
| 6894 |
in order to avoid storing common files in version control, |
| 6895 |
while also allowing contributors to rerun bootstrap to pick |
| 6896 |
up the benefits of any upgrade of one of the autotools. |
| 6897 |
|
| 6898 |
However, the documentation did not make it obvious that such |
| 6899 |
a setup will overwrite any customizations to files like |
| 6900 |
INSTALL, if those files are stored in version control, when |
| 6901 |
automake still considers that file to be standard based on |
| 6902 |
AM_INIT_AUTOMAKE settings. In such a case, a mere |
| 6903 |
'autoreconf -i' is good for the bootstrap script, while a |
| 6904 |
separate 'autoreconf -f' is good for picking up on an upgrade |
| 6905 |
of any autotools. |
| 6906 |
|
| 6907 |
* bin/autoreconf.in (help): Mention standard files. |
| 6908 |
* doc/autoconf.texi (autoreconf Invocation): Add more text, including |
| 6909 |
warning that mixing --force and --install may undo customizations, |
| 6910 |
and that the set of files impacted is controlled by automake. |
| 6911 |
Reported by Emil Laine <[email protected]> |
| 6912 |
|
| 6913 |
2016-12-22 Eric Blake <[email protected]> |
| 6914 |
|
| 6915 |
doc: Patterns in m4_pattern_forbid cause error, not warning |
| 6916 |
The example text regarding a desired literal AC_DC in output |
| 6917 |
claimed that the result would trigger a warning if one does |
| 6918 |
not use creative quoting; but in reality, autoconf's use of |
| 6919 |
m4_pattern_forbid to reserve the entire AC_ namespace makes |
| 6920 |
it a hard error. Reword the section to mention the use of |
| 6921 |
m4_pattern_allow() as the fix, and beef up the example to |
| 6922 |
better demonstrate the problem. |
| 6923 |
|
| 6924 |
* doc/autoconf.texi (Autoconf Language): Improve AC_DC example. |
| 6925 |
Reported by Gavin Smith <[email protected]>. |
| 6926 |
|
| 6927 |
2016-12-21 Daniel Elstner <[email protected]> |
| 6928 |
|
| 6929 |
autoheader: check templates of all config headers |
| 6930 |
* bin/autoheader.in: When checking for missing templates, take |
| 6931 |
all config headers into account, not just the one generated by |
| 6932 |
autoheader. This makes it possible to use AC_DEFINE() for |
| 6933 |
secondary headers without duplicating the template into the |
| 6934 |
first header. |
| 6935 |
* tests/tools.at: Add a check for autoheader with multiple |
| 6936 |
config headers. |
| 6937 |
* NEWS: Document the new behavior. |
| 6938 |
Message-Id: <[email protected]> |
| 6939 |
|
| 6940 |
2016-12-21 Paolo Bonzini <[email protected]> |
| 6941 |
|
| 6942 |
autoconf: prefer an unrolled loop for trivial AC_CHECK_HEADERS |
| 6943 |
An unrolled loop avoids the cost of spawning sed in AS_TR_SH and |
| 6944 |
AS_TR_CPP. Prefer it if there is nothing in the second and third |
| 6945 |
argument of AC_CHECK_HEADERS and the first argument is a literal. |
| 6946 |
|
| 6947 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Unroll loop if safe. |
| 6948 |
(_AC_CHECK_HEADERS): Move basic implementation here. |
| 6949 |
(AC_CHECK_INCLUDES_DEFAULT): Remove unnecessary arguments after the first. |
| 6950 |
|
| 6951 |
Message-Id: <[email protected]> |
| 6952 |
[eblake: perform AC_CHECK_HEADERS_ONCE changes separately, use |
| 6953 |
dnl to reduce generated blank lines] |
| 6954 |
|
| 6955 |
2016-12-21 Paolo Bonzini <[email protected]> |
| 6956 |
|
| 6957 |
autoconf: prefer an unrolled loop for trivial AC_CHECK_FUNCS |
| 6958 |
An unrolled loop avoids the cost of spawning sed in AS_TR_SH and |
| 6959 |
AS_TR_CPP. Prefer it if there is nothing in the second and third |
| 6960 |
argument of AC_CHECK_FUNCS and the first argument is a literal. |
| 6961 |
|
| 6962 |
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Unroll loop if safe. |
| 6963 |
(_AC_CHECK_FUNCS): Move basic implementation here. |
| 6964 |
|
| 6965 |
Message-Id: <[email protected]> |
| 6966 |
[eblake: perform AC_CHECK_FUNCS_ONCE changes separately, use |
| 6967 |
dnl to reduce generated blank lines] |
| 6968 |
|
| 6969 |
2016-12-21 Eric Blake <[email protected]> |
| 6970 |
|
| 6971 |
AC_CHECK_HEADERS_ONCE: hoist cache name computation to m4 time |
| 6972 |
Rather than perform a sed script on each element of the |
| 6973 |
$ac_header_c_list to compute the corresponding cache name, we |
| 6974 |
can inline enough of AC_CHECK_HEADER to bypass the normal |
| 6975 |
polymorphic code, and instead directly use the literal |
| 6976 |
header and cache name that we are consuming from the list. |
| 6977 |
|
| 6978 |
The resulting configure script is roughly unchanged in size, |
| 6979 |
but performs slightly faster. |
| 6980 |
|
| 6981 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADER_COMPILE): Split out shell |
| 6982 |
function registration... |
| 6983 |
(_AC_CHECK_HEADER_COMPILE_FN): ...to here. |
| 6984 |
(_AC_HEADERS_EXPANSION): Use it to inline enough of AC_CHECK_HEADER |
| 6985 |
to operate on a literal rather than a shell variable, for fewer sed |
| 6986 |
calls. |
| 6987 |
|
| 6988 |
2016-12-21 Eric Blake <[email protected]> |
| 6989 |
|
| 6990 |
AC_CHECK_FUNCS_ONCE: hoist cache name computation to m4 time |
| 6991 |
Rather than perform a sed script on each element of the |
| 6992 |
$ac_func_c_list to compute the corresponding cache name, we |
| 6993 |
can inline enough of AC_CHECK_FUNC to bypass the normal |
| 6994 |
polymorphic code, and instead directly use the literal |
| 6995 |
function name that we are consuming from the list. |
| 6996 |
|
| 6997 |
While at it, we can use echo instead of cat to append to |
| 6998 |
confdefs.h, for another process shaved. |
| 6999 |
|
| 7000 |
The resulting configure script is roughly unchanged in size, |
| 7001 |
but performs slightly faster. |
| 7002 |
|
| 7003 |
* lib/autoconf/functions.m4 (AC_CHECK_FUNC): Split out shell |
| 7004 |
function registration... |
| 7005 |
(_AC_CHECK_FUNC_FN): ...to here. |
| 7006 |
(_AC_FUNCS_EXPANSION): Use it to inline enough of AC_CHECK_FUNC to |
| 7007 |
operate on a literal rather than a shell variable, for fewer sed |
| 7008 |
calls. |
| 7009 |
|
| 7010 |
2016-12-21 Eric Blake <[email protected]> |
| 7011 |
|
| 7012 |
AC_CHECK_HEADERS_ONCE: hoist CPP name computation to m4 time |
| 7013 |
Rather than perform a sed script on each element of the |
| 7014 |
$ac_header_c_list to compute the corresponding CPP name, we can |
| 7015 |
make the list store a series of triples of header names, shell-safe |
| 7016 |
names, and CPP names all computed at m4 time. |
| 7017 |
|
| 7018 |
The resulting configure script is slightly larger based on |
| 7019 |
how many headers are checked once, but also performs |
| 7020 |
slightly faster. |
| 7021 |
|
| 7022 |
There is still a sed call in AC_CHECK_HEADER for computing the |
| 7023 |
cache variable name; that will be dealt with next. That patch |
| 7024 |
will also be the one that takes advantage of the shell-safe name. |
| 7025 |
|
| 7026 |
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_ONCE): Track the shell |
| 7027 |
and CPP name in the list... |
| 7028 |
(_AC_HEADERS_EXPANSION): ...and rewrite the list walk to parse off |
| 7029 |
triples of arguments, for fewer sed calls. |
| 7030 |
|
| 7031 |
2016-12-21 Eric Blake <[email protected]> |
| 7032 |
|
| 7033 |
AC_CHECK_FUNCS_ONCE: hoist CPP name computation to m4 time |
| 7034 |
Rather than perform a sed script on each element of the |
| 7035 |
$ac_func_c_list to compute the corresponding CPP name, we can |
| 7036 |
make the list store a series of pairs of function names and |
| 7037 |
CPP names all computed at m4 time. |
| 7038 |
|
| 7039 |
The resulting configure script is slightly larger based on |
| 7040 |
how many function names are checked once, but also performs |
| 7041 |
slightly faster. |
| 7042 |
|
| 7043 |
There is still a sed call in AC_CHECK_FUNC for computing the |
| 7044 |
cache variable name; that will be dealt with next. |
| 7045 |
|
| 7046 |
* lib/autoconf/functions.m4 (_AC_CHECK_FUNC_ONCE): Track the CPP |
| 7047 |
name in the list... |
| 7048 |
(_AC_FUNCS_EXPANSION): ...and rewrite the list walk to parse off |
| 7049 |
pairs of arguments, for fewer sed calls. |
| 7050 |
|
| 7051 |
2016-12-21 Eric Blake <[email protected]> |
| 7052 |
|
| 7053 |
AC_CHECK_HEADERS_ONCE: honor current AC_LANG |
| 7054 |
Previously, AC_CHECK_HEADERS_ONCE collected a list of header names |
| 7055 |
to check, but ran the checks using the AC_LANG that was active |
| 7056 |
during the first encounter of the macro. In practice, this is |
| 7057 |
usually the C language, and we haven't had actual reports of projects |
| 7058 |
attempting to use AC_CHECK_HEADERS_ONCE across multiple languages, |
| 7059 |
rather this was discovered by code inspection. |
| 7060 |
|
| 7061 |
With this patch, the code now tracks a separate per-language list of |
| 7062 |
names to check. Note, however, that it is only possible to check for |
| 7063 |
a given header name in one language; attempting to add a name again |
| 7064 |
under AC_CHECK_HEADERS_ONCE while a different language is active is a |
| 7065 |
no-op (this still makes sense because the side-effect of defining |
| 7066 |
the CPP macro HAVE_HEADER does not include a language prefix). |
| 7067 |
|
| 7068 |
* lib/autoconf/headers.m4 (_AC_CHECK_HEADER_ONCE) |
| 7069 |
(_AC_HEADERS_EXPANSION): |
| 7070 |
* NEWS: Mention it. |
| 7071 |
|
| 7072 |
2016-12-20 Eric Blake <[email protected]> |
| 7073 |
|
| 7074 |
AC_CHECK_FUNCS_ONCE: honor current AC_LANG |
| 7075 |
Previously, AC_CHECK_FUNCS_ONCE collected a list of function names |
| 7076 |
to check, but ran the checks using the AC_LANG that was active |
| 7077 |
during the first encounter of the macro. In practice, this is |
| 7078 |
usually the C language, and we haven't had actual reports of projects |
| 7079 |
attempting to use AC_CHECK_FUNCS_ONCE across multiple languages, |
| 7080 |
rather this was discovered by code inspection. |
| 7081 |
|
| 7082 |
With this patch, the code now tracks a separate per-language list of |
| 7083 |
names to check. Note, however, that it is only possible to check for |
| 7084 |
a given function name in one language; attempting to add a name again |
| 7085 |
under AC_CHECK_FUNCS_ONCE while a different language is active is a |
| 7086 |
no-op (this still makes sense because the side-effect of defining |
| 7087 |
the CPP macro HAVE_FUNC does not include a language prefix). |
| 7088 |
|
| 7089 |
* lib/autoconf/functions.m4 (_AC_CHECK_FUNC_ONCE) |
| 7090 |
(_AC_FUNCS_EXPANSION): |
| 7091 |
* NEWS: Mention it. |
| 7092 |
|
| 7093 |
2016-12-14 Bruno Haible <[email protected]> |
| 7094 |
|
| 7095 |
* doc/autoconf.texi (Using Autotest): Stop mentioning Free Recode. |
| 7096 |
Free Wdiff is now GNU Wdiff again. |
| 7097 |
|
| 7098 |
2016-11-04 Paolo Bonzini <[email protected]> |
| 7099 |
|
| 7100 |
autoconf: refine quadrigraph test in _AC_DEFINE_UNQUOTED |
| 7101 |
It is a very common case that a quadrigraph appears in the argument of |
| 7102 |
_AC_DEFINE_UNQUOTED, because "#define" is expanded through a quadrigraph. |
| 7103 |
Therefore, restrict the quadrigraph tests to "$" (for "$(" and "${") |
| 7104 |
and "(" (for "$("). |
| 7105 |
|
| 7106 |
At the same time, "#" should not be used inside AC_ECHO because it confuses |
| 7107 |
m4's comment parsing. This pre-existing latent bug is caught by test 251: |
| 7108 |
|
| 7109 |
AC_DEFINE_UNQUOTED([bar], [[%!_!# X]]) |
| 7110 |
|
| 7111 |
Previously the quadrigraph in "@%:@define bar %!_!# X" made Autoconf fall back |
| 7112 |
to cat anyway. Now that Autoconf is not fooled by the quadrigraph, the test |
| 7113 |
catches that "#" is not special-cased. Kudos to Eric for coming up with it! |
| 7114 |
|
| 7115 |
* lib/autoconf/general (_AC_DEFINE_UNQUOTED): Do not blindly |
| 7116 |
use cat on all quadrigraphs. |
| 7117 |
|
| 7118 |
Message-Id: <[email protected]> |
| 7119 |
|
| 7120 |
2016-11-02 Quinn Grier <[email protected]> |
| 7121 |
|
| 7122 |
doc: fix an infinitely recursing example |
| 7123 |
The "single" macro infinitely recurses because its expansion contains |
| 7124 |
the unquoted text " single-". The "double" macro almost has the same |
| 7125 |
problem, but it is protected by extra quotes. In any case, the macro |
| 7126 |
names being repeated in the macro definitions is not necessary. |
| 7127 |
|
| 7128 |
This commit changes the macro names to "foo" and "bar", which are taken |
| 7129 |
from a very similar example in the GNU M4 1.4.17 manual. See lines 1971 |
| 7130 |
to 1980 of v1.4.17:doc/m4.texi in the GNU M4 Git repository. |
| 7131 |
|
| 7132 |
* doc/autoconf.texi (Quoting and Parameters): Fix broken example. |
| 7133 |
|
| 7134 |
2016-11-01 Pádraig Brady <[email protected]> |
| 7135 |
|
| 7136 |
doc: detail inconsistencies in sed word boundary handling |
| 7137 |
* doc/autoconf.texi (Limitations of usual tools): Display a |
| 7138 |
table showing where the various syntaxes for word boundaries |
| 7139 |
are supported. |
| 7140 |
|
| 7141 |
2016-09-15 Paul Eggert <[email protected]> |
| 7142 |
|
| 7143 |
AC_USE_SYSTEM_EXTENSIONS: Remove stray TR in doc |
| 7144 |
|
| 7145 |
AC_USE_SYSTEM_EXTENSIONS: port to more ISO C TSes |
| 7146 |
* doc/autoconf.texi (C and Posix Variants): Rename from "Posix |
| 7147 |
Variants", and document updated behavior. |
| 7148 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Also define |
| 7149 |
__STDC_WANT_IEC_60559_ATTRIBS_EXT__, |
| 7150 |
__STDC_WANT_IEC_60559_DFP_EXT__, |
| 7151 |
__STDC_WANT_IEC_60559_TYPES_EXT__, and |
| 7152 |
__STDC_WANT_MATH_SPEC_FUNCS__. From a suggestion by Joseph Myers in: |
| 7153 |
http://lists.gnu.org/archive/html/autoconf-patches/2016-09/msg00011.html |
| 7154 |
|
| 7155 |
2016-09-15 Eric Blake <[email protected]> |
| 7156 |
|
| 7157 |
AC_HEADER_MAJOR: port to glibc 2.25 |
| 7158 |
glibc 2.25 is deprecating the namespace pollution of <sys/types.h> |
| 7159 |
injecting major(), minor(), and makedev() into the compilation |
| 7160 |
environment, with a warning that insists that users include |
| 7161 |
<sys/sysmacros.h> instead. However, because the expansion of |
| 7162 |
AC_HEADER_MAJOR didn't bother checking sys/sysmacros.h until |
| 7163 |
after probing whether sys/types.h pollutes the namespace, it was |
| 7164 |
not defining MAJOR_IN_SYSMACROS, with the result that code |
| 7165 |
compiled with -Werror chokes on the deprecation warnings because |
| 7166 |
it was not including sysmacros.h. |
| 7167 |
|
| 7168 |
In addition to fixing autoconf (which only benefits projects |
| 7169 |
that rebuild configure after this fix is released), we can also |
| 7170 |
give a hint to distros on how they can populate config.site with |
| 7171 |
a cache variable to force pre-existing configure scripts without |
| 7172 |
the updated macro to behave sanely in the presence of glibc 2.25 |
| 7173 |
(the documentation is especially useful since that cache variable |
| 7174 |
is no longer present in autoconf after this patch). |
| 7175 |
|
| 7176 |
Note that mingw lacks major/minor/makedev in any of its standard |
| 7177 |
headers; for that platform, the behavior of this macro is unchanged |
| 7178 |
(code using the recommended include formula will get a compile error |
| 7179 |
when trying to use major(), whether before or after this patch); but |
| 7180 |
for now, it is assumed that programs actually concerned with |
| 7181 |
creating devices are not worried about portability to mingw. If |
| 7182 |
desired, a later patch could tighten AC_HEADER_MAJOR to fail at |
| 7183 |
configure time if the macros are unavailable in any of the three |
| 7184 |
system headers, but that semantic change is not worth mixing into |
| 7185 |
this patch. |
| 7186 |
|
| 7187 |
* lib/autoconf/headers.m4 (AC_HEADER_MAJOR): Drop check for |
| 7188 |
major within sys/types.h; it interferes with the need to check |
| 7189 |
sysmacros.h first. |
| 7190 |
* doc/autoconf.texi (Particular Headers) <AC_HEADER_MAJOR>: Expand |
| 7191 |
details on usage, and on workarounds for non-updated projects. |
| 7192 |
|
| 7193 |
2016-09-14 Paul Eggert <[email protected]> |
| 7194 |
|
| 7195 |
doc: resplit lines to avoid Texinfo chaos |
| 7196 |
* doc/autoconf.texi (Introduction): Resplit lines to avoid |
| 7197 |
Texinfo 6.3 incompatibility with Perl 5.22. See: |
| 7198 |
http://lists.gnu.org/archive/html/bug-texinfo/2016-09/msg00037.html |
| 7199 |
|
| 7200 |
2016-09-13 Paul Eggert <[email protected]> |
| 7201 |
|
| 7202 |
AC_USE_SYSTEM_EXTENSIONS: port to recent ISO C |
| 7203 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): |
| 7204 |
Also define __STDC_WANT_IEC_60559_BFP_EXT__, |
| 7205 |
__STDC_WANT_IEC_60559_FUNCS_EXT__, and __STDC_WANT_LIB_EXT2__. |
| 7206 |
* NEWS, doc/autoconf.texi (Posix Variants): |
| 7207 |
Document this. Also, document other changes in this area |
| 7208 |
that were not properly documented before. |
| 7209 |
|
| 7210 |
doc: port to Texinfo 6.3 |
| 7211 |
* doc/autoconf.texi: Remove obsolete @setcontentsaftertitlepage |
| 7212 |
that provokes a warning from Texinfo 6.3. |
| 7213 |
|
| 7214 |
2016-09-13 Eric Blake <[email protected]> |
| 7215 |
|
| 7216 |
doc: use @xref correctly |
| 7217 |
Silences this warning from new-enough texinfo: |
| 7218 |
./doc/autoconf.texi:14236: warning: @xref node name should not contain `.' |
| 7219 |
|
| 7220 |
* doc/autoconf.texi (Macro Definitions): No need for .info. |
| 7221 |
|
| 7222 |
2016-05-31 Paul Eggert <[email protected]> |
| 7223 |
|
| 7224 |
Port AC_CHECK_HEADER_STDBOOL to C++11 |
| 7225 |
* lib/autoconf/headers.m4: Port to C++11. |
| 7226 |
Problem reported by David Seifert in: |
| 7227 |
http://lists.gnu.org/archive/html/bug-gnulib/2016-05/msg00052.html |
| 7228 |
|
| 7229 |
2016-04-03 Paul Eggert <[email protected]> |
| 7230 |
|
| 7231 |
Use American spelling for "initialize" |
| 7232 |
* lib/autoconf/c.m4: Prefer the spelling "initializer" in comments. |
| 7233 |
|
| 7234 |
2016-03-15 Paul Eggert <[email protected]> |
| 7235 |
|
| 7236 |
autom4te: fix problem when tracing to '-' |
| 7237 |
* bin/autom4te.in (handle_traces): When $output is '-', use |
| 7238 |
stdout rather than creating a file named '-'. This fixes a problem |
| 7239 |
introduced by the recent port to the new Autom4te::XFile API. |
| 7240 |
|
| 7241 |
Also try clang |
| 7242 |
Problem reported by Václav Zeman in: |
| 7243 |
http://lists.gnu.org/archive/html/autoconf/2012-10/msg00000.html |
| 7244 |
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_OBJC): Also try clang. |
| 7245 |
(AC_PROG_CXX): Also try clang++. |
| 7246 |
These are at the end of the existing lists, to avoid compatibility |
| 7247 |
issues in older installations. |
| 7248 |
|
| 7249 |
Port C11 and C++11 testing to clang |
| 7250 |
* lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER): |
| 7251 |
Include stddef.h, for offsetof. |
| 7252 |
(_AC_PROG_CC_C11): Limit _Static_assert to integer constant |
| 7253 |
expressions. Suggested by Nick Bowler in: |
| 7254 |
http://lists.gnu.org/archive/html/autoconf/2016-02/msg00009.html |
| 7255 |
(_AC_CXX_CXX11_TEST_BODY): Don't use string literals to initialize |
| 7256 |
non-const pointers. Suggested by Mike Miller in: |
| 7257 |
http://lists.gnu.org/archive/html/autoconf/2016-02/msg00008.html |
| 7258 |
|
| 7259 |
Fix broken URL to Unix history |
| 7260 |
* doc/autoconf.texi (Systemology): Fix broken URL. |
| 7261 |
Reported by Tom Wilcox. |
| 7262 |
|
| 7263 |
2016-02-23 Paul Eggert <[email protected]> |
| 7264 |
|
| 7265 |
AC_C_RESTRICT: port better to non-GCC + glibc |
| 7266 |
Problem reported by Dwight Guth in: |
| 7267 |
http://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html |
| 7268 |
* lib/autoconf/c.m4 (AC_C_RESTRICT): Prefer __restrict__ to __restrict. |
| 7269 |
Also, fix and update some comments. |
| 7270 |
|
| 7271 |
2016-02-06 Paul Eggert <[email protected]> |
| 7272 |
|
| 7273 |
Move config.* man pages to its source tree |
| 7274 |
Suggested by Ben Elliston in: |
| 7275 |
https://lists.gnu.org/archive/html/autoconf-patches/2015-11/msg00000.html |
| 7276 |
* man/config.guess.x, man/config.sub.x: Remove. |
| 7277 |
* NEWS: Mention this. |
| 7278 |
* man/local.mk (dist_man_MANS): Remove them. |
| 7279 |
($(mansrcdir)/config.guess.1, $(mansrcdir)/config.sub.1): Remove rules. |
| 7280 |
|
| 7281 |
maint: make update-copyright |
| 7282 |
|
| 7283 |
port to new Autom4te::XFile API |
| 7284 |
|
| 7285 |
make fetch |
| 7286 |
|
| 7287 |
Port better to gcc -fsanitize=address |
| 7288 |
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF): |
| 7289 |
Free heap-allocated storage before exiting. |
| 7290 |
|
| 7291 |
Fix memory leak in AC_FUNC_MMAP |
| 7292 |
* lib/autoconf/functions.m4 (AC_FUNC_MMAP): Fix memory leak |
| 7293 |
in test case, found by configuring with gcc -fsanitize=address. |
| 7294 |
|
| 7295 |
2016-02-05 Paul Eggert <[email protected]> |
| 7296 |
|
| 7297 |
Document dash ${*-unset} behavior |
| 7298 |
* doc/autoconf.texi (Shell Substitutions): Document dash |
| 7299 |
incompatibility. Problem reported by David Caldwell in: |
| 7300 |
http://bugs.gnu.org/22556 |
| 7301 |
|
| 7302 |
2015-10-08 Thomas Jahns <[email protected]> (tiny change) |
| 7303 |
|
| 7304 |
Add -mdir flag for NAG Fortran compiler |
| 7305 |
* lib/autoconf/fortran.m4 (AC_FC_MODULE_OUTPUT_FLAG): |
| 7306 |
Also try -mdir. Also, prefer autoconf macros instead of verbatim shell |
| 7307 |
code and make tests safer. |
| 7308 |
|
| 7309 |
2015-09-05 Paul Eggert <[email protected]> |
| 7310 |
|
| 7311 |
tests: port to recent libtool diagnostics |
| 7312 |
Problem reported by Christian Fafard in: |
| 7313 |
http://lists.gnu.org/archive/html/bug-autoconf/2015-09/msg00009.html |
| 7314 |
* tests/foreign.at (libtool): Run the scripts in the C locale, |
| 7315 |
so that we need not worry about localized quotes in their output. |
| 7316 |
|
| 7317 |
2015-08-07 Paul Eggert <[email protected]> |
| 7318 |
|
| 7319 |
Add /opt/X11/include to X search path |
| 7320 |
* lib/autoconf/libs.m4 (_AC_PATH_X_DIRECT): |
| 7321 |
Add /opt/X11/include for OS X. |
| 7322 |
Problem reported by Daniel Macks at: |
| 7323 |
http://lists.gnu.org/archive/html/bug-autoconf/2015-08/msg00002.html |
| 7324 |
|
| 7325 |
2015-06-04 Eric Blake <[email protected]> |
| 7326 |
|
| 7327 |
doc: mention 'for' syntax issue on older shells |
| 7328 |
Based on a report by Michael Felt, via Paul Eggert on the |
| 7329 |
coreutils list. |
| 7330 |
|
| 7331 |
* doc/autoconf.texi (Limitations of Builtins) <for>: Document |
| 7332 |
problem with 'for var in ;'. |
| 7333 |
|
| 7334 |
2015-05-13 Noah Misch <[email protected]> |
| 7335 |
|
| 7336 |
AC_CHECK_DECL, AC_CHECK_DECLS: port to the Clang compiler |
| 7337 |
* lib/autoconf/general.m4 (_AC_UNDECLARED_WARNING): New macro. |
| 7338 |
(_AC_CHECK_DECL_BODY): Call it once per language; treat warnings as |
| 7339 |
errors when its verdict indicates that. |
| 7340 |
* tests/semantics.at (AC_CHECK_DECLS): Add a macro call that relies on |
| 7341 |
the new semantics. Avoid -Wmissing-variable-declarations warnings. |
| 7342 |
* doc/autoconf.texi (Generic Declarations): Document the implications. |
| 7343 |
* NEWS: Mention this change. |
| 7344 |
|
| 7345 |
2015-04-21 Matěj Týč <[email protected]> |
| 7346 |
|
| 7347 |
m4_pattern_forbid: better documentation |
| 7348 |
Give a more concrete description of what the m4_pattern_forbid |
| 7349 |
thingy that pretends it is a macro accepts as an argument. |
| 7350 |
|
| 7351 |
Copyright-paper-exempt: Yes |
| 7352 |
|
| 7353 |
2015-04-21 Eric Blake <[email protected]> |
| 7354 |
|
| 7355 |
lib: use shorter way to test if variable is set |
| 7356 |
Based on an idea by Bernhard Reutner-Fischer. |
| 7357 |
|
| 7358 |
We frequently used the idiom of 'test "${var+set}" = set' to |
| 7359 |
test if $var was set to a non-empty string, but this can portably |
| 7360 |
be trimmed to a more compact 'test ${var+y}' for a smaller |
| 7361 |
configure file. Testing that a variable is not set can be done |
| 7362 |
with '${var+false} :' (although the value of $? is not reliably |
| 7363 |
1 when the variable is set). |
| 7364 |
|
| 7365 |
The code for AS_VAR_TEST_SET already used the form '${var+:} false', |
| 7366 |
but it is slightly longer, and does not guarantee $? of 1. |
| 7367 |
|
| 7368 |
Tested on coreutils, where the resulting configure file is about |
| 7369 |
1k smaller. |
| 7370 |
|
| 7371 |
* doc/autoconf.texi (Shell Substitutions): Prefer shorter sequence |
| 7372 |
for testing if a variable is set. |
| 7373 |
(Limitations of Builtins) <test (strings)>: Document it. |
| 7374 |
* configure.ac: Use it. |
| 7375 |
* lib/autoconf/c.m4 (_AC_PROG_CC_G, _AC_PROG_CXX_G) |
| 7376 |
(_AC_PROG_OBJC_G, _AC_PROG_OBJCXX_G): Likewise. |
| 7377 |
* lib/autoconf/fortran.m4 (_AC_PROG_FC_G): Likewise. |
| 7378 |
* lib/autoconf/general.m4 (_AC_ENABLE_IF_ACTION, AC_CACHE_SAVE): |
| 7379 |
Likewise. |
| 7380 |
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_DEFAULT): Likewise. |
| 7381 |
* lib/autoconf/programs.m4 (AC_PROG_INSTALL, AC_PROG_MKDIR_P) |
| 7382 |
(_AC_PROG_LEX_YYTEXT_DECL): Likewise. |
| 7383 |
* lib/autoconf/status.m4 (_AC_OUTPUT_MAIN_LOOP): Likewise. |
| 7384 |
* lib/autotest/general.m4 (AT_INIT): Likewise. |
| 7385 |
* tests/base.at (AC_CACHE_CHECK): Likewise. |
| 7386 |
* tests/m4sh.at (LINENO): Likewise. |
| 7387 |
* lib/m4sugar/m4sh.m4 (_AS_BOURNE_COMPATIBLE) |
| 7388 |
(_AS_DETECT_BETTER_SHELL, _AS_SHELL_SANITIZE) |
| 7389 |
(_AS_PATH_SEPARATOR_PREPARE): Likewise. |
| 7390 |
(AS_VAR_TEST_SET): Use shorter sequence. |
| 7391 |
|
| 7392 |
2015-04-21 Eric Blake <[email protected]> |
| 7393 |
|
| 7394 |
m4_set_foreach: minor optimization |
| 7395 |
As a minor optimization, most macros in m4sugar.m4 try to avoid |
| 7396 |
output of 'dnl' in the expansion, to reduce the number of macros |
| 7397 |
that must be expanded at each call site. |
| 7398 |
|
| 7399 |
* lib/m4sugar/m4sugar.m4 (m4_set_foreach): Don't expand dnl in all |
| 7400 |
callers. |
| 7401 |
|
| 7402 |
2015-04-21 Nick Bowler <[email protected]> (tiny change) |
| 7403 |
|
| 7404 |
m4sugar: fix pop typo in m4_set_foreach |
| 7405 |
* lib/m4sugar/m4sugar.m4 (m4_set_foreach): Pop macro definition. |
| 7406 |
|
| 7407 |
2015-04-09 Eric Blake <[email protected]> |
| 7408 |
|
| 7409 |
AC_PROG_MKDIR_P: reduce macro output size |
| 7410 |
Merging two case globs into one gives slightly smaller files and |
| 7411 |
less time spent in shell globbing on systems that lack GNU mkdir. |
| 7412 |
|
| 7413 |
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Combine two GNU cases. |
| 7414 |
|
| 7415 |
2015-04-09 Bernhard Reutner-Fischer <[email protected]> |
| 7416 |
|
| 7417 |
AC_PROG_MKDIR_P: Also accept BusyBox mkdir -p |
| 7418 |
* lib/autoconf/programs.m4 (AC_PROG_MKDIR_P): Accept BusyBox. |
| 7419 |
|
| 7420 |
2015-02-01 Jim Meyering <[email protected]> |
| 7421 |
|
| 7422 |
tests: avoid two false-positive parallel test failures |
| 7423 |
* tests/local.mk (check-local): Add a leading "+", |
| 7424 |
to void false-positive test failures when running |
| 7425 |
them in parallel. Before this change, running e.g., |
| 7426 |
"make check TESTSUITEFLAGS=--jobs=15" would always |
| 7427 |
fail the two "make"-invoking tests: "C unit tests" |
| 7428 |
and "C unit tests (EXEEXT)". |
| 7429 |
(installcheck-local): Likewise for "installcheck". |
| 7430 |
|
| 7431 |
2015-01-02 Paul Eggert <[email protected]> |
| 7432 |
|
| 7433 |
doc: -f is now portable for cp and ln |
| 7434 |
This follows up on a comment by Glenn Morris in: |
| 7435 |
http://lists.gnu.org/archive/html/emacs-devel/2015-01/msg00011.html |
| 7436 |
* doc/autoconf.texi (Limitations of Usual Tools): |
| 7437 |
Remove circa-1990 advice about avoiding cp -f and ln -f. |
| 7438 |
Although that advice was reasonable for the early 1990s, the -f |
| 7439 |
option is portable for both cp and ln nowadays. These options |
| 7440 |
were standardized in POSIX 1003.2-1992, and pre-POSIX systems such |
| 7441 |
as SunOS 4 are no longer of practical concern. |
| 7442 |
|
| 7443 |
maint: bump copyright year |
| 7444 |
* doc/autoconf.texi: Update copyright year. |
| 7445 |
This had to be done by hand. |
| 7446 |
|
| 7447 |
maint: bump copyright to 2015 |
| 7448 |
* all files: Run 'make update-copyright'. |
| 7449 |
|
| 7450 |
2014-12-17 Stefano Lattarini <[email protected]> |
| 7451 |
|
| 7452 |
Fix spurious testsuite failure when /bin/sh is dash |
| 7453 |
The testsuite used slightly different logic in the code employed to |
| 7454 |
decide whether a test should be skipped due to a limitation of the |
| 7455 |
selected shell, and in the code running the test itself. |
| 7456 |
|
| 7457 |
* tests/autotest.at (Syntax error): Adjust. |
| 7458 |
(parallel syntax error): Likewise. |
| 7459 |
|
| 7460 |
2014-11-03 Gary V. Vaughan <[email protected]> |
| 7461 |
|
| 7462 |
tests: avoid spurious test failure with libtool 2.4.3 |
| 7463 |
Based on a report by Bruce Dubbs. |
| 7464 |
|
| 7465 |
* tests/foreign.at (Libtool): Be tolerant of 'quote' replacing the |
| 7466 |
older `quote'. |
| 7467 |
|
| 7468 |
2014-11-03 Eric Blake <[email protected]> |
| 7469 |
|
| 7470 |
docs: mention that not all values can be exported |
| 7471 |
There has been a LOT of news about bash's Shell Shock bug lately. |
| 7472 |
Document some of the ramifications it has on portable scripting. |
| 7473 |
|
| 7474 |
* doc/autoconf.texi (Limitations of Builtins) <export>: Add some |
| 7475 |
details about Shell Shock CVE-2014-6271. |
| 7476 |
|
| 7477 |
2014-09-08 Paul Eggert <[email protected]> |
| 7478 |
|
| 7479 |
doc: distinguish GCC from GNU C, etc. |
| 7480 |
* doc/autoconf.texi (C Compiler, Objective C Compiler) |
| 7481 |
(Objective C++ Compiler, Fortran Compiler): Be more careful about |
| 7482 |
distinguishing GNU C from GCC, and similarly for other languages. |
| 7483 |
Problem reported by Marko Lindqvist in: |
| 7484 |
http://lists.gnu.org/archive/html/autoconf/2014-09/msg00027.html |
| 7485 |
|
| 7486 |
autoconf: clarify "checking" message for GNU-compatible compiliers |
| 7487 |
Problem reported by Bastien Chevreux in: |
| 7488 |
http://lists.gnu.org/archive/html/autoconf/2014-09/msg00022.html |
| 7489 |
and idea for fix by Eric Blake in: |
| 7490 |
http://lists.gnu.org/archive/html/autoconf/2014-09/msg00025.html |
| 7491 |
* doc/autoconf.texi (Running the Preprocessor) |
| 7492 |
(Present But Cannot Be Compiled): |
| 7493 |
Adjust examples to match current behavior. |
| 7494 |
* lib/autoconf/lang.m4 (_AC_LANG_COMPILER_GNU): Say |
| 7495 |
"checking whether the compiler supports GNU C", not |
| 7496 |
"checking whether we are using the GNU C compiler". |
| 7497 |
|
| 7498 |
2014-09-02 Paul Eggert <[email protected]> |
| 7499 |
|
| 7500 |
autoconf: fix typo in previous change |
| 7501 |
* lib/autoconf/c.m4 (AC_C_RESTRICT): Fix typo in previous change. |
| 7502 |
|
| 7503 |
autoconf: port 'restrict' to GCC 4.2.1 |
| 7504 |
* lib/autoconf/c.m4 (AC_C_RESTRICT): Detect GCC bug 14050. |
| 7505 |
Problem reported by Marco Munari for OpenBSD 5.5. |
| 7506 |
|
| 7507 |
2014-08-08 Jehan <[email protected]> |
| 7508 |
|
| 7509 |
cross-compiling: handling modern platforms able to run foreign binaries. |
| 7510 |
* lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_CROSS): |
| 7511 |
When only --host is set, and no --build, but in the end, the resulting |
| 7512 |
computed $build and $host are different, set $cross_compiling = yes. |
| 7513 |
Indeed we can't rely only on a successful test program run, because false |
| 7514 |
positives occur on some platforms. In particular modern GNU/Linux |
| 7515 |
distributions set Wine to automatically handle Windows binaries. |
| 7516 |
Consequently $cross_compiling gets set to "no" even though we are in an |
| 7517 |
obvious cross-compilation case. |
| 7518 |
(tiny change) |
| 7519 |
|
| 7520 |
2014-08-07 Paul Eggert <[email protected]> |
| 7521 |
|
| 7522 |
autoconf: modernize AC_C_VARARRAYS for C11 |
| 7523 |
* lib/autoconf/c.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if |
| 7524 |
VLAs are not supported, as this is what C11 does. The old macro |
| 7525 |
HAVE_C_VARARRAYS is still defined if they are supported, but is |
| 7526 |
now obsolescent. Also, check for VLA bug in GCC 3.4.3. |
| 7527 |
* doc/autoconf.texi (C Compiler), NEWS: Document the above. |
| 7528 |
|
| 7529 |
doc: Solaris 11 supports $(...) |
| 7530 |
* doc/autoconf.texi (Shell Substitutions): Say that $(...) isn't |
| 7531 |
working in Solaris 10 and earlier, not in "recent releases". |
| 7532 |
|
| 7533 |
doc: modernize character encoding |
| 7534 |
* doc/autoconf.texi: Specify @documentencoding UTF-8. Don't abuse |
| 7535 |
'`' to mean open quote, unless Texinfo already interprets it that |
| 7536 |
way. Be more careful about hyphen versus minus versus endash |
| 7537 |
versus emdash. |
| 7538 |
|
| 7539 |
2014-07-17 Eric Blake <[email protected]> |
| 7540 |
|
| 7541 |
m4sh: allow trailing newlines in shell conditions |
| 7542 |
Dimitrios Apostolou reported getting a shell syntax error for |
| 7543 |
this construct in his configure.ac: |
| 7544 |
|
| 7545 |
AM_CONDITIONAL([HAVE_LIBXML2], |
| 7546 |
[test "x$with_libxml2" != xno && |
| 7547 |
test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes] |
| 7548 |
) |
| 7549 |
|
| 7550 |
He analyzed it to a root cause: his trailing newline, coupled |
| 7551 |
with an 'if $2; then' construct in the macro body, resulted in |
| 7552 |
configure containing: |
| 7553 |
if test ... xyes |
| 7554 |
; then |
| 7555 |
where the semicolon is a syntax error in shell; and proposed |
| 7556 |
a patch to automake to fix his use case. |
| 7557 |
|
| 7558 |
While that macro is not under our control, it does highlight |
| 7559 |
the fact that the shell can use either ; or newline to |
| 7560 |
terminate a conditional prior to the next keyword in a compound |
| 7561 |
statement. If we use newline, we gain two benefits - the |
| 7562 |
configure file is slightly smaller (more lines, but fewer |
| 7563 |
bytes), and any user that doesn't realize that unquoted |
| 7564 |
trailing newlines in a macro argument are still significant |
| 7565 |
can still generate valid shell code when their argument is |
| 7566 |
used in a shell compound statement. |
| 7567 |
|
| 7568 |
* lib/m4sugar/m4sh.m4 (AS_IF, _AS_IF, _AS_CLEAN_DIR): Prefer |
| 7569 |
newline over semicolon to end user-supplied conditionals. |
| 7570 |
* lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Likewise. |
| 7571 |
* lib/autoconf/libs.m4 (AC_SEARCH_LIBS): Likewise. |
| 7572 |
* lib/autoconf/programs.m4 (_AC_PATH_PROGS_FEATURE_CHECK): |
| 7573 |
Likewise. |
| 7574 |
* tests/m4sh.at (AS_IF and AS_CASE): Test it. |
| 7575 |
|
| 7576 |
2014-05-30 Eric Blake <[email protected]> |
| 7577 |
|
| 7578 |
maint: add to THANKS |
| 7579 |
* THANKS: Update. |
| 7580 |
|
| 7581 |
2014-05-30 Eric Blake <[email protected]> |
| 7582 |
|
| 7583 |
AC_INIT: quote invalid feature names |
| 7584 |
Changes: |
| 7585 |
configure: error: invalid feature name: debug |
| 7586 |
to |
| 7587 |
configure: error: invalid feature name: `debug ' |
| 7588 |
to make it obvious if trailing space is the reason why a feature |
| 7589 |
name was rejected; similar to existing error messages elsewhere |
| 7590 |
about invalid shell variable names. |
| 7591 |
|
| 7592 |
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ENABLE2): Add quotes. |
| 7593 |
Reported by Noel Grandin. |
| 7594 |
|
| 7595 |
2014-05-12 Paul Eggert <[email protected]> |
| 7596 |
|
| 7597 |
autoconf: fix typo in description generated by AC_RUN_IFELSE |
| 7598 |
* lib/autoconf/general.m4 (_AC_RUN_IFELSE): "run" not "link" |
| 7599 |
in description. |
| 7600 |
|
| 7601 |
2014-02-13 Vincent Lefevre <[email protected]> (tiny change) |
| 7602 |
|
| 7603 |
Change main () to main (void) for C/C++ |
| 7604 |
This patch changes "main ()" to "main (void)" for C/C++. |
| 7605 |
See: http://lists.gnu.org/archive/html/bug-autoconf/2014-01/msg00005.html |
| 7606 |
|
| 7607 |
On my machine, before this patch, 3 tests were failing: |
| 7608 |
|
| 7609 |
38: tools.at:1329 autom4te cache locking |
| 7610 |
218: autotest.at:1893 C unit tests |
| 7611 |
ac_config_testdir at_tested autotest |
| 7612 |
219: autotest.at:1948 C unit tests (EXEEXT) |
| 7613 |
ac_config_testdir at_tested autotest |
| 7614 |
|
| 7615 |
With this patch, 2 tests were failing: |
| 7616 |
|
| 7617 |
218: autotest.at:1893 C unit tests |
| 7618 |
ac_config_testdir at_tested autotest |
| 7619 |
219: autotest.at:1948 C unit tests (EXEEXT) |
| 7620 |
ac_config_testdir at_tested autotest |
| 7621 |
|
| 7622 |
(I suspect that 38 is unrelated.) |
| 7623 |
|
| 7624 |
2014-02-05 Eric Blake <[email protected]> |
| 7625 |
|
| 7626 |
doc: give an example of using the macro for pkg-config |
| 7627 |
The autoconf manual doesn't mention any examples of actually |
| 7628 |
using m4_pattern_forbid. Yet this is the perfect macro for |
| 7629 |
avoiding the all-too-common failure mode of configure dying with: |
| 7630 |
|
| 7631 |
checking if libxml2 is present... ./configure: line 11586: syntax |
| 7632 |
error |
| 7633 |
near unexpected token `LIBXML2,' |
| 7634 |
./configure: line 11586: `PKG_CHECK_MODULES(LIBXML2, libxml-2.0>= |
| 7635 |
2.6.19,' |
| 7636 |
|
| 7637 |
for developers that forgot to install pkg-config. While we don't |
| 7638 |
necessarily advertise the use of PKG_CHECK_MODULES, it is a |
| 7639 |
common enough situation that the manual should make it easier to |
| 7640 |
help developers learn about missing third-party macros. |
| 7641 |
|
| 7642 |
Based on a mailing list report by Daniel Pocock: |
| 7643 |
http://lists.gnu.org/archive/html/autoconf/2014-01/msg00030.html |
| 7644 |
|
| 7645 |
* doc/autoconf.texi (Forbidden Patterns): Add examples. |
| 7646 |
|
| 7647 |
2014-01-01 Eric Blake <[email protected]> |
| 7648 |
|
| 7649 |
tests: don't let config.site affect testsuite |
| 7650 |
Test 236 "configure directories" failed for me on 64-bit Fedora 20; |
| 7651 |
it boiled down to the system's config.site causing libdir to |
| 7652 |
default to /usr/lib64 instead of the autoconf default of /usr/lib. |
| 7653 |
|
| 7654 |
* tests/base.at (configure directories): Neutralize any preinstalled |
| 7655 |
config.site from the system. |
| 7656 |
|
| 7657 |
2014-01-01 Eric Blake <[email protected]> |
| 7658 |
|
| 7659 |
maint: fix 'make syntax-check' findings |
| 7660 |
Fix syntax check warnings that are unrelated to the new copyright |
| 7661 |
year. |
| 7662 |
|
| 7663 |
* lib/local.mk (lib/autoscan/autoscan.list): Reduce indent, to |
| 7664 |
avoid mix of tab and 8 spaces. |
| 7665 |
* bin/local.mk (bin/autoconf.in): Likewise. |
| 7666 |
* lib/autoconf/c.m4 (_AC_CXX_CXX98_TEST_BODY): Use consistent case |
| 7667 |
in message. |
| 7668 |
|
| 7669 |
2014-01-01 Eric Blake <[email protected]> |
| 7670 |
|
| 7671 |
maint: bump copyright to 2014 |
| 7672 |
Done via 'make update-copyright', since all files are effectively |
| 7673 |
modified and distributed this year via public version control. |
| 7674 |
|
| 7675 |
* all files: Update copyright year. |
| 7676 |
|
| 7677 |
2013-09-21 Zack Weinberg <[email protected]> |
| 7678 |
|
| 7679 |
Expose the checks done by AC_INCLUDES_DEFAULT as a public macro. |
| 7680 |
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): |
| 7681 |
Rename to AC_CHECK_INCLUDES_DEFAULT. All callers changed. |
| 7682 |
(AC_HEADER_STDC, AC_UNISTD_H): Use AC_CHECK_INCLUDES_DEFAULT instead |
| 7683 |
of previous kludge. |
| 7684 |
|
| 7685 |
* doc/autoconf.texi, NEWS: Document AC_CHECK_INCLUDES_DEFAULT. |
| 7686 |
|
| 7687 |
2013-09-21 Zack Weinberg <[email protected]> |
| 7688 |
|
| 7689 |
Use AC_CHECK_{DECLS,FUNCS,HEADERS}_ONCE more in specific-check macros. |
| 7690 |
* lib/autoconf/functions.m4 (AC_FUNC_CHOWN): No need to check for unistd.h. |
| 7691 |
(_AC_LIBOBJ_FNMATCH): Use AC_CHECK_DECLS_ONCE and AC_CHECK_FUNCS_ONCE. |
| 7692 |
(_AC_LIBOBJ_GETLOADAVG): Use AC_CHECK_FUNCS_ONCE for setlocale. |
| 7693 |
(AC_FUNC_MMAP): Use AC_CHECK_FUNCS_ONCE for getpagesize. |
| 7694 |
(AC_FUNC_SELECT_ARGTYPES): Use AC_CHECK_HEADERS_ONCE for sys/select.h and |
| 7695 |
sys/socket.h. |
| 7696 |
(AC_FUNC_STRERROR_R): Use AC_CHECK_DECLS_ONCE + AC_CHECK_FUNCS_ONCE for |
| 7697 |
strerror_r. |
| 7698 |
(AC_FUNC_UTIME_NULL): Use AC_CHECK_HEADERS_ONCE for utime.h. |
| 7699 |
(AC_FUNC_FORK): Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE. |
| 7700 |
(AC_FUNC_VPRINTF): Use AC_CHECK_FUNCS_ONCE for vprintf (but not _doprnt). |
| 7701 |
|
| 7702 |
* lib/autoconf/headers.m4 (AC_HEADER_TIME, AC_MEMORY_H): Use |
| 7703 |
AC_CHECK_HEADERS_ONCE. |
| 7704 |
|
| 7705 |
2013-09-21 Zack Weinberg <[email protected]> |
| 7706 |
|
| 7707 |
Use AC_CHECK_HEADERS_ONCE for the tests done by AC_INCLUDES_DEFAULT. |
| 7708 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): Divide into a public |
| 7709 |
macro that AC_REQUIREs _AC_INCLUDES_DEFAULT_REQUIREMENTS, and ... |
| 7710 |
(_AC_CHECK_HEADERS_ONCE): ... a private macro, that doesn't. |
| 7711 |
(_AC_HEADERS_EXPANSION): Use $ac_includes_default, not |
| 7712 |
AC_INCLUDES_DEFAULT. |
| 7713 |
(_AC_INCLUDES_DEFAULT_REQUIREMENTS): Use AC_CHECK_HEADERS_ONCE. |
| 7714 |
|
| 7715 |
2013-09-21 Zack Weinberg <[email protected]> |
| 7716 |
|
| 7717 |
Modernize AC_INCLUDES_DEFAULT and friends. |
| 7718 |
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS): |
| 7719 |
Include stddef.h, stdlib.h, and string.h unconditionally. |
| 7720 |
Don't include memory.h at all. |
| 7721 |
Don't use AC_HEADER_STDC. |
| 7722 |
Don't check for stddef.h, stdlib.h, string.h, or memory.h. |
| 7723 |
For compatibility, unconditionally define STDC_HEADERS, |
| 7724 |
HAVE_STDLIB_H, and HAVE_STRING_H. |
| 7725 |
(AN_HEADER list): Remove C89 headers, and memory.h from list. |
| 7726 |
(AC_HEADER_STDC, AC_UNISTD_H): AU_DEFUN to trigger |
| 7727 |
_AC_INCLUDES_DEFAULT_REQUIREMENTS if it hasn't already happened, |
| 7728 |
and do nothing else. |
| 7729 |
(AC_HEADER_TIME): AU_DEFUN, and define TIME_WITH_SYS_TIME unconditionally |
| 7730 |
as long as sys/time.h is present. |
| 7731 |
(AC_USG, AC_MEMORY_H): Assume existence of string.h. |
| 7732 |
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF): |
| 7733 |
Don't use AC_HEADER_STDC. Assume stdlib.h exists. |
| 7734 |
(AC_FUNC_MKTIME): Don't use AC_HEADER_TIME. Assume time.h exists. |
| 7735 |
(AC_FUNC_ALLOCA): Assume stdlib.h exists. |
| 7736 |
(_AC_LIBOBJ_FNMATCH): Assume wchar.h and wctype.h exist. |
| 7737 |
(_AC_LIBOBJ_GETLOADAVG): Assume locale.h exists. |
| 7738 |
(AC_FUNC_MMAP): Assume stdlib.h exists. |
| 7739 |
* tests/tools.at: Use AC_WORDS_BIGENDIAN instead of AC_STDC_HEADERS in |
| 7740 |
autoupdate test. |
| 7741 |
|
| 7742 |
* NEWS, doc/autoconf.texi: Document changes. Remove obsolete advice. |
| 7743 |
|
| 7744 |
2013-09-21 Zack Weinberg <[email protected]> |
| 7745 |
|
| 7746 |
AC_CHECK_HEADER/AC_CHECK_HEADERS: complete transition to compile tests. |
| 7747 |
* lib/autoconf/headers.m4 (AC_CHECK_HEADER): Use _AC_CHECK_HEADER_COMPILE |
| 7748 |
by default. Continue to use _AC_CHECK_HEADER_PREPROC if fourth arg is '-'. |
| 7749 |
(_AC_CHECK_HEADER_PREPROC): Issue a deprecation warning. |
| 7750 |
(_AC_CHECK_HEADER_MONGREL, _AC_CHECK_HEADER_MONGREL_BODY): Remove. |
| 7751 |
|
| 7752 |
* tests/c.at, tests/semantics.at: Update uses of AC_CHECK_HEADER(S). |
| 7753 |
* doc/autoconf.texi, NEWS: Document change. |
| 7754 |
|
| 7755 |
2013-09-21 Zack Weinberg <[email protected]> |
| 7756 |
|
| 7757 |
* tests/local.at (AT_CHECK_M4): Support 'stderr' as fourth argument. |
| 7758 |
|
| 7759 |
2013-09-21 Eric Blake <[email protected]> |
| 7760 |
|
| 7761 |
admin: mention recent copyright assignments |
| 7762 |
* AUTHORS: Update list. |
| 7763 |
|
| 7764 |
2013-09-14 Eric Blake <[email protected]> |
| 7765 |
|
| 7766 |
AC_INIT: add --runstatedir option to configure |
| 7767 |
http://lwn.net/Articles/436012/ documents that many distros |
| 7768 |
are now preferring to use /run rather than /var/run for |
| 7769 |
storage of pid files and other per-process temporary files |
| 7770 |
that must not be cleaned out during arbitrary TMPDIR sweeps. |
| 7771 |
As such, the GNU Coding Standards were recently changed to |
| 7772 |
recommend a new configure option to make it easy to choose |
| 7773 |
this directory at configure time. This patch adds support |
| 7774 |
for the option to all configure scripts built by autoconf. |
| 7775 |
|
| 7776 |
* general.m4 (_AC_INIT_PARSE_ARGS): Add new directory option. |
| 7777 |
(_AC_INIT_HELP): Document it. |
| 7778 |
* doc/autoconf.texi (Installation Directory Variables): Document |
| 7779 |
new option. |
| 7780 |
(Site Defaults): Mention typical use within a distro. |
| 7781 |
* NEWS: Mention the addition. |
| 7782 |
|
| 7783 |
2013-09-12 Eric Blake <[email protected]> |
| 7784 |
|
| 7785 |
AC_PROG_CC: also try $CC -version, for cl6x compiler |
| 7786 |
Anaïs Bouque reported that the cl6x compiler only understands -version: |
| 7787 |
https://lists.gnu.org/archive/html/bug-autoconf/2013-07/msg00003.html |
| 7788 |
|
| 7789 |
* c.m4 (AC_PROG_CC): Add another version probe. |
| 7790 |
* THANKS: Update. |
| 7791 |
|
| 7792 |
2013-09-05 Eric Blake <[email protected]> |
| 7793 |
|
| 7794 |
doc: mention how to set early defaults |
| 7795 |
Jonathan Lebon reported an issue to me off-list about a regression |
| 7796 |
in libvirt's configure script, which I traced to a patch that |
| 7797 |
rearranged code that was checking $with_library compared to the |
| 7798 |
AC_ARG_WITH that actually set $with_library [1]. As the whole point |
| 7799 |
of the libvirt patch was to refactor code to make maintenance |
| 7800 |
easier by hiding the AC_ARG_WITH in a helper macro for a net |
| 7801 |
reduction in lines, it makes sense to actually document how to |
| 7802 |
check what value a variable has prior to the AC_ARG_WITH usage. |
| 7803 |
|
| 7804 |
Alas, although the functionality for this has been present in |
| 7805 |
autoconf for ages, the documentation has been lacking. |
| 7806 |
|
| 7807 |
[1] libvirt.org/git/?p=libvirt.git;a=commitdiff;h=654c709 |
| 7808 |
|
| 7809 |
* doc/autoconf.texi (Diversion support) <m4_divert_text>: Add |
| 7810 |
anchor. |
| 7811 |
(External Software) <AC_ARG_WITH>: Demonstrate how to use DEFAULTS |
| 7812 |
diversion, for earlier defaults. |
| 7813 |
(Package Options) <AC_ARG_ENABLE>: Likewise. |
| 7814 |
* THANKS: Add Jonathan Lebon. |
| 7815 |
|
| 7816 |
2013-08-10 Paul Eggert <[email protected]> |
| 7817 |
|
| 7818 |
doc: 'configure && make', not 'configure; make' (Bug#15066) |
| 7819 |
* doc/install.texi (Basic Installation): Say '&&', not ';'. |
| 7820 |
|
| 7821 |
2013-06-29 Paul Eggert <[email protected]> |
| 7822 |
|
| 7823 |
doc: don't push 'static inline' |
| 7824 |
* doc/autoconf.texi (Function Portability): Use plain 'static', |
| 7825 |
not 'static inline', in example. These days, 'static' is enough; |
| 7826 |
optimizing compilers can figure out the 'inline' on their own. |
| 7827 |
|
| 7828 |
2013-06-21 Paul Eggert <[email protected]> |
| 7829 |
|
| 7830 |
* lib/autoconf/functions.m4 (HAVE_DOPRNT): Fix missing-comma typo. |
| 7831 |
Reported by Peter Breitenlohner in: |
| 7832 |
http://lists.gnu.org/archive/html/autoconf-patches/2013-06/msg00007.html |
| 7833 |
|
| 7834 |
2013-05-28 Stefano Lattarini <[email protected]> |
| 7835 |
|
| 7836 |
AC_PROG_CC: don't check whether $CC supports "-c -o" together |
| 7837 |
This reverts commit ce48964f. The extra code added by that commit was |
| 7838 |
planned to be used by future version of Automake, but the implementation |
| 7839 |
and future directions there have in the meantime be changed in a way |
| 7840 |
that makes the extra code in Autoconf superfluous. Just get rid of it. |
| 7841 |
|
| 7842 |
* lib/autoconf/c.m4 (AC_PROG_CC): Adjust. |
| 7843 |
|
| 7844 |
2013-05-28 Stefano Lattarini <[email protected]> |
| 7845 |
|
| 7846 |
maint: sync few files from upstream |
| 7847 |
* build-aux/config.guess: This file. |
| 7848 |
* lib/Autom4te/Channels.pm: And this one. |
| 7849 |
* maint.mk: And this one. |
| 7850 |
|
| 7851 |
2013-05-06 Stefano Lattarini <[email protected]> |
| 7852 |
|
| 7853 |
build: remove refs to obsolescent 'mkinstalldir' script and variable |
| 7854 |
* .gitignore: Here. |
| 7855 |
* Makefile.am (check-coverage-run): Use $(MKDIR_P) rather than |
| 7856 |
$(mkinstalldirs). |
| 7857 |
|
| 7858 |
build: remove last make recursion (for subdir 'man') |
| 7859 |
* Makefile.am (SUBDIRS): Remove (its last component 'man' has just |
| 7860 |
been removed). |
| 7861 |
(SUFFIXES): New, defined to empty, to be updated later by included |
| 7862 |
files. |
| 7863 |
($(srcdir)/man/local.mk): Include this. |
| 7864 |
* configure.ac (AC_CONFIG_FILES): Drop 'man/Makefile'. |
| 7865 |
* lib/freeze.mk (SUFFIXES): Extend with '+=' rather than defining |
| 7866 |
with '='. |
| 7867 |
* man/Makefile.am: Rename ... |
| 7868 |
* man/local.mk: ... like this, and adjust throughout. |
| 7869 |
|
| 7870 |
build: no more recursion for 'tests' subdir |
| 7871 |
* Makefile.am (SUBDIRS): Drop 'tests'. Adjust comments. |
| 7872 |
(DISTCLEANFILES, MAINTAINERCLEANFILES): Define to empty, to be |
| 7873 |
updated later. |
| 7874 |
(MAINTAINERCLEANFILES): Adjust later definition to use '+=' |
| 7875 |
rather than '='. |
| 7876 |
($(srcdir)/tests/local.mk): Include this. |
| 7877 |
* configure.ac (AC_CONFIG_FILES): Drop 'tests/Makefile'. |
| 7878 |
* lib/freeze.mk ($(AUTOM4TE_CFG)): Drop now-redundant remake rule. |
| 7879 |
($(build_libdir)/m4sugar/version.m4): Likewise. |
| 7880 |
* tests/Makefile.am: Rename ... |
| 7881 |
* tests/local.mk: ... like this, and adjust (quite heavily). |
| 7882 |
* tests/mktests.sh: Adjust to generate output files and temporary |
| 7883 |
files in the tests subdirectory rather than in the current |
| 7884 |
directory. |
| 7885 |
|
| 7886 |
build: fixup: don't define ETAGS_ARGS multiple times |
| 7887 |
* Makefile.am (ETAGS_ARGS): Define to empty, to be updated later. |
| 7888 |
* bin/local.mk (ETAGS_ARGS): Append to it, rather than re-defining it. |
| 7889 |
* lib/local.mk (ETAGS_ARGS): Likewise. Also, do not bother appending |
| 7890 |
"--lang=perl" once again, as that is already done in 'bin/local.mk'. |
| 7891 |
|
| 7892 |
build: avoid repeating the same etags args several times |
| 7893 |
* lib/local.mk: Here. |
| 7894 |
|
| 7895 |
build: no more recursion for lib 'subdir' |
| 7896 |
* Makefile.am (SUBDIRS): Drop 'lib'. |
| 7897 |
(edit): New, shared among the recipes in 'lib/local.mk' and |
| 7898 |
'bin/local.mk'. |
| 7899 |
(CLEANFILES): New, will be updated later in included files. |
| 7900 |
($(srcdir)/lib/local.mk): Include it. |
| 7901 |
($(srcdir)/lib/freeze.mk): Likewise. |
| 7902 |
* lib/Makefile.am: Rename ... |
| 7903 |
* lib/local.mk: .. like this, with several adjustments. In |
| 7904 |
particular ... |
| 7905 |
(edit): Drop this definition, subsumed by the one in the |
| 7906 |
top-level Makefile.am. |
| 7907 |
* bin/local.mk (edit): Drop definition, that is already present |
| 7908 |
in the top-level Makefile.am now. |
| 7909 |
($(srcdir)/lib/freeze.mk): Drop inclusion; that is already done |
| 7910 |
in the top-level Makefile.am now. |
| 7911 |
* doc/local.mk (CLEANFILES): Adjust: append to it, do not define |
| 7912 |
it. |
| 7913 |
* lib/freeze.mk ($(AUTOM4TE_CFG)): Adjust recipe. |
| 7914 |
* configure.ac (AC_CONFIG_FILES): Drop 'lib/Makefile'. |
| 7915 |
|
| 7916 |
2013-05-06 Stefano Lattarini <[email protected]> |
| 7917 |
|
| 7918 |
build: define RELEASE_YEAR with AC_SUBST |
| 7919 |
Rather than reading it dynamically from the ChangeLog -- that, |
| 7920 |
remember, is only a dummy in a Git checkout! To avoid risking |
| 7921 |
the definition to get out-of-sync, let's enhance the maintainer |
| 7922 |
target 'update-copyright' to update it automatically (the same |
| 7923 |
way it's done in the Automake build system). |
| 7924 |
|
| 7925 |
* configure.ac (RELEASE_YEAR): New AC_SUBST'd variable. |
| 7926 |
* cfg.mk (update-release-year): New maintainer-specific target |
| 7927 |
to automatically update the value of that variable. |
| 7928 |
(update-copyright): Depend on the new target. |
| 7929 |
* bin/local.mk (RELEASE_YEAR): Drop definition. |
| 7930 |
(edit): Simplify quoting of $(RELEASE_YEAR). |
| 7931 |
* lib/Makefile.am (RELEASE_YEAR): Drop definition. |
| 7932 |
(m4sugar/version.m4): Simplify quoting of $(RELEASE_YEAR). |
| 7933 |
|
| 7934 |
2013-05-06 Stefano Lattarini <[email protected]> |
| 7935 |
|
| 7936 |
build: no more recursion for 'lib/Autom4te' subdir |
| 7937 |
* lib/Autom4te/Makefile.am: Delete, its contents merged ... |
| 7938 |
* lib/Makefile.am: ... in here, with proper adjustments. |
| 7939 |
(SUBDIRS): Delete (last component 'Autom4te' has been dropped). |
| 7940 |
* configure.ac (AC_CONFIG_FILES): Drop 'lib/Autom4te/Makefile'. |
| 7941 |
|
| 7942 |
build: no more recursion for' lib/autoconf' subdir |
| 7943 |
* lib/autoconf/Makefile.am: Delete, its contents merged ... |
| 7944 |
* lib/Makefile.am: ... in here, with proper adjustments. |
| 7945 |
(SUBDIRS): Drop 'autoconf'. |
| 7946 |
* configure.ac (AC_CONFIG_FILES): Drop 'lib/autoconf/Makefile'. |
| 7947 |
|
| 7948 |
build: no more recursion for 'lib/m4sugar' subdir |
| 7949 |
* lib/m4sugar/Makefile.am: Delete, its contents merged ... |
| 7950 |
* lib/Makefile.am: ... in here, with proper adjustments. |
| 7951 |
(SUBDIRS): Drop 'lib/m4sugar'. |
| 7952 |
Other related adjustments and re-organizations. |
| 7953 |
* configure.ac (AC_CONFIG_FILES): Drop 'lib/m4sugar/Makefile'. |
| 7954 |
* lib/freeze.mk ($(build_libdir)/m4sugar/version.m4): Adjust |
| 7955 |
recipe. |
| 7956 |
|
| 7957 |
build: no more recursion for 'lib/autotest' subdir |
| 7958 |
* lib/autotest/Makefile.am: Delete, its contents merged ... |
| 7959 |
* lib/Makefile.am: ... in here, with proper adjustments. |
| 7960 |
(SUBDIRS): Drop 'autotest'. |
| 7961 |
Other minor related modifications. |
| 7962 |
* configure.ac (AC_CONFIG_FILES): Drop 'lib/autotest/Makefile'. |
| 7963 |
* lib/freeze.mk (MY_AUTOM4TE): Small required adjustments. |
| 7964 |
|
| 7965 |
build: no more recursion for 'lib/autoscan' subdir |
| 7966 |
* lib/autoscan/Makefile.am: Delete, its contents merged ... |
| 7967 |
* lib/Makefile.am: ... in here, with proper adjustments. |
| 7968 |
(SUBDIRS): Drop 'autoscan'. |
| 7969 |
* configure.ac (AC_CONFIG_FILES): Drop 'lib/autoscan/Makefile'. |
| 7970 |
|
| 7971 |
build: no more recursion for 'lib/emacs' subdir |
| 7972 |
* lib/emacs/Makefile.am: Delete, its contents merged ... |
| 7973 |
* lib/Makefile.am: ... in here, with proper adjustments. |
| 7974 |
(SUBDIRS): Drop 'emacs'. |
| 7975 |
* configure.ac (AC_CONFIG_FILES): Drop 'lib/emacs/Makefile'. |
| 7976 |
|
| 7977 |
build: no more make recursion for 'bin' subdir |
| 7978 |
* Makefile.am (MOSTLYCLEANFILES): New, to be extended later by |
| 7979 |
included files. |
| 7980 |
($(srcdir)/doc/local.mk): New include. |
| 7981 |
(SUBDIRS): Drop 'bin'. Adjust comments. |
| 7982 |
* bin/Makefile.am: Rename ... |
| 7983 |
* bin/local.mk: ... like this, and adjust. |
| 7984 |
* configure.ac (AC_CONFIG_FILES): Drop 'bin/Makefile'. |
| 7985 |
|
| 7986 |
build: no more make recursion for 'doc' subdir |
| 7987 |
* .gitignore: Adjust. |
| 7988 |
* Makefile.am ($(srcdir)/doc/local.mk): New include. |
| 7989 |
(SUBDIRS): Drop 'doc'. |
| 7990 |
(AM_MAKEINFOFLAGS): Rename ... |
| 7991 |
(custom_MAKEINFOFLAGS): ... like this, to avoid conflicting with |
| 7992 |
the AM_MAKEINFOFLAGS defined in the included 'doc/local.mk' |
| 7993 |
($(srcdir)/INSTALL): Adjust recipe. |
| 7994 |
* doc/Makefile.am: Rename ... |
| 7995 |
* doc/local.mk: ... like this, and adjust. |
| 7996 |
* configure.ac (AC_CONFIG_FILES): Drop 'doc/Makefile'. |
| 7997 |
|
| 7998 |
2013-05-06 Stefano Lattarini <[email protected]> |
| 7999 |
|
| 8000 |
build: don't distribute lib/freeze.mk explicitly |
| 8001 |
It is automatically distributed by Automake, being included by |
| 8002 |
other Makefile.am files. |
| 8003 |
|
| 8004 |
* lib/Makefile.am (EXTRA_DIST): Drop 'freeze.mk'. |
| 8005 |
|
| 8006 |
2013-05-05 Stefano Lattarini <[email protected]> |
| 8007 |
|
| 8008 |
sync: some files from upstream |
| 8009 |
* build-aux/config.guess: This. |
| 8010 |
* build-aux/config.sub: And this. |
| 8011 |
* build-aux/gendocs.sh: And this. |
| 8012 |
* build-aux/gnupload: And this. |
| 8013 |
* build-aux/texinfo.tex: And this. |
| 8014 |
* doc/standards.texi: And this. |
| 8015 |
|
| 8016 |
2013-04-24 Paul Eggert <[email protected]> |
| 8017 |
|
| 8018 |
doc: add missing semicolons to make rules |
| 8019 |
Problem reported by Peter Eisentraut in |
| 8020 |
<http://lists.gnu.org/archive/html/bug-autoconf/2013-04/msg00007.html>. |
| 8021 |
* doc/autoconf.texi (Automatic Remaking): Append semicolons |
| 8022 |
to rules that need empty commands. |
| 8023 |
|
| 8024 |
2013-03-19 Paul Eggert <[email protected]> |
| 8025 |
|
| 8026 |
AC_PROG_CC etc: avoid warnings when removing conftest* on OS X |
| 8027 |
I forgot one of the fixes Mr. Nakada reported for the 2013-03-08 fix. |
| 8028 |
* lib/autoconf/general.m4 (AC_EGREP_CPP): |
| 8029 |
Use rm -rf, not just rm -f, when removing conftest*. |
| 8030 |
|
| 8031 |
2013-03-19 Akim Demaille <[email protected]> |
| 8032 |
|
| 8033 |
AC_PROG_YACC: don't force Bison to warn against its own features |
| 8034 |
When invoked with -y/--yacc, Bison warns when its extensions over |
| 8035 |
POSIX Yacc are used. Yet many packages requiring GNU Bison use |
| 8036 |
Autoconf/Automake's Yacc support, which passes -y to Bison. It |
| 8037 |
turns out that passing '-o y.tab.c' has exactly the desired |
| 8038 |
effect: generating not only y.tab.c but also y.tab.h with -d and |
| 8039 |
y.output with -v. See: |
| 8040 |
http://lists.gnu.org/archive/html/bison-patches/2013-02/msg00100.html |
| 8041 |
* lib/autoconf/programs.m4 (AC_PROG_YACC): Use bison -o y.tab.c. |
| 8042 |
* NEWS, doc/autoconf.texi: Document this change. |
| 8043 |
|
| 8044 |
2013-03-08 Paul Eggert <[email protected]> |
| 8045 |
|
| 8046 |
doc: explain why single-quoting is better |
| 8047 |
* doc/autoconf.texi (Build Directories): Explain single-quoting. |
| 8048 |
Reported by Markus Elfring in |
| 8049 |
<http://savannah.gnu.org/support/?108262>. |
| 8050 |
|
| 8051 |
AC_PROG_CC etc: avoid warnings when removing conftest* on OS X |
| 8052 |
Reported by Nobuyoshi Nakada in: |
| 8053 |
http://lists.gnu.org/archive/html/autoconf-patches/2013-03/msg00003.html |
| 8054 |
* lib/autoconf/c.m4 (AC_PROG_CC, AC_PROG_CC_C_O, AC_PROG_CXX_C_O): |
| 8055 |
* lib/autoconf/fortran.m4 (_AC_PROG_FC_C_O): |
| 8056 |
* lib/autoconf/functions.m4 (AC_FUNC_SELECT_ARGTYPES): |
| 8057 |
Use rm -rf, not just rm -f, when removing conftest*. |
| 8058 |
|
| 8059 |
2013-03-05 Pavel Raiskup <[email protected]> |
| 8060 |
|
| 8061 |
docs: configure.in still mentioned in manpages |
| 8062 |
* man/autoupdate.x: Mention configure.ac as preferred name. |
| 8063 |
* man/autoscan.x: Likewise. |
| 8064 |
|
| 8065 |
2013-02-23 Paul Eggert <[email protected]> |
| 8066 |
|
| 8067 |
AC_FUNC_GETLOADAVG: doc fix |
| 8068 |
* doc/autoconf.texi (Particular Functions): |
| 8069 |
Omit incorrect mention of @var{dir} before getloadavg.c. |
| 8070 |
Problem reported by Patricke Welche in: |
| 8071 |
http://lists.gnu.org/archive/html/autoconf-patches/2013-02/msg00006.html |
| 8072 |
|
| 8073 |
2013-02-14 Paul Eggert <[email protected]> |
| 8074 |
|
| 8075 |
AC_FUNC_SETPGRP: work even when cross-compiling |
| 8076 |
* lib/autoconf/functions.m4 (AC_FUNC_SETPGRP): |
| 8077 |
Use AC_COMPILE_IFELSE rather than AC_RUN_IFELSE. |
| 8078 |
Problem reported by Alvaro Soliverez in |
| 8079 |
<http://lists.gnu.org/archive/html/bug-autoconf/2013-02/msg00002.html>. |
| 8080 |
|
| 8081 |
2013-02-08 Paul Eggert <[email protected]> |
| 8082 |
|
| 8083 |
AC_USE_SYSTEM_EXTENSIONS: improve port to HP-UX |
| 8084 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): |
| 8085 |
On hosts that need _XOPEN_SOURCE, define it when configuring, too, |
| 8086 |
so that it's compatible with the value used when compiling. |
| 8087 |
|
| 8088 |
2013-02-07 Paul Eggert <[email protected]> |
| 8089 |
|
| 8090 |
AC_USE_SYSTEM_EXTENSIONS: port to HP-UX, MINUX 3, OS X. |
| 8091 |
* NEWS: Mention this. |
| 8092 |
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): |
| 8093 |
Define _NETBSD_HOST on MINUX, for MINUX 3. |
| 8094 |
Define _DARWIN_C_SOURCE, for OS X. |
| 8095 |
On HP-UX, define _XOPEN_SOURCE. |
| 8096 |
|
| 8097 |
2013-01-29 Paul Eggert <[email protected]> |
| 8098 |
|
| 8099 |
autoscan: port to perl 5.17 |
| 8100 |
* bin/autoscan.in (scan_sh_file): Escape '{'. This avoids a |
| 8101 |
feature that is deprecated in Perl 5.17. Reported by Ray Lauff in |
| 8102 |
<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00059.html>. |
| 8103 |
|
| 8104 |
2013-01-29 Gary V. Vaughan <[email protected]> |
| 8105 |
|
| 8106 |
m4sugar: fix AS_VAR_GET regression. |
| 8107 |
AS_VAR_GET expands AS_ECHO inside en evaled single quoted string, |
| 8108 |
which causes the single quotes in "printf '%s\n'" to expose the |
| 8109 |
%s\n to the shell which expands "\n" to simply "n" before passing |
| 8110 |
it to printf. |
| 8111 |
* lib/m4sugar/m4sh.m4 (AS_ECHO): Use double quotes around the |
| 8112 |
format string. |
| 8113 |
* doc/autoconf.texi (Limitations of Shell Builtins): Show double |
| 8114 |
quotes to match AS_ECHO expansion. |
| 8115 |
* NEWS: Likewise. |
| 8116 |
|
| 8117 |
m4sugar: factor away _AS_ECHO_PREPARE. |
| 8118 |
"printf '%s\n' ..." has been a fine replacement for plain "echo" |
| 8119 |
for at least 5 years (probably more like 10), even with most |
| 8120 |
museum-piece shells. |
| 8121 |
* lib/m4sugar/m4sh.m4 (_AS_ECHO_PREPARE): Remove. |
| 8122 |
(_AS_SHELL_SANITIZE): Keep as_nl setting originally from |
| 8123 |
_AS_ECHO_PREPARE here where it more properly belongs. |
| 8124 |
(AS_ECHO, AS_ECHO_N): Use printf unconditionally. |
| 8125 |
* doc/autoconf.texi (Limitations of Shell Builtins): Document |
| 8126 |
preference for 'printf' over working around 'echo' bugs. |
| 8127 |
* NEWS: Updated. |
| 8128 |
Reported by Jim Meyering. |
| 8129 |
|
| 8130 |
2013-01-29 Paul Eggert <[email protected]> |
| 8131 |
|
| 8132 |
AC_PROG_CXX: document change |
| 8133 |
* NEWS: Document recent change to AC_PROG_CXX. |
| 8134 |
|
| 8135 |
2013-01-29 Roger Leigh <[email protected]> |
| 8136 |
|
| 8137 |
AC_PROG_CXX: Add checks for C++11, C++98TR1 and C++98 |
| 8138 |
These checks are the C++ equivalent of the existing C |
| 8139 |
standards checks. |
| 8140 |
* doc/autoconf.texi (C++ Compiler): Document new behavior. |
| 8141 |
* lib/autoconf/c.m4 (AC_PROG_CXX): Try for C++11, |
| 8142 |
falling back to C++98. |
| 8143 |
(_AC_CXX_STD_TRY, _AC_CXX_CXX98_TEST_HEADER, _AC_CXX_CXX98_TEST_BODY) |
| 8144 |
(_AC_CXX_CXX11_TEST_HEADER, _AC_CXX_CXX11_TEST_BODY) |
| 8145 |
(_AC_PROG_CXX_CXX98, _AC_PROG_CXX_CXX11): |
| 8146 |
New macros. |
| 8147 |
|
| 8148 |
2013-01-16 Eric Blake <[email protected]> |
| 8149 |
|
| 8150 |
AT_TESTED: fix regression in word splitting |
| 8151 |
Regression introduced in commit 851ef51. |
| 8152 |
|
| 8153 |
* lib/autotest/general.m4 (AT_TESTED): Rework loop to quote each |
| 8154 |
element, not the entire argument. |
| 8155 |
|
| 8156 |
2013-01-16 Paul Eggert <[email protected]> |
| 8157 |
|
| 8158 |
AC_SYS_LARGEFILE: port better to Mac OS X 10.5. |
| 8159 |
* lib/autoconf/specific.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not |
| 8160 |
AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems |
| 8161 |
with ino_t size being different for configuration time versus |
| 8162 |
build/run time. Problem reported by PHO in |
| 8163 |
<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>. |
| 8164 |
|
| 8165 |
2013-01-11 Stefano Lattarini <[email protected]> |
| 8166 |
|
| 8167 |
AC_PROG_CC: also check whether $CC supports "-c -o" together |
| 8168 |
This is for Automake and its 'subdir-object' mode (see automake bug#13378, |
| 8169 |
in particular <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13378#73>), so |
| 8170 |
we make the new behavior available only if the special witness macro |
| 8171 |
'_AM_PROG_CC_C_O_HELPME' is defined (future Automake versions will define |
| 8172 |
it). We might decide, at a later date, to make this behaviour public; |
| 8173 |
but then we'll have to discuss its usefulness and design more in depth, |
| 8174 |
and if they are agreed upon, adjust the documentation to match, and also |
| 8175 |
decide what to do with the macro AC_PROG_CC_C_O, with its similar (but |
| 8176 |
slightly incompatible) semantics; since doing so right now would bring us |
| 8177 |
off-track (and Automake needs this change *today*, or better, yesterday), |
| 8178 |
we proceed with this simpler hack. |
| 8179 |
|
| 8180 |
* lib/autoconf/c.m4 (AC_PROG_CC): Adjust. |
| 8181 |
|
| 8182 |
2013-01-03 Eric Blake <[email protected]> |
| 8183 |
|
| 8184 |
maint: resync files from upstream |
| 8185 |
'make syntax-check' complained about something that was already |
| 8186 |
fixed upstream in doc/standards.texi, so I ran 'make update', and |
| 8187 |
omitted lib/Autom4te as that still has some issues to be sorted out. |
| 8188 |
|
| 8189 |
* GNUmakefile: Resync from upstream. |
| 8190 |
* build-aux/announce-gen: Likewise. |
| 8191 |
* build-aux/config.guess: Likewise. |
| 8192 |
* build-aux/config.sub: Likewise. |
| 8193 |
* build-aux/git-version-gen: Likewise. |
| 8194 |
* build-aux/gitlog-to-changelog: Likewise. |
| 8195 |
* build-aux/gnupload: Likewise. |
| 8196 |
* build-aux/move-if-change: Likewise. |
| 8197 |
* build-aux/texinfo.tex: Likewise. |
| 8198 |
* build-aux/update-copyright: Likewise. |
| 8199 |
* build-aux/useless-if-before-free: Likewise. |
| 8200 |
* build-aux/vc-list-files: Likewise. |
| 8201 |
* doc/gendocs_template: Likewise. |
| 8202 |
* doc/standards.texi: Likewise. |
| 8203 |
* m4/autobuild.m4: Likewise. |
| 8204 |
* maint.mk: Likewise. |
| 8205 |
|
| 8206 |
2013-01-03 Eric Blake <[email protected]> |
| 8207 |
|
| 8208 |
maint: bump copyright to 2013 |
| 8209 |
Done via 'make update-copyright', since all files are effectively |
| 8210 |
modified and distributed this year via public version control. |
| 8211 |
|
| 8212 |
* all files: Update copyright year. |
| 8213 |
|
| 8214 |
2013-01-02 Stefano Lattarini <[email protected]> |
| 8215 |
|
| 8216 |
go: fix checks for about I/O functions |
| 8217 |
Reference: |
| 8218 |
<http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00000.html> |
| 8219 |
|
| 8220 |
* lib/autoconf/go.m4 (_AC_LANG_IO_PROGRAM(Go), AC_LANG_INT_SAVE): Here, |
| 8221 |
correctly use 'os.OpenFile()' <http://golang.org/pkg/os/#OpenFile> |
| 8222 |
rather than 'os.Open()' <http://golang.org/pkg/os/#Open> (which has |
| 8223 |
more restricted semantics and incompatible signature). |
| 8224 |
|
| 8225 |
2012-12-29 Stefano Lattarini <[email protected]> |
| 8226 |
|
| 8227 |
preselections: update for Automake 1.13. |
| 8228 |
Issue revealed by a failure in test "36: autom4te preselections". |
| 8229 |
|
| 8230 |
* autoconf/lib/autom4te.in (Automake-preselections): Add |
| 8231 |
'AM_EXTRA_RECURSIVE_TARGETS', remove '_AM_EXTRA_RECURSIVE_TARGETS'; |
| 8232 |
this latter is not, and will not be, present in any *released* |
| 8233 |
Automake version. |
| 8234 |
|
| 8235 |
2012-12-29 Stefano Lattarini <[email protected]> |
| 8236 |
|
| 8237 |
maint: sync some files from gnulib |
| 8238 |
* build-aux/config.guess: Synced by "make gnulib-update". |
| 8239 |
* build-aux/config.sub: Likewise. |
| 8240 |
* build-aux/gendocs.sh: Likewise. |
| 8241 |
* build-aux/gnupload: Likewise. |
| 8242 |
* build-aux/texinfo.tex: Likewise. |
| 8243 |
* doc/gendocs_template: Likewise. |
| 8244 |
* doc/standards.texi: Likewise. |
| 8245 |
* maint.mk: Likewise. |
| 8246 |
|
| 8247 |
2012-12-29 Stefano Lattarini <[email protected]> |
| 8248 |
|
| 8249 |
maint: don't sync the 'Autom4te::Configure_ac' module from Automake |
| 8250 |
That file has been removed in the master branch of Automake, since |
| 8251 |
Automake 1.14 will remove support for 'configure.in' as a name for |
| 8252 |
Autoconf input files. See commits 'v1.13-17-gbff57c8' and |
| 8253 |
'v1.13-21-g7626e63' in the Automake repository. |
| 8254 |
|
| 8255 |
* cfg.mk (autom4te_files): Remove 'Autom4te/Configure_ac.pm'. |
| 8256 |
|
| 8257 |
2012-12-27 Paul Eggert <[email protected]> |
| 8258 |
|
| 8259 |
AC_C__GENERIC: New macro. |
| 8260 |
* NEWS, doc/autoconf.texi (C Compiler): Document it. |
| 8261 |
* lib/autoconf/c.m4 (AC_C__GENERIC): Implement it. |
| 8262 |
|
| 8263 |
2012-12-22 Paolo Bonzini <[email protected]> |
| 8264 |
|
| 8265 |
autotest: enable usage of EXEEXT in AT_TESTED |
| 8266 |
Together with Linux's binfmt-misc feature, Wine can be used to test |
| 8267 |
cross-compiled programs as if they were native. However, the shell |
| 8268 |
will not perform the "magic" addition of the .exe extension after a |
| 8269 |
program name when searching for an executable. These simple patches |
| 8270 |
let the user work around this by specifying $EXEEXT in the AT_CHECK |
| 8271 |
and AT_TESTED argument. (More care is needed because of carriage |
| 8272 |
returns, but this is beyond the scope of this series). |
| 8273 |
|
| 8274 |
* tests/autotest.at (AT_INIT): Expand contents of $at_tested. |
| 8275 |
(AT_TESTED): Quote each program that is passed to the function. |
| 8276 |
* lib/autotest/general.m4 (C unit tests): Add AT_TESTED invocation |
| 8277 |
and keyword. |
| 8278 |
* doc/autoconf.texi (Writing testsuites): Document usage of variables |
| 8279 |
in AT_TESTED. |
| 8280 |
* NEWS: Document change. |
| 8281 |
|
| 8282 |
2012-12-22 Paolo Bonzini <[email protected]> |
| 8283 |
|
| 8284 |
autotest: add a simple test suite that runs a C program |
| 8285 |
* tests/autotest.at (C unit tests): New testcase. |
| 8286 |
* NEWS: Document change. |
| 8287 |
|
| 8288 |
autotest: annotate tests that use AC_CONFIG_TESTDIR |
| 8289 |
* tests/autotest.at (srcdir propagation, Erlang Eunit unit tests): |
| 8290 |
Add a keyword for AC_CONFIG_TESTDIR. |
| 8291 |
|
| 8292 |
2012-12-21 Paul Eggert <[email protected]> |
| 8293 |
|
| 8294 |
AC_FUNC_ALLOCA: port to recent BSDs and remove obsolete AIX |
| 8295 |
* doc/autoconf.texi (Particular Functions): Remove the AIX case |
| 8296 |
from the recommended code, as the most recent version of the AIX |
| 8297 |
compiler that IBM still supports (V10.1 as of this writing) has |
| 8298 |
<alloca.h> and thus longer needs this, and the old suggestion |
| 8299 |
wasn't completely working anyway. Remove obsolete discussion of |
| 8300 |
SVR3 libPW alloca and of SVR4 libucb alloca. |
| 8301 |
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA): |
| 8302 |
Rework to match documentation, including abovementioned AIX change. |
| 8303 |
Inconsistency with documentation reported by Steven G. Johnson in |
| 8304 |
<http://lists.gnu.org/archive/html/autoconf/2003-03/msg00179.html>. |
| 8305 |
As this adds stdlib.h, it should also fix the problems on recent |
| 8306 |
BSD platforms noted by Patrick Welche in |
| 8307 |
http://lists.gnu.org/archive/html/autoconf-patches/2012-12/msg00009.html |
| 8308 |
though the fix differs from NetBSD's current workaround. |
| 8309 |
Also, don't bother checking for alloca if <alloca.h> works, |
| 8310 |
as the latter implies the former. |
| 8311 |
|
| 8312 |
2012-12-10 Paul Eggert <[email protected]> |
| 8313 |
|
| 8314 |
AC_PROG_CC_C99: avoid unused-var warning |
| 8315 |
* lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER): Rewrite to use vars. |
| 8316 |
Problem reported by ChangZhuo Chen in |
| 8317 |
<http://lists.gnu.org/archive/html/bug-autoconf/2012-12/msg00000.html>. |
| 8318 |
|
| 8319 |
2012-12-07 Paolo Bonzini <[email protected]> |
| 8320 |
|
| 8321 |
autotest: define AT_DATA_UNQUOTED |
| 8322 |
* lib/autotest/general.m4 (AT_DATA_UNQUOTED): New macro, paralleling |
| 8323 |
AT_DATA but not quoting the contents. |
| 8324 |
* doc/autoconf.texi (Writing Testsuites): Document it. |
| 8325 |
* tests/autotest.at (AT_DATA_UNQUOTED): Test it. |
| 8326 |
|
| 8327 |
2012-11-17 Paul Eggert <[email protected]> |
| 8328 |
|
| 8329 |
AC_CHECK_FILES: improve documentation |
| 8330 |
* doc/autoconf.texi (Files): Document AC_CHECK_FILES better. |
| 8331 |
Reported by Christophe Curis in |
| 8332 |
<http://savannah.gnu.org/support/?108182>. |
| 8333 |
|
| 8334 |
2012-11-16 Stefano Lattarini <[email protected]> |
| 8335 |
|
| 8336 |
syntax-check: remove SPACE-TAB sequence |
| 8337 |
* lib/autoconf/c.m4 (_AC_PROG_CC_C99): Here. Was causing a |
| 8338 |
failure in the 'space_tab' syntax check. |
| 8339 |
|
| 8340 |
2012-11-16 Stefano Lattarini <[email protected]> |
| 8341 |
|
| 8342 |
build: fix unneeded workaround for AC_CONFIG_LINKS old bud |
| 8343 |
* configure.ac: The Automake NEWS entry for version 1.11 states that |
| 8344 |
|
| 8345 |
For AC_CONFIG_LINKS, if source and destination are equal, do |
| 8346 |
not remove the file in a non-VPATH build. Such setups work |
| 8347 |
with Autoconf 2.62 or newer. |
| 8348 |
|
| 8349 |
Since our build system requires autoconf >= 2.62 and automake >= 1.11 |
| 8350 |
already, we can get rid of the workaround for that long-fixed bug. |
| 8351 |
|
| 8352 |
2012-11-16 Stefano Lattarini <[email protected]> |
| 8353 |
|
| 8354 |
build: require autoconf >= 2.62, and related simplifications |
| 8355 |
* configure.ac: Require 2.62, and remove obsolescent comments. |
| 8356 |
We are not imposing an new restriction in doing so, since we already |
| 8357 |
require Automake 1.11 or later, and that requires Autoconf 2.62. |
| 8358 |
Simplify code for symlinking of GNUmakefile in VPATH builds, in |
| 8359 |
accordance with the existing "TODO" comments. |
| 8360 |
|
| 8361 |
2012-11-09 Eric Blake <[email protected]> |
| 8362 |
|
| 8363 |
AC_CONFIG_MACRO_DIRS: improve tracing and add sanity checks |
| 8364 |
Too many legacy tools exist for us to unilaterally quit supporting |
| 8365 |
AC_CONFIG_MACRO_DIR - it is feasible for someone to want their |
| 8366 |
package to bootstrap with both automake 1.13 and libtool 2.4.2, |
| 8367 |
where the newer automake will only trace the new style of multiple |
| 8368 |
directory listings, but the older libtool does a sed and settles |
| 8369 |
on the one use of the old name. So, we let both macros forward |
| 8370 |
to a new tracing macro, which also has the benefit of sanitizing |
| 8371 |
calls into one directory per trace; we also ensure that the old |
| 8372 |
macro is always traced, and appears at most once and before any |
| 8373 |
use of the new macro. |
| 8374 |
|
| 8375 |
* doc/autoconf.texi (Input) <AC_CONFIG_MACRO_DIRS>: Document how |
| 8376 |
to trace this macro. |
| 8377 |
* lib/autom4te.in (Autoreconf-preselections) |
| 8378 |
(Automake-preselections): Preselect this trace. |
| 8379 |
* lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIR_TRACE): New trace. |
| 8380 |
(_AC_CONFIG_MACRO_DIRS_USED, _AC_CONFIG_MACRO_DIRS): New internal |
| 8381 |
macros. |
| 8382 |
(AC_CONFIG_MACRO_DIRS, AC_CONFIG_MACRO_DIR): Use them. |
| 8383 |
* tests/tools.at (autoconf --trace: AC_CONFIG_MACRO_DIRS): New |
| 8384 |
test. |
| 8385 |
|
| 8386 |
2012-11-09 Stefano Lattarini <[email protected]> |
| 8387 |
|
| 8388 |
warn: allow aclocal to silence m4_require warnings |
| 8389 |
We introduce a new witness macro, m4_require_silent_probe, for use by |
| 8390 |
aclocal during the Autoconf-without-aclocal-m4 language. This will let |
| 8391 |
aclocal process AC_CONFIG_MACRO_DIRS without emitting spurious warnings. |
| 8392 |
In fact, if aclocal doesn't suppress require warnings, then, when some macro |
| 8393 |
expanded in configure.ac calls AC_REQUIRE on another macro that is defined |
| 8394 |
in one of the local m4 macro dirs specified with AC_CONFIG_MACRO_DIRS, the |
| 8395 |
*first* autom4te invocation issued by aclocal, not yet being able to "see" |
| 8396 |
the m4 macro definitions in the local m4 dirs, will print spurious |
| 8397 |
warnings like: |
| 8398 |
|
| 8399 |
configure.ac:4: warning: MY_BAR is m4_require'd but not m4_defun'd |
| 8400 |
configure.ac:3: MY_FOO is expanded from... |
| 8401 |
|
| 8402 |
Expose the use of this macro in our testsuite. |
| 8403 |
|
| 8404 |
Originally reported by Nick Bowler; see point (4) of: |
| 8405 |
<http://lists.gnu.org/archive/html/autoconf-patches/2012-11/msg00000.html> |
| 8406 |
|
| 8407 |
* lib/m4sugar/m4sugar.m4 (_m4_require_call): Make warnings in the |
| 8408 |
-Wsyntax category depend on the witness macro. |
| 8409 |
* tests/m4sugar.at (m4@&t@_require: warning message): New test. |
| 8410 |
* doc/autoconf.texi (Prerequisite Macros): Document how aclocal |
| 8411 |
can silence AC_REQUIRE (m4_require) warnings. |
| 8412 |
|
| 8413 |
2012-11-09 Stefano Lattarini <[email protected]> |
| 8414 |
|
| 8415 |
docs: ACLOCAL_AMFLAGS will become obsolescent in Automake 1.13 |
| 8416 |
See commit 'v1.12.1-165-gcd1a9cc' "aclocal: deprecate ACLOCAL_AMFLAGS, |
| 8417 |
trace AC_CONFIG_MACRO_DIR instead" in the Automake git repository. |
| 8418 |
|
| 8419 |
See also follow-up discussion at: |
| 8420 |
<http://lists.gnu.org/archive/html/automake-patches/2012-07/msg00010.html> |
| 8421 |
|
| 8422 |
* doc/autoconf.texi (@node Input @defmac AC_CONFIG_MACRO_DIRS): Adjust. |
| 8423 |
(autoreconf Invocation): Warn about the possible future removal of |
| 8424 |
ACLOCAL_AMFLAGS support from Automake. |
| 8425 |
|
| 8426 |
2012-11-09 Stefano Lattarini <[email protected]> |
| 8427 |
|
| 8428 |
AC_CONFIG_MACRO_DIRS: new macro, mostly for aclocal |
| 8429 |
Similar to AC_CONFIG_MACRO_DIR, but accepts more than one argument. |
| 8430 |
This will allow projects to use several m4 macro local dirs. This is |
| 8431 |
especially important for projects that are used as nested subpackages |
| 8432 |
of larger projects. |
| 8433 |
|
| 8434 |
See also: |
| 8435 |
<http://lists.gnu.org/archive/html/autoconf/2011-12/msg00037.html> |
| 8436 |
<http://lists.gnu.org/archive/html/automake-patches/2012-07/msg00010.html> |
| 8437 |
|
| 8438 |
* lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIRS): New. Expands to the |
| 8439 |
empty anyway, since it is only meant to be traced by tools like aclocal |
| 8440 |
and autoreconf. |
| 8441 |
(AC_CONFIG_MACRO_DIR): Updated comments. |
| 8442 |
* doc/autoconf.texi (@node "Input"): Document AC_CONFIG_MACRO_DIRS as |
| 8443 |
preferred over AC_CONFIG_MACRO_DIR. |
| 8444 |
* NEWS: Update. |
| 8445 |
|
| 8446 |
Suggested-by: Eric Blake <[email protected]> |
| 8447 |
Helped-by: Nick Bowler <[email protected]> |
| 8448 |
|
| 8449 |
2012-10-27 Stefano Lattarini <[email protected]> |
| 8450 |
|
| 8451 |
cosmetics: slightly improve a comment |
| 8452 |
* lib/autom4te.in: Here, the comment about 'AM_PROG_MKDIR_P'. |
| 8453 |
|
| 8454 |
Suggested-by: Eric Blake <[email protected]> |
| 8455 |
|
| 8456 |
2012-10-27 Stefano Lattarini <[email protected]> |
| 8457 |
|
| 8458 |
autom4te: update Automake preselections to reflect upcoming 1.13 |
| 8459 |
Issue revealed by a failure in test "35: tools.at: autom4te preselections" |
| 8460 |
|
| 8461 |
* lib/autom4te.in ("Automake-preselections"): Add automake-provided |
| 8462 |
macro '_AM_EXTRA_RECURSIVE_TARGETS'. |
| 8463 |
|
| 8464 |
2012-10-24 Paul Eggert <[email protected]> |
| 8465 |
|
| 8466 |
AC_PROG_CC_C89, AC_PROG_CC_C99: Use AU_DEFUN |
| 8467 |
* tests/mktests.sh (au_exclude_list): Exclude AC_PROG_CC_C89 |
| 8468 |
and AC_PROG_CC_C99 too. Suggested by Adrian Bunk. |
| 8469 |
|
| 8470 |
AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC: Use AU_DEFUN |
| 8471 |
This fixes a bug introduced by the most recent change to c.m4. |
| 8472 |
Problem reported by Jim Meyering in |
| 8473 |
<http://lists.gnu.org/archive/html/autoconf/2012-10/msg00048.html>. |
| 8474 |
* lib/autoconf/c.m4 (AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC): |
| 8475 |
Use AU_DEFUN and AC_REQUIRE, not AU_ALIAS, as the latter is not |
| 8476 |
compatible with how Automake redefines AC_PROG_CC. |
| 8477 |
|
| 8478 |
2012-10-16 Paul Eggert <[email protected]> |
| 8479 |
|
| 8480 |
AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC: Use AU_ALIAS. |
| 8481 |
Based on a suggestion by Adrian Bunk in |
| 8482 |
http://lists.gnu.org/archive/html/autoconf-patches/2012-09/msg00040.html |
| 8483 |
* lib/autoconf/c.m4 (AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC): |
| 8484 |
Use AU_ALIAS, now that AC_PROG_CC is defined via AC_DEFUN_ONCE. |
| 8485 |
|
| 8486 |
AC_PROG_CC: define via AC_DEFUN_ONCE |
| 8487 |
Suggested by Adrian Bunk in |
| 8488 |
http://lists.gnu.org/archive/html/autoconf-patches/2012-09/msg00034.html |
| 8489 |
* NEWS: |
| 8490 |
* doc/autoconf.texi (C Compiler): Document it |
| 8491 |
* lib/autoconf/c.m4 (AC_PROG_CC): Implement it. |
| 8492 |
|
| 8493 |
2012-09-28 Paul Eggert <[email protected]> |
| 8494 |
|
| 8495 |
AC_PROG_CC: clarify documentation, encourage -qlanglvl=extc1x |
| 8496 |
* doc/autoconf.texi (C Compiler): Document the intent of AC_PROG_CC |
| 8497 |
better. It's not meant to check for strict conformance, only to |
| 8498 |
get the latest version with extensions. |
| 8499 |
(Running the Preprocessor, Present But Cannot Be Compiled): |
| 8500 |
Document new diagnostic wording. |
| 8501 |
* lib/autoconf/c.m4 (_AC_C_STD_TRY): Change diagnostic wording from |
| 8502 |
"checking for gcc option to accept ISO C11" to |
| 8503 |
"checkint for gcc option to enable C11 features", as this better |
| 8504 |
reflects what is actually happening. |
| 8505 |
(_AC_PROG_CC_C99): Put -qlanglvl=extc1x here ... |
| 8506 |
(_AC_PROG_CC_C11): ... rather than here, as it doesn't pass the C11 |
| 8507 |
test with IBM XL C V12.1, and the point is to enable features not to |
| 8508 |
test for strict conformance. |
| 8509 |
|
| 8510 |
2012-09-26 Paul Eggert <[email protected]> |
| 8511 |
|
| 8512 |
AC_PROG_CC: try -qlanglvl=extc1x, for IBM XL C V12.1 |
| 8513 |
* lib/autoconf/c.m4 (_AC_PROG_CC_C11): Add -qlanglvl=extc1x, for |
| 8514 |
IBM XL C V12.1. It shouldn't pass the C11 test yet, since it's not |
| 8515 |
documented to support _Alignas, _Alignof, UTF-8 string literals, |
| 8516 |
and duplicate typedefs, but presumably it will eventually. |
| 8517 |
|
| 8518 |
2012-09-25 Adrian Bunk <[email protected]> (tiny change) |
| 8519 |
|
| 8520 |
maint: fix the comment at the end of _AC_FUNC_REALLOC_IF |
| 8521 |
* lib/autoconf/functions.m4: fix the comment at the end of |
| 8522 |
_AC_FUNC_REALLOC_IF |
| 8523 |
|
| 8524 |
2012-09-21 Paul Eggert <[email protected]> |
| 8525 |
|
| 8526 |
AC_PROG_CC_C89, AC_PROG_CC_C99: now obsolete; defer to AC_PROG_CC |
| 8527 |
* NEWS: |
| 8528 |
* doc/autoconf.texi (C Compiler, Running the Preprocessor) |
| 8529 |
(Limitations of Usual Tools, Present But Cannot Be Compiled) |
| 8530 |
(Obsolete Macros): |
| 8531 |
Document the changes described below. |
| 8532 |
* lib/autoconf/c.m4 (_AC_PROG_CC_FORCE_VERSION): Remove. |
| 8533 |
(AC_PROG_CC_C89, AC_PROG_CC_C99, AC_PROG_CC_STDC): |
| 8534 |
Just do AC_PROG_CC, but mark as obsolete. This replaces my recent |
| 8535 |
ill-advised attempt to let AC_PROG_CC_C89 and AC_PROG_CC_C99 downgrade |
| 8536 |
the version of C supported. |
| 8537 |
* doc/autoconf.texi (Limitations of Usual Tools, Volatile Objects): |
| 8538 |
Document C11 more accurately. In some cases this involves removing |
| 8539 |
some details about 'volatile', alas, since C11 changed this stuff. |
| 8540 |
Again. |
| 8541 |
|
| 8542 |
2012-09-21 Eric Blake <[email protected]> |
| 8543 |
|
| 8544 |
tests: sort preselections to make test failures easier to read |
| 8545 |
Prompted by Stefano Lattarini's report of a test failure due to |
| 8546 |
a missing preselection for automake 1.12. |
| 8547 |
|
| 8548 |
* tests/tools.at (autom4te preselections): Sort before diffing. |
| 8549 |
|
| 8550 |
2012-09-21 Stefano Lattarini <[email protected]> |
| 8551 |
|
| 8552 |
maint: resync most files from upstream |
| 8553 |
The files in lib/Autom4te/ are intentionally not synced at this point, |
| 8554 |
since automake commit v1.11-2114-g2d671e1 "perl refactor: use modern |
| 8555 |
semantics of 'open'": |
| 8556 |
<http://lists.gnu.org/archive/html/automake-patches/2012-03/msg00111.html> |
| 8557 |
would require wider adaptation of our scripts to the new XFile API, and |
| 8558 |
also exposes some latent bugs in autoconf where we use raw 'open' instead |
| 8559 |
of XFile::open. We'll take care of that in a later patches (maybe). |
| 8560 |
|
| 8561 |
* build-aux/announce-gen: Resync via 'make fetch'. |
| 8562 |
* build-aux/config.guess: Likewise. |
| 8563 |
* build-aux/config.sub: Likewise. |
| 8564 |
* build-aux/gendocs.sh: Likewise. |
| 8565 |
* build-aux/gitlog-to-changelog: Likewise. |
| 8566 |
* build-aux/gnupload: Likewise. |
| 8567 |
* build-aux/texinfo.tex: Likewise. |
| 8568 |
* doc/make-stds.texi: Likewise. |
| 8569 |
* doc/standards.texi: Likewise. |
| 8570 |
* maint.mk: Likewise. |
| 8571 |
|
| 8572 |
2012-09-21 Stefano Lattarini <[email protected]> |
| 8573 |
|
| 8574 |
build: quote 'like this', not `like this' |
| 8575 |
As per updated GCS recommendations. |
| 8576 |
|
| 8577 |
* Makefile.am, configure.ac, lib/m4sugar/Makefile.am, |
| 8578 |
tests/Makefile.am, m4/m4.m4: Here. |
| 8579 |
|
| 8580 |
2012-09-21 Stefano Lattarini <[email protected]> |
| 8581 |
|
| 8582 |
autom4te: update Automake preselections to reflect the changes in 1.12.x |
| 8583 |
Issue revealed by a failure in test "35: tools.at: autom4te preselections": |
| 8584 |
<http://lists.gnu.org/archive/html/bug-autoconf/2012-09/msg00020.html> |
| 8585 |
|
| 8586 |
* lib/autom4te.in: Add 'AM_PROG_MKDIR_P'. |
| 8587 |
|
| 8588 |
Helped-by: Eric Blake <[email protected]> |
| 8589 |
|
| 8590 |
2012-09-21 Stefano Lattarini <[email protected]> |
| 8591 |
|
| 8592 |
autoreconf: assume --force-missing automake option is supported |
| 8593 |
According to Automake's NEWS file, it is since at least Automake 1.8, |
| 8594 |
and in autoreconf we are already assuming aclocal >= 1.8 anyway. |
| 8595 |
|
| 8596 |
* bin/autoreconf.in (parse_args): Simplify a little by just assuming |
| 8597 |
the automake option '--force-missing' is supported. |
| 8598 |
($automake_supports_force_missing): Delete, no longer needed. |
| 8599 |
* NEWS: Update. |
| 8600 |
|
| 8601 |
2012-09-21 Stefano Lattarini <[email protected]> |
| 8602 |
|
| 8603 |
autoreconf: minor simplifying refactoring |
| 8604 |
* bin/autoreconf.in (run_aclocal): After the previous commit, this has |
| 8605 |
become just a useless wrapper around xsystem("$aclocal .."), so get rid |
| 8606 |
of it, and inline its expansion in the two places where it was used ... |
| 8607 |
(autoreconf_current_directory): ... in here. |
| 8608 |
|
| 8609 |
2012-09-21 Stefano Lattarini <[email protected]> |
| 8610 |
|
| 8611 |
autoreconf: drop support for old (< 1.8) aclocal versions |
| 8612 |
The minimal automake and aclocal version required by the "most" |
| 8613 |
conservative important real world-projects (like Gnulib and Libvirt) |
| 8614 |
is 1.9 anyway (which is the version installed on old but still |
| 8615 |
supported installations of stable Distros like RHEL 5), so this |
| 8616 |
change should be safe and justified by now. |
| 8617 |
|
| 8618 |
* bin/autoreconf.in (parse_args): Simplify by just assuming the aclocal |
| 8619 |
options '--force' and '--no-force' are supported and works correctly. |
| 8620 |
($aclocal_supports_force): Delete, no longer needed. |
| 8621 |
(run_aclocal): Heavily simplify by assuming that aclocal properly creates |
| 8622 |
'aclocal.m4' as lazily as possible. |
| 8623 |
* NEWS: Update. |
| 8624 |
|
| 8625 |
2012-09-21 Stefano Lattarini <[email protected]> |
| 8626 |
|
| 8627 |
scripts: quote 'like this', not `like this' |
| 8628 |
As per updated GCS recommendations. |
| 8629 |
|
| 8630 |
* bin/autoconf.as, bin/autoreconf.in, bin/autoscan.in, ifnames.in, |
| 8631 |
bin/autoupdate.in: Throughout these files. |
| 8632 |
* bin/autoheader.in, bin/autom4te.in: Likewise. Also, remove some |
| 8633 |
useless escaping of the "'" single-quote characters, and reformat |
| 8634 |
some message for better line wrapping. |
| 8635 |
|
| 8636 |
2012-09-20 Paul Eggert <[email protected]> |
| 8637 |
|
| 8638 |
AC_PROG_CC_STDC: fold into AC_PROG_CC, removing C11 macro |
| 8639 |
* NEWS: |
| 8640 |
* doc/autoconf.texi (C Compiler): Document the following. |
| 8641 |
* lib/autoconf/c.m4 (AC_PROG_CC): Check for the latest C version |
| 8642 |
supported, not just C89. |
| 8643 |
(_AC_C_STD_TRY): Keep track of the options we add to bring |
| 8644 |
the C compiler up to standard, so that we can undo it if the |
| 8645 |
user later requests some other C standard. |
| 8646 |
(_AC_PROG_CC_FORCE_VERSION): New macro. |
| 8647 |
(AC_PROG_CC_C89, AC_PROG_CC_C99): Use it. These macros now |
| 8648 |
have a documented side effect of changing the C version requested. |
| 8649 |
(AC_PROG_CC_C11): Remove. It wasn't useful. |
| 8650 |
(AC_PROG_CC_STDC): Now an obsolescent alias for AC_PROG_CC. |
| 8651 |
(AC_C_PROTOTYPES): Allow any standard C version, not just c89. |
| 8652 |
Don't chatter, since we don't actually run any checking code. |
| 8653 |
* lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT) |
| 8654 |
(AC_TYPE_UNSIGNED_LONG_LONG_INT): Treat C11 like C99. |
| 8655 |
* TODO: Remove the TODO item corresponding to the above. |
| 8656 |
|
| 8657 |
2012-09-16 Paul Eggert <[email protected]> |
| 8658 |
|
| 8659 |
AC_FUNC_VFORK: check for Solaris 2.4 signal-handling bug |
| 8660 |
* NEWS: |
| 8661 |
* doc/autoconf.texi (Particular Functions): Document this. |
| 8662 |
* lib/autoconf/functions.m4 (_AC_FUNC_VFORK): Check for the bug. |
| 8663 |
|
| 8664 |
2012-09-06 Paul Eggert <[email protected]> |
| 8665 |
|
| 8666 |
AC_CHECK_ALIGNOF: fix cross-compilation bug with newer gcc |
| 8667 |
* doc/autoconf.texi (Default Includes, Particular Functions) |
| 8668 |
(Header Portability): |
| 8669 |
* lib/autoconf/c.m4 (AC_LANG_FUNC_LINK_TRY(C)): |
| 8670 |
* lib/autoconf/headers.m4 (AC_HEADER_STDC): |
| 8671 |
* lib/autoconf/types.m4 (_AC_CHECK_ALIGNOF): |
| 8672 |
* lib/m4sugar/m4sugar.m4 (m4_require) [comment only]: |
| 8673 |
Assume the existence of the C89 freestanding headers <float.h>, |
| 8674 |
<limits.h>, <stdarg.h>, <stddef.h>, as that's safe nowadays. |
| 8675 |
This is less likely to run into gotchas, and should fix a |
| 8676 |
cross-compilation bug with newer GCC reported by Myke Frysinger in |
| 8677 |
<http://lists.gnu.org/archive/html/bug-autoconf/2012-09/msg00001.html>. |
| 8678 |
|
| 8679 |
2012-08-23 Paul Eggert <[email protected]> |
| 8680 |
|
| 8681 |
AC_PROG_CC_C11: new macro, which AC_PROG_CC_STDC now defaults to |
| 8682 |
* NEWS: |
| 8683 |
* doc/autoconf.texi (C Compiler): Document this. |
| 8684 |
(Gnulib, Function Portability, Particular Functions) |
| 8685 |
(Header Portability, Particular Headers, Defining Symbols) |
| 8686 |
(Printing Messages, Limitations of Usual Tools) |
| 8687 |
(Preprocessor Arithmetic, Volatile Objects, Exiting Portably): |
| 8688 |
Modernize wording for C11. |
| 8689 |
* lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER, _AC_C_C99_TEST_BODY): |
| 8690 |
New macros, taken from _AC_PROG_CC_C99. These are so that we can |
| 8691 |
also include the C99 tests in the C11 test program. |
| 8692 |
(_AC_PROG_CC_C99): Use them. |
| 8693 |
(_AC_PROG_CC_C11, AC_PROG_CC_C11): New macros. |
| 8694 |
(AC_PROG_CC_STDC): Prefer C11 to C99 or C89. |
| 8695 |
|
| 8696 |
2012-08-16 Eric Blake <[email protected]> |
| 8697 |
|
| 8698 |
AC_SUBST: document and test previous patch |
| 8699 |
Test that: invalid variable names are detected, that the variable |
| 8700 |
name does not get macro expanded, that assignment to the variable |
| 8701 |
works whether as part of AC_SUBST or independently, that the last |
| 8702 |
assignment wins. |
| 8703 |
|
| 8704 |
* doc/autoconf.texi (Setting Output Variables) <AC_SUBST>: Mention |
| 8705 |
that variable does not overlap with macros. |
| 8706 |
* tests/base.at (AC_SUBST): New test. |
| 8707 |
|
| 8708 |
2012-08-15 Nick Bowler <[email protected]> |
| 8709 |
|
| 8710 |
AC_SUBST: don't underquote the variable name |
| 8711 |
Consider the following: |
| 8712 |
|
| 8713 |
% cat >configure.ac <<'EOF' |
| 8714 |
AC_INIT([test], [0]) |
| 8715 |
|
| 8716 |
m4_define([FOO], [baz]) |
| 8717 |
AC_SUBST([FOO], [bar]) |
| 8718 |
|
| 8719 |
AC_CONFIG_FILES([test]) |
| 8720 |
AC_OUTPUT |
| 8721 |
EOF |
| 8722 |
|
| 8723 |
% cat >test.in <<'EOF' |
| 8724 |
@FOO@ |
| 8725 |
EOF |
| 8726 |
|
| 8727 |
This produces no error messages at autoconf time and none at configure |
| 8728 |
time. Nevertheless, the substituted value of FOO is the empty string, |
| 8729 |
instead of bar, as expected. Sure enough, in the output variables |
| 8730 |
section of config.log, we see FOO='' instead of FOO='bar'. Looking |
| 8731 |
at the generated configure script, we see that AC_SUBST has produced |
| 8732 |
baz=bar in the output, instead of the expected FOO=bar. But this is |
| 8733 |
the only place: everywhere else is still using FOO. |
| 8734 |
|
| 8735 |
* lib/autoconf/general.m4 (AC_SUBST): Add another layer of |
| 8736 |
quoting. |
| 8737 |
* THANKS: Update. |
| 8738 |
|
| 8739 |
2012-07-26 Akim Demaille <[email protected]> |
| 8740 |
|
| 8741 |
doc: fix style issues in the display of macro optional arguments |
| 8742 |
* doc/autoconf.texi (@dvarv): New. |
| 8743 |
Use it where optional macro arguments default to other arguments. |
| 8744 |
|
| 8745 |
2012-07-22 Jim Meyering <[email protected]> |
| 8746 |
|
| 8747 |
maint: avoid new syntax-check failure |
| 8748 |
* cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests): |
| 8749 |
Exempt autoconf.texi's test of "#if defined HAVE_DECL_MALLOC". |
| 8750 |
|
| 8751 |
2012-07-21 Stefano Lattarini <[email protected]> |
| 8752 |
|
| 8753 |
tests: use configure.ac, not configure.in, with aclocal/automake involved |
| 8754 |
Do so because future automake and aclocal versions (starting from 1.13) |
| 8755 |
drop support for 'configure.in' as the name of the Autoconf input file. |
| 8756 |
Without this patch, the Autoconf testsuite experiences some spurious |
| 8757 |
failures when run with the development version of aclocal and automake |
| 8758 |
installed early enough in $PATH. |
| 8759 |
|
| 8760 |
* tests/torture.at: Rename 'configure.in' to 'configure.ac' throughout. |
| 8761 |
Remove an obsolete comment about backward-compatibility. |
| 8762 |
|
| 8763 |
Helped-by: Jim Meyering <[email protected]> |
| 8764 |
|
| 8765 |
2012-07-18 Eric Blake <[email protected]> |
| 8766 |
|
| 8767 |
doc: mention trap pitfalls |
| 8768 |
Document why the previous patch was useful. |
| 8769 |
|
| 8770 |
* doc/autoconf.texi (Limitations of Builtins) <trap>: Mention the |
| 8771 |
need to be defensive in trap handlers. |
| 8772 |
|
| 8773 |
2012-07-18 Andreas Schwab <[email protected]> (tiny change) |
| 8774 |
|
| 8775 |
general: Sanitize IFS in EXIT trap |
| 8776 |
IFS may be modified temporarily when the configure script receives a |
| 8777 |
signal. Make sure the EXIT trap uses the standard value. |
| 8778 |
|
| 8779 |
* lib/autoconf/general.m4: Sanitize IFS in trap. |
| 8780 |
* THANKS: Update. |
| 8781 |
|
| 8782 |
2012-07-18 Patrice Dumas <[email protected]> (tiny change) |
| 8783 |
|
| 8784 |
doc: fix texinfo macro usage |
| 8785 |
The texinfo manual recommends avoiding the use of a trailing @c in |
| 8786 |
any macro designed to be used inline (as is the case with our ovar |
| 8787 |
and dvar macros). Furthermore, passing '@\n' in the middle of a |
| 8788 |
macro call is much different than passing '@\n' between arguments |
| 8789 |
of a @defmac for line continuation. |
| 8790 |
|
| 8791 |
* doc/autoconf.texi (ovar, dvar): Don't end macro with @c, since |
| 8792 |
these macros are designed to be embedded in one-line usage. |
| 8793 |
(Fortran Compiler): Don't split @dvar. |
| 8794 |
* THANKS: Update. |
| 8795 |
Reported by Stefano Lattarini. |
| 8796 |
|
| 8797 |
2012-07-17 Eric Blake <[email protected]> |
| 8798 |
|
| 8799 |
doc: fix texinfo location reports |
| 8800 |
Otherwise, newer texinfo parses this line as a line directive, and |
| 8801 |
any error later in the file will claim to be from "conftest.c" instead |
| 8802 |
of "autoconf.texi". |
| 8803 |
|
| 8804 |
* doc/autoconf.texi (Generating Sources): Avoid confusing newer |
| 8805 |
texinfo into thinking we had a line directive. |
| 8806 |
Reported by Stefano Lattarini, fix suggested by Patrice Dumas. |
| 8807 |
|
| 8808 |
2012-07-13 Eric Blake <[email protected]> |
| 8809 |
|
| 8810 |
m4sh: avoid // issues in _AS_PATH_WALK |
| 8811 |
As reported by Paul Keir on the cygwin lists, |
| 8812 |
http://cygwin.com/ml/cygwin/2012-07/msg00263.html, |
| 8813 |
some people like to stick / in their $PATH, and if we then try |
| 8814 |
to probe $as_dir/progname for existence, we can end up causing |
| 8815 |
cygwin to have a several-second timeout per //name probe. It |
| 8816 |
is better to avoid inserting the extra slash when $as_dir is the |
| 8817 |
root directory, and simpler to code by always having a trailing |
| 8818 |
slash present than it is to strip a trailing slash. Thankfully, |
| 8819 |
_AS_PATH_WALK is an undocumented interface, and even if someone |
| 8820 |
was using it in spite of the warnings, their use of $as_dir/foo |
| 8821 |
will typically only lead to odd-looking /dir//foo probes, with |
| 8822 |
only the case of / in $PATH causing slowdowns, and only when // |
| 8823 |
is special. |
| 8824 |
|
| 8825 |
There was also a minor bug where the if-not-found code of |
| 8826 |
_AS_PATH_WALK could be executed with $IFS still in the wrong state. |
| 8827 |
|
| 8828 |
* lib/m4sugar/m4sh.m4 (_AS_PATH_WALK): Always end as_dir in /. |
| 8829 |
Avoid wrong IFS during if-not-found. Minor optimization to avoid |
| 8830 |
regex. |
| 8831 |
(_AS_DETECT_BETTER_SHELL, _AS_SHELL_SANITIZE): Update clients. |
| 8832 |
* lib/autotest/general.m4 (_AT_FINISH): Likewise. |
| 8833 |
* lib/autoconf/programs.m4 (_AC_CHECK_PROG, _AC_PATH_PROG) |
| 8834 |
(_AC_PATH_PROGS_FEATURE_CHECK, _AC_PATH_PROG_FLAVOR_GNU): Likewise. |
| 8835 |
|
| 8836 |
2012-06-29 Eric Blake <[email protected]> |
| 8837 |
|
| 8838 |
doc: avoid hard-coding usage of automake's missing |
| 8839 |
Now that automake documents AM_MISSING_PROG, and given that automake |
| 8840 |
has reserved the right to change the calling conventions of 'missing', |
| 8841 |
we should not recommend a hard-coded use of 'missing --run'. |
| 8842 |
|
| 8843 |
* doc/autoconf.texi (Making testsuite Scripts): Recommend |
| 8844 |
AM_MISSING_PROG when using automake, and avoid hard-coding use of |
| 8845 |
'missing' otherwise. |
| 8846 |
|
| 8847 |
2012-06-27 Eric Blake <[email protected]> |
| 8848 |
|
| 8849 |
maint: don't sync elisp-comp or missing from gnulib |
| 8850 |
Automake 1.13 will be changing the semantics of 'missing'; maintaining |
| 8851 |
our own copy in version control risks problems if our version does |
| 8852 |
not match automake's expectations. As a result, gnulib no longer |
| 8853 |
mirrors 'missing'. Furthermore, gnulib originally added the |
| 8854 |
'elisp-comp' module with the explanation that autoconf uses it, but |
| 8855 |
we don't use it anywhere other than the manner in which automake |
| 8856 |
will byte-compile our .el files; since we don't document the script, |
| 8857 |
we should be just fine using the version that was installed by automake. |
| 8858 |
|
| 8859 |
See more discussion in the thread starting here: |
| 8860 |
https://lists.gnu.org/archive/html/automake-patches/2012-06/msg00154.html |
| 8861 |
|
| 8862 |
* cfg.mk (gnulib-update): Drop files installed by automake and no |
| 8863 |
longer present in gnulib. |
| 8864 |
* .gitattributes: Delete references to files not in git. |
| 8865 |
|
| 8866 |
2012-06-18 Eric Blake <[email protected]> |
| 8867 |
|
| 8868 |
maint: add attribution |
| 8869 |
* THANKS: Update. |
| 8870 |
|
| 8871 |
2012-06-18 David Hill <[email protected]> |
| 8872 |
|
| 8873 |
functions: add Bitrig defaults |
| 8874 |
Cater to the Bitrig OS, an OpenBSD fork. config.guess and |
| 8875 |
config.sub have been updated upstream. |
| 8876 |
|
| 8877 |
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF) |
| 8878 |
(_AC_FUNC_REALLOC_IF): Bitrig inherits from BSD. |
| 8879 |
|
| 8880 |
2012-05-29 Jim Meyering <[email protected]> |
| 8881 |
|
| 8882 |
maint: fix typos in old ChangeLog files |
| 8883 |
Culprits identified and fixed automatically using these commands: |
| 8884 |
git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \ |
| 8885 |
's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'\ |
| 8886 |
|bash |
| 8887 |
using http://github.com/lyda/misspell-check |
| 8888 |
* ChangeLog.2, ChangeLog.3: Fix typos. |
| 8889 |
|
| 8890 |
2012-05-22 Stefano Lattarini <[email protected]> |
| 8891 |
|
| 8892 |
general: deprecate 'configure.in' as autoconf input |
| 8893 |
It has been years since that has been deprecated in the documentation, |
| 8894 |
in favour of 'configure.ac': |
| 8895 |
|
| 8896 |
Previous versions of Autoconf promoted the name configure.in, which |
| 8897 |
is somewhat ambiguous (the tool needed to process this file is not |
| 8898 |
described by its extension), and introduces a slight confusion with |
| 8899 |
config.h.in and so on (for which '.in' means "to be processed by |
| 8900 |
configure"). Using configure.ac is now preferred. |
| 8901 |
|
| 8902 |
It's now time to start giving runtime warning about the use of |
| 8903 |
'configure.in', so that support for it can be removed in future |
| 8904 |
versions of autoconf/automake. |
| 8905 |
|
| 8906 |
* lib/Autom4te/Configure_ac.pm: Issue a warning in the 'obsolete' |
| 8907 |
category if 'configure.in' is detected. Since this module is synced |
| 8908 |
from Automake, this change is to be backported there (and will be |
| 8909 |
soon). |
| 8910 |
* doc/autoconf.texi: Update. |
| 8911 |
* tests/tools.at: Adjust to avoid spurious failures. |
| 8912 |
|
| 8913 |
2012-05-03 Bruno Haible <[email protected]> |
| 8914 |
|
| 8915 |
functions: improve cross-compilation guesses for glibc system hosts |
| 8916 |
Paul and Eric suggested that improving the cross-compilation guesses |
| 8917 |
for targets that are glibc systems would be welcome here [1][2]. |
| 8918 |
|
| 8919 |
This patch modifies the cross-compilation behaviour of |
| 8920 |
AC_FUNC_CHOWN |
| 8921 |
AC_FUNC_GETGROUPS |
| 8922 |
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
| 8923 |
AC_FUNC_MALLOC |
| 8924 |
AC_FUNC_MMAP |
| 8925 |
AC_FUNC_REALLOC |
| 8926 |
AC_FUNC_STRCOLL |
| 8927 |
so that when the target is a glibc system (or, in case of AC_FUNC_MALLOC |
| 8928 |
and AC_FUNC_REALLOC, any known "good" Unix system), the guess is |
| 8929 |
"yes it works" rather than "guessing no". |
| 8930 |
|
| 8931 |
This is important because some of these macros are used in Gnulib, and |
| 8932 |
in case of "guessing no" Gnulib provides extra workaround code, and |
| 8933 |
1) Generally, when targetting embedded systems, code size should be |
| 8934 |
minimized, |
| 8935 |
2) In [3], unnecessary workaround code will look like a Glibc bug. |
| 8936 |
|
| 8937 |
This patch also changes the configure output to "guessing yes" or |
| 8938 |
"guessing no" in a case where the ac_cv_* variable is undocumented. |
| 8939 |
|
| 8940 |
[1] http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00010.html |
| 8941 |
[2] http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00013.html |
| 8942 |
[3] http://sourceware.org/glibc/wiki/Testing/Gnulib |
| 8943 |
|
| 8944 |
This patch was tested with the simple configure.ac file |
| 8945 |
=============== configure.ac ================== |
| 8946 |
AC_INIT([dummy], [0]) |
| 8947 |
AC_FUNC_CHOWN |
| 8948 |
AC_FUNC_GETGROUPS |
| 8949 |
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK |
| 8950 |
AC_FUNC_MALLOC |
| 8951 |
AC_FUNC_MMAP |
| 8952 |
AC_FUNC_REALLOC |
| 8953 |
AC_FUNC_STRCOLL |
| 8954 |
AC_OUTPUT |
| 8955 |
=============================================== |
| 8956 |
|
| 8957 |
* lib/autoconf/functions.m4 (AC_FUNC_CHOWN): Require AC_CANONICAL_HOST. |
| 8958 |
When cross-compiling to a glibc system, guess yes. |
| 8959 |
(AC_FUNC_GETGROUPS): Likewise. |
| 8960 |
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise. |
| 8961 |
(AC_FUNC_STRCOLL): Likewise. |
| 8962 |
(_AC_FUNC_MALLOC_IF): Require AC_CANONICAL_HOST. When cross-compiling |
| 8963 |
to a know Unix system other than AIX and OSF/1, guess yes. |
| 8964 |
(_AC_FUNC_REALLOC_IF): Likewise. |
| 8965 |
(AC_FUNC_MMAP): Require AC_CANONICAL_HOST. When cross-compiling to a |
| 8966 |
system with a Linux kernel, guess yes. |
| 8967 |
|
| 8968 |
2012-05-03 Eric Blake <[email protected]> |
| 8969 |
|
| 8970 |
doc: fix another bad @xref |
| 8971 |
Obviously, I didn't fully test commit f35498d. |
| 8972 |
|
| 8973 |
* doc/autoconf.texi (Limitations of Builtins): Add a comma. |
| 8974 |
|
| 8975 |
2012-04-24 Eric Blake <[email protected]> |
| 8976 |
|
| 8977 |
maint: post-release administrivia |
| 8978 |
* NEWS: Add header line for next release. |
| 8979 |
* .prev-version: Record previous version. |
| 8980 |
* cfg.mk (old_NEWS_hash): Auto-update. |
| 8981 |
|
| 8982 |
Release Version 2.69. |
| 8983 |
* NEWS: Mention the release. |
| 8984 |
|
| 8985 |
2012-04-24 Eric Blake <[email protected]> |
| 8986 |
|
| 8987 |
maint: drop bz2 tarball |
| 8988 |
At 2.68b, I asked whether anyone would miss .gz and .bz2 formats. |
| 8989 |
Consensus was overwhelming that .gz still holds a place in people's |
| 8990 |
hearts, in spite of .xz compressing to smaller files, but no one |
| 8991 |
was able to make a convincing argument for .bz2. |
| 8992 |
|
| 8993 |
* configure.ac (AM_INIT_AUTOMAKE): Drop bzip2; xz wins hands down. |
| 8994 |
|
| 8995 |
2012-04-24 Eric Blake <[email protected]> |
| 8996 |
|
| 8997 |
maint: resync files from upstream |
| 8998 |
The files in lib/Autom4te/ are intentionally not synced at this |
| 8999 |
point, since this recent Automake patch: |
| 9000 |
https://lists.gnu.org/archive/html/automake-patches/2012-03/msg00111.html |
| 9001 |
|
| 9002 |
was buggy regarding '-' as stdout, and also exposes some latent |
| 9003 |
bugs in autoconf where we use raw 'open' instead of XFile::open. |
| 9004 |
|
| 9005 |
* build-aux/announce-gen: Resync via 'make fetch'. |
| 9006 |
* build-aux/config.sub: Likewise. |
| 9007 |
* build-aux/git-version-gen: Likewise. |
| 9008 |
* build-aux/gnupload: Likewise. |
| 9009 |
* build-aux/move-if-change: Likewise. |
| 9010 |
* build-aux/texinfo.tex: Likewise. |
| 9011 |
* doc/standards.texi: Likewise. |
| 9012 |
* maint.mk: Likewise. |
| 9013 |
|
| 9014 |
2012-04-24 Eric Blake <[email protected]> |
| 9015 |
|
| 9016 |
doc: fix bad @xref uses |
| 9017 |
Upstream gnulib maint.mk improvements caught a few issues we |
| 9018 |
should fix, as well as a few issues in files we copy from |
| 9019 |
other sources that we will just ignore here. |
| 9020 |
|
| 9021 |
* doc/autoconf.texi (Generic Programs, Special Shell Variables) |
| 9022 |
(Limitations of Builtins): Use references correctly. |
| 9023 |
* cfg.mk |
| 9024 |
(exclude_file_name_regexp--sc_prohibit_undesirable_word_seq) |
| 9025 |
(exclude_file_name_regexp--sc_useless_cpp_parens): Add exemptions. |
| 9026 |
|
| 9027 |
2012-04-24 Bruno Haible <[email protected]> |
| 9028 |
|
| 9029 |
AC_INIT: remove a transitional warning |
| 9030 |
On bi-arch systems (such as x86 / x86_64) it is often necessary to pass |
| 9031 |
the --host option together with an appropriate value for CC. But this |
| 9032 |
triggers a warning: |
| 9033 |
|
| 9034 |
$ ./configure --host=i686-pc-linux-gnu CC="gcc -m32 -march=i586" |
| 9035 |
configure: WARNING: if you wanted to set the --build type, don't use --host. |
| 9036 |
If a cross compiler is detected then cross compile mode will be used |
| 9037 |
.. |
| 9038 |
|
| 9039 |
This warning was introduced on 2000-06-30, in commit |
| 9040 |
<http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=cb2e761b8e1181f97e8e09d85526bd22078433db> |
| 9041 |
with the remark "Re-enable the old behavior of --host and --build." |
| 9042 |
|
| 9043 |
This warning was meant to warn users about a changed semantics of |
| 9044 |
--build and --host. This change is now 12 years in the past; users |
| 9045 |
have had enough time to learn it. I therefore suggest to remove the |
| 9046 |
warning. |
| 9047 |
|
| 9048 |
I've done lots of cross and bi-arch compilations in the last 10 years, |
| 9049 |
all with --host and without --build, and have never observed a problem |
| 9050 |
with it, except for the warning. Simply relying on config.guess is sufficient. |
| 9051 |
|
| 9052 |
* lib/autoconf/general.m4 (_AC_INIT_PARSE_ARGS): Don't warn if --host |
| 9053 |
given without --build. |
| 9054 |
|
| 9055 |
2012-04-24 Bruno Haible <[email protected]> |
| 9056 |
|
| 9057 |
doc: fix incorrect and incomplete doc about cross-compilation mode |
| 9058 |
* doc/autoconf.texi (Runtime): Mention the effect of the cross- |
| 9059 |
compilation mode on AC_RUN_IFELSE. |
| 9060 |
(Specifying Target Triplets): Fix description of --host's effects. |
| 9061 |
(Hosts and Cross-Compilation): Remove incorrect statement about |
| 9062 |
--host's effects. |
| 9063 |
|
| 9064 |
2012-04-23 Paul Eggert <[email protected]> |
| 9065 |
|
| 9066 |
doc: document --build and cross-compilation better |
| 9067 |
* doc/autoconf.texi (Specifying Target Triplets): Mention that |
| 9068 |
specifying a build-type that differs from host-type enables |
| 9069 |
cross-compilation. Problem reported by Bruno Haible in: |
| 9070 |
http://lists.gnu.org/archive/html/autoconf-patches/2012-04/msg00009.html |
| 9071 |
|
| 9072 |
2012-04-11 Jim Meyering <[email protected]> |
| 9073 |
|
| 9074 |
maint: avoid "make syntax-check" failure |
| 9075 |
* cfg.mk (old_NEWS_hash): Update to reflect typo fix in old news. |
| 9076 |
|
| 9077 |
2012-03-28 Stefano Lattarini <[email protected]> |
| 9078 |
|
| 9079 |
cosmetics fix imprecise comment in Autom4te::General |
| 9080 |
* lib/Autom4te/General.pm: This file is *not* used by Automake; |
| 9081 |
adjust comments accordingly. |
| 9082 |
|
| 9083 |
2012-03-07 Paul Eggert <[email protected]> |
| 9084 |
|
| 9085 |
tests: fix port of AT_CHECK_ENV to hosts with flaky grep |
| 9086 |
* tests/local.at (AT_CHECK_ENV): Don't copy the buggy grep's |
| 9087 |
diagnostics to stderr, as that causes AT_CHECK to fail. They can |
| 9088 |
be found in the stderr-* files if this is needed for debugging. |
| 9089 |
|
| 9090 |
2012-03-07 Eric Blake <[email protected]> |
| 9091 |
|
| 9092 |
docs: document set -n pitfalls |
| 9093 |
* doc/autoconf.texi (Limitations of Builtins) <set>: Document |
| 9094 |
issues with set -n. |
| 9095 |
|
| 9096 |
2012-03-07 Eric Blake <[email protected]> |
| 9097 |
|
| 9098 |
build: require perl 5.6 |
| 9099 |
This reduces the implicit requirement from 5.6.2 back to 5.6, |
| 9100 |
while raising the explicit requirement to match the actual code. |
| 9101 |
|
| 9102 |
* configure.ac (PERL): Fail up front if perl is too old. |
| 9103 |
* NEWS: Document this. |
| 9104 |
* README: Likewise. |
| 9105 |
* README-hacking: Likewise. |
| 9106 |
* lib/Autom4te/ChannelDefs.pm: Bump requirement. |
| 9107 |
* lib/Autom4te/General.pm: Relax requirement. |
| 9108 |
|
| 9109 |
2012-03-07 Eric Blake <[email protected]> |
| 9110 |
|
| 9111 |
tests: ignore ksh -n warnings |
| 9112 |
Recent ksh is noisy: |
| 9113 |
|
| 9114 |
$ ksh -nc '``'; echo $? |
| 9115 |
ksh: warning: line 1: `...` obsolete, use $(...) |
| 9116 |
0 |
| 9117 |
|
| 9118 |
* tests/local.at (AT_CHECK_SHELL_SYNTAX): Ignore noisy ksh on. |
| 9119 |
Reported by Martin Zaun. |
| 9120 |
|
| 9121 |
2012-03-07 Paul Eggert <[email protected]> |
| 9122 |
|
| 9123 |
tests: port AT_CHECK_ENV to hosts with flaky grep |
| 9124 |
* tests/local.at (AT_CHECK_ENV): Don't assume that if one grep |
| 9125 |
fails, the other will too. It could be that 'grep' is flaky, |
| 9126 |
and fails somewhat at random. This would explain the problems |
| 9127 |
reported for autoconf-2.68b on FreeBSD and MacOS X, for example: |
| 9128 |
<http://lists.gnu.org/archive/html/bug-autoconf/2012-03/msg00032.html> |
| 9129 |
<http://lists.gnu.org/archive/html/bug-autoconf/2012-03/msg00035.html> |
| 9130 |
<http://lists.gnu.org/archive/html/bug-autoconf/2012-03/msg00036.html> |
| 9131 |
<http://lists.gnu.org/archive/html/bug-autoconf/2012-03/msg00044.html> |
| 9132 |
|
| 9133 |
2012-03-06 Stefano Lattarini <[email protected]> |
| 9134 |
|
| 9135 |
maint: resync files from upstream |
| 9136 |
Since the perl version required in Automake::Getopt has been |
| 9137 |
recently lowered from 5.6.2 to 5.6.0, this change has the nice |
| 9138 |
effect of making autoconf compatible again with all perls in |
| 9139 |
the 5.6.x release series. |
| 9140 |
|
| 9141 |
* maint.mk: Resync via 'make fetch'. |
| 9142 |
* lib/Autom4te/Channels.pm: Likewise. |
| 9143 |
* lib/Autom4te/Configure_ac.pm: Likewise. |
| 9144 |
* lib/Autom4te/FileUtils.pm: Likewise. |
| 9145 |
* lib/Autom4te/Getopt.pm: Likewise. |
| 9146 |
* lib/Autom4te/XFile.pm: Likewise. |
| 9147 |
|
| 9148 |
2012-03-05 Stefano Lattarini <[email protected]> |
| 9149 |
|
| 9150 |
maint: drop syncing with Automake::Struct |
| 9151 |
The module Automake::Struct has been removed in automake master |
| 9152 |
branch (with yesterday's commit v1.11-2055-g74a7f49 "maint: drop |
| 9153 |
'Automake::Struct' module"): since Automake now requires Perl 5.6, |
| 9154 |
that module has become obsolete, being basically just a backport |
| 9155 |
of Perl 5.6's 'Class::Struct' to Perl 5.5. With this change, we |
| 9156 |
follow suite in Autoconf, which syncs some of its internal modules |
| 9157 |
with Automake. |
| 9158 |
|
| 9159 |
* lib/Autom4te/Struct.pm: Delete. |
| 9160 |
* lib/Autom4te/Makefile.am (dist_perllib_DATA): Don't list it |
| 9161 |
anymore. |
| 9162 |
* cfg.mk: Don't sync it with the Automake repository anymore. |
| 9163 |
* lib/Autom4te/Request.pm: Use 'Class::Struct' instead of |
| 9164 |
'Autom4te::Struct'. |
| 9165 |
|
| 9166 |
2012-03-04 Paul Eggert <[email protected]> |
| 9167 |
|
| 9168 |
doc: mention PATH bug with "ksh foo" |
| 9169 |
* doc/autoconf.texi (Invoking the Shell): Mention ksh PATH bug. |
| 9170 |
|
| 9171 |
2012-03-04 Stefano Lattarini <[email protected]> |
| 9172 |
|
| 9173 |
tests: fix spurious failure due to Solaris XPG4 sh bug |
| 9174 |
On Solaris 10, the /usr/xpg4/bin/sh shell seems unable to execute |
| 9175 |
a shell script named 'script': |
| 9176 |
|
| 9177 |
$ touch script |
| 9178 |
$ /bin/sh script; echo status: $? # As expected. |
| 9179 |
status: 0 |
| 9180 |
$ /usr/xpg4/bin/sh script; echo status: $? # Weirdness follows. |
| 9181 |
/usr/xpg4/bin/sh: script: cannot execute |
| 9182 |
status: 1 |
| 9183 |
|
| 9184 |
This was causing a spurious testsuite failure for users which have |
| 9185 |
/usr/xpg4/bin in $PATH before /bin and /usr/bin. Fix that. |
| 9186 |
|
| 9187 |
* tests/m4sh.at (Configure re-execs self with CONFIG_SHELL): Rename |
| 9188 |
the m4sh-produced script to 'script2', to avoid the just-described |
| 9189 |
issue. |
| 9190 |
|
| 9191 |
2012-03-04 Stefano Lattarini <[email protected]> |
| 9192 |
|
| 9193 |
tests: fix spurious failure when CONFIG_SITE is set |
| 9194 |
* tests/m4sh.at (Configure re-execs self with CONFIG_SHELL): Export |
| 9195 |
$CONFIG_SITE to "/dev/null", to avoid spurious diffs in expected |
| 9196 |
stdout/stderr. |
| 9197 |
|
| 9198 |
2012-03-04 Paul Eggert <[email protected]> |
| 9199 |
|
| 9200 |
fortran: clean up core files after AC_FC_CHECK_BOUNDS |
| 9201 |
* lib/autoconf/fortran.m4 (AC_FC_CHECK_BOUNDS): Clean up core |
| 9202 |
files, too. Needed for Sun Fortran 95 8.2 2005/10/13 on Solaris 8. |
| 9203 |
|
| 9204 |
tests: port AS_TR_SH and AS_TR_CPP test to Solaris 8 wc |
| 9205 |
* tests/m4sh.at (AS@&t@_TR_SH and AS@&t@_TR_CPP): Do not assume |
| 9206 |
that "wc -l" outputs only digits; on Solaris 8 it also outputs |
| 9207 |
blanks and POSIX allows this. |
| 9208 |
|
| 9209 |
tests: fix "#/bin/sh" typo |
| 9210 |
* tests/m4sh.at (AS@&t@_EXECUTABLE): "#!/bin/sh", not "#/bin/sh". |
| 9211 |
Typo reported by Tim Rice in: |
| 9212 |
http://lists.gnu.org/archive/html/autoconf-patches/2012-03/msg00009.html |
| 9213 |
|
| 9214 |
tests: port AS_EXECUTABLE_P test to Solaris 8 /bin/sh |
| 9215 |
* tests/m4sh.at (AS@&t@_EXECUTABLE): Treat any nonzero exit |
| 9216 |
status as failure. This is needed for Solaris 8 /bin/sh, |
| 9217 |
where executing a nonexecutable file causes the shell |
| 9218 |
to say the file had exit status 1. |
| 9219 |
|
| 9220 |
2012-03-03 Stefano Lattarini <[email protected]> |
| 9221 |
|
| 9222 |
configure: don't infloop when re-executing with $CONFIG_SHELL |
| 9223 |
It turns out our guard against infinite recursion wasn't good |
| 9224 |
enough when shells without $LINENO support were involved, since |
| 9225 |
the creation-and-sourcing of configure.lineno broke the guard's |
| 9226 |
expectations. Reports by Tim Rice and Paul Eggert. |
| 9227 |
|
| 9228 |
* lib/m4sugar/m4sh.m4 (_AS_LINENO_PREPARE): Export '_as_can_reexec' |
| 9229 |
to "no" before sourcing the just-created configure.lineno. |
| 9230 |
|
| 9231 |
2012-03-02 Paul Eggert <[email protected]> |
| 9232 |
|
| 9233 |
maint: spelling fixes |
| 9234 |
|
| 9235 |
2012-03-01 Eric Blake <[email protected]> |
| 9236 |
|
| 9237 |
maint: post-release administrivia |
| 9238 |
* NEWS: Add header line for next release. |
| 9239 |
* .prev-version: Record previous version. |
| 9240 |
* cfg.mk (old_NEWS_hash): Auto-update. |
| 9241 |
|
| 9242 |
2012-03-01 Eric Blake <[email protected]> |
| 9243 |
|
| 9244 |
Release Version 2.68b. |
| 9245 |
It's been more than a year since 2.68; time for a beta release |
| 9246 |
to shake out any last minute bugs, before a release of 2.69 |
| 9247 |
in the near future. |
| 9248 |
|
| 9249 |
* NEWS: Mention the release. |
| 9250 |
* HACKING: Update some instructions. |
| 9251 |
|
| 9252 |
2012-03-01 Eric Blake <[email protected]> |
| 9253 |
|
| 9254 |
maint: resync files from upstream |
| 9255 |
* GNUmakefile: Resync via 'make fetch'. |
| 9256 |
* build-aux/config.guess: Likewise. |
| 9257 |
* build-aux/config.sub: Likewise. |
| 9258 |
* build-aux/texinfo.tex: Likewise. |
| 9259 |
* build-aux/update-copyright: Likewise. |
| 9260 |
* doc/standards.texi: Likewise. |
| 9261 |
* lib/Autom4te/Channels.pm: Likewise. |
| 9262 |
* lib/Autom4te/Configure_ac.pm: Likewise. |
| 9263 |
* lib/Autom4te/FileUtils.pm: Likewise. |
| 9264 |
* lib/Autom4te/Getopt.pm: Likewise. |
| 9265 |
* lib/Autom4te/Struct.pm: Likewise. |
| 9266 |
* lib/Autom4te/XFile.pm: Likewise. |
| 9267 |
* maint.mk: Likewise. |
| 9268 |
|
| 9269 |
2012-02-25 Eric Blake <[email protected]> |
| 9270 |
|
| 9271 |
tests: add test for AS_EXECUTABLE_P |
| 9272 |
Now that this is public, we should regression test it. |
| 9273 |
|
| 9274 |
* tests/m4sh.at (AS@&t@_EXECUTABLE): New test. |
| 9275 |
|
| 9276 |
2012-02-25 Eric Blake <[email protected]> |
| 9277 |
|
| 9278 |
m4sh: make AS_EXECUTABLE_P public |
| 9279 |
In the process of making it public, factor it into a reusable |
| 9280 |
function. This makes constructs like AC_CHECK_PROGRAM smaller, |
| 9281 |
as well as making libtool's naughty use of $as_executable_p safer. |
| 9282 |
|
| 9283 |
* lib/m4sugar/m4sh.m4 (_AS_TEST_PREPARE): Add a shell function. |
| 9284 |
(AS_EXECUTABLE_P): Forward to shell function. |
| 9285 |
* doc/autoconf.texi (Common Shell Constructs): Document it. |
| 9286 |
* NEWS: Mention this. |
| 9287 |
|
| 9288 |
2012-02-24 Eric Blake <[email protected]> |
| 9289 |
|
| 9290 |
m4sh: require that 'test -x' works |
| 9291 |
4.3BSD is no longer a reasonable portability target; and we are |
| 9292 |
pretty sure that these days we can find at least one shell on any |
| 9293 |
platform that supports 'test -x'. Drop a horribly unsafe use of |
| 9294 |
eval as a result. :) |
| 9295 |
|
| 9296 |
Libtool still uses $as_executable_p without so much as calling |
| 9297 |
either AS_TEST_X or AS_EXECUTABLE_P; even though the latter has |
| 9298 |
existed, although undocumented, since at least 2.59; furthermore, |
| 9299 |
libtool uses it in a context where filtering out directories |
| 9300 |
would have been desirable. Shame on them. |
| 9301 |
|
| 9302 |
* lib/m4sugar/m4sh.m4 (_AS_TEST_X_WORKS): New probe. |
| 9303 |
(AS_SHELL_SANITIZE, AS_INIT): Use it in shell searching. |
| 9304 |
(AS_TEST_X, AS_EXECUTABLE_P): Simplify. |
| 9305 |
|
| 9306 |
2012-02-24 Eric Blake <[email protected]> |
| 9307 |
|
| 9308 |
doc: mention more pitfalls of file mode tests |
| 9309 |
4.3BSD is museum-ware now, so we can assume that test -x exists; |
| 9310 |
however, we still can't assume that it always does what we want. |
| 9311 |
|
| 9312 |
* doc/autoconf.texi (Limitations of Builtins) <test (files)>: |
| 9313 |
Treat 'test -x' as mostly portable, but mention problems with |
| 9314 |
root user, ACLs, and TOCTTOU races. |
| 9315 |
|
| 9316 |
2012-02-16 Eric Blake <[email protected]> |
| 9317 |
|
| 9318 |
docs: tweak 'rm -f' limitations |
| 9319 |
Based on http://debbugs.gnu.org/10819 and |
| 9320 |
http://austingroupbugs.net/view.php?id=542 |
| 9321 |
|
| 9322 |
* doc/autoconf.texi (Limitations of Usual Tools) <rm>: More |
| 9323 |
details on 'rm -f' without files. |
| 9324 |
|
| 9325 |
2012-02-10 Paul Eggert <[email protected]> |
| 9326 |
|
| 9327 |
maint: replace FSF snail-mail addresses with URLs |
| 9328 |
* tests/erlang.at, tests/go.at, tests/statesave.m4: |
| 9329 |
Replace FSF snail mail addresses with URLs, as per GNU coding |
| 9330 |
standards, and for consistency with other tests. |
| 9331 |
|
| 9332 |
2012-01-28 Jim Meyering <[email protected]> |
| 9333 |
|
| 9334 |
maint: avoid "make syntax-check" failure |
| 9335 |
* Makefile.am ($(srcdir)/INSTALL): Remove spurious space-before-TAB. |
| 9336 |
|
| 9337 |
2012-01-23 Eric Blake <[email protected]> |
| 9338 |
|
| 9339 |
tests: fix test regression due to additional output |
| 9340 |
This test has been failing since commit 5285ea8c (sadly, since |
| 9341 |
last July; thankfully, unreleased). |
| 9342 |
|
| 9343 |
* tests/m4sugar.at (m4@&t@_require: nested): Fix test. |
| 9344 |
|
| 9345 |
2012-01-23 Eric Blake <[email protected]> |
| 9346 |
|
| 9347 |
INSTALL: convert to '' quoting, drop blank line at end |
| 9348 |
This is allowed by recent GNU Coding Standards changes, and |
| 9349 |
mirrors recent gnulib changes: |
| 9350 |
https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00267.html |
| 9351 |
https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00298.html |
| 9352 |
|
| 9353 |
I've confirmed that after these changes, the INSTALL generated and |
| 9354 |
installed by autoconf matches the INSTALL.ISO in gnulib. |
| 9355 |
|
| 9356 |
* Makefile.am ($(srcdir)/INSTALL): Match gnulib INSTALL.ISO. |
| 9357 |
|
| 9358 |
2012-01-23 Jim Meyering <[email protected]> |
| 9359 |
|
| 9360 |
maint: convert .x-sc_* into exclude_file_name_regexp--sc_* exemptions |
| 9361 |
Many of the .x-sc_* exemptions were no long necessary. Remove those |
| 9362 |
files and instead, provide exemptions via variable definitions in |
| 9363 |
cfg.mk to address the few remaining exceptions. |
| 9364 |
* .x-sc_prohibit_atoi_atof: Remove file. |
| 9365 |
* .x-sc_space_tab: Likewise. |
| 9366 |
* .x-sc_sun_os_names: Likewise. |
| 9367 |
* .x-sc_trailing_blank: Likewise. |
| 9368 |
* .x-sc_two_space_separator_in_usage: Likewise. |
| 9369 |
* .x-sc_useless_cpp_parens: Likewise. |
| 9370 |
* cfg.mk: Add minimal exemptions. |
| 9371 |
* cfg.mk: Add minimal exemptions. |
| 9372 |
* doc/standards.texi (Standard C): Address the sole useless-cpp-parens |
| 9373 |
violation in this file: |
| 9374 |
-#if defined (__STDC__) || defined (WINDOWSNT) |
| 9375 |
+#if defined __STDC__ || defined WINDOWSNT |
| 9376 |
With that, the only remaining offender is config.guess, whose name |
| 9377 |
is now listed in cfg.mk. |
| 9378 |
Suggested by Eric Blake. |
| 9379 |
|
| 9380 |
2012-01-23 Paul Eggert <[email protected]> |
| 9381 |
|
| 9382 |
doc: work around mingw-w64 alloca problem with example |
| 9383 |
* doc/autoconf.texi (Particular Functions): In example code for |
| 9384 |
alloca, do not re-#define alloca. This works around a mingw-w64 |
| 9385 |
problem reported by Vincent Torri in |
| 9386 |
<http://lists.gnu.org/archive/html/autoconf/2012-01/msg00018.html>. |
| 9387 |
|
| 9388 |
2012-01-21 Jim Meyering <[email protected]> |
| 9389 |
|
| 9390 |
maint: fix or disable failing syntax-check rules |
| 9391 |
* cfg.mk (local-checks-to-skip): List failing tests, so we skip |
| 9392 |
them, for now. |
| 9393 |
(old_NEWS_hash): Update. |
| 9394 |
* doc/autoconf.texi: Per suggestion from Eric Blake, obfuscate |
| 9395 |
the first word of "Filesystem Hierarchy Standard" as File@/system |
| 9396 |
so it continues to render as one word, yet doesn't trigger the |
| 9397 |
syntax-check prohibition. |
| 9398 |
|
| 9399 |
maint: also sync maint.mk and useless-if-before-free from gnulib |
| 9400 |
* cfg.mk (gnulib-update): Add them to the list. |
| 9401 |
* maint.mk: Update from gnulib. |
| 9402 |
* build-aux/gitlog-to-changelog: Likewise. |
| 9403 |
* build-aux/useless-if-before-free: New file, from gnulib. |
| 9404 |
* doc/gnu-oids.texi: Update. |
| 9405 |
|
| 9406 |
maint.mk: update from gnulib |
| 9407 |
* maint.mk: Update. |
| 9408 |
|
| 9409 |
maint: placate syntax-check rules: exempt some false positives |
| 9410 |
* cfg.mk: Exempt maint.mk from the "undesirable word seq" check. |
| 9411 |
Exempt maint.mk and autoconf.texi from the test_minus_ao check. |
| 9412 |
|
| 9413 |
maint: tweak to avoid triggering space-tab-prohibiting syntax-check |
| 9414 |
* tests/m4sh.at (nargs): Use TAB-SP, not SP-TAB in abusive file name, |
| 9415 |
to avoid triggering the space-tab-prohibiting syntax-check. |
| 9416 |
|
| 9417 |
maint: remove empty lines at EOF |
| 9418 |
* man/autoconf.x: Remove empty line at EOF. |
| 9419 |
* man/autoheader.x: Likewise. |
| 9420 |
* man/autoscan.x: Likewise. |
| 9421 |
* man/autoupdate.x: Likewise. |
| 9422 |
* man/ifnames.x: Likewise. |
| 9423 |
* tests/compile.at: Likewise. |
| 9424 |
* doc/fdl.texi: Likewise. |
| 9425 |
|
| 9426 |
doc: fix grammar/doubled-word errors |
| 9427 |
* doc/autoconf.texi: Remove/fix doubled-word errors. |
| 9428 |
Also, s/can not/cannot/. |
| 9429 |
* lib/m4sugar/m4sh.m4: Reword "if IF" comment to avoid triggering |
| 9430 |
the doubled-word warning. |
| 9431 |
|
| 9432 |
2012-01-21 Stefano Lattarini <[email protected]> |
| 9433 |
|
| 9434 |
maint: sync files from gnulib |
| 9435 |
* GNUmakefile: Sync from gnulib. |
| 9436 |
* build-aux/announce-gen: Likewise. |
| 9437 |
* build-aux/config.guess: Likewise. |
| 9438 |
* build-aux/config.sub: Likewise. |
| 9439 |
* build-aux/git-version-gen: Likewise. |
| 9440 |
* build-aux/gnupload: Likewise. |
| 9441 |
* build-aux/move-if-change: Likewise. |
| 9442 |
* build-aux/texinfo.tex: Likewise. |
| 9443 |
* build-aux/update-copyright: Likewise. |
| 9444 |
* build-aux/vc-list-files: Likewise. |
| 9445 |
* doc/gendocs_template: Likewise. |
| 9446 |
* doc/standards.texi: Likewise. |
| 9447 |
* m4/autobuild.m4: Likewise. |
| 9448 |
|
| 9449 |
2012-01-21 Stefano Lattarini <[email protected]> |
| 9450 |
|
| 9451 |
maint: make position of gnulib checkout configurable |
| 9452 |
Some gnulib-related tools (most prominently, the gnulib-provided |
| 9453 |
'bootstrap' script) allow the user to define the position of his |
| 9454 |
gnulib's repository checkout through the use of the 'GNULIB_SRCDIR' |
| 9455 |
environment variable. We should do the same, for consistency and |
| 9456 |
to easily support slightly unusual layouts in developers' source |
| 9457 |
trees. |
| 9458 |
|
| 9459 |
* cfg.mk (gnulib_dir): Define to "$GNULIB_SRCDIR" if that's set, |
| 9460 |
and to default value of "'$(abs_srcdir)'/../gnulib" otherwise. |
| 9461 |
Update comments. |
| 9462 |
|
| 9463 |
2012-01-20 Stefano Lattarini <[email protected]> |
| 9464 |
|
| 9465 |
getopt: sync from Automake repository |
| 9466 |
* lib/Autom4te/Getopt.am: The master copy of this file has |
| 9467 |
been moved to the Automake repository (see Automake commit |
| 9468 |
'v1.11-662-g52246cc' 2012-01-18, "cmdline parsing: move into |
| 9469 |
a dedicated perl module"). So we now we sync it from there, |
| 9470 |
by listing it ... |
| 9471 |
* cfg.mk (autom4te_files): ... in this variable. |
| 9472 |
|
| 9473 |
2012-01-20 Stefano Lattarini <[email protected]> |
| 9474 |
|
| 9475 |
build: fix automake error due to missing ChangeLog |
| 9476 |
Apparently, Automake does not accept the '$(srcdir)/ChangeLog' |
| 9477 |
target in Makefile.am as a declaration that ChangeLog is |
| 9478 |
automatically generated (and thus does not need to exist at |
| 9479 |
automake time). One has to use a *literal* 'ChangeLog' target. |
| 9480 |
|
| 9481 |
Problem introduced in commit v2.68-118-g6ed5195 of 2012-01-17, |
| 9482 |
"maint: generate ChangeLog from git log". |
| 9483 |
|
| 9484 |
* Makefile.ma ($(srcdir)/ChangeLog): Renamed ... |
| 9485 |
(ChangeLog): ... to this. |
| 9486 |
|
| 9487 |
2012-01-17 Stefano Lattarini <[email protected]> |
| 9488 |
|
| 9489 |
getopt: new Autom4te::Getopt module |
| 9490 |
* lib/Autom4te/General.pm (getopt): Move the guts of its |
| 9491 |
implementation ... |
| 9492 |
* lib/Autom4te/Getopt.pm (parse_options): .. into this function |
| 9493 |
in the new Autom4te::Getopt module. This will make it simpler |
| 9494 |
for the implementation to be shared with other projects (right |
| 9495 |
now, Automake). |
| 9496 |
* lib/Automake/Makefile.am (dist_perllib_DATA): Add the new |
| 9497 |
module. |
| 9498 |
|
| 9499 |
2012-01-17 Jim Meyering <[email protected]> |
| 9500 |
|
| 9501 |
tests: avoid spurious failure for each gnu-fortran-using test |
| 9502 |
The tests compare pre- and post-run lists of envvars, which must |
| 9503 |
be the same, modulo a list of known, filtered-out exceptions. |
| 9504 |
However, when running fortran-checking tests with GNU fortran, each |
| 9505 |
would fail due to the post-run addition of the GFC symbol added in |
| 9506 |
v2.68-97-gbd962ac. |
| 9507 |
* tests/local.at (AT_CHECK_ENV): Add GFC to the list of symbols |
| 9508 |
that we ignore in pre-/post-run environment diffs. |
| 9509 |
|
| 9510 |
2012-01-17 Stefano Lattarini <[email protected]> |
| 9511 |
|
| 9512 |
maint: generate ChangeLog from git log |
| 9513 |
Following the practice set by various other GNU projects, we start |
| 9514 |
to automatically generate the ChangeLog file from the git commit |
| 9515 |
messages. This will avoid duplication (as the ChangeLog entries |
| 9516 |
were always inserted both in the git commit message and in the |
| 9517 |
version-controlled ChangeLog file), and potential problems with |
| 9518 |
spurious merge conflicts (which, although greatly mitigated by |
| 9519 |
Bruno Haible's `git-merge-changelog' helper program, have never |
| 9520 |
been completely solved). |
| 9521 |
|
| 9522 |
* ChangeLog: Moved ... |
| 9523 |
* ChangeLog.3: ... to this. |
| 9524 |
* build-aux/gitlog-to-changelog: New script, synced from gnulib. |
| 9525 |
* cfg.mk (gnulib-update): Also sync gitlog-to-changelog. |
| 9526 |
* Makefile.am (gen-ChangeLog): New .PHONY rule, generate the |
| 9527 |
ChangeLog for distribution. |
| 9528 |
(dist-hook): Depend on it. |
| 9529 |
($(srcdir)/ChangeLog): New dummy rule, to pacify automake "gnu" |
| 9530 |
strictness. Creates a dummy ChangeLog, that will be overridden |
| 9531 |
by the proper one at distribution time. |
| 9532 |
(gen_start_date): New variable, the date starting from which the |
| 9533 |
git log entries are to be copied in the generated ChangeLog. |
| 9534 |
(EXTRA_DIST): Add ChangeLog.3 and gitlog-to-changelog. |
| 9535 |
* configure.ac (AC_CONFIG_SRCDIR): Use 'lib/autoconf/autoconf.m4' |
| 9536 |
instead of 'ChangeLog' as the sentinel file. |
| 9537 |
* .gitignore: Add ChangeLog. |
| 9538 |
|
| 9539 |
2012-01-15 Stefano Lattarini <[email protected]> |
| 9540 |
|
| 9541 |
cosmetics: fix some typos in ChangeLog |