2007-09-08 22:48:49 +08:00
|
|
|
|
GNU Autoconf NEWS - User visible changes.
|
|
|
|
|
|
2023-12-23 02:45:16 +08:00
|
|
|
|
* Noteworthy changes in release ?.? (????-??-??) [?]
|
|
|
|
|
|
2024-04-26 05:47:20 +08:00
|
|
|
|
** Backward incompatibilities
|
|
|
|
|
|
2024-05-01 01:26:50 +08:00
|
|
|
|
*** AC_PROG_CC now prefers C23 if available.
|
2024-05-01 02:41:36 +08:00
|
|
|
|
Older code may need to be updated, as C23 has removed old-style
|
|
|
|
|
(K&R) function definitions and declarations, and has new keywords
|
|
|
|
|
alignas, alignof, bool, constexpr, false, nullptr, static_assert,
|
|
|
|
|
thread_local, typeof, typeof_unqual, true.
|
2024-05-01 01:26:50 +08:00
|
|
|
|
|
2024-05-01 02:48:31 +08:00
|
|
|
|
*** AC_PROG_CC no longer checks __STDC__ or variable length arrays (VLAs).
|
|
|
|
|
This ports better to MSVC, which does not define __STDC__ and does
|
|
|
|
|
not support VLAs. Although C99 requires VLAs, they are optional in
|
|
|
|
|
C11 and later. Programs can use AC_C_VARARRAYS and __STDC_NO_VLA__
|
|
|
|
|
to use VLAs if available.
|
2023-12-23 02:45:16 +08:00
|
|
|
|
|
2024-05-29 00:31:11 +08:00
|
|
|
|
*** AC_PROG_CXX no longer attempts to switch to C++98 or C++11.
|
|
|
|
|
Instead, it uses the compiler's default, which you can override
|
|
|
|
|
by configuring with something like CXX='g++ -std=gnu++11'.
|
|
|
|
|
This reverts to Autoconf 2.69 behavior, and also fixes a bug where
|
|
|
|
|
AC_PROG_CXX rejected C++20 compilers.
|
2024-05-26 22:04:19 +08:00
|
|
|
|
|
2024-06-15 23:24:05 +08:00
|
|
|
|
** New features
|
|
|
|
|
|
|
|
|
|
*** Programs now recognize #elifdef and #elifndef.
|
|
|
|
|
The autom4te, autoscan and ifnames programs now recognize the two
|
|
|
|
|
preprocessor directives, which were introduced in C23 and C++23.
|
|
|
|
|
|
2024-07-16 23:25:36 +08:00
|
|
|
|
** Notable bug fixes
|
|
|
|
|
|
|
|
|
|
*** AC_FUNC_STRNLEN now detects Android 5.0's broken strnlen.
|
|
|
|
|
|
2024-07-16 23:56:21 +08:00
|
|
|
|
*** AC_PROG_OBJC now finds the GNU Objective-C compiler, as packaged in
|
|
|
|
|
EPEL 9, by default, without the user having to set the OBJC variable.
|
|
|
|
|
|
2023-12-23 01:39:49 +08:00
|
|
|
|
* Noteworthy changes in release 2.72 (2023-12-22) [release]
|
2020-12-09 02:04:16 +08:00
|
|
|
|
|
2020-12-09 09:53:13 +08:00
|
|
|
|
** Backward incompatibilities
|
2021-09-01 08:34:46 +08:00
|
|
|
|
|
2023-12-01 04:25:45 +08:00
|
|
|
|
*** Configure scripts no longer support pre-1989 C compilers.
|
|
|
|
|
Specifically, compilers that *only* implement the original “K&R”
|
|
|
|
|
function definition syntax, and not the newer “prototyped” syntax,
|
|
|
|
|
will not be able to parse the test programs now emitted by
|
|
|
|
|
AC_CHECK_FUNC, AC_LANG_CALL, and similar macros. AC_PROG_CC still
|
|
|
|
|
accepts such compilers, but this may change in the near future.
|
|
|
|
|
|
|
|
|
|
This change was necessary in order to support the upcoming 2024
|
|
|
|
|
edition of the C standard (often referred to as “C23”), which will
|
|
|
|
|
officially remove the function declaration syntax used by
|
|
|
|
|
AC_CHECK_FUNC in Autoconf 2.71 and earlier. We feel that support
|
|
|
|
|
for compilers that support only C 2024 is more useful, nowadays,
|
|
|
|
|
than support for compilers that don’t implement a core feature of
|
|
|
|
|
C 1989.
|
2023-03-28 09:10:36 +08:00
|
|
|
|
|
Go back to requiring only Perl 5.6+ for users
Commit 61901a1a14fd50c03cfb1529d091554376fef286 dated 2022-07-10
bumped the Perl requirement to 5.10 or later, because
commit 3a9802d60156809c139e9b4620bf04917e143ee2 dated 2021-08-31
added code using Time::HiRes’s ‘stat’ function, a feature
added in Perl 5.8.9+ or Perl 5.10+, and it was hard
to find Perl 5.8.9 hosts to test with. Also, requiring Perl 5.10
meant that we could then use operators like Digest::SHA, the // and
//= operators, the regexp \K escape, and ‘state’ variables.
However, that Time::HiRes code, which was taken from Automake, has
recently been made optional by Automake, and it now works again with
Perl 5.6. And Autoconf is not yet using any other post-5.6 feature,
except when developers run help-extract.pl (something Autoconf users
do not use). So relax the Autoconf user requirement back to 5.6 as it
was in Autoconf 2.71; although Autoconf developers will need 5.10 or
better, Autoconf users can get by with 5.6.
I ran into this problem when testing the Autoconf release candidate on
Solaris 10, which has Perl 5.8.4. Oracle says Solaris 10’s
end-of-life is January 2024, so it’s still (barely) a viable porting
target. Of course with Solaris 10 one must install a recent-enough
GNU m4, but adding a requirement to also install a recent-enough Perl
is a new barrier, and if it’s not needed then it might be better to
wait until it is needed (or until 2024 arrives).
* NEWS: Update news item about Perl 5.6 vs 5.10.
* README-hacking: Bump Perl recommendation to 5.10.
* build-aux/fetch.pl: Do not munge imported code to require 5.10.
2023-04-01 01:55:29 +08:00
|
|
|
|
*** Autoconf developers now need Perl 5.10 (2007) or later.
|
2023-12-01 04:25:45 +08:00
|
|
|
|
“Autoconf developers” means specifically people hacking on Autoconf
|
|
|
|
|
itself. Autoconf *users*, i.e. authors of configure.ac files and
|
|
|
|
|
add-on M4 macros, still need only Perl 5.6 (2000) or later.
|
Go back to requiring only Perl 5.6+ for users
Commit 61901a1a14fd50c03cfb1529d091554376fef286 dated 2022-07-10
bumped the Perl requirement to 5.10 or later, because
commit 3a9802d60156809c139e9b4620bf04917e143ee2 dated 2021-08-31
added code using Time::HiRes’s ‘stat’ function, a feature
added in Perl 5.8.9+ or Perl 5.10+, and it was hard
to find Perl 5.8.9 hosts to test with. Also, requiring Perl 5.10
meant that we could then use operators like Digest::SHA, the // and
//= operators, the regexp \K escape, and ‘state’ variables.
However, that Time::HiRes code, which was taken from Automake, has
recently been made optional by Automake, and it now works again with
Perl 5.6. And Autoconf is not yet using any other post-5.6 feature,
except when developers run help-extract.pl (something Autoconf users
do not use). So relax the Autoconf user requirement back to 5.6 as it
was in Autoconf 2.71; although Autoconf developers will need 5.10 or
better, Autoconf users can get by with 5.6.
I ran into this problem when testing the Autoconf release candidate on
Solaris 10, which has Perl 5.8.4. Oracle says Solaris 10’s
end-of-life is January 2024, so it’s still (barely) a viable porting
target. Of course with Solaris 10 one must install a recent-enough
GNU m4, but adding a requirement to also install a recent-enough Perl
is a new barrier, and if it’s not needed then it might be better to
wait until it is needed (or until 2024 arrives).
* NEWS: Update news item about Perl 5.6 vs 5.10.
* README-hacking: Bump Perl recommendation to 5.10.
* build-aux/fetch.pl: Do not munge imported code to require 5.10.
2023-04-01 01:55:29 +08:00
|
|
|
|
|
2023-12-01 04:25:45 +08:00
|
|
|
|
We do recommend all Autoconf users upgrade to Perl 5.10 or later if
|
|
|
|
|
possible, as this version significantly improves Perl’s ability to
|
|
|
|
|
handle files with last-modification timestamps separated by less
|
|
|
|
|
than a second. (Note: even in the most recent release, Perl cannot
|
|
|
|
|
always match the file system’s timestamp resolution.)
|
2021-09-01 08:34:46 +08:00
|
|
|
|
|
2023-12-23 01:39:49 +08:00
|
|
|
|
Generated configure scripts continue to run without Perl.
|
Require GNU M4 1.4.8 or later.
The former minimum version was 1.4.6. 1.4.6 and 1.4.7 do not track
the original location of text fed to ‘m4wrap’, which breaks autom4te’s
ability to trace macros invoked from _AC_FINALIZE.
Right now, the only _user_ visible effect of this is that autoconf
running on M4 1.4.6 or 1.4.7 will emit an internal error, instead of
the intended warning message, when it processes a configure.ac that
neglects to invoke AC_INIT or AC_OUTPUT. Perhaps more importantly,
it causes a bunch of scary-sounding failures in our own testsuite,
which deliberately doesn’t use AC_OUTPUT sometimes.
M4 1.4.6 and 1.4.7 also have bugs in location tracking of macro
invocations spread over multiple lines, which, guess what, causes
even more testsuite failures.
1.4.8 came out in 2006. As a practical matter, this change to our
requirements means that people using macOS *to run autoconf* (not just
to run generated configure scripts) cannot use the system-provided m4
anymore. {Free,Net,Open}BSD already don’t ship GNU M4 as their system
m4, so users of those OSes should not be affected.
2022-07-07 04:11:43 +08:00
|
|
|
|
|
2023-12-01 04:25:45 +08:00
|
|
|
|
*** Autoconf users now need GNU M4 1.4.8 (2006) or later.
|
Require GNU M4 1.4.8 or later.
The former minimum version was 1.4.6. 1.4.6 and 1.4.7 do not track
the original location of text fed to ‘m4wrap’, which breaks autom4te’s
ability to trace macros invoked from _AC_FINALIZE.
Right now, the only _user_ visible effect of this is that autoconf
running on M4 1.4.6 or 1.4.7 will emit an internal error, instead of
the intended warning message, when it processes a configure.ac that
neglects to invoke AC_INIT or AC_OUTPUT. Perhaps more importantly,
it causes a bunch of scary-sounding failures in our own testsuite,
which deliberately doesn’t use AC_OUTPUT sometimes.
M4 1.4.6 and 1.4.7 also have bugs in location tracking of macro
invocations spread over multiple lines, which, guess what, causes
even more testsuite failures.
1.4.8 came out in 2006. As a practical matter, this change to our
requirements means that people using macOS *to run autoconf* (not just
to run generated configure scripts) cannot use the system-provided m4
anymore. {Free,Net,Open}BSD already don’t ship GNU M4 as their system
m4, so users of those OSes should not be affected.
2022-07-07 04:11:43 +08:00
|
|
|
|
Use of GNU M4 1.4.16 or later is recommended, as all earlier versions
|
|
|
|
|
are known to have had serious bugs in the text-processing builtins
|
|
|
|
|
on some, but not all, operating systems. Autoconf’s own configure
|
|
|
|
|
script will attempt to find a version of M4 that is not affected by
|
|
|
|
|
these bugs.
|
|
|
|
|
|
|
|
|
|
Note: Autoconf 2.70 and 2.71 include code that malfunctions with
|
|
|
|
|
M4 1.4.6 or 1.4.7. However, the only effect of the malfunction is
|
|
|
|
|
that you will get a confusing error message if you run autoconf on
|
|
|
|
|
a configure.ac that neglects to use AC_INIT or AC_OUTPUT.
|
|
|
|
|
|
2023-12-01 04:25:45 +08:00
|
|
|
|
Generated 'configure' scripts continue to run without M4.
|
|
|
|
|
|
|
|
|
|
*** Some m4sh diversions have been renumbered.
|
|
|
|
|
This will only affect macros that use m4_divert with numbered rather
|
|
|
|
|
than named diversions, which has always been strongly discouraged
|
|
|
|
|
both by the documentation and with warnings.
|
2022-09-19 02:52:04 +08:00
|
|
|
|
|
Overhaul AC_TYPE_GETGROUPS and AC_FUNC_GETGROUPS.
AC_TYPE_GETGROUPS is the last remaining use of AC_EGREP_HEADER in
stock Autoconf macros. It uses it only when cross compiling, as a
fallback from an AC_RUN_IFELSE check, testing for a bug in system
headers from the late 1980s or early 1990s, where gid_t *existed*
but the second argument to getgroups needed to be an array of int,
and this didn’t cause a compile error (i.e. the system headers
declare getgroups with no prototype or an incorrect prototype).
AC_FUNC_GETGROUPS also uses AC_RUN_IFELSE to test for obscure
problems specific to long-obsolete Unixes.
The downsides of AC_RUN_IFELSE and AC_EGREP_HEADER seem more severe
than the chances of someone compiling a current-generation program,
that uses getgroups, on an OS old enough to have one of the really
nasty bugs. Accordingly, this patch changes AC_FUNC_GETGROUPS to use
a host_os-based *blacklist* both in native and cross compilation.
This is limited to the two host_os values for which either our old
code, or Gnulib, documented a serious bug: ultrix* and nextstep*.
Currently it does not try to pin down the exact version ranges subject
to the bugs — that would require research by someone with access to
the full history of these OSes.
An incorrect guess by this blacklist can be overridden by setting
ac_cv_func_getgroups_works in config.site. AC_TYPE_GETGROUPS, for its
part, now does a series of regular old AC_COMPILE_IFELSE checks to
probe the prototype of getgroups, and considers that good enough.
While I was in there I noticed that AC_FUNC_GETGROUPS does not
AC_SUBST a documented output variable, and that the name of this
variable is misspelled in the manual.
* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Use AC_SEARCH_LIBS
to probe for getgroups. Use an AC_CANONICAL_HOST-based blacklist
for bug detection, not AC_RUN_IFELSE. AC_SUBST the GETGROUPS_LIB
output variable.
* lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Check only the prototype
of getgroups, using AC_COMPILE_IFELSE; do not use either AC_RUN_IFELSE
or AC_EGREP_HEADER.
* doc/autoconf.texi: Update to match. Correct misspelling of
GETGROUPS_LIB.
* tests.local.at (_AT_CHECK_ENV): Allow GETGROUPS_LIB output variable.
2023-04-03 03:07:58 +08:00
|
|
|
|
*** AC_FUNC_GETGROUPS and AC_TYPE_GETGROUPS no longer run test programs.
|
|
|
|
|
These macros were testing for OS bugs that we believe are at least
|
|
|
|
|
twenty years in the past. Most operating systems are now trusted to
|
|
|
|
|
provide an accurate prototype for getgroups in unistd.h, and to
|
|
|
|
|
implement it as specified in POSIX.
|
|
|
|
|
|
2023-12-23 01:39:49 +08:00
|
|
|
|
AC_FUNC_GETGROUPS still includes a short block-list of OSes with
|
Overhaul AC_TYPE_GETGROUPS and AC_FUNC_GETGROUPS.
AC_TYPE_GETGROUPS is the last remaining use of AC_EGREP_HEADER in
stock Autoconf macros. It uses it only when cross compiling, as a
fallback from an AC_RUN_IFELSE check, testing for a bug in system
headers from the late 1980s or early 1990s, where gid_t *existed*
but the second argument to getgroups needed to be an array of int,
and this didn’t cause a compile error (i.e. the system headers
declare getgroups with no prototype or an incorrect prototype).
AC_FUNC_GETGROUPS also uses AC_RUN_IFELSE to test for obscure
problems specific to long-obsolete Unixes.
The downsides of AC_RUN_IFELSE and AC_EGREP_HEADER seem more severe
than the chances of someone compiling a current-generation program,
that uses getgroups, on an OS old enough to have one of the really
nasty bugs. Accordingly, this patch changes AC_FUNC_GETGROUPS to use
a host_os-based *blacklist* both in native and cross compilation.
This is limited to the two host_os values for which either our old
code, or Gnulib, documented a serious bug: ultrix* and nextstep*.
Currently it does not try to pin down the exact version ranges subject
to the bugs — that would require research by someone with access to
the full history of these OSes.
An incorrect guess by this blacklist can be overridden by setting
ac_cv_func_getgroups_works in config.site. AC_TYPE_GETGROUPS, for its
part, now does a series of regular old AC_COMPILE_IFELSE checks to
probe the prototype of getgroups, and considers that good enough.
While I was in there I noticed that AC_FUNC_GETGROUPS does not
AC_SUBST a documented output variable, and that the name of this
variable is misspelled in the manual.
* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Use AC_SEARCH_LIBS
to probe for getgroups. Use an AC_CANONICAL_HOST-based blacklist
for bug detection, not AC_RUN_IFELSE. AC_SUBST the GETGROUPS_LIB
output variable.
* lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Check only the prototype
of getgroups, using AC_COMPILE_IFELSE; do not use either AC_RUN_IFELSE
or AC_EGREP_HEADER.
* doc/autoconf.texi: Update to match. Correct misspelling of
GETGROUPS_LIB.
* tests.local.at (_AT_CHECK_ENV): Allow GETGROUPS_LIB output variable.
2023-04-03 03:07:58 +08:00
|
|
|
|
known, severe bugs in getgroups. It can be overridden using
|
2023-12-23 01:39:49 +08:00
|
|
|
|
config.site. If you encounter a mistake in this list,
|
Overhaul AC_TYPE_GETGROUPS and AC_FUNC_GETGROUPS.
AC_TYPE_GETGROUPS is the last remaining use of AC_EGREP_HEADER in
stock Autoconf macros. It uses it only when cross compiling, as a
fallback from an AC_RUN_IFELSE check, testing for a bug in system
headers from the late 1980s or early 1990s, where gid_t *existed*
but the second argument to getgroups needed to be an array of int,
and this didn’t cause a compile error (i.e. the system headers
declare getgroups with no prototype or an incorrect prototype).
AC_FUNC_GETGROUPS also uses AC_RUN_IFELSE to test for obscure
problems specific to long-obsolete Unixes.
The downsides of AC_RUN_IFELSE and AC_EGREP_HEADER seem more severe
than the chances of someone compiling a current-generation program,
that uses getgroups, on an OS old enough to have one of the really
nasty bugs. Accordingly, this patch changes AC_FUNC_GETGROUPS to use
a host_os-based *blacklist* both in native and cross compilation.
This is limited to the two host_os values for which either our old
code, or Gnulib, documented a serious bug: ultrix* and nextstep*.
Currently it does not try to pin down the exact version ranges subject
to the bugs — that would require research by someone with access to
the full history of these OSes.
An incorrect guess by this blacklist can be overridden by setting
ac_cv_func_getgroups_works in config.site. AC_TYPE_GETGROUPS, for its
part, now does a series of regular old AC_COMPILE_IFELSE checks to
probe the prototype of getgroups, and considers that good enough.
While I was in there I noticed that AC_FUNC_GETGROUPS does not
AC_SUBST a documented output variable, and that the name of this
variable is misspelled in the manual.
* lib/autoconf/functions.m4 (AC_FUNC_GETGROUPS): Use AC_SEARCH_LIBS
to probe for getgroups. Use an AC_CANONICAL_HOST-based blacklist
for bug detection, not AC_RUN_IFELSE. AC_SUBST the GETGROUPS_LIB
output variable.
* lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Check only the prototype
of getgroups, using AC_COMPILE_IFELSE; do not use either AC_RUN_IFELSE
or AC_EGREP_HEADER.
* doc/autoconf.texi: Update to match. Correct misspelling of
GETGROUPS_LIB.
* tests.local.at (_AT_CHECK_ENV): Allow GETGROUPS_LIB output variable.
2023-04-03 03:07:58 +08:00
|
|
|
|
please report it to bug-autoconf.
|
|
|
|
|
|
2023-12-01 04:25:45 +08:00
|
|
|
|
*** All internal uses of AC_EGREP_CPP and AC_EGREP_HEADER have been removed.
|
|
|
|
|
These macros look for text matching a regular expression in the
|
|
|
|
|
output of the C preprocessor. Their use has been discouraged for
|
|
|
|
|
many years, as they tend to be unreliable; it is better to find a
|
|
|
|
|
way to use AC_COMPILE_IFELSE or AC_PREPROC_IFELSE instead. We have
|
2023-12-23 01:39:49 +08:00
|
|
|
|
finally taken our own advice.
|
2023-12-01 04:25:45 +08:00
|
|
|
|
|
|
|
|
|
This change might break configure scripts that expected probes for
|
|
|
|
|
‘grep’ and/or the C preprocessor to happen as a side effect of an
|
|
|
|
|
unrelated operation. Such scripts can be fixed by adding
|
|
|
|
|
AC_PROG_EGREP and/or AC_PROG_CPP in an appropriate place.
|
|
|
|
|
|
|
|
|
|
The macros affected by this change are AC_C_STRINGIZE,
|
|
|
|
|
AC_C_VARARRAYS, AC_FUNC_GETGROUPS, AC_FUNC_GETLOADAVG,
|
|
|
|
|
AC_HEADER_TIOCGWINSZ, AC_PROG_GCC_TRADITIONAL, AC_TYPE_GETGROUPS,
|
|
|
|
|
AC_TYPE_UID_T, and AC_XENIX_DIR. Many of these macros are themselves
|
|
|
|
|
obsolete; if your configure script uses any of them, check whether
|
|
|
|
|
it is actually needed.
|
2022-08-09 05:20:41 +08:00
|
|
|
|
|
2023-12-01 04:25:45 +08:00
|
|
|
|
** New features
|
2023-04-27 09:21:48 +08:00
|
|
|
|
|
2023-12-01 04:25:45 +08:00
|
|
|
|
*** Support for ensuring time_t is Y2038-safe
|
2023-12-23 01:39:49 +08:00
|
|
|
|
configure can now ensure that time_t can represent moments in time
|
2023-12-01 04:25:45 +08:00
|
|
|
|
after 18 January 2038, i.e. 2**31 - 1 seconds after the Unix epoch.
|
|
|
|
|
On most “64-bit” systems this is true by default; the new feature
|
|
|
|
|
is detection of systems where time_t is a 32-bit signed integer by
|
|
|
|
|
default, *and* there is an alternative mode in which it is larger,
|
|
|
|
|
in which case that mode will be enabled.
|
|
|
|
|
|
|
|
|
|
In this release, all configure scripts that use AC_SYS_LARGEFILE
|
|
|
|
|
gain a new command line option --enable-year2038. When this option
|
|
|
|
|
is used, the configure script will check for and enable support for
|
|
|
|
|
a large time_t.
|
|
|
|
|
|
|
|
|
|
This release also adds two new macros, AC_SYS_YEAR2038 and
|
|
|
|
|
AC_SYS_YEAR2038_RECOMMENDED. Both have all the effects of
|
|
|
|
|
AC_SYS_LARGEFILE. (This is because it is not possible to enlarge
|
|
|
|
|
time_t without also enlarging off_t, on any system we are aware of.)
|
|
|
|
|
|
|
|
|
|
AC_SYS_YEAR2038 additionally flips the default for --enable-year2038;
|
|
|
|
|
a configure script that uses this macro will check for and enable
|
|
|
|
|
support for a large time_t by default, but this can be turned off by
|
|
|
|
|
using --disable-year2038. AC_SYS_YEAR2038_RECOMMENDED goes even
|
|
|
|
|
further, and makes the configure script fail on systems that do not
|
|
|
|
|
seem to support timestamps after 18 January 2038 at all. This
|
|
|
|
|
failure can be suppressed by using --disable-year2038.
|
|
|
|
|
|
|
|
|
|
Changing the size of time_t can change a library’s ABI. Therefore,
|
|
|
|
|
application and library builders should take care that all packages
|
|
|
|
|
are configured with consistent use of --enable-year2038 or
|
|
|
|
|
--disable-year2038, to ensure binary compatibility. This is similar
|
|
|
|
|
to longstanding consistency requirements with --enable-largefile and
|
|
|
|
|
--disable-largefile.
|
|
|
|
|
|
|
|
|
|
In this release, these macros only know how to enlarge time_t on two
|
|
|
|
|
classes of systems: 32-bit MinGW, and any system where time_t can be
|
|
|
|
|
enlarged by defining the preprocessor macro _TIME_BITS with the
|
|
|
|
|
value 64. At the time this NEWS entry was written, only GNU libc
|
|
|
|
|
(version 2.34 and later) supported the latter macro. Authors of
|
|
|
|
|
other C libraries with a 32-bit time_t are encouraged to adopt
|
|
|
|
|
_TIME_BITS, rather than inventing a different way to enlarge time_t.
|
2022-08-09 05:20:41 +08:00
|
|
|
|
|
2022-12-25 15:15:56 +08:00
|
|
|
|
*** AC_USE_SYSTEM_EXTENSIONS now enables C23 Annex F extensions
|
|
|
|
|
by defining __STDC_WANT_IEC_60559_EXT__.
|
|
|
|
|
|
2020-12-09 09:53:13 +08:00
|
|
|
|
** Obsolete features and new warnings
|
2021-07-21 05:01:43 +08:00
|
|
|
|
|
|
|
|
|
*** Autoconf now quotes 'like this' instead of `like this'.
|
|
|
|
|
Autoconf’s diagnostics now follow current GNU coding standards,
|
|
|
|
|
which say that diagnostics in the C locale should quote 'like this'
|
|
|
|
|
with plain apostrophes instead of the older GNU style `like this'
|
|
|
|
|
with grave accent and apostrophe.
|
|
|
|
|
|
2023-04-03 09:03:30 +08:00
|
|
|
|
*** AC_PROG_GCC_TRADITIONAL no longer does anything.
|
|
|
|
|
This macro has had no useful effect since GCC dropped support for
|
|
|
|
|
traditional-mode compilation in version 3.3 (released in 2003), and
|
|
|
|
|
the systems that needed it are also long obsolete. It is now a
|
|
|
|
|
compatibility synonym for AC_PROG_CC.
|
|
|
|
|
|
2020-12-09 09:53:13 +08:00
|
|
|
|
** Notable bug fixes
|
2020-12-09 02:04:16 +08:00
|
|
|
|
|
2023-12-23 01:39:49 +08:00
|
|
|
|
*** autom4te now uses fine-grained file timestamps
|
|
|
|
|
Autoconf’s internal “autom4te” utility is now able to compare file
|
|
|
|
|
modification timestamps with sub-second precision, when available.
|
|
|
|
|
This eliminates a class of bugs where autom4te fails to regenerate
|
|
|
|
|
an outdated file. Automake 1.17 (forthcoming) is required for a
|
|
|
|
|
complete fix.
|
2021-09-01 08:34:46 +08:00
|
|
|
|
|
2022-08-14 10:38:54 +08:00
|
|
|
|
*** AC_HEADER_STDBOOL, AC_CHECK_HEADER_STDBOOL are obsolescent and less picky.
|
2023-12-23 01:39:49 +08:00
|
|
|
|
These macros are now obsolescent, as most programs can simply include
|
2022-08-14 10:38:54 +08:00
|
|
|
|
stdbool.h unconditionally. If you use these macros, they now accept
|
|
|
|
|
a stdbool.h that exists but does nothing, so long as ‘bool’, ‘true’,
|
2022-11-11 16:28:49 +08:00
|
|
|
|
and ‘false’ work anyway. This is for compatibility with C23 and
|
2022-08-14 10:38:54 +08:00
|
|
|
|
with C++.
|
2022-07-11 00:06:11 +08:00
|
|
|
|
|
2022-10-13 03:01:50 +08:00
|
|
|
|
*** AC_PROG_MKDIR_P now falls back on plain 'mkdir -p'.
|
|
|
|
|
When AC_PROG_MKDIR_P cannot find a mkdir implementation that is
|
|
|
|
|
known to lack race condition bugs, it now falls back on 'mkdir -p'
|
|
|
|
|
instead of falling back on a relative path to install-sh, as the
|
|
|
|
|
relative paths now seem to be a more important problem than the
|
|
|
|
|
problems of ancient mkdir implementations with race condition bugs.
|
|
|
|
|
See <https://savannah.gnu.org/support/?110740>. The only ancient
|
2023-02-04 04:25:08 +08:00
|
|
|
|
mkdir still supported is Solaris 10 /usr/bin/mkdir, and for that
|
2022-10-13 03:01:50 +08:00
|
|
|
|
platform AC_PROG_MKDIR_P falls back on /opt/sfw/bin/mkdir which
|
2023-02-04 04:25:08 +08:00
|
|
|
|
should work if it is installed; if not, you should avoid parallel
|
|
|
|
|
'make' on that platform.
|
2022-10-13 03:01:50 +08:00
|
|
|
|
|
2023-12-23 01:39:49 +08:00
|
|
|
|
*** Better diagnostics for calling m4_warn() with a bad first argument
|
|
|
|
|
Calling m4_warn with a first argument that doesn’t match any of the
|
|
|
|
|
official warning categories now produces a sensible error message,
|
|
|
|
|
instead of something that makes it look like there’s a bug in the
|
|
|
|
|
guts of autom4te. Also, the documentation has been adjusted in
|
|
|
|
|
several places to make it clearer what the official warning
|
|
|
|
|
categories are.
|
|
|
|
|
|
|
|
|
|
Note: In Autoconf 2.69 and earlier, the manual said that [] and [all]
|
|
|
|
|
could be used as the first argument to m4_warn. This was incorrect,
|
|
|
|
|
even at the time.
|
|
|
|
|
|
|
|
|
|
*** Improved compatibility with a wide variety of systems and tools
|
|
|
|
|
including CheriBSD, Darwin (macOS), GNU Guix, OS/2, z/OS, Bash 5.2,
|
|
|
|
|
the BusyBox shell and utilities, Clang/LLVM version 16, the upcoming
|
|
|
|
|
GCC version 14, etc.
|
|
|
|
|
|
|
|
|
|
** Known bugs
|
|
|
|
|
|
|
|
|
|
*** AC_SYS_LARGEFILE and AC_SYS_YEAR2038 only work correctly in C mode.
|
|
|
|
|
|
|
|
|
|
This is only a problem for configure scripts that invoke either
|
|
|
|
|
macro while AC_LANG([something other than C]) is in effect, and
|
|
|
|
|
will only be a *visible* problem on systems where support
|
|
|
|
|
for large files and/or timestamps after 2038 are *available*
|
|
|
|
|
but not enabled by default.
|
|
|
|
|
|
|
|
|
|
This is the cause of the AC_SYS_LARGEFILE, AC_SYS_YEAR2038, and/or
|
|
|
|
|
AC_SYS_YEAR2038_RECOMMENDED testsuite failures on some systems.
|
|
|
|
|
See <https://savannah.gnu.org/support/index.php?110983> for details
|
|
|
|
|
and a workaround.
|
2023-12-01 04:25:45 +08:00
|
|
|
|
|
2021-01-29 06:54:10 +08:00
|
|
|
|
* Noteworthy changes in release 2.71 (2021-01-28) [stable]
|
|
|
|
|
|
|
|
|
|
** Bug fixes, including:
|
|
|
|
|
|
|
|
|
|
*** Compilers that support C99 but not C2011 are detected correctly.
|
|
|
|
|
|
|
|
|
|
*** Compatibility improved with clang and Oracle C++.
|
|
|
|
|
|
|
|
|
|
*** Compatibility restored with automake's rules for regenerating configure.
|
|
|
|
|
|
|
|
|
|
*** Compatibility restored with old versions of std-gnu11.m4.
|
|
|
|
|
|
|
|
|
|
Packages that wish to maintain compatibility with Autoconf 2.69 or
|
|
|
|
|
older, should update their copy of std-gnu11.m4 from Gnulib as soon
|
|
|
|
|
as practical, as the compatibility code bulks up the configure script.
|
|
|
|
|
|
|
|
|
|
Packages that require Autoconf 2.70 can drop this file entirely.
|
|
|
|
|
|
2020-12-09 00:31:19 +08:00
|
|
|
|
* Noteworthy changes in release 2.70 (2020-12-08) [stable]
|
2012-04-25 11:06:32 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
** Backward incompatibilities:
|
2018-03-05 05:28:23 +08:00
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
*** Warnings about obsolete constructs are now on by default.
|
|
|
|
|
|
|
|
|
|
These warnings can be turned off with ‘-Wno-obsolete’.
|
|
|
|
|
|
|
|
|
|
Many of these warnings advise maintainers to run autoupdate.
|
|
|
|
|
Be aware that autoupdate cannot solve all backward compatibility
|
|
|
|
|
problems, and cannot completely solve all of the problems it does
|
|
|
|
|
address. A configure script edited by autoupdate is likely to
|
|
|
|
|
need further manual fix-ups.
|
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** Many macros have become pickier about argument quotation.
|
2013-09-13 05:11:29 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
If you get a shell syntax error from your generated configure
|
|
|
|
|
script, or seemingly impossible misbehavior (e.g. entire blocks of
|
|
|
|
|
the configure script not getting executed), check first that all
|
|
|
|
|
macro arguments are properly quoted. The “M4 Quotation” section of
|
|
|
|
|
the manual explains how to quote macro arguments properly.
|
Manually sync ChannelDefs.pm from automake.
ChannelDefs.pm *ought* to be kept in sync between automake and autoconf,
because it defines the set of valid -W options, and autoreconf assumes
that it can pass arbitrary -W options to all of the tools it invokes.
However, it isn’t covered by either project’s ‘make fetch’ and it hasn’t
actually *been* in sync for more than 17 years.
This patch manually brings over all of the changes made on the
automake side. Once the complementary patch is applied by the
automake team, both versions of the file will be the same, and then we
can add it to the list in fetch.pl and not have this problem any more
in the future.
There are some user-visible consequences to bringing this file back
into sync. The only one worth mentioning in NEWS is that the ‘obsolete’
category of warnings is now on by default. This had quite a bit of
fallout throughout the testsuite. There are also some new warning
categories that get mentioned in --help output, but we don’t actually
generate any warnings in those categories, so people using ‘-Wall’
won’t see any change. More diagnostics are automatically tagged with
‘warning:’ or ‘error:’, which also had some fallout in the testsuite.
Finally, ‘-Werror’ no longer causes complaints about unknown warning
categories to be treated as hard errors.
Internally, there are some small API changes: ‘parse_warnings’ is no
longer usable as a ‘getopt’ callback function, and we now have a stub
Autom4te/Config.pm to match the automake code’s expectations. (This
file *should* also be synced from automake by ‘make fetch’, but we
can’t quite do that yet because it’s a generated file and our build
system is not prepared to handle adding *two* directories to @INC when
running a not-yet-installed Perl script. I plan to fix that after 2.70.)
As a side-effect of adding a Config.pm, ‘prog_error’ now says to
report the bug to bug-autoconf, not bug-automake. If this is why we
mostly haven’t been using prog_error for internal errors, we can stop
avoiding it. (I did not change anything to use prog_error in this
patch.)
* lib/Autom4te/ChannelDefs.pm: Merge from automake.
* lib/Autom4te/Config.pm: New file.
* lib/local.mk (dist_perllib_DATA): Add Autom4te/Config.pm.
* bin/autoconf.as: Update list of warning categories to match
Autom4te::ChannelDefs::usage.
* bin/autoheader.in (@warnings): New global.
(parse_args): Don’t use parse_warnings as a getopt callback.
(main): Add warnings options from our command line to $autoconf.
No need to turn on 'obsolete' warnings explicitly.
No need to include "warning: " in warning messages.
* bin/autom4te.in (parse_args): Don’t use parse_warnings as a getopt callback.
(main): No need to include "warning: " in warning messages.
* bin/autoreconf.in (parse_args): parse_warnings now takes only one argument.
* bin/autoupdate.in: Set WARNINGS=none in environment for all child processes.
* tests/local.at
(AT_CHECK_M4): Handle `autom4te: error: /usr/bin/m4 ...` like
`autom4te: /usr/bin/m4 ...`.
(_AT_CHECK_AC_MACRO): Add AUTOCONF-FLAGS argument, passed to both
autoconf and autoheader.
(AT_CHECK_MACRO): Default AUTOCONF-FLAGS argument to empty.
Pass that argument to autoheader as well as autoconf.
(AT_CHECK_AU_MACRO): Expect a “macro ‘NAME’ is obsolete’ diagnostic
on the first run of autoconf. Pass -Wno-obsolete to autoconf on the
second run, and to autoheader on both runs.
* tests/base.at
* tests/c.at
* tests/compile.at
* tests/m4sh.at
* tests/m4sugar.at
* tests/semantics.at
* tests/tools.at
* tests/torture.at:
No need to pass -Wobsolete to autoconf.
Pass -Wno-obsolete to autoheader where needed to avoid handling
the same warning twice.
Update various expectations for diagnostics to match behavior
changes.
* tests/tools.at (autoupdating AU_ALIAS): Add an AC_CONFIG_HEADERS
line to the test configure.ac to eliminate an unrelated diagnostic.
2020-09-13 02:59:56 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
It is unfortunately not possible for autoupdate to correct
|
|
|
|
|
quotation errors.
|
2012-04-25 11:06:32 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** Many macros no longer AC_REQUIRE as many other macros as they used to.
|
Warn if AC_INIT or AC_OUTPUT are missing from configure.ac (#107986)
It is almost always incorrect for a configure script to omit either
AC_INIT or AC_OUTPUT. Issue warnings in the ‘syntax’ category for
this.
The implementation is, unfortunately, a bit of a kludge. To check for
the _absence_ of a macro invocation, we can use m4_provide_if inside a
m4_wrap hook. However, if we activate the m4_wrap hook directly from
general.m4, we get spurious warnings at freeze time. We also get
warnings whenever a script that’s missing AC_INIT and/or AC_OUTPUT
is *traced*, which means we get double warnings from autoconf, and
autoheader and aclocal complain about it too, which seems unnecessary.
A clean way to deal with this would be to make the hook look for a
special macro that’s defined only when autoconf (the program) is
invoked without any --trace arguments. Unfortunately, autom4te
doesn’t pass --define down to M4, and changing that would involve
coordinating with Automake (the project), so instead I’ve gone for the
kludge: a new file lib/autoconf/trailer.m4 that calls m4_wrap. This
file is *not* included in autoconf.m4f, but it’s installed, and it’s
added to the m4 invocation by autoconf (the program) only when not
tracing. (It still uses m4_wrap, because we pass it to m4 *before*
configure.ac, because otherwise we get nonsense locations for any
*other* diagnostics coming out of this autoconf invocation. I don’t
know why.)
The additional checks in autoreconf are intended to make sure that if
autoreconf skips a directory entirely, you get told why.
Lots of tests in the testsuite didn’t bother with AC_OUTPUT, and
somewhat fewer didn’t bother with AC_INIT; where possible I just added
them.
Suggested by David A. Wheeler, who submitted a patch, but I didn’t
wind up using any of his code. (His implementation used an extra
tracing pass, only checked for a missing AC_INIT, and invented a new
command-line option to turn off this specific warning. I thought this
was tidier overall, despite the kludge.)
* lib/autoconf/general.m4 (_AC_FINALIZE): New macro: code to be run
when generating configure, after the entire configure.ac is
processed. Currently only checks that AC_INIT and AC_OUTPUT were
called at some point, issuing syntax-category warnings if not.
(AC_INIT, AC_OUTPUT): m4_provide self.
* lib/autoconf/trailer.m4: New file that just calls m4_wrap([_AC_FINALIZE]).
* lib/local.mk: Install new file.
* bin/autoconf.as: Add trailer.m4 to the final invocation of autom4te,
but only when not tracing.
* bin/autoreconf.in (autoreconf_current_directory): Distinguish in
diagnostics between “directory skipped because it doesn’t have a
configure.ac or configure.in” (e.g. Cygnus configure) and “directory
has a configure.ac but it doesn’t appear to be autoconf input.”
* tests/*.at: Fix all tests affected by the new warnings.
2020-08-15 01:16:58 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
This can expose several classes of latent bugs. These are the ones
|
|
|
|
|
we know about:
|
2020-07-11 02:16:18 +08:00
|
|
|
|
|
|
|
|
|
- Make sure to explicitly invoke all of the macros that set result
|
|
|
|
|
variables used later in the configure script, or in generated
|
|
|
|
|
Makefiles.
|
|
|
|
|
|
2020-10-12 14:53:41 +08:00
|
|
|
|
- Autoconf macros that use AC_REQUIRE are not safe to use in shell
|
|
|
|
|
control-flow constructs that appear outside of macros defined by
|
|
|
|
|
AC_DEFUN. Use AS_IF, AS_CASE, etc. instead. (See the
|
|
|
|
|
“Prerequisite Macros” section of the manual for details.)
|
2020-07-12 23:26:47 +08:00
|
|
|
|
|
|
|
|
|
The set of macros that use AC_REQUIRE internally may change from
|
|
|
|
|
release to release. The only macros that are guaranteed *not* to
|
|
|
|
|
use AC_REQUIRE are the macros for acting on the results of a
|
|
|
|
|
test: AC_DEFINE, AC_SUBST, AC_MSG_*, AC_CACHE_CHECK, etc.
|
2020-07-11 02:16:18 +08:00
|
|
|
|
|
|
|
|
|
- AC_REQUIRE cannot be applied to macros that need to be used with
|
|
|
|
|
arguments. Instead, invoke the macro normally, with its arguments.
|
|
|
|
|
|
Improve handling of missing aux scripts.
Another regression identified by the Debian archive rebuild was that
more macros require the presence of config.sub and config.guess now.
‘autoreconf --install’ doesn’t install these itself, it relies on
‘automake --add-missing’ to do that; so, packages that don’t use
Automake will fail at the configure stage after configure is
regenerated. To make matters worse, AC_CONFIG_AUX_DIRS assumes that
everyone who needs config.sub and config.guess also needs install-sh,
so in about half of the affected packages, the failure manifested as a
complaint about install-sh being missing -- technically true but
adding install-sh wouldn’t have resolved the problem by itself.
This patch overhauls the AC_CONFIG_AUX_DIR(S) mechanism so that a
configure script knows the complete set of aux scripts that were
AC_REQUIRE_AUX_FILE’d for it, checks for the existence of all of
them, and not any others. Thus, this configure script
AC_INIT([test], [1.0])
AC_FUNC_MALLOC
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT
will work fine in a directory that contains config.sub and
config.guess but not install-sh. Also, if it’s in a directory
that *doesn’t* contain config.sub and config.guess, it will print an
accurate error message
configure: error: cannot find required auxiliary files: config.guess config.sub
instead of the misleading
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
A side-effect: it doesn’t make sense for AC_CONFIG_SUBDIRS to demand
the presence of Cygnus configure in the aux dir, on the off-chance
that one of the subdirectories *might* be using it -- I have no idea
where someone would even get a copy of that nowadays -- so I dropped
that feature. I rather suspect nobody has needed it in over a decade.
I also documented the expanded need for config.sub and config.guess in
NEWS as well as the manual.
* NEWS: Document expanded need for config.sub and config.guess.
Document removed support for Cygnus configure in subdirectories.
* doc/autoconf.texi: Clarify exactly when install-sh, config.sub,
and/or config.guess are required. Document canonical online sources
for these scripts. Revise documentation of AC_CONFIG_AUX_DIR and
AC_REQUIRE_AUX_FILE. Minor improvements to documentation of
AC_CONFIG_SRCDIR. Remove mentions of Cygnus configure in
subdirectories.
* lib/autoconf/general.m4
(_AC_INIT_PARSE_ARGS): Remove mention of Cygnus configure;
clarify function of configure.gnu.
(AC_CONFIG_AUX_DIR): Support multiple invocations.
(AC_CONFIG_AUX_DIRS): Now an undocumented compatibility interface
rather than an internal subroutine; just runs AC_CONFIG_AUX_DIR on
each of its arguments.
(AC_CONFIG_AUX_DIR_DEFAULT): Now a backward compatibility stub that
requires _AC_INIT_AUX_DIR without adding anything to _AC_AUX_FILES.
(AC_REQUIRE_AUX_FILE): Now adds the named aux file to _AC_AUX_FILES
and requires _AC_INIT_AUX_DIR, as well as being a trace hook.
(_AC_INIT_AUX_DIR): New home of the loop searching for necessary aux
files (formerly in AC_CONFIG_AUX_DIRS). Looks for all the necessary
aux files, not just for install-sh.
(ac_config_guess, ac_config_sub, ac_configure): Issue deprecation
warnings if these undocumented shell variables are actually used.
(AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Can rely on $ac_aux_dir ending with a slash.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL, AC_PROG_MKDIR_P):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Remove check for Cygnus configure; clarify function of configure.gnu.
* lib/autotest/general.m4: Remove mention of Cygnus configure.
* tests/torture.at (Missing auxiliary files): New test.
2020-10-21 01:27:22 +08:00
|
|
|
|
*** More macros use config.sub and config.guess internally.
|
|
|
|
|
|
|
|
|
|
As a consequence of improved support for cross compilation (see below),
|
|
|
|
|
more macros now use the auxiliary scripts ‘config.sub’ and ‘config.guess’.
|
|
|
|
|
If you use any of the affected macros, these scripts must be available
|
|
|
|
|
when your configure script is run, even if you have no intention of
|
|
|
|
|
ever cross-compiling your program.
|
|
|
|
|
|
Improve handling of missing aux scripts (autoreconf)
Make ‘autoreconf --install’ add config.sub, config.guess, and
install-sh to the source tree when necessary. This is only relevant
for packages that don’t use Automake, because ‘automake --add-missing’
already adds these scripts to the source tree, but apparently there
are plenty of packages out there that don’t use Automake, didn’t need
config.{sub,guess} with autoconf 2.69, and do need them with 2.70.
Such packages will need to have their equivalent of ‘make dist’
manually updated to ship the new files, of course.
This patch also has ‘autoreconf’ issue an error if aux files are
missing and ‘--install’ *wasn’t* used, or if --install *was* used but
could not install all the missing files. This error is more likely to
be caught by maintainers than the configure-time error added in the
previous patch. It is not currently practical to make autoconf itself
issue this error message, because of how the autoconf wrapper script
is different from all the other wrapper scripts. Also, autoreconf
runs automake *after* autoconf, so we’d get spurious errors from
packages that do use automake.
* bin/autoreconf.in ($buildauxdir): New package global, initialized
to $pkgdatadir/build-aux, or to $ENV{autom4te_buildauxdir} if that’s set.
(find_missing_aux_files, can_install_aux_files, try_install_aux_files)
(install_aux_file, make_executable): New subs.
(autoreconf_current_directory): Trace AC_REQUIRE_AUX_FILE.
After running all tools that might install aux files, try to
install aux files ourself if --install was given.
After that, report on any that are still missing.
* lib/autom4te.in (Autoreconf-preselections): Add AC_REQUIRE_AUX_FILE.
Make list order consistent with list order in autoreconf.in.
* tests/wrapper.as: Set autom4te_buildauxdir to point to location of
config.guess, config.sub, and install-sh within the source tree.
* lib/local.mk: Install config.guess, config.sub, and install-sh
into $(pkgdatadir)/build-aux.
* doc/autoconf.texi: Document that autoreconf can now install
config.guess, config.sub, and install-sh itself without help from
automake, but packages not using automake will need to arrange for
tarball distribution of these files by hand.
* tests/torture.at (Missing auxiliary files): Test autoreconf as well.
2020-10-21 01:36:58 +08:00
|
|
|
|
autoreconf will issue an error if any auxiliary scripts are needed but
|
|
|
|
|
cannot be found. (It is not currently possible to make autoconf
|
|
|
|
|
itself issue this error.)
|
|
|
|
|
|
|
|
|
|
‘autoreconf --install’ will add ‘config.sub’, ‘config.guess’, and
|
|
|
|
|
‘install-sh’ to your source tree if they are needed. If you are
|
|
|
|
|
using Automake, scripts added to your tree by ‘autoreconf --install’
|
|
|
|
|
will automatically be included in the tarball produced by ‘make dist’;
|
|
|
|
|
otherwise, you will need to arrange for them to be distributed
|
|
|
|
|
yourself.
|
|
|
|
|
|
|
|
|
|
See the “Input” section of the manual for more detail, including
|
Improve handling of missing aux scripts.
Another regression identified by the Debian archive rebuild was that
more macros require the presence of config.sub and config.guess now.
‘autoreconf --install’ doesn’t install these itself, it relies on
‘automake --add-missing’ to do that; so, packages that don’t use
Automake will fail at the configure stage after configure is
regenerated. To make matters worse, AC_CONFIG_AUX_DIRS assumes that
everyone who needs config.sub and config.guess also needs install-sh,
so in about half of the affected packages, the failure manifested as a
complaint about install-sh being missing -- technically true but
adding install-sh wouldn’t have resolved the problem by itself.
This patch overhauls the AC_CONFIG_AUX_DIR(S) mechanism so that a
configure script knows the complete set of aux scripts that were
AC_REQUIRE_AUX_FILE’d for it, checks for the existence of all of
them, and not any others. Thus, this configure script
AC_INIT([test], [1.0])
AC_FUNC_MALLOC
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT
will work fine in a directory that contains config.sub and
config.guess but not install-sh. Also, if it’s in a directory
that *doesn’t* contain config.sub and config.guess, it will print an
accurate error message
configure: error: cannot find required auxiliary files: config.guess config.sub
instead of the misleading
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
A side-effect: it doesn’t make sense for AC_CONFIG_SUBDIRS to demand
the presence of Cygnus configure in the aux dir, on the off-chance
that one of the subdirectories *might* be using it -- I have no idea
where someone would even get a copy of that nowadays -- so I dropped
that feature. I rather suspect nobody has needed it in over a decade.
I also documented the expanded need for config.sub and config.guess in
NEWS as well as the manual.
* NEWS: Document expanded need for config.sub and config.guess.
Document removed support for Cygnus configure in subdirectories.
* doc/autoconf.texi: Clarify exactly when install-sh, config.sub,
and/or config.guess are required. Document canonical online sources
for these scripts. Revise documentation of AC_CONFIG_AUX_DIR and
AC_REQUIRE_AUX_FILE. Minor improvements to documentation of
AC_CONFIG_SRCDIR. Remove mentions of Cygnus configure in
subdirectories.
* lib/autoconf/general.m4
(_AC_INIT_PARSE_ARGS): Remove mention of Cygnus configure;
clarify function of configure.gnu.
(AC_CONFIG_AUX_DIR): Support multiple invocations.
(AC_CONFIG_AUX_DIRS): Now an undocumented compatibility interface
rather than an internal subroutine; just runs AC_CONFIG_AUX_DIR on
each of its arguments.
(AC_CONFIG_AUX_DIR_DEFAULT): Now a backward compatibility stub that
requires _AC_INIT_AUX_DIR without adding anything to _AC_AUX_FILES.
(AC_REQUIRE_AUX_FILE): Now adds the named aux file to _AC_AUX_FILES
and requires _AC_INIT_AUX_DIR, as well as being a trace hook.
(_AC_INIT_AUX_DIR): New home of the loop searching for necessary aux
files (formerly in AC_CONFIG_AUX_DIRS). Looks for all the necessary
aux files, not just for install-sh.
(ac_config_guess, ac_config_sub, ac_configure): Issue deprecation
warnings if these undocumented shell variables are actually used.
(AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Can rely on $ac_aux_dir ending with a slash.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL, AC_PROG_MKDIR_P):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Remove check for Cygnus configure; clarify function of configure.gnu.
* lib/autotest/general.m4: Remove mention of Cygnus configure.
* tests/torture.at (Missing auxiliary files): New test.
2020-10-21 01:27:22 +08:00
|
|
|
|
where to get the auxiliary scripts that may be needed by autoconf macros.
|
|
|
|
|
|
AT_CHECK_MACRO: test C++ as well as C, cross as well as native
Many of the reported regressions in Autoconf 2.70 betas went unnoticed
for years because Autoconf’s bundled test suite didn’t test most of
the macros with a C++ compiler and/or in cross compilation mode.
There’s a special makefile target ‘maintainer-check-c++’ that runs all
the tests with CC=g++, but that doesn’t catch the regressions either,
because it doesn’t compare the configure results with what you’d have
gotten with a C compiler. Also, C and C++ have diverged to the point
where setting CC to a C++ compiler doesn’t work reliably anymore.
This patch overhauls AT_CHECK_MACRO to test each macro four times:
(C compiler, C++ compiler) x (native mode, cross-compilation mode).
All four tests are expected to produce the same config.cache and
config.h, except for certain predictable differences due to running
AC_PROG_CXX instead of AC_PROG_CC, and a short list of known,
acceptable differences, maintained in mktests.pl.
There are two classes of known, acceptable differences. Macros that
use AC_RUN_IFELSE aren’t tested in cross-compilation mode at all,
because they may crash the script (this is temporary and will be
revisited after 2.70). Macros that correctly detect a difference
between C and C++ (e.g. AC_HEADER_STDBOOL will notice that C++ doesn’t
have the _Bool type) are annotated with the specific cache variable
and #define that varies.
mktests.pl now also has the capability to provide values for the
MACRO-USE, ADDITIONAL-COMMANDS, and AUTOCONF-FLAGS arguments to
AT_CHECK_(AU_)MACRO, on a per-macro basis, but that’s not used in this
patch.
Some of the manual uses of AT_CHECK_MACRO do not need to test C++
and/or cross compilation; for them, there is a new test helper,
AT_CHECK_CONFIGURE_AC. Another new helper, AT_PRESERVE_CONFIG_STATUS,
is used extensively in AT_CHECK_(AU_)MACRO but may be also useful in
manual tests that need to do multiple configure runs.
This change supersedes AT_CHECK_MACRO_CROSS and
‘make maintainer-check-c++’, which are removed.
In my testing, setting CC to a C++ compiler no longer works at all,
for reasons that are impractical to fix (e.g. C++ compilers choke on
the test for C2011 features) so I have added a note to NEWS saying
that this is not supported anymore.
* tests/local.at (AT_CHECK_MACRO): Default behavior is now to test
the macro in both native and cross-compilation mode, and expect the
results to be identical. If the macro transitively required
AC_PROG_CC, and a C++ compiler is available, then test it twice
more with AC_LANG([C++]) in effect, and again expect the results to
be identical. New fifth argument TEST-PARAMETERS can modify this
behavior.
(_AT_FILTER_CXX_CV_VARIES, _AT_FILTER_CXX_DEFINE_VARIES): New,
subroutines of AT_CHECK_MACRO.
(AT_CHECK_MACRO_CROSS): Remove, subsumed by new AT_CHECK_MACRO
behavior.
(AT_CHECK_AU_MACRO): Forward to AT_CHECK_MACRO for the basic test;
then do the same autoupdate test as before, as a separate test group.
(at_check_env): Also ignore OPENMP_CXXFLAGS.
(AT_CONFIG_CMP): Add third argument EXTRA-VARIANCE that specifies
additional variables that are expected to vary in a particular test.
(_AT_CONFIG_CMP_PRUNE): New, subroutine of AT_CONFIG_CMP.
(AT_DEFINES_CMP): New helper macro that compares config.h headers,
with the ability to ignore variation in specific defines.
(_AT_DEFINES_CMP_PRUNE): New, subroutine of AT_DEFINES_CMP.
(AT_PRESERVE_CONFIG_STATUS): New helper that makes copies of
config.h, config.log, config.status, and state-env.after under
names that won’t be clobbered by a subsequent run of configure.
(AT_CHECK_CONFIGURE_AC): New helper that defines a complete test
group consisting of a single invocation of _AT_CHECK_AC_MACRO;
effectively what AT_CHECK_MACRO used to be.
(_AT_CHECK_AC_MACRO): Correct documentation comment; the PRE-TESTS
argument has always been optional.
* tests/mktests.pl (test_parameters): New global data object giving
extra arguments to pass to AT_CHECK_MACRO/AT_CHECK_AU_MACRO on a
per-macro basis.
(emit_test): New function that handles emitting calls to
AT_CHECK_(AU_)MACRO with the desired arguments.
(scan_m4_files): Use emit_test.
(au_exclude_list): Add AC_HAVE_LIBRARY, AC_COMPILE_CHECK,
AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK, and AC_TRY_RUN.
* tests/semantics.at (AC_CHECK_LIB, AC_SEARCH_LIBS): Rewrite test
using symbols from zlib instead of libm, to get consistent behavior
from C and C++.
(AC_SEARCH_LIBS (none needed)): Revise to clarify what is being tested.
(AC_CHECK_DECLS): Use _AC_LANG_ABBREV when inspecting cache variables.
(AC_CHECK_ALIGNOF, AC_CHECK_ALIGNOF struct)
(AC_CHECK_SIZEOF, AC_CHECK_SIZEOF struct)
No need for AT_CHECK_MACRO_CROSS.
(AC_CHECK_FILES): Switch to AT_CHECK_CONFIGURE_AC.
(AC_SYS_RESTARTABLE_SYSCALLS, AC_FUNC_WAIT3): Do not test in cross
compilation mode.
(AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK, AC_TRY_RUN)
(AC_COMPILE_CHECK, AC_HAVE_LIBRARY): New manual AT_CHECK_AU_MACRO tests.
* tests/c.at (Extensions, C keywords, AC_PROG_CPP requires AC_PROG_CC)
(AC_NO_EXECUTABLES (working linker), AC_NO_EXECUTABLES (broken linker)):
Switch to AT_CHECK_CONFIGURE_AC. Also convert case statements to AS_CASE.
(Broken/missing compilers): Pass CC=no-such-compiler on the command
line instead of hardwiring it in the configure script.
* tests/local.mk (maintainer-check-c++): Remove target.
(maintainer-check): Run the ordinary ‘make check’ as well as
‘make maintainer-check-posix’.
2020-10-14 23:21:30 +08:00
|
|
|
|
*** Setting CC to a C++ compiler is no longer supported.
|
|
|
|
|
|
|
|
|
|
The C and C++ languages have diverged enough that we can no longer
|
|
|
|
|
guarantee that test C programs will be processed as intended by a
|
|
|
|
|
C++ compiler. In this release, configure will proceed anyway, but
|
|
|
|
|
many test results will be incorrect. In a future release, we may
|
|
|
|
|
make AC_PROG_CC error out if it detects that CC is a C++ compiler.
|
|
|
|
|
|
|
|
|
|
See the “Language Choice” section of the manual for instructions on
|
|
|
|
|
how to write configure scripts for C++ programs, and for programs
|
|
|
|
|
with code in more than one language.
|
|
|
|
|
|
2020-11-26 23:19:19 +08:00
|
|
|
|
*** Running configure tests with warnings promoted to errors is not supported.
|
|
|
|
|
|
|
|
|
|
For instance, setting ‘CC="gcc -Werror"’ on the configure command
|
|
|
|
|
line, or adding -Werror to CFLAGS early in the configure script when
|
|
|
|
|
the compiler recognizes this option, is very likely to cause
|
|
|
|
|
subsequent tests to fail.
|
|
|
|
|
|
|
|
|
|
This has never been guaranteed to work; the code generated by
|
|
|
|
|
AC_CHECK_FUNC, for instance, is incorrect by a strict reading of the
|
|
|
|
|
original 1989 C standard, and has been ever since that macro was
|
|
|
|
|
introduced. Problems are more likely with newer, pickier compilers.
|
|
|
|
|
|
|
|
|
|
To enable compiler warnings and/or warnings-as-errors mode for your
|
|
|
|
|
own code, we currently recommend a dedicated Makefile variable
|
|
|
|
|
(e.g. ‘WARN_CFLAGS’) that is set by AC_SUBST when appropriate.
|
|
|
|
|
The Gnulib ‘warnings’ and ‘manywarnings’ modules can help with this.
|
|
|
|
|
We plan to add core support for probing for useful sets of compiler
|
|
|
|
|
warnings in a future release.
|
|
|
|
|
|
|
|
|
|
*** Including confdefs.h manually may cause test failures.
|
|
|
|
|
|
|
|
|
|
This has never been necessary; confdefs.h is automatically included
|
|
|
|
|
at the beginning of all test programs (by AC_LANG_SOURCE). Because
|
|
|
|
|
of the way confdefs.h is generated and used, it is not practical to
|
|
|
|
|
give it a multiple inclusion guard. Therefore, if you include it
|
|
|
|
|
yourself, all of its definitions will be scanned twice.
|
|
|
|
|
|
|
|
|
|
Historically this has not been a problem, because confdefs.h only
|
|
|
|
|
makes macro definitions, and the C standard allows redefinitions
|
|
|
|
|
of macros as long as they’re exactly the same, but newer, pickier
|
|
|
|
|
compilers may complain anyway (see for instance GCC bug 97998).
|
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** Older versions of automake and aclocal (< 1.8) are no longer supported.
|
Consistently expand macros in whitespace-separated lists.
Several of the most commonly used Autoconf macros (starting with
AC_CHECK_FUNCS and AC_CHECK_HEADERS) take a whitespace-separated list
of symbols as their primary argument. It would abstractly be best if
this list were _not_ subject to M4 macro expansion, in case there’s a
collision between a M4 macro name and something to be looked for.
However, we have historically not been careful about this, and there’s
been reports of configure scripts using ‘dnl’ to write comments inside
the list. The AS_LITERAL_IF optimizations added to AC_CHECK_FUNCS and
AC_CHECK_HEADERS since 2.69 broke some of those scripts with bizarre
shell syntax errors.
Also, the macro expansion behavior is not consistent among all of the
macros that take whitespace-separated lists, nor is it consistent
between autoconf and autoheader.
Address this by introducing a new m4sugar macro, currently called
‘m4_validate_w’ (I’m open to suggestions for better names). Here’s
its documentation comment:
| m4_validate_w(STRING): Expands into m4_normalize(m4_expand([STRING])),
| but if that is not the same as just m4_normalize([STRING]),
| issue a warning.
The text of the warning is
| configure.ac:N: warning: whitespace-separated-list contains macros;
| configure.ac:N: in a future version of Autoconf they will not be expanded
If the unexpanded form of the string contains the token ‘dnl’ then
there’s an additional line:
| configure.ac:N: note: ‘dnl’ is a macro
All of the public macros that take a whitespace-separated list of
symbols are changed to pass that argument through m4_validate_w before
doing anything else with it, and the test suite is updated to verify
consistent behavior for every last one of them.
This addresses Savannah issues #110210 and #110211, and the harmless
but annoying autoheader behavior described at
https://lists.gnu.org/archive/html/bug-autoconf/2018-02/msg00005.html .
In order to avoid expanding relatively expensive m4sugar macros
multiple times per top-level macro invocation, several of the affected
Autoconf macros are restructured along the same lines as I did for
AC_REPLACE_FUNCS in the previous patch.
* lib/m4sugar/m4sugar.m4 (m4_validate_w): New macro.
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE)
(AC_REPLACE_FUNCS)
* lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIRS, AC_CHECK_FILES)
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE)
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Pass $1 through
m4_validate_w before use.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Refactor with helpers
_AC_CHECK_HEADERS_ONE_U, _AC_CHECK_HEADERS_ONE_S, _AC_CHECK_HEADERS_ONE_C.
(AC_CHECK_HEADERS_ONCE): Eliminate _AC_CHECK_HEADERS_ONCE.
(AC_CHECK_INCLUDES_DEFAULT): Don’t use _AC_CHECK_HEADERS_ONCE.
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Refactor with helpers
_AC_CHECK_FUNCS_ONE_U, _AC_CHECK_FUNCS_ONE_S, _AC_CHECK_FUNCS_ONE_C.
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS): No need to use m4_normalize.
* tests/semantics.at: Add tests for expansion of M4 macros in
whitespace-separated list arguments to all of the above.
2020-06-30 10:13:23 +08:00
|
|
|
|
|
Improve handling of missing aux scripts.
Another regression identified by the Debian archive rebuild was that
more macros require the presence of config.sub and config.guess now.
‘autoreconf --install’ doesn’t install these itself, it relies on
‘automake --add-missing’ to do that; so, packages that don’t use
Automake will fail at the configure stage after configure is
regenerated. To make matters worse, AC_CONFIG_AUX_DIRS assumes that
everyone who needs config.sub and config.guess also needs install-sh,
so in about half of the affected packages, the failure manifested as a
complaint about install-sh being missing -- technically true but
adding install-sh wouldn’t have resolved the problem by itself.
This patch overhauls the AC_CONFIG_AUX_DIR(S) mechanism so that a
configure script knows the complete set of aux scripts that were
AC_REQUIRE_AUX_FILE’d for it, checks for the existence of all of
them, and not any others. Thus, this configure script
AC_INIT([test], [1.0])
AC_FUNC_MALLOC
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT
will work fine in a directory that contains config.sub and
config.guess but not install-sh. Also, if it’s in a directory
that *doesn’t* contain config.sub and config.guess, it will print an
accurate error message
configure: error: cannot find required auxiliary files: config.guess config.sub
instead of the misleading
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
A side-effect: it doesn’t make sense for AC_CONFIG_SUBDIRS to demand
the presence of Cygnus configure in the aux dir, on the off-chance
that one of the subdirectories *might* be using it -- I have no idea
where someone would even get a copy of that nowadays -- so I dropped
that feature. I rather suspect nobody has needed it in over a decade.
I also documented the expanded need for config.sub and config.guess in
NEWS as well as the manual.
* NEWS: Document expanded need for config.sub and config.guess.
Document removed support for Cygnus configure in subdirectories.
* doc/autoconf.texi: Clarify exactly when install-sh, config.sub,
and/or config.guess are required. Document canonical online sources
for these scripts. Revise documentation of AC_CONFIG_AUX_DIR and
AC_REQUIRE_AUX_FILE. Minor improvements to documentation of
AC_CONFIG_SRCDIR. Remove mentions of Cygnus configure in
subdirectories.
* lib/autoconf/general.m4
(_AC_INIT_PARSE_ARGS): Remove mention of Cygnus configure;
clarify function of configure.gnu.
(AC_CONFIG_AUX_DIR): Support multiple invocations.
(AC_CONFIG_AUX_DIRS): Now an undocumented compatibility interface
rather than an internal subroutine; just runs AC_CONFIG_AUX_DIR on
each of its arguments.
(AC_CONFIG_AUX_DIR_DEFAULT): Now a backward compatibility stub that
requires _AC_INIT_AUX_DIR without adding anything to _AC_AUX_FILES.
(AC_REQUIRE_AUX_FILE): Now adds the named aux file to _AC_AUX_FILES
and requires _AC_INIT_AUX_DIR, as well as being a trace hook.
(_AC_INIT_AUX_DIR): New home of the loop searching for necessary aux
files (formerly in AC_CONFIG_AUX_DIRS). Looks for all the necessary
aux files, not just for install-sh.
(ac_config_guess, ac_config_sub, ac_configure): Issue deprecation
warnings if these undocumented shell variables are actually used.
(AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Can rely on $ac_aux_dir ending with a slash.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL, AC_PROG_MKDIR_P):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Remove check for Cygnus configure; clarify function of configure.gnu.
* lib/autotest/general.m4: Remove mention of Cygnus configure.
* tests/torture.at (Missing auxiliary files): New test.
2020-10-21 01:27:22 +08:00
|
|
|
|
*** AC_CONFIG_SUBDIRS no longer directly supports Cygnus configure.
|
|
|
|
|
|
|
|
|
|
If you are still using an Autoconf script to drive configuration of
|
|
|
|
|
a multi-package build tree where some subdirectories use Cygnus
|
|
|
|
|
configure, copy or link $ac_aux_dir/configure into each subdirectory
|
|
|
|
|
where it is needed. Please also contact us; we were under the
|
|
|
|
|
impression nobody used this very old tool anymore.
|
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AC_CHECK_HEADER and AC_CHECK_HEADERS only do a compilation test.
|
Consistently expand macros in whitespace-separated lists.
Several of the most commonly used Autoconf macros (starting with
AC_CHECK_FUNCS and AC_CHECK_HEADERS) take a whitespace-separated list
of symbols as their primary argument. It would abstractly be best if
this list were _not_ subject to M4 macro expansion, in case there’s a
collision between a M4 macro name and something to be looked for.
However, we have historically not been careful about this, and there’s
been reports of configure scripts using ‘dnl’ to write comments inside
the list. The AS_LITERAL_IF optimizations added to AC_CHECK_FUNCS and
AC_CHECK_HEADERS since 2.69 broke some of those scripts with bizarre
shell syntax errors.
Also, the macro expansion behavior is not consistent among all of the
macros that take whitespace-separated lists, nor is it consistent
between autoconf and autoheader.
Address this by introducing a new m4sugar macro, currently called
‘m4_validate_w’ (I’m open to suggestions for better names). Here’s
its documentation comment:
| m4_validate_w(STRING): Expands into m4_normalize(m4_expand([STRING])),
| but if that is not the same as just m4_normalize([STRING]),
| issue a warning.
The text of the warning is
| configure.ac:N: warning: whitespace-separated-list contains macros;
| configure.ac:N: in a future version of Autoconf they will not be expanded
If the unexpanded form of the string contains the token ‘dnl’ then
there’s an additional line:
| configure.ac:N: note: ‘dnl’ is a macro
All of the public macros that take a whitespace-separated list of
symbols are changed to pass that argument through m4_validate_w before
doing anything else with it, and the test suite is updated to verify
consistent behavior for every last one of them.
This addresses Savannah issues #110210 and #110211, and the harmless
but annoying autoheader behavior described at
https://lists.gnu.org/archive/html/bug-autoconf/2018-02/msg00005.html .
In order to avoid expanding relatively expensive m4sugar macros
multiple times per top-level macro invocation, several of the affected
Autoconf macros are restructured along the same lines as I did for
AC_REPLACE_FUNCS in the previous patch.
* lib/m4sugar/m4sugar.m4 (m4_validate_w): New macro.
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE)
(AC_REPLACE_FUNCS)
* lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIRS, AC_CHECK_FILES)
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE)
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Pass $1 through
m4_validate_w before use.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Refactor with helpers
_AC_CHECK_HEADERS_ONE_U, _AC_CHECK_HEADERS_ONE_S, _AC_CHECK_HEADERS_ONE_C.
(AC_CHECK_HEADERS_ONCE): Eliminate _AC_CHECK_HEADERS_ONCE.
(AC_CHECK_INCLUDES_DEFAULT): Don’t use _AC_CHECK_HEADERS_ONCE.
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Refactor with helpers
_AC_CHECK_FUNCS_ONE_U, _AC_CHECK_FUNCS_ONE_S, _AC_CHECK_FUNCS_ONE_C.
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS): No need to use m4_normalize.
* tests/semantics.at: Add tests for expansion of M4 macros in
whitespace-separated list arguments to all of the above.
2020-06-30 10:13:23 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
This completes the transition from preprocessor-based header tests
|
|
|
|
|
begun in Autoconf 2.56.
|
Consistently expand macros in whitespace-separated lists.
Several of the most commonly used Autoconf macros (starting with
AC_CHECK_FUNCS and AC_CHECK_HEADERS) take a whitespace-separated list
of symbols as their primary argument. It would abstractly be best if
this list were _not_ subject to M4 macro expansion, in case there’s a
collision between a M4 macro name and something to be looked for.
However, we have historically not been careful about this, and there’s
been reports of configure scripts using ‘dnl’ to write comments inside
the list. The AS_LITERAL_IF optimizations added to AC_CHECK_FUNCS and
AC_CHECK_HEADERS since 2.69 broke some of those scripts with bizarre
shell syntax errors.
Also, the macro expansion behavior is not consistent among all of the
macros that take whitespace-separated lists, nor is it consistent
between autoconf and autoheader.
Address this by introducing a new m4sugar macro, currently called
‘m4_validate_w’ (I’m open to suggestions for better names). Here’s
its documentation comment:
| m4_validate_w(STRING): Expands into m4_normalize(m4_expand([STRING])),
| but if that is not the same as just m4_normalize([STRING]),
| issue a warning.
The text of the warning is
| configure.ac:N: warning: whitespace-separated-list contains macros;
| configure.ac:N: in a future version of Autoconf they will not be expanded
If the unexpanded form of the string contains the token ‘dnl’ then
there’s an additional line:
| configure.ac:N: note: ‘dnl’ is a macro
All of the public macros that take a whitespace-separated list of
symbols are changed to pass that argument through m4_validate_w before
doing anything else with it, and the test suite is updated to verify
consistent behavior for every last one of them.
This addresses Savannah issues #110210 and #110211, and the harmless
but annoying autoheader behavior described at
https://lists.gnu.org/archive/html/bug-autoconf/2018-02/msg00005.html .
In order to avoid expanding relatively expensive m4sugar macros
multiple times per top-level macro invocation, several of the affected
Autoconf macros are restructured along the same lines as I did for
AC_REPLACE_FUNCS in the previous patch.
* lib/m4sugar/m4sugar.m4 (m4_validate_w): New macro.
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS, AC_CHECK_FUNCS_ONCE)
(AC_REPLACE_FUNCS)
* lib/autoconf/general.m4 (AC_CONFIG_MACRO_DIRS, AC_CHECK_FILES)
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE)
* lib/autoconf/status.m4 (AC_CONFIG_SUBDIRS): Pass $1 through
m4_validate_w before use.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS): Refactor with helpers
_AC_CHECK_HEADERS_ONE_U, _AC_CHECK_HEADERS_ONE_S, _AC_CHECK_HEADERS_ONE_C.
(AC_CHECK_HEADERS_ONCE): Eliminate _AC_CHECK_HEADERS_ONCE.
(AC_CHECK_INCLUDES_DEFAULT): Don’t use _AC_CHECK_HEADERS_ONCE.
* lib/autoconf/functions.m4 (AC_CHECK_FUNCS): Refactor with helpers
_AC_CHECK_FUNCS_ONE_U, _AC_CHECK_FUNCS_ONE_S, _AC_CHECK_FUNCS_ONE_C.
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS): No need to use m4_normalize.
* tests/semantics.at: Add tests for expansion of M4 macros in
whitespace-separated list arguments to all of the above.
2020-06-30 10:13:23 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
The double test that was the default since Autoconf 2.64 is no
|
|
|
|
|
longer available. You can still request a preprocessor-only test
|
|
|
|
|
by specifying [-] as the fourth argument to either macro, but this
|
|
|
|
|
is now deprecated. If you really need that behavior use
|
|
|
|
|
AC_PREPROC_IFELSE.
|
2020-07-10 01:59:05 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AC_INCLUDES_DEFAULT assumes an ISO C90 compliant C implementation.
|
AC_PROG_CC_C11: new macro, which AC_PROG_CC_STDC now defaults to
* NEWS:
* doc/autoconf.texi (C Compiler): Document this.
(Gnulib, Function Portability, Particular Functions)
(Header Portability, Particular Headers, Defining Symbols)
(Printing Messages, Limitations of Usual Tools)
(Preprocessor Arithmetic, Volatile Objects, Exiting Portably):
Modernize wording for C11.
* lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER, _AC_C_C99_TEST_BODY):
New macros, taken from _AC_PROG_CC_C99. These are so that we can
also include the C99 tests in the C11 test program.
(_AC_PROG_CC_C99): Use them.
(_AC_PROG_CC_C11, AC_PROG_CC_C11): New macros.
(AC_PROG_CC_STDC): Prefer C11 to C99 or C89.
2012-08-24 03:45:39 +08:00
|
|
|
|
|
AC_INCLUDES_DEFAULT: Check for presence of C90 hosted headers (#110393)
Since 1993, Autoconf has been assuming that it is safe to include any
of the headers defined by ISO C90 without checking for them; this is
inaccurate, since only a subset are necessarily available in a
C90 *freestanding* environment.
It is OK to assume the presence of a header in a macro that checks
specifically for something declared by that header (if the header is
not present, we will think the specific declaration is unavailable,
which is probably accurate for modern embedded environments). It is
also OK to continue recommending that user code use these headers
unconditionally—anyone working with a freestanding environment knows
it. But it is not OK for very generic code within Autoconf itself,
such as AC_INCLUDES_DEFAULT, to make this assumption.
Note that the set of headers that are not always available includes
stdio.h, which we have been assuming can be included unconditionally
for even longer.
In AC_INCLUDES_DEFAULT, revert to checking for string.h and stdlib.h
before including them. Also revert to defining STDC_HEADERS only when
string.h and stdlib.h are available (but do not check for float.h and
stdarg.h, as these are part of the freestanding set). Add a new check
for stdio.h. Sort the inclusion list by standard (C90 freestanding;
C90 hosted; C99; POSIX) and alphabetically within each group. Revise
all the documentation and update the testsuite.
This partially reverts commit 86c213d0e355296f026a36e3203c0813041aae89
and is a partial fix for bug #110393.
* lib/autoconf/headers.m4 (AC_CHECK_INCLUDES_DEFAULT): Check for
stdio.h, stdlib.h, and string.h before including them. Define
STDC_HEADERS only when string.h and stdlib.h are both available.
Organize includes list by standard, then alphabetically.
* doc/autoconf.texi, NEWS: Update to match.
* tests/local.at (AT_CHECK_DEFINES): Make regexes more specific.
Also expect a definition of HAVE_STDIO_H.
* tests/c.at, tests/semantics.at, tests/tools.at: Use <float.h>,
not <stdio.h>, as a header that we expect always to exist.
Add HAVE_STDIO_H to various lists of macros that are expected to
appear in config.h.
2020-12-07 00:40:39 +08:00
|
|
|
|
Specifically, it assumes that the ISO C90 header <stddef.h>
|
|
|
|
|
is available, without checking for it, and it does not include
|
|
|
|
|
the pre-standard header <memory.h> at all. If the POSIX header
|
|
|
|
|
<strings.h> exists, it will be included, without first testing
|
|
|
|
|
whether both <string.h> and <strings.h> can be included in the
|
2020-09-27 01:40:23 +08:00
|
|
|
|
same source file.
|
2012-12-28 06:34:07 +08:00
|
|
|
|
|
AC_INCLUDES_DEFAULT: Check for presence of C90 hosted headers (#110393)
Since 1993, Autoconf has been assuming that it is safe to include any
of the headers defined by ISO C90 without checking for them; this is
inaccurate, since only a subset are necessarily available in a
C90 *freestanding* environment.
It is OK to assume the presence of a header in a macro that checks
specifically for something declared by that header (if the header is
not present, we will think the specific declaration is unavailable,
which is probably accurate for modern embedded environments). It is
also OK to continue recommending that user code use these headers
unconditionally—anyone working with a freestanding environment knows
it. But it is not OK for very generic code within Autoconf itself,
such as AC_INCLUDES_DEFAULT, to make this assumption.
Note that the set of headers that are not always available includes
stdio.h, which we have been assuming can be included unconditionally
for even longer.
In AC_INCLUDES_DEFAULT, revert to checking for string.h and stdlib.h
before including them. Also revert to defining STDC_HEADERS only when
string.h and stdlib.h are available (but do not check for float.h and
stdarg.h, as these are part of the freestanding set). Add a new check
for stdio.h. Sort the inclusion list by standard (C90 freestanding;
C90 hosted; C99; POSIX) and alphabetically within each group. Revise
all the documentation and update the testsuite.
This partially reverts commit 86c213d0e355296f026a36e3203c0813041aae89
and is a partial fix for bug #110393.
* lib/autoconf/headers.m4 (AC_CHECK_INCLUDES_DEFAULT): Check for
stdio.h, stdlib.h, and string.h before including them. Define
STDC_HEADERS only when string.h and stdlib.h are both available.
Organize includes list by standard, then alphabetically.
* doc/autoconf.texi, NEWS: Update to match.
* tests/local.at (AT_CHECK_DEFINES): Make regexes more specific.
Also expect a definition of HAVE_STDIO_H.
* tests/c.at, tests/semantics.at, tests/tools.at: Use <float.h>,
not <stdio.h>, as a header that we expect always to exist.
Add HAVE_STDIO_H to various lists of macros that are expected to
appear in config.h.
2020-12-07 00:40:39 +08:00
|
|
|
|
AC_INCLUDES_DEFAULT still checks for the existence of <stdlib.h>,
|
|
|
|
|
<string.h>, and <stdio.h>, because these headers may not exist
|
|
|
|
|
in a “freestanding environment” (a compilation mode intended for OS
|
|
|
|
|
kernels and similar, where most of the features of the C library are
|
|
|
|
|
optional). Most programs need not use ‘#ifdef HAVE_STDLIB_H’ etc in
|
|
|
|
|
their own code.
|
|
|
|
|
|
|
|
|
|
For compatibility’s sake, the C preprocessor macro STDC_HEADERS
|
|
|
|
|
will be defined when both <stdlib.h> and <string.h> are available;
|
|
|
|
|
however, <stdarg.h> and <float.h> are no longer checked for
|
|
|
|
|
(these, like <stddef.h>, are required to exist in a freestanding
|
|
|
|
|
environment). New code should not refer to this macro.
|
2014-08-08 08:16:40 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
Future releases of Autoconf may reduce the set of headers checked
|
|
|
|
|
for by AC_INCLUDES_DEFAULT.
|
2012-10-17 18:15:56 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AS_ECHO and AS_ECHO_N unconditionally use ‘printf’.
|
AC_PROG_CC_C11: new macro, which AC_PROG_CC_STDC now defaults to
* NEWS:
* doc/autoconf.texi (C Compiler): Document this.
(Gnulib, Function Portability, Particular Functions)
(Header Portability, Particular Headers, Defining Symbols)
(Printing Messages, Limitations of Usual Tools)
(Preprocessor Arithmetic, Volatile Objects, Exiting Portably):
Modernize wording for C11.
* lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER, _AC_C_C99_TEST_BODY):
New macros, taken from _AC_PROG_CC_C99. These are so that we can
also include the C99 tests in the C11 test program.
(_AC_PROG_CC_C99): Use them.
(_AC_PROG_CC_C11, AC_PROG_CC_C11): New macros.
(AC_PROG_CC_STDC): Prefer C11 to C99 or C89.
2012-08-24 03:45:39 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
This is substantially simpler, more reliable, and, in most cases,
|
|
|
|
|
faster than attempting to use ‘echo’ at all. However, if ‘printf’
|
|
|
|
|
is not a shell builtin, configure scripts will run noticeably
|
|
|
|
|
slower, and if ‘printf’ is not available at all, they will crash.
|
|
|
|
|
The only systems where this is known to be a problem are extremely
|
|
|
|
|
old, and unlikely to be able to handle modern C programs for other
|
|
|
|
|
reasons (e.g. not having a C90-compliant compiler at all).
|
2012-10-17 04:20:58 +08:00
|
|
|
|
|
m4sh: Require shell to support $(...) command substitution.
As of the 2020-11-07 update, config.sub and config.guess
unconditionally use $(...) command substitution; see
<https://lists.gnu.org/archive/html/config-patches/2020-11/msg00011.html>.
Therefore, add this to the set of required shell features, searched
for by _AS_DETECT_BETTER_SHELL. On a system where /bin/sh doesn’t
support $(...), $CONFIG_SHELL will be set to one that does (and the
primary configure script will be re-executed using that shell).
AC_CANONICAL_* use $CONFIG_SHELL to execute config.guess/sub, so they
will keep working. This also means that configure scripts and
third-party macros that use $(...) will quietly start working
correctly on such ancient systems.
The test code is simple, but sufficient to weed out Solaris 10’s
/bin/sh, which doesn’t support $(...) but *does* support shell
functions.
I’m not going to touch any of the existing uses of `...` command
substitution in Autoconf proper for now, but it might make sense to
bulk upgrade them early in the 2.71 release cycle; if nothing else,
it would remove a major obstacle to running shellcheck over our
scripts.
* lib/m4sugar/m4sh.m4 (_AS_MODERN_CMDSUBST_WORKS): New macro.
(AS_INIT, AS_SHELL_SANITIZE): Call _AS_DETECT_REQUIRED for
_AS_MODERN_CMDSUBST_WORKS.
* NEWS: Mention the requirement for $(...).
2020-11-10 04:15:23 +08:00
|
|
|
|
*** Configure scripts require support for $( ... ) command substitution.
|
|
|
|
|
|
|
|
|
|
This POSIX shell feature is approximately the same age as
|
|
|
|
|
user-defined functions, but there do exist shells that support
|
|
|
|
|
functions and not $( ... ), such as Solaris 10 /bin/sh.
|
|
|
|
|
|
|
|
|
|
Configure scripts will automatically locate a shell that supports
|
|
|
|
|
this feature and re-execute themselves with it, if necessary, so
|
|
|
|
|
the new requirement should be transparent to most users.
|
|
|
|
|
|
|
|
|
|
In this release, most of Autoconf’s code still uses the older `...`
|
|
|
|
|
notation for command substitution.
|
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AC_INIT now trims extra white space from its arguments.
|
AC_PROG_CC_C11: new macro, which AC_PROG_CC_STDC now defaults to
* NEWS:
* doc/autoconf.texi (C Compiler): Document this.
(Gnulib, Function Portability, Particular Functions)
(Header Portability, Particular Headers, Defining Symbols)
(Printing Messages, Limitations of Usual Tools)
(Preprocessor Arithmetic, Volatile Objects, Exiting Portably):
Modernize wording for C11.
* lib/autoconf/c.m4 (_AC_C_C99_TEST_HEADER, _AC_C_C99_TEST_BODY):
New macros, taken from _AC_PROG_CC_C99. These are so that we can
also include the C99 tests in the C11 test program.
(_AC_PROG_CC_C99): Use them.
(_AC_PROG_CC_C11, AC_PROG_CC_C11): New macros.
(AC_PROG_CC_STDC): Prefer C11 to C99 or C89.
2012-08-24 03:45:39 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
For instance, AC_INIT([ GNU Hello ], [1.0]) will set PACKAGE_NAME
|
|
|
|
|
to “GNU Hello”.
|
2020-07-17 02:48:09 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** Macros that take whitespace-separated lists as arguments
|
|
|
|
|
now always expand macros within those arguments.
|
2020-07-17 01:39:56 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
Formerly, these macros would *usually* expand those arguments, but
|
|
|
|
|
the behavior was not reliable nor was it consistent between autoconf
|
|
|
|
|
and autoheader.
|
2013-02-07 14:46:49 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
Macro expansion within these arguments is deprecated; if expansion
|
|
|
|
|
changes the list, a warning in the “obsolete” category will be
|
|
|
|
|
emitted. Note that ‘dnl’ is a macro. Putting ‘dnl’ comments inside
|
|
|
|
|
any argument to an Autoconf macro is, in general, only supported
|
|
|
|
|
when that argument takes more Autoconf code (e.g. the ACTION-IF-TRUE
|
|
|
|
|
argument to AC_COMPILE_IFELSE).
|
2015-05-14 09:11:47 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
The affected macros are AC_CHECK_FILES, AC_CHECK_FUNCS,
|
|
|
|
|
AC_CHECK_FUNCS_ONCE, AC_CHECK_HEADERS, AC_CHECK_HEADERS_ONCE,
|
|
|
|
|
AC_CONFIG_MACRO_DIRS, AC_CONFIG_SUBDIRS, and AC_REPLACE_FUNCS.
|
2012-09-17 07:41:48 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AC_FUNC_VFORK no longer ignores a signal-handling bug in Solaris 2.4.
|
2020-07-10 01:59:05 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
This bug was being ignored because Emacs wanted to use ‘vfork’ on
|
|
|
|
|
Solaris 2.4 anyway, but current versions of Emacs have dropped
|
|
|
|
|
support for Solaris 2.4. Most programs will want to avoid ‘vfork’
|
|
|
|
|
on this OS because of this bug.
|
2020-07-10 01:59:05 +08:00
|
|
|
|
|
Fix regressions when using the C++ compiler to perform tests.
The Debian project has done an archive rebuild using autoconf 2.69c,
which found several serious regressions from 2.69 where test programs
used to be accepted by a C++ compiler, but are now rejected. Part of
the problem is that newer C++ compilers are more likely to reject
“traditional” sloppy C, but part of it is that bug fixes since 2.69
did not consider the possibility of test macros being used with
AC_LANG([C++]) in effect.
I’m still working on test suite improvements that will catch these
regressions in the future, but I don’t see any reason to delay the
actual bugfixes. (I’ve gotten far enough on the test suite changes
that I know they _will_ catch the bugs.)
* NEWS: Document that AC_FUNC_STRERROR_R no longer tries to detect a
strerror_r that exists in the C library but isn’t declared by string.h.
* lib/autoconf/c.m4
(AC_LANG_CALL(C++)): New macro. Use a more robust technique for
avoiding a type conflict with any intrinsic prototype.
(AC_LANG_CALL(C)): Remove #ifdef __cplusplus, this macro is no longer
used to generate C++ code.
* lib/autoconf/functions.m4
(AC_FUNC_CLOSEDIR_VOID): Rely on <dirent.h> to declare closedir.
Simplify test program. Use AC_COMPILE_IFELSE, not AC_RUN_IFELSE.
(_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF): Use void *, not char *,
for variable holding a value returned by malloc/realloc respectively.
(AC_FUNC_STRERROR_R): Don’t AC_CHECK_FUNCS_ONCE strerror_r.
AC_DEFINE HAVE_STRERROR_R if and only if we are also going to define
HAVE_DECL_STRERROR_R. Remove AC_RUN_IFELSE fallback when strerror_r
is not declared.
* lib/autoconf/headers.m4 (AC_USG): Use "", not 0, for the first
argument to rindex.
2020-10-09 21:02:47 +08:00
|
|
|
|
*** AC_FUNC_STRERROR_R assumes strerror_r is unavailable if it’s not declared.
|
|
|
|
|
|
|
|
|
|
The fallback technique it used to probe strerror_r’s return type
|
|
|
|
|
when the function was present in the C library, but not declared by
|
|
|
|
|
<string.h>, was fragile and did not work at all when cross-compiling.
|
|
|
|
|
The systems where this fallback was necessary were all obsolete.
|
|
|
|
|
|
|
|
|
|
Programs that use AC_FUNC_STRERROR_R should make sure to test the
|
|
|
|
|
preprocessor macro HAVE_DECL_STRERROR_R before using strerror_r at all.
|
|
|
|
|
|
AC_OPENMP: Avoid clobbering ‘mp’ and/or ‘penmp’ (#110353)
Some of the compiler options that AC_OPENMP tests, mean “enable
OpenMP” to one compiler, but “write output to a file named ‘mp’ or
‘penmp’” to other compilers. The author of AC_OPENMP believed that
this could only happen if compilation was *successful*, but didn’t
realize that one of the options means “write *preprocessed* output to
a file named ‘penmp’” to SunPRO C, and that this *would* succeed on
the test program. (AC_LINK_IFELSE fails anyway, because the
compilation didn’t create conftest$exeext.)
The option that actually means “enable OpenMP” to SunPRO C is earlier
in the list than the option that means “write preprocessed output to a
file named ‘penmp’”, so we might never have noticed this, but for a
second bug: if you have a bad combination of Solaris operating system
patches installed, it’s possible for this compiler to
successfully *compile* a program that uses OpenMP, but then fail
to *link* it because the OpenMP runtime library is out of sync with
the core C library. AC_OPENMP doesn’t distinguish this case from
“that option doesn’t mean ‘enable OpenMP’” so it goes on to other
entries in the list and hits the “write preprocessed output” one.
Implement four layers of defensive measures against this mess:
- Use an #error directive instead of a compile-time syntax error
to halt compilation when _OPENMP is not defined.
- For each option that might mean “enable OpenMP”, first do an
AC_COMPILE_IFELSE to find out whether it really means that, and
then an AC_LINK_IFELSE to find out whether it works. If the
compilation succeeds but the link fails, bail out of the loop and
declare OpenMP to be unsupported.
- If a file named ‘mp’ or ‘openmp’ exists in configure’s working
directory when AC_OPENMP begins, error out. This means it is safe
to delete any file named ‘mp’ or ‘openmp’ that exists at the *end*
of AC_OPENMP.
- If a file named ‘mp’ or ‘openmp’ exists in the top level of the
source tree with a configure.ac that uses AC_OPENMP, have autoconf
error out, too.
Fixes bug #110353. Problem reported by Dagobert Michelsen.
* lib/autoconf/c.m4 (_AC_LANG_OPENMP(C)): Change ‘choke me’ to
‘#error "OpenMP not supported"’.
(AC_OPENMP): AC_REQUIRE _AC_OPENMP_SAFE_WD. For each option, do
both a compile test and a link test; if the compile test succeeds
but the link fails, don’t go on to other candidate options.
Delete files named ‘mp’ and ‘penmp’ after the loop.
(_AC_OPENMP_SAFE_WD): New macro, subroutine of AC_OPENMP. If files
named ‘mp’ or ‘penmp’ exist, error out both at autoconf time and at
configure time.
* tests/torture.at (Files clobbered by AC_OPENMP): New test.
* doc/autoconf.texi: Document requirement not to have files
named ‘mp’ or ‘penmp’ next to a configure.ac that uses AC_OPENMP.
2020-11-03 02:15:00 +08:00
|
|
|
|
*** AC_OPENMP can’t be used if you have files named ‘mp’ or ‘penmp’.
|
|
|
|
|
|
|
|
|
|
Autoconf will now issue an error if AC_OPENMP is used in a configure
|
|
|
|
|
script that’s in the same directory as a file named ‘mp’ or ‘penmp’.
|
|
|
|
|
Configure scripts that use AC_OPENMP will now error out upon
|
|
|
|
|
encountering files with these names in their working directory
|
|
|
|
|
(e.g. when the build directory is separate from the source directory).
|
|
|
|
|
|
|
|
|
|
If you have files with these names at the top level of your source
|
|
|
|
|
tree, we recommend either renaming them or moving them into a
|
|
|
|
|
subdirectory. See the documentation of AC_OPENMP for further
|
|
|
|
|
explanation.
|
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
** New features
|
Modernize AC_INCLUDES_DEFAULT and friends.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
Include stddef.h, stdlib.h, and string.h unconditionally.
Don't include memory.h at all.
Don't use AC_HEADER_STDC.
Don't check for stddef.h, stdlib.h, string.h, or memory.h.
For compatibility, unconditionally define STDC_HEADERS,
HAVE_STDLIB_H, and HAVE_STRING_H.
(AN_HEADER list): Remove C89 headers, and memory.h from list.
(AC_HEADER_STDC, AC_UNISTD_H): AU_DEFUN to trigger
_AC_INCLUDES_DEFAULT_REQUIREMENTS if it hasn't already happened,
and do nothing else.
(AC_HEADER_TIME): AU_DEFUN, and define TIME_WITH_SYS_TIME unconditionally
as long as sys/time.h is present.
(AC_USG, AC_MEMORY_H): Assume existence of string.h.
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF):
Don't use AC_HEADER_STDC. Assume stdlib.h exists.
(AC_FUNC_MKTIME): Don't use AC_HEADER_TIME. Assume time.h exists.
(AC_FUNC_ALLOCA): Assume stdlib.h exists.
(_AC_LIBOBJ_FNMATCH): Assume wchar.h and wctype.h exist.
(_AC_LIBOBJ_GETLOADAVG): Assume locale.h exists.
(AC_FUNC_MMAP): Assume stdlib.h exists.
* tests/tools.at: Use AC_WORDS_BIGENDIAN instead of AC_STDC_HEADERS in
autoupdate test.
* NEWS, doc/autoconf.texi: Document changes. Remove obsolete advice.
2013-09-15 00:22:49 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** Configure scripts now support a ‘--runstatedir’ option.
|
Modernize AC_INCLUDES_DEFAULT and friends.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
Include stddef.h, stdlib.h, and string.h unconditionally.
Don't include memory.h at all.
Don't use AC_HEADER_STDC.
Don't check for stddef.h, stdlib.h, string.h, or memory.h.
For compatibility, unconditionally define STDC_HEADERS,
HAVE_STDLIB_H, and HAVE_STRING_H.
(AN_HEADER list): Remove C89 headers, and memory.h from list.
(AC_HEADER_STDC, AC_UNISTD_H): AU_DEFUN to trigger
_AC_INCLUDES_DEFAULT_REQUIREMENTS if it hasn't already happened,
and do nothing else.
(AC_HEADER_TIME): AU_DEFUN, and define TIME_WITH_SYS_TIME unconditionally
as long as sys/time.h is present.
(AC_USG, AC_MEMORY_H): Assume existence of string.h.
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF):
Don't use AC_HEADER_STDC. Assume stdlib.h exists.
(AC_FUNC_MKTIME): Don't use AC_HEADER_TIME. Assume time.h exists.
(AC_FUNC_ALLOCA): Assume stdlib.h exists.
(_AC_LIBOBJ_FNMATCH): Assume wchar.h and wctype.h exist.
(_AC_LIBOBJ_GETLOADAVG): Assume locale.h exists.
(AC_FUNC_MMAP): Assume stdlib.h exists.
* tests/tools.at: Use AC_WORDS_BIGENDIAN instead of AC_STDC_HEADERS in
autoupdate test.
* NEWS, doc/autoconf.texi: Document changes. Remove obsolete advice.
2013-09-15 00:22:49 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
This defaults to ‘${localstatedir}/run’. It can be used, for
|
|
|
|
|
instance, to place per-process temporary runtime files (such as pid
|
|
|
|
|
files) into ‘/run’ instead of ‘/var/run’.
|
|
|
|
|
|
|
|
|
|
*** autoreconf will now run gtkdocize and intltoolize when appropriate.
|
|
|
|
|
|
2020-11-10 02:25:14 +08:00
|
|
|
|
*** autoreconf now recognizes AM_GNU_GETTEXT_REQUIRE_VERSION.
|
|
|
|
|
|
|
|
|
|
This macro can be used with gettext 0.19.6 or later to specify
|
|
|
|
|
a *minimum* version requirement for gettext, instead of the *fixed*
|
|
|
|
|
version requirement specified by AM_GNU_GETTEXT_VERSION.
|
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** autoheader handles secondary config headers better.
|
|
|
|
|
|
|
|
|
|
It is no longer necessary to duplicate AC_DEFINE templates in the
|
|
|
|
|
main configuration header for autoheader to notice them.
|
|
|
|
|
|
|
|
|
|
*** AC_PROG_CC now enables C2011 mode if the compiler supports it.
|
|
|
|
|
|
|
|
|
|
If not, it will fall back to C99 and C89, as before. Similarly,
|
|
|
|
|
AC_PROG_CXX now enables C++2011 if available, falling back on C++98.
|
|
|
|
|
|
|
|
|
|
*** New macro AC_C__GENERIC tests for C2011 _Generic support.
|
|
|
|
|
|
|
|
|
|
*** AC_C_VARARRAYS has been aligned with C2011.
|
Modernize AC_INCLUDES_DEFAULT and friends.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
Include stddef.h, stdlib.h, and string.h unconditionally.
Don't include memory.h at all.
Don't use AC_HEADER_STDC.
Don't check for stddef.h, stdlib.h, string.h, or memory.h.
For compatibility, unconditionally define STDC_HEADERS,
HAVE_STDLIB_H, and HAVE_STRING_H.
(AN_HEADER list): Remove C89 headers, and memory.h from list.
(AC_HEADER_STDC, AC_UNISTD_H): AU_DEFUN to trigger
_AC_INCLUDES_DEFAULT_REQUIREMENTS if it hasn't already happened,
and do nothing else.
(AC_HEADER_TIME): AU_DEFUN, and define TIME_WITH_SYS_TIME unconditionally
as long as sys/time.h is present.
(AC_USG, AC_MEMORY_H): Assume existence of string.h.
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF):
Don't use AC_HEADER_STDC. Assume stdlib.h exists.
(AC_FUNC_MKTIME): Don't use AC_HEADER_TIME. Assume time.h exists.
(AC_FUNC_ALLOCA): Assume stdlib.h exists.
(_AC_LIBOBJ_FNMATCH): Assume wchar.h and wctype.h exist.
(_AC_LIBOBJ_GETLOADAVG): Assume locale.h exists.
(AC_FUNC_MMAP): Assume stdlib.h exists.
* tests/tools.at: Use AC_WORDS_BIGENDIAN instead of AC_STDC_HEADERS in
autoupdate test.
* NEWS, doc/autoconf.texi: Document changes. Remove obsolete advice.
2013-09-15 00:22:49 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
It now defines __STDC_NO_VLA__ if variable-length arrays are not
|
|
|
|
|
supported but the compiler does not define __STDC_NO_VLA__.
|
Modernize AC_INCLUDES_DEFAULT and friends.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
Include stddef.h, stdlib.h, and string.h unconditionally.
Don't include memory.h at all.
Don't use AC_HEADER_STDC.
Don't check for stddef.h, stdlib.h, string.h, or memory.h.
For compatibility, unconditionally define STDC_HEADERS,
HAVE_STDLIB_H, and HAVE_STRING_H.
(AN_HEADER list): Remove C89 headers, and memory.h from list.
(AC_HEADER_STDC, AC_UNISTD_H): AU_DEFUN to trigger
_AC_INCLUDES_DEFAULT_REQUIREMENTS if it hasn't already happened,
and do nothing else.
(AC_HEADER_TIME): AU_DEFUN, and define TIME_WITH_SYS_TIME unconditionally
as long as sys/time.h is present.
(AC_USG, AC_MEMORY_H): Assume existence of string.h.
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF):
Don't use AC_HEADER_STDC. Assume stdlib.h exists.
(AC_FUNC_MKTIME): Don't use AC_HEADER_TIME. Assume time.h exists.
(AC_FUNC_ALLOCA): Assume stdlib.h exists.
(_AC_LIBOBJ_FNMATCH): Assume wchar.h and wctype.h exist.
(_AC_LIBOBJ_GETLOADAVG): Assume locale.h exists.
(AC_FUNC_MMAP): Assume stdlib.h exists.
* tests/tools.at: Use AC_WORDS_BIGENDIAN instead of AC_STDC_HEADERS in
autoupdate test.
* NEWS, doc/autoconf.texi: Document changes. Remove obsolete advice.
2013-09-15 00:22:49 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
For backward compatibility with Autoconf 2.61-2.69 AC_C_VARARRAYS
|
|
|
|
|
still defines HAVE_C_VARARRAYS, but this result macro is obsolescent.
|
|
|
|
|
|
|
|
|
|
*** New macro AC_CONFIG_MACRO_DIRS.
|
|
|
|
|
|
|
|
|
|
This macro can be used more than once and accepts a list of
|
|
|
|
|
directories to search for local M4 macros. With Automake 1.13 and
|
|
|
|
|
later, use of this macro eliminates a reason to use ACLOCAL_AMFLAGS
|
|
|
|
|
in Makefile.am.
|
|
|
|
|
|
|
|
|
|
The older AC_CONFIG_MACRO_DIR, which could only be used once, is
|
|
|
|
|
still supported but considered deprecated.
|
Modernize AC_INCLUDES_DEFAULT and friends.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
Include stddef.h, stdlib.h, and string.h unconditionally.
Don't include memory.h at all.
Don't use AC_HEADER_STDC.
Don't check for stddef.h, stdlib.h, string.h, or memory.h.
For compatibility, unconditionally define STDC_HEADERS,
HAVE_STDLIB_H, and HAVE_STRING_H.
(AN_HEADER list): Remove C89 headers, and memory.h from list.
(AC_HEADER_STDC, AC_UNISTD_H): AU_DEFUN to trigger
_AC_INCLUDES_DEFAULT_REQUIREMENTS if it hasn't already happened,
and do nothing else.
(AC_HEADER_TIME): AU_DEFUN, and define TIME_WITH_SYS_TIME unconditionally
as long as sys/time.h is present.
(AC_USG, AC_MEMORY_H): Assume existence of string.h.
* lib/autoconf/functions.m4 (_AC_FUNC_MALLOC_IF, _AC_FUNC_REALLOC_IF):
Don't use AC_HEADER_STDC. Assume stdlib.h exists.
(AC_FUNC_MKTIME): Don't use AC_HEADER_TIME. Assume time.h exists.
(AC_FUNC_ALLOCA): Assume stdlib.h exists.
(_AC_LIBOBJ_FNMATCH): Assume wchar.h and wctype.h exist.
(_AC_LIBOBJ_GETLOADAVG): Assume locale.h exists.
(AC_FUNC_MMAP): Assume stdlib.h exists.
* tests/tools.at: Use AC_WORDS_BIGENDIAN instead of AC_STDC_HEADERS in
autoupdate test.
* NEWS, doc/autoconf.texi: Document changes. Remove obsolete advice.
2013-09-15 00:22:49 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AC_USE_SYSTEM_EXTENSIONS knows about more extensions to enable.
|
|
|
|
|
|
|
|
|
|
System extensions will now be enabled on HP-UX, macOS, and MINIX.
|
|
|
|
|
Optional ISO C library components (e.g. decimal floating point) will
|
|
|
|
|
also be enabled.
|
|
|
|
|
|
|
|
|
|
*** New compatibility macro AC_CHECK_INCLUDES_DEFAULT.
|
|
|
|
|
|
|
|
|
|
This macro runs the checks normally performed as a side-effect by
|
|
|
|
|
AC_INCLUDES_DEFAULT, if they haven’t already been done. Autoupdate
|
2013-09-16 05:16:18 +08:00
|
|
|
|
will replace certain obsolete constructs, whose only remaining
|
|
|
|
|
useful effect is to trigger those checks, with this macro. It is
|
|
|
|
|
unlikely to be useful otherwise.
|
|
|
|
|
|
Improve handling of missing aux scripts.
Another regression identified by the Debian archive rebuild was that
more macros require the presence of config.sub and config.guess now.
‘autoreconf --install’ doesn’t install these itself, it relies on
‘automake --add-missing’ to do that; so, packages that don’t use
Automake will fail at the configure stage after configure is
regenerated. To make matters worse, AC_CONFIG_AUX_DIRS assumes that
everyone who needs config.sub and config.guess also needs install-sh,
so in about half of the affected packages, the failure manifested as a
complaint about install-sh being missing -- technically true but
adding install-sh wouldn’t have resolved the problem by itself.
This patch overhauls the AC_CONFIG_AUX_DIR(S) mechanism so that a
configure script knows the complete set of aux scripts that were
AC_REQUIRE_AUX_FILE’d for it, checks for the existence of all of
them, and not any others. Thus, this configure script
AC_INIT([test], [1.0])
AC_FUNC_MALLOC
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT
will work fine in a directory that contains config.sub and
config.guess but not install-sh. Also, if it’s in a directory
that *doesn’t* contain config.sub and config.guess, it will print an
accurate error message
configure: error: cannot find required auxiliary files: config.guess config.sub
instead of the misleading
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."
A side-effect: it doesn’t make sense for AC_CONFIG_SUBDIRS to demand
the presence of Cygnus configure in the aux dir, on the off-chance
that one of the subdirectories *might* be using it -- I have no idea
where someone would even get a copy of that nowadays -- so I dropped
that feature. I rather suspect nobody has needed it in over a decade.
I also documented the expanded need for config.sub and config.guess in
NEWS as well as the manual.
* NEWS: Document expanded need for config.sub and config.guess.
Document removed support for Cygnus configure in subdirectories.
* doc/autoconf.texi: Clarify exactly when install-sh, config.sub,
and/or config.guess are required. Document canonical online sources
for these scripts. Revise documentation of AC_CONFIG_AUX_DIR and
AC_REQUIRE_AUX_FILE. Minor improvements to documentation of
AC_CONFIG_SRCDIR. Remove mentions of Cygnus configure in
subdirectories.
* lib/autoconf/general.m4
(_AC_INIT_PARSE_ARGS): Remove mention of Cygnus configure;
clarify function of configure.gnu.
(AC_CONFIG_AUX_DIR): Support multiple invocations.
(AC_CONFIG_AUX_DIRS): Now an undocumented compatibility interface
rather than an internal subroutine; just runs AC_CONFIG_AUX_DIR on
each of its arguments.
(AC_CONFIG_AUX_DIR_DEFAULT): Now a backward compatibility stub that
requires _AC_INIT_AUX_DIR without adding anything to _AC_AUX_FILES.
(AC_REQUIRE_AUX_FILE): Now adds the named aux file to _AC_AUX_FILES
and requires _AC_INIT_AUX_DIR, as well as being a trace hook.
(_AC_INIT_AUX_DIR): New home of the loop searching for necessary aux
files (formerly in AC_CONFIG_AUX_DIRS). Looks for all the necessary
aux files, not just for install-sh.
(ac_config_guess, ac_config_sub, ac_configure): Issue deprecation
warnings if these undocumented shell variables are actually used.
(AC_CANONICAL_BUILD, AC_CANONICAL_HOST, AC_CANONICAL_TARGET):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Can rely on $ac_aux_dir ending with a slash.
* lib/autoconf/programs.m4 (AC_PROG_INSTALL, AC_PROG_MKDIR_P):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
* lib/autoconf/status.m4 (_AC_CONFIG_SUBDIRS):
No need to require AC_CONFIG_AUX_DIR_DEFAULT.
Remove check for Cygnus configure; clarify function of configure.gnu.
* lib/autotest/general.m4: Remove mention of Cygnus configure.
* tests/torture.at (Missing auxiliary files): New test.
2020-10-21 01:27:22 +08:00
|
|
|
|
*** AC_REQUIRE_AUX_FILE has been improved.
|
|
|
|
|
|
|
|
|
|
Configure scripts now check, on startup, for the availability of all
|
|
|
|
|
the aux files that were mentioned in an AC_REQUIRE_AUX_FILE
|
|
|
|
|
invocation. This should help prevent certain classes of packaging
|
|
|
|
|
errors.
|
|
|
|
|
|
|
|
|
|
Also, it is no longer necessary for third-party macros that use
|
|
|
|
|
AC_REQUIRE_AUX_FILE to mention AC_CONFIG_AUX_DIR_DEFAULT. However,
|
|
|
|
|
if you are using AC_CONFIG_AUX_DIR_DEFAULT *without* also using
|
|
|
|
|
AC_REQUIRE_AUX_FILE, please start using AC_REQUIRE_AUX_FILE to
|
|
|
|
|
specify the aux files you actually need, so that the check can be
|
|
|
|
|
effective.
|
|
|
|
|
|
Revert to 2.69-compatible behavior in AC_PROG_LEX (#110346)
Commit 29ede6b96feee29c0c477d1659081bbdb82cd8b3 caused AC_PROG_LEX to
stop looking for a library that provides yywrap. This broke several
packages in a Debian archive rebuild.
Revert all the way to the 2.69 behavior, which was to set LEXLIB to
-ll or -lfl if that library defines yywrap, but allow AC_PROG_LEX to
succeed if neither -ll nor -lfl exists on the system, even if a lex
program that doesn't define yywrap would need it.
(This behavior was a bug, but people have come to depend on it.
See https://savannah.gnu.org/support/index.php?110269 and the
thread starting from
https://lists.gnu.org/r/autoconf-patches/2020-07/msg00013.html
for gory details.)
To provide a path away from bug-compatibility, AC_PROG_LEX now takes
one argument, documented as a whitespace-separated list of options.
Two options are defined: ‘yywrap’ means to look for yywrap and behave
as if lex is unavailable if it isn’t found; ‘noyywrap’ means to not
look for yywrap at all. These are mutually exclusive.
Fixes bug #110346.
* lib/autoconf/programs.m4 (AC_PROG_LEX): Add an argument which
can be either ‘yywrap’, meaning to look for yywrap in -ll, or
‘noyywrap’, meaning to not look for yywrap at all. In the
absence of either option, issue an obsoletion warning and
revert to behavior bug-compatible with 2.69.
* tests/semantics.at: Add more tests of AC_PROG_LEX.
* tests/mktests.sh: Exclude AC_PROG_LEX from autogenerated tests.
* doc/autoconf.texi: Update documentation of AC_PROG_LEX.
* NEWS: Update notes on AC_PROG_LEX.
2020-11-03 05:56:32 +08:00
|
|
|
|
*** AC_PROG_LEX has an option to not look for yywrap.
|
|
|
|
|
|
|
|
|
|
AC_PROG_LEX now takes one argument, which may be either ‘yywrap’ or
|
|
|
|
|
‘noyywrap’. If it is ‘noyywrap’, AC_PROG_LEX will only set LEXLIB
|
|
|
|
|
to ‘-lfl’ or ‘-ll’ if a scanner that defines both main and yywrap
|
|
|
|
|
itself still needs something else from that library. On the other
|
|
|
|
|
hand, if it is ‘yywrap’, AC_PROG_LEX will fail (setting LEX to ‘:’
|
|
|
|
|
and LEXLIB to nothing) if it can’t find a library that defines yywrap.
|
|
|
|
|
|
|
|
|
|
In the absence of arguments, AC_PROG_LEX’s behavior is bug-compatible
|
|
|
|
|
with 2.69, which did neither of the above things (see the manual for
|
|
|
|
|
details). This mode is deprecated.
|
|
|
|
|
|
|
|
|
|
We encourage all programs that use AC_PROG_LEX to use the new
|
|
|
|
|
‘noyywrap’ mode, and to define yywrap themselves, or use %noyywrap.
|
|
|
|
|
The yywrap function in lib(f)l is trivial, and self-contained
|
|
|
|
|
scanners are easier to work with.
|
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
** Obsolete features and new warnings
|
|
|
|
|
|
|
|
|
|
*** Use of the long-deprecated name ‘configure.in’ for the autoconf
|
|
|
|
|
input file now elicits a warning in the “obsolete” category.
|
|
|
|
|
|
|
|
|
|
*** Use of the undocumented internal shell variables $as_echo and
|
|
|
|
|
$as_echo_n now elicits a warning in the “obsolete” category.
|
|
|
|
|
The macros AS_ECHO and AS_ECHO_N should be used instead.
|
|
|
|
|
|
|
|
|
|
*** autoconf will now issue warnings (in the “syntax” category)
|
|
|
|
|
if the input file is missing a call to AC_INIT and/or AC_OUTPUT.
|
|
|
|
|
|
|
|
|
|
*** autoconf will now issue warnings (in the “syntax” category)
|
|
|
|
|
for a non-literal URL argument to AC_INIT, and for a TARNAME
|
|
|
|
|
argument to AC_INIT which is either non-literal or contains
|
|
|
|
|
characters that should not be used in file names (e.g. ‘*’).
|
|
|
|
|
|
|
|
|
|
*** AC_PROG_CC_STDC, AC_PROG_CC_C89, AC_PROG_CC_C99 are now obsolete.
|
|
|
|
|
|
|
|
|
|
Applications should use AC_PROG_CC.
|
|
|
|
|
|
|
|
|
|
*** AC_HEADER_STDC and AC_HEADER_TIME are now stubs.
|
|
|
|
|
|
|
|
|
|
They still define the C preprocessor macros STDC_HEADERS and
|
|
|
|
|
TIME_WITH_SYS_TIME, respectively, but they no longer check for the
|
|
|
|
|
ancient, non-ISO-C90 compliant systems where formerly those macros
|
|
|
|
|
would not be defined. Autoupdate will remove them.
|
|
|
|
|
|
|
|
|
|
These macros were already labeled obsolete in the manual.
|
|
|
|
|
|
|
|
|
|
*** AC_DIAGNOSE, AC_FATAL, AC_WARNING, and _AC_COMPUTE_INT are now
|
|
|
|
|
replaced with modern equivalents by autoupdate.
|
|
|
|
|
|
|
|
|
|
These macros were already labeled obsolete in the manual.
|
|
|
|
|
|
|
|
|
|
*** AC_CONFIG_HEADER is now diagnosed as obsolete, and replaced with
|
|
|
|
|
AC_CONFIG_HEADERS by autoupdate.
|
|
|
|
|
|
|
|
|
|
This macro has been considered obsolete for many years and was not
|
|
|
|
|
documented at all.
|
|
|
|
|
|
|
|
|
|
*** The macro AC_OBSOLETE is obsolete.
|
|
|
|
|
|
|
|
|
|
Autoupdate will replace it with m4_warn([obsolete], [explanation]).
|
|
|
|
|
If possible, macros using AC_OBSOLETE should be converted to use
|
|
|
|
|
AU_DEFUN or AU_ALIAS instead, which enables autoupdate to replace
|
|
|
|
|
them, but this has to be done by hand and is not always possible.
|
|
|
|
|
|
|
|
|
|
This macro has been considered obsolete for many years, but was not
|
|
|
|
|
officially declared as such.
|
|
|
|
|
|
|
|
|
|
*** Man pages for config.guess and config.sub are no longer provided.
|
|
|
|
|
|
|
|
|
|
They were moved to the master source tree for config.guess and
|
|
|
|
|
config.sub.
|
|
|
|
|
|
|
|
|
|
** Notable bug fixes
|
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
*** Compatible with current Automake, Libtool, Perl, Texinfo, and shells.
|
2020-09-27 01:40:23 +08:00
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
All of autoconf’s tools and generated scripts, and the build process
|
|
|
|
|
and testsuite for autoconf itself, have been tested to work
|
|
|
|
|
correctly with current versions of Automake, Libtool, Perl, Texinfo,
|
|
|
|
|
bash, ksh93, zsh, and FreeBSD and NetBSD /bin/sh.
|
2020-09-27 01:40:23 +08:00
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
Generated configure scripts are expected to work reliably with an
|
|
|
|
|
even wider variety of shells, including BusyBox sh and various
|
|
|
|
|
proprietary Unixes’ /bin/sh, as long as they are minimally compliant
|
|
|
|
|
with the Unix95 shell specification. Notably, support for
|
|
|
|
|
shell-script functions and the ‘printf’ builtin are required.
|
2016-11-03 23:28:07 +08:00
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
*** Checks compatible with current language standards and compilers.
|
2020-07-10 01:59:05 +08:00
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
Many individual macros have been improved to accommodate changes in
|
|
|
|
|
recent versions of the C and C++ language standards, and new
|
|
|
|
|
features and quirks of commonly used compilers (both free and
|
|
|
|
|
proprietary).
|
|
|
|
|
|
|
|
|
|
*** Improved support for cross compilation.
|
|
|
|
|
|
|
|
|
|
Many individual macros have been improved to produce more accurate
|
|
|
|
|
results when cross-compiling.
|
|
|
|
|
|
|
|
|
|
*** Improved robustness against unusual build environments.
|
|
|
|
|
|
|
|
|
|
Many bugs have been fixed where generated configure scripts would
|
|
|
|
|
fail catastrophically under unusual conditions, such as stdout being
|
|
|
|
|
closed, or $TMPDIR not being an absolute path, or the root directory
|
|
|
|
|
being mentioned in $PATH.
|
2016-02-07 09:16:35 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE now support multiple
|
|
|
|
|
programming languages. They no longer perform all checks in the
|
|
|
|
|
language active upon the first use of the macro.
|
2020-07-12 23:59:14 +08:00
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
*** AC_CHECK_DECL and AC_CHECK_DECLS will now detect missing declarations for
|
|
|
|
|
library functions that are also Clang compiler builtins.
|
|
|
|
|
|
2020-11-02 08:23:12 +08:00
|
|
|
|
*** AC_PATH_X and AC_PATH_XTRA don’t search for X11 when cross-compiling.
|
|
|
|
|
|
|
|
|
|
Libraries and headers found by running xmkmf or searching /usr/X11,
|
|
|
|
|
/usr/X11R7, etc. are likely to belong to a native X11 installation
|
|
|
|
|
for the build machine and to be inappropriate for cross compilation.
|
|
|
|
|
|
|
|
|
|
To cross-compile programs that require X11, we recommend putting the
|
|
|
|
|
headers and libraries for the host system in your cross-compiler’s
|
|
|
|
|
default search paths. Alternatively, use configure’s --x-includes
|
|
|
|
|
and --x-libraries command line options to tell it where they are.
|
|
|
|
|
|
AS_IF: Handle else clause being empty after macro expansion (#110369)
AS_IF can emit a syntactically invalid shell if-then-else,
if CONDITION
then :
# ...
else
fi
when its IF-FALSE argument consists of macros that don’t produce any
shell code. This was a documented limitation in AS_IF, but it’s a bad
limitation to have, because macros that *used* to expand to shell
commands might start expanding to nothing in future releases. For
instance, this broke the libzmq configure script, which did
AC_PROG_CC
AX_CHECK_COMPILE_FLAG([-std=gnu11],
[CFLAGS+=" -std=gnu11"],
[AC_PROG_CC_C99])
Perfectly valid in 2.69, but in 2.70 AC_PROG_CC_C99 doesn’t produce
any shell code and the script crashes.
We had that limitation for good reason: we can’t just put ‘:’ at the
beginning of the else-clause, like we do for the then-clause, because
that would clobber $? and the IF-FALSE commands might want to inspect
it. (This doesn’t matter for the then-clause, because $? is always
zero at the beginning of a then-clause anyway.) The simplest and
least inefficient shell construct I can find that works in this
context is a shell function that does ‘return $?’. Due to awkward
M4sh initialization ordering constraints (AS_IF gets used before we
can safely use shell functions) an indirection through a shell
variable is necessary. The structure of a m4sh script is now
#! /bin/sh
## M4sh Initialization
as_nop=:
...
## M4sh Shell Functions
as_fn_nop () { return $?; }
as_nop=as_fn_nop
...
and AS_IF emits
if CONDITION
then :
# ...
else $as_nop
# ...
fi
The uses of AS_IF that appear before the beginning of the M4sh Shell
Functions section are all under our control and they don’t need to
look at $?.
If anyone has a better idea for how to make this work I will be glad
to hear it.
Fixes bug #110369.
* lib/m4sugar/m4sh.m4
(_AS_IF_ELSE): When $1 is nonempty, invoke _AS_EMPTY_ELSE_PREPARE.
Emit $as_nop at beginning of else clause.
(_AS_BOURNE_COMPATIBLE): Initialize as_nop to ‘:’.
(_AS_EMPTY_ELSE_PREPARE): New macro which emits a definition of
as_fn_nop and resets as_nop to as_fn_nop.
(AS_PREPARE, _AS_PREPARE): Invoke _AS_EMPTY_ELSE_PREPARE.
(_AS_UNSET_PREPARE): Tweak white space.
* tests/m4sh.at (AS_IF and AS_CASE): Test AS_IF’s IF-FALSE argument
being empty after macro expansion.
* doc/autoconf.texi (AS_IF): Remove warning about use with
‘run-if-false’ argument empty after macro expansion.
2020-11-16 02:56:18 +08:00
|
|
|
|
*** AS_IF’s if-false argument may be empty after macro expansion.
|
|
|
|
|
|
|
|
|
|
This long-standing limitation broke configure scripts that used
|
|
|
|
|
macros in this position that emitted shell code in 2.69 but no
|
|
|
|
|
longer do, so we have lifted it.
|
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
*** AC_HEADER_MAJOR detects the location of the major, minor, and
|
|
|
|
|
makedev macros correctly under glibc 2.25 and later.
|
|
|
|
|
|
|
|
|
|
*** AC_FC_LINE_LENGTH now documents the maximum portable length of
|
|
|
|
|
“unlimited” Fortran source code lines to be 250 columns, not 254.
|
|
|
|
|
|
|
|
|
|
*** AC_INIT and AS_INIT no longer embed (part of) the path to the
|
|
|
|
|
source directory in generated files.
|
Autoupdate AC_{DIAGNOSE,FATAL,OBSOLETE,WARNING} and _AC_COMPUTE_INT.
While working on the previous patches I noticed that all of these
macros are officially obsolete, but autoupdate doesn’t replace them.
_AC_COMPUTE_INT is easy to autoupdate. AC_{DIAGNOSE,FATAL,WARNING}
require a little special handling because their replacements are
m4sugar macros, and autoupdate normally expands m4sugar macros as it
goes. Fortunately, the same workaround as is used for AC_FOREACH can
be applied. AC_OBSOLETE also needs that workaround, and cannot be
fully replaced automatically.
The bulk of the patch is removing internal uses of AC_DIAGNOSE.
* lib/autoconf/autoupdate.m4
* lib/autoconf/c.m4
* lib/autoconf/functions.m4
* lib/autoconf/general.m4
* lib/autoconf/headers.m4
* lib/autoconf/lang.m4
* lib/autoconf/status.m4
* lib/autoconf/types.m4
* tests/local.at
* tests/tools.at:
Use, and/or refer to, m4_warn instead of AC_DIAGNOSE.
* lib/autoconf/general.m4 (_AC_COMPUTE_INT): Define using AU_DEFUN.
(AC_DIAGNOSE, AC_FATAL, AC_WARNING): Autoupdate to m4_warn,
m4_fatal, and m4_warn([syntax], [$1]) respectively, using the same
paired AU_DEFUN/AC_DEFUN trick that is used for AC_FOREACH.
(AC_OBSOLETE): Autoupdate to m4_warn([obsolete], [$1]) and advise
hand-conversion to AU_DEFUN.
* lib/autoconf/autoupdate.m4 (AU_DEFUN): Tweak quoting so m4_warn([$3])
is emitted into the edited configure.ac instead of being expanded at
autoupdate time.
* tests/tools.at (autoupdating AC_FOREACH): Adjust grep expressions.
(autoupdating AC_DIAGNOSE and AC_WARNING): New test.
(autoupdating AC_FATAL): New test.
(autoupdating AC_OBSOLETE): New test.
* tests/mktests.sh (ac_exclude_list, au_exclude_list):
Exclude AC_DIAGNOSE, AC_FATAL, AC_FOREACH, AC_OBSOLETE, and AC_WARNING
if not already excluded.
2020-09-23 02:24:33 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
We believe this was the only case where generated file contents
|
|
|
|
|
could change depending on the environment outside the source tree
|
|
|
|
|
itself. If you find any other cases please report them as bugs.
|
Autoupdate AC_{DIAGNOSE,FATAL,OBSOLETE,WARNING} and _AC_COMPUTE_INT.
While working on the previous patches I noticed that all of these
macros are officially obsolete, but autoupdate doesn’t replace them.
_AC_COMPUTE_INT is easy to autoupdate. AC_{DIAGNOSE,FATAL,WARNING}
require a little special handling because their replacements are
m4sugar macros, and autoupdate normally expands m4sugar macros as it
goes. Fortunately, the same workaround as is used for AC_FOREACH can
be applied. AC_OBSOLETE also needs that workaround, and cannot be
fully replaced automatically.
The bulk of the patch is removing internal uses of AC_DIAGNOSE.
* lib/autoconf/autoupdate.m4
* lib/autoconf/c.m4
* lib/autoconf/functions.m4
* lib/autoconf/general.m4
* lib/autoconf/headers.m4
* lib/autoconf/lang.m4
* lib/autoconf/status.m4
* lib/autoconf/types.m4
* tests/local.at
* tests/tools.at:
Use, and/or refer to, m4_warn instead of AC_DIAGNOSE.
* lib/autoconf/general.m4 (_AC_COMPUTE_INT): Define using AU_DEFUN.
(AC_DIAGNOSE, AC_FATAL, AC_WARNING): Autoupdate to m4_warn,
m4_fatal, and m4_warn([syntax], [$1]) respectively, using the same
paired AU_DEFUN/AC_DEFUN trick that is used for AC_FOREACH.
(AC_OBSOLETE): Autoupdate to m4_warn([obsolete], [$1]) and advise
hand-conversion to AU_DEFUN.
* lib/autoconf/autoupdate.m4 (AU_DEFUN): Tweak quoting so m4_warn([$3])
is emitted into the edited configure.ac instead of being expanded at
autoupdate time.
* tests/tools.at (autoupdating AC_FOREACH): Adjust grep expressions.
(autoupdating AC_DIAGNOSE and AC_WARNING): New test.
(autoupdating AC_FATAL): New test.
(autoupdating AC_OBSOLETE): New test.
* tests/mktests.sh (ac_exclude_list, au_exclude_list):
Exclude AC_DIAGNOSE, AC_FATAL, AC_FOREACH, AC_OBSOLETE, and AC_WARNING
if not already excluded.
2020-09-23 02:24:33 +08:00
|
|
|
|
|
2020-10-06 04:22:25 +08:00
|
|
|
|
*** config.log properly escapes arguments in the header comment.
|
|
|
|
|
|
|
|
|
|
*** config.status --config output is now quoted in a more readable fashion.
|
2020-07-18 06:06:49 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
** Autotest enhancements
|
Trim whitespace from arguments of AC_INIT (#107986)
Specifically, all five arguments, if present, are passed through
m4_normalize before doing anything else with them. For instance,
AC_INIT([ GNU Hello ], [1.0]) is now equivalent to
AC_INIT([GNU Hello], [1.0]).
As a consequence, newlines in the arguments to AC_INIT are now
converted to spaces and no longer trigger warnings.
Also, diagnose inappropriate contents of the fourth and fifth
arguments as well as the first three. The fifth argument should be
“usable as-is in single- and double-quoted strings and quoted and
unquoted here-docs,” like the first three. (This is the check
performed by _AC_INIT_LITERAL.) The fourth argument (TARNAME) is used
to construct filenames, so apply an even more stringent test, namely
AS_LITERAL_WORD_IF.
Suggested by David A. Wheeler, who submitted a patch, but I didn’t
wind up using any of his code.
* lib/autoconf/general.m4 (_AC_INIT_LITERAL): Not necessary to check
for newlines anymore.
(_AC_INIT_PACKAGE): Pass all five arguments through m4_normalize
before doing anything else with them. New warning: apply
_AC_INIT_LITERAL to fifth argument (URL). New warning: complain
if fourth argument (TARNAME) is not a literal word according to
AS_LITERAL_WORD_IF. Simplify a conditional by using m4_default.
* tests/base.at (AC_INIT with unusual version strings): Adjust to
match above changes, add more subtests.
2020-08-07 02:51:32 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** Autotest provides a new macro AT_DATA_UNQUOTED, similar to AT_DATA
|
|
|
|
|
but processing variable substitutions, command substitutions and
|
|
|
|
|
backslashes in the contents argument.
|
Trim whitespace from arguments of AC_INIT (#107986)
Specifically, all five arguments, if present, are passed through
m4_normalize before doing anything else with them. For instance,
AC_INIT([ GNU Hello ], [1.0]) is now equivalent to
AC_INIT([GNU Hello], [1.0]).
As a consequence, newlines in the arguments to AC_INIT are now
converted to spaces and no longer trigger warnings.
Also, diagnose inappropriate contents of the fourth and fifth
arguments as well as the first three. The fifth argument should be
“usable as-is in single- and double-quoted strings and quoted and
unquoted here-docs,” like the first three. (This is the check
performed by _AC_INIT_LITERAL.) The fourth argument (TARNAME) is used
to construct filenames, so apply an even more stringent test, namely
AS_LITERAL_WORD_IF.
Suggested by David A. Wheeler, who submitted a patch, but I didn’t
wind up using any of his code.
* lib/autoconf/general.m4 (_AC_INIT_LITERAL): Not necessary to check
for newlines anymore.
(_AC_INIT_PACKAGE): Pass all five arguments through m4_normalize
before doing anything else with them. New warning: apply
_AC_INIT_LITERAL to fifth argument (URL). New warning: complain
if fourth argument (TARNAME) is not a literal word according to
AS_LITERAL_WORD_IF. Simplify a conditional by using m4_default.
* tests/base.at (AC_INIT with unusual version strings): Adjust to
match above changes, add more subtests.
2020-08-07 02:51:32 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AC_CONFIG_TESTDIR will automatically pass EXEEXT to a testsuite (via
|
|
|
|
|
the atconfig file).
|
Trim whitespace from arguments of AC_INIT (#107986)
Specifically, all five arguments, if present, are passed through
m4_normalize before doing anything else with them. For instance,
AC_INIT([ GNU Hello ], [1.0]) is now equivalent to
AC_INIT([GNU Hello], [1.0]).
As a consequence, newlines in the arguments to AC_INIT are now
converted to spaces and no longer trigger warnings.
Also, diagnose inappropriate contents of the fourth and fifth
arguments as well as the first three. The fifth argument should be
“usable as-is in single- and double-quoted strings and quoted and
unquoted here-docs,” like the first three. (This is the check
performed by _AC_INIT_LITERAL.) The fourth argument (TARNAME) is used
to construct filenames, so apply an even more stringent test, namely
AS_LITERAL_WORD_IF.
Suggested by David A. Wheeler, who submitted a patch, but I didn’t
wind up using any of his code.
* lib/autoconf/general.m4 (_AC_INIT_LITERAL): Not necessary to check
for newlines anymore.
(_AC_INIT_PACKAGE): Pass all five arguments through m4_normalize
before doing anything else with them. New warning: apply
_AC_INIT_LITERAL to fifth argument (URL). New warning: complain
if fourth argument (TARNAME) is not a literal word according to
AS_LITERAL_WORD_IF. Simplify a conditional by using m4_default.
* tests/base.at (AC_INIT with unusual version strings): Adjust to
match above changes, add more subtests.
2020-08-07 02:51:32 +08:00
|
|
|
|
|
2020-09-27 01:40:23 +08:00
|
|
|
|
*** AT_TESTED arguments can use variable or command substitutions, including
|
|
|
|
|
in particular $EXEEXT
|
Trim whitespace from arguments of AC_INIT (#107986)
Specifically, all five arguments, if present, are passed through
m4_normalize before doing anything else with them. For instance,
AC_INIT([ GNU Hello ], [1.0]) is now equivalent to
AC_INIT([GNU Hello], [1.0]).
As a consequence, newlines in the arguments to AC_INIT are now
converted to spaces and no longer trigger warnings.
Also, diagnose inappropriate contents of the fourth and fifth
arguments as well as the first three. The fifth argument should be
“usable as-is in single- and double-quoted strings and quoted and
unquoted here-docs,” like the first three. (This is the check
performed by _AC_INIT_LITERAL.) The fourth argument (TARNAME) is used
to construct filenames, so apply an even more stringent test, namely
AS_LITERAL_WORD_IF.
Suggested by David A. Wheeler, who submitted a patch, but I didn’t
wind up using any of his code.
* lib/autoconf/general.m4 (_AC_INIT_LITERAL): Not necessary to check
for newlines anymore.
(_AC_INIT_PACKAGE): Pass all five arguments through m4_normalize
before doing anything else with them. New warning: apply
_AC_INIT_LITERAL to fifth argument (URL). New warning: complain
if fourth argument (TARNAME) is not a literal word according to
AS_LITERAL_WORD_IF. Simplify a conditional by using m4_default.
* tests/base.at (AC_INIT with unusual version strings): Adjust to
match above changes, add more subtests.
2020-08-07 02:51:32 +08:00
|
|
|
|
|
Autotest: add official way to execute code before all/each test.
Currently, there isn’t any documented way for an Autotest testsuite to
add custom code to be run either right before the main driver loop, or
at the point of each AT_SETUP. For instance, there’s no good place to
put environment variable sanitization that should apply to the entire
testsuite (but isn’t universally relevant), or shell function
definitions to be used by custom test macros.
Autoconf’s test suite is poking shell functions directly into the
PREPARE_TESTS diversion, and doing environment variable sanitization
in each individual test. Both of these are obviously undesirable.
This patch adds three new AT_* macros that can be used to do these
things in an officially-supported way: AT_PREPARE_TESTS adds code to
be run right before the main driver loop, AT_PREPARE_EACH_TEST adds
code to be run at the beginning of each test, and AT_TEST_HELPER_FN
defines a shell function that will be available to each test. In
Autoconf’s test suite, I use AT_PREPARE_TESTS to factor out
environment variable sanitization that *ought* to apply across the
board, and AT_TEST_HELPER_FN for the helper function used by
AT_CHECK_ENV.
(This fixes the testsuite bug reported by Jannick at
https://lists.gnu.org/archive/html/autoconf/2020-10/msg00052.html :
CONFIG_SITE in the parent environment will no longer be visible to tests.)
It would be nice to give an example of when AT_PREPARE_EACH_TEST is
useful, in the documentation, but I didn’t find one in the autoconf
test suite.
* lib/autotest/general.m4 (AT_PREPARE_TESTS, AT_PREPARE_EACH_TEST)
(AT_TEST_HELPER_FN): New macros.
(AT_INIT, AT_TESTED): Emit the code to report tested programs only
if it’s needed, and make sure it’s after any code added by
AT_PREPARE_TESTS.
* tests/local.at: Add AT_PREPARE_TESTS block that ensures
$MAKE is set sensibly and $MAKEFLAGS and $CONFIG_SITE are unset.
Use AT_TEST_HELPER_FN for the helper function needed by AT_CHECK_ENV.
(AT_CHECK_MAKE): No need to sanitize $MAKE or $MAKEFLAGS here.
* tests/base.at, tests/compile.at, tests/m4sh.at, tests/torture.at:
No need to unset or neutralize $CONFIG_SITE in individual tests.
* tests/autotest.at: Add tests for new macros.
* doc/autoconf.texi, NEWS: Document new macros.
2020-10-29 05:04:22 +08:00
|
|
|
|
*** New macros AT_PREPARE_TESTS, AT_PREPARE_EACH_TEST, and AT_TEST_HELPER_FN.
|
|
|
|
|
|
|
|
|
|
These provide an official way to define testsuite-specific
|
|
|
|
|
initialization code and shell functions.
|
|
|
|
|
|
2012-04-25 10:17:06 +08:00
|
|
|
|
* Noteworthy changes in release 2.69 (2012-04-24) [stable]
|
2012-03-02 12:30:13 +08:00
|
|
|
|
|
2012-03-08 01:47:01 +08:00
|
|
|
|
** Autoconf now requires perl 5.6 or better (but generated configure
|
|
|
|
|
scripts continue to run without perl).
|
2012-03-02 12:30:13 +08:00
|
|
|
|
|
2012-02-26 08:16:08 +08:00
|
|
|
|
* Noteworthy changes in release 2.68b (2012-03-01) [beta]
|
|
|
|
|
Released by Eric Blake, based on git versions 2.68.*.
|
2010-09-23 06:42:42 +08:00
|
|
|
|
|
2011-12-26 17:27:51 +08:00
|
|
|
|
** Autoconf-generated configure scripts now unconditionally re-execute
|
|
|
|
|
themselves with $CONFIG_SHELL, if that's set in the environment.
|
|
|
|
|
|
2011-09-27 02:01:11 +08:00
|
|
|
|
** The texinfo documentation no longer specifies "front-cover" or
|
|
|
|
|
"back-cover" texts, so that it may now be included in Debian's
|
|
|
|
|
"main" section.
|
|
|
|
|
|
2010-10-13 03:26:39 +08:00
|
|
|
|
** Support for the Go programming language has been added. The new macro
|
|
|
|
|
AC_LANG_GO sets variables GOC and GOFLAGS.
|
|
|
|
|
|
2010-10-09 00:54:31 +08:00
|
|
|
|
** AS_LITERAL_IF again treats '=' as a literal. Regression introduced in
|
|
|
|
|
2.66.
|
|
|
|
|
|
2012-02-25 12:54:39 +08:00
|
|
|
|
** The macro AS_EXECUTABLE_P, present since 2.50, is now documented.
|
|
|
|
|
|
2011-02-05 12:38:07 +08:00
|
|
|
|
** Macros
|
|
|
|
|
|
2011-12-26 16:34:13 +08:00
|
|
|
|
- AC_PROG_LN_S and AS_LN_S now fall back on 'cp -pR' (not 'cp -p') if 'ln -s'
|
|
|
|
|
does not work. This works better for symlinks to directories.
|
|
|
|
|
|
2011-02-05 12:38:07 +08:00
|
|
|
|
- New macro AC_HEADER_CHECK_STDBOOL.
|
2010-09-23 06:42:42 +08:00
|
|
|
|
|
2011-03-05 14:55:14 +08:00
|
|
|
|
- New and updated macros for Fortran support:
|
|
|
|
|
|
|
|
|
|
AC_FC_CHECK_BOUNDS to enable array bounds checking
|
2011-03-05 14:55:51 +08:00
|
|
|
|
AC_F77_IMPLICIT_NONE and AC_FC_IMPLICIT_NONE to disable implicit integer
|
2011-04-02 20:15:14 +08:00
|
|
|
|
AC_FC_MODULE_EXTENSION to compute the Fortran 90 module name extension
|
2011-04-02 20:17:55 +08:00
|
|
|
|
AC_FC_MODULE_FLAG for the Fortran 90 module search path flag
|
2011-04-02 20:21:38 +08:00
|
|
|
|
AC_FC_MODULE_OUTPUT_FLAG for the Fortran 90 module output directory flag
|
2011-04-02 20:52:20 +08:00
|
|
|
|
AC_FC_PP_SRCEXT for preprocessed Fortran source files extensions
|
2011-04-02 21:20:48 +08:00
|
|
|
|
AC_FC_PP_DEFINE for the Fortran preprocessor define flag
|
2011-03-05 14:55:14 +08:00
|
|
|
|
|
2010-09-23 06:34:13 +08:00
|
|
|
|
* Noteworthy changes in release 2.68 (2010-09-22) [stable]
|
|
|
|
|
Released by Eric Blake, based on git versions 2.67.*.
|
2010-07-22 06:19:14 +08:00
|
|
|
|
|
2010-09-16 22:43:27 +08:00
|
|
|
|
** AC_MSG_ERROR (and AS_ERROR) can once again be followed immediately by
|
2021-07-21 05:01:43 +08:00
|
|
|
|
'dnl'. Regression introduced in 2.66.
|
2010-09-16 22:43:27 +08:00
|
|
|
|
|
2010-08-15 03:17:04 +08:00
|
|
|
|
** AC_INIT again allows URLs with '?' for its BUG-REPORT argument.
|
|
|
|
|
Regression introduced in 2.66.
|
|
|
|
|
|
2010-09-22 07:00:09 +08:00
|
|
|
|
** AC_REPLACE_FUNCS again allows a non-literal argument, such as a shell
|
|
|
|
|
variable that expands to a list of functions to check. Regression
|
|
|
|
|
introduced in 2.66.
|
|
|
|
|
|
|
|
|
|
** AT_BANNER() with empty argument will cause visual separation from previous
|
|
|
|
|
test category.
|
|
|
|
|
|
2010-08-27 05:07:38 +08:00
|
|
|
|
** The macros AC_PREPROC_IFELSE, AC_COMPILE_IFELSE, AC_LINK_IFELSE, and
|
|
|
|
|
AC_RUN_IFELSE now warn if the first argument failed to use
|
|
|
|
|
AC_LANG_SOURCE or AC_LANG_PROGRAM to generate the conftest file
|
|
|
|
|
contents. A new macro AC_LANG_DEFINES_PROVIDED exists if you have
|
|
|
|
|
a compelling reason why you cannot use AC_LANG_SOURCE but must
|
|
|
|
|
avoid the warning.
|
|
|
|
|
|
2010-08-27 06:10:44 +08:00
|
|
|
|
** The macro m4_define_default is now documented.
|
|
|
|
|
|
2010-08-14 14:34:01 +08:00
|
|
|
|
** Symlinked config.cache files are supported; configure now tries to
|
|
|
|
|
update non-symlinked cache files atomically, so that concurrent configure
|
|
|
|
|
runs do not leave behind broken cache files. It is still unspecified
|
|
|
|
|
which subset or union of results is cached though.
|
|
|
|
|
|
2010-08-03 04:42:55 +08:00
|
|
|
|
** Autotest testsuites should not contain long text lines any more, and be
|
|
|
|
|
portable even when very many test groups are used.
|
|
|
|
|
|
2010-09-12 15:45:34 +08:00
|
|
|
|
** AT_CHECK semantics with respect to the Autotest variable $at_status and
|
|
|
|
|
shell execution environment of the arguments are documented now.
|
2010-09-12 15:45:04 +08:00
|
|
|
|
|
2010-09-17 06:19:11 +08:00
|
|
|
|
** AC_FC_LIBRARY_LDFLAGS now tolerates output from newer gfortran.
|
|
|
|
|
|
2010-09-17 23:56:27 +08:00
|
|
|
|
** Newly obsolete macros
|
|
|
|
|
The following macros have been marked obsolete. New programs
|
|
|
|
|
should use the corresponding Gnulib modules. Gnulib not only
|
|
|
|
|
detects a larger set of portability problems with these functions,
|
|
|
|
|
but also provides complete workarounds.
|
|
|
|
|
|
|
|
|
|
AC_FUNC_ERROR_AT_LINE AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
|
|
|
|
|
AC_FUNC_MKTIME AC_FUNC_STRTOD
|
|
|
|
|
|
2010-07-22 06:19:14 +08:00
|
|
|
|
|
2010-07-20 23:39:43 +08:00
|
|
|
|
* Major changes in Autoconf 2.67 (2010-07-21) [stable]
|
|
|
|
|
Released by Eric Blake, based on git versions 2.66.*.
|
2010-07-03 06:54:35 +08:00
|
|
|
|
|
2010-07-07 04:31:33 +08:00
|
|
|
|
** AC_CONFIG_SUBDIRS with more than one subdirectory at a time works again.
|
|
|
|
|
Regression introduced in 2.66.
|
2010-07-03 06:54:35 +08:00
|
|
|
|
|
2010-07-07 04:00:44 +08:00
|
|
|
|
** AC_CHECK_SIZEOF of a pointer type works again. Regression introduced in
|
|
|
|
|
2.66.
|
|
|
|
|
|
2010-07-11 00:40:43 +08:00
|
|
|
|
** New macro AC_FC_LINE_LENGTH to accept long Fortran source code lines.
|
|
|
|
|
|
2010-07-20 01:59:19 +08:00
|
|
|
|
** AC_PREPROC_IFELSE now keeps the preprocessed output in the conftest.i
|
|
|
|
|
file for inspection by the commands in the ACTION-IF-TRUE argument.
|
|
|
|
|
|
2010-07-20 05:50:45 +08:00
|
|
|
|
** AC_INIT again allows parentheses and other characters that are literal
|
2010-07-20 21:43:56 +08:00
|
|
|
|
in single- or double-quoted strings, and in quoted and unquoted
|
|
|
|
|
here-documents, for its PACKAGE and VERSION arguments. Regression
|
|
|
|
|
introduced in 2.66.
|
2010-07-20 05:50:45 +08:00
|
|
|
|
|
2010-07-20 13:35:01 +08:00
|
|
|
|
** autoreconf passes warning flags to new enough versions of aclocal.
|
|
|
|
|
|
2010-07-21 11:14:14 +08:00
|
|
|
|
** Running an Autotest testsuite in parallel mode no longer triggers a
|
|
|
|
|
race condition that could cause the testsuite run to end early,
|
|
|
|
|
fixing a sporadic failure in autoconf's own testsuite. Bug present
|
|
|
|
|
since introduction of parallel tests in 2.63b.
|
|
|
|
|
|
2010-07-20 05:50:45 +08:00
|
|
|
|
|
2010-07-03 06:32:08 +08:00
|
|
|
|
* Major changes in Autoconf 2.66 (2010-07-02) [stable]
|
|
|
|
|
Released by Eric Blake, based on git versions 2.65.*.
|
2009-11-24 18:36:53 +08:00
|
|
|
|
|
2009-12-10 02:53:20 +08:00
|
|
|
|
** AC_FUNC_MMAP works in C++ mode again. Regression introduced in 2.65.
|
2009-11-24 18:36:53 +08:00
|
|
|
|
|
2009-11-25 08:20:33 +08:00
|
|
|
|
** Use of m4_divert without a named diversion now issues a syntax warning,
|
|
|
|
|
since it is seldom right to change diversions behind autoconf's back.
|
|
|
|
|
|
2009-12-09 14:20:16 +08:00
|
|
|
|
** The macros AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, and
|
|
|
|
|
AC_TYPE_INT64_T work again. Regression introduced in 2.65.
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
** AC_PROG_INSTALL correctly uses 'shtool' again. Regression introduced
|
2009-12-12 15:40:14 +08:00
|
|
|
|
in 2.64.
|
|
|
|
|
|
2010-04-05 22:06:17 +08:00
|
|
|
|
** Autoconf should work on EBCDIC hosts.
|
|
|
|
|
|
2010-06-02 03:54:39 +08:00
|
|
|
|
** AC_CHECK_DECL and AC_CHECK_DECLS accept optional function argument types
|
|
|
|
|
for overloaded C++ functions.
|
|
|
|
|
|
2010-06-08 12:55:10 +08:00
|
|
|
|
** AS_SET_CATFILE accepts nonliterals in its variable name argument now.
|
|
|
|
|
|
2010-06-15 02:31:58 +08:00
|
|
|
|
** Autotest testsuites accept an option --recheck to rerun tests that
|
|
|
|
|
failed or passed unexpectedly during the last non-debug testsuite run.
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
** AC_ARG_ENABLE and AC_ARG_WITH now also accept '+' signs in '--enable-*'
|
|
|
|
|
and '--with-*' arguments, converting them to underscores for the variable
|
2010-03-16 14:04:40 +08:00
|
|
|
|
names.
|
|
|
|
|
|
2010-06-08 20:25:35 +08:00
|
|
|
|
** In configure scripts, loading CONFIG_SITE no longer searches PATH,
|
|
|
|
|
and problems in loading the configuration site files are diagnosed.
|
|
|
|
|
|
2010-06-18 04:26:30 +08:00
|
|
|
|
** Autotest testsuites may optionally provide colored test results.
|
|
|
|
|
|
2010-06-18 04:44:02 +08:00
|
|
|
|
** The previously undocumented Autotest macros AT_ARG_OPTION and
|
|
|
|
|
AT_ARG_OPTION_ARG have seen bug fixes and are documented now.
|
|
|
|
|
AT_ARG_OPTION has been changed in that the negative of a long option
|
|
|
|
|
--OPTION is now --no-OPTION rather than --noOPTION.
|
|
|
|
|
|
2010-03-17 05:51:23 +08:00
|
|
|
|
** The macro AS_LITERAL_IF is slightly more conservative; text
|
|
|
|
|
containing shell quotes are no longer treated as literals.
|
|
|
|
|
Furthermore, a new macro, AS_LITERAL_WORD_IF, adds an additional
|
|
|
|
|
level of checking that no whitespace occurs in literals.
|
|
|
|
|
|
2010-07-03 05:35:45 +08:00
|
|
|
|
** The macros AS_TR_SH and AS_TR_CPP no longer expand their results.
|
|
|
|
|
|
2010-03-02 08:17:40 +08:00
|
|
|
|
** The following macros are now documented:
|
|
|
|
|
AS_BOX
|
|
|
|
|
|
2010-06-29 06:15:25 +08:00
|
|
|
|
** New macro AC_FC_FIXEDFORM to accept fixed-form Fortran.
|
|
|
|
|
|
2010-03-02 08:17:40 +08:00
|
|
|
|
|
2009-11-21 21:19:57 +08:00
|
|
|
|
* Major changes in Autoconf 2.65 (2009-11-21) [stable]
|
|
|
|
|
Released by Eric Blake, based on git versions 2.64.*.
|
2009-07-29 22:28:56 +08:00
|
|
|
|
|
Update License to GPLv3+ including new Autoconf Exception.
* NEWS, README: Update licensing information.
* COPYING.EXCEPTION: New file.
* Makefile.am (EXTRA_DIST): Distribute it.
* cfg.mk (autom4te-update): Remove copyright change warning.
* lib/autoconf/autoconf.m4, lib/autoconf/autoheader.m4,
lib/autoconf/autoscan.m4, lib/autoconf/autotest.m4,
lib/autoconf/autoupdate.m4, lib/autoconf/c.m4,
lib/autoconf/erlang.m4, lib/autoconf/fortran.m4,
lib/autoconf/functions.m4, lib/autoconf/general.m4,
lib/autoconf/headers.m4, lib/autoconf/lang.m4,
lib/autoconf/libs.m4, lib/autoconf/oldnames.m4,
lib/autoconf/programs.m4, lib/autoconf/specific.m4,
lib/autoconf/status.m4, lib/autoconf/types.m4,
lib/autotest/autotest.m4, lib/autotest/general.m4,
lib/autotest/specific.m4, lib/m4sugar/foreach.m4,
lib/m4sugar/m4sh.m4, lib/m4sugar/m4sugar.m4: Update exception
statement, bump to GPLv3.
* bin/autoconf.as, bin/autoheader.in, bin/autom4te.in,
bin/autoreconf.in, bin/autoscan.in, bin/autoupdate.in,
bin/ifnames.in: Bump to GPLv3+, adjust --version output
to reflect the GPLv3+ and the Autoconf Exception.
* lib/Autom4te/C4che.pm, lib/Autom4te/ChannelDefs.pm,
lib/Autom4te/General.pm, lib/Autom4te/Request.pm,
lib/autom4te.in, lib/autoscan/autoscan.pre,
lib/emacs/autoconf-mode.el, lib/emacs/autotest-mode.el,
lib/freeze.mk, tests/atlocal.in, tests/autoscan.at,
tests/autotest.at, tests/base.at, tests/c.at,
tests/compile.at, tests/erlang.at, tests/foreign.at,
tests/fortran.at, tests/local.at, tests/m4sh.at,
tests/m4sugar.at, tests/mktests.sh, tests/semantics.at,
tests/statesave.m4, tests/suite.at, tests/tools.at,
tests/torture.at, tests/wrapper.as: Bump to GPLv3+.
2009-09-10 01:53:31 +08:00
|
|
|
|
** Autoconf is now licensed under the General Public License version 3
|
|
|
|
|
or later (GPLv3+). As with earlier versions, the license includes
|
|
|
|
|
an exception clause so that you may release a configure script
|
|
|
|
|
generated by autoconf under the license of your own program.
|
|
|
|
|
|
2009-07-22 04:55:34 +08:00
|
|
|
|
** New macros to support Objective C++.
|
|
|
|
|
AC_PROG_OBJCXX AC_PROG_OBJCXXCPP
|
|
|
|
|
|
2009-07-29 22:28:56 +08:00
|
|
|
|
** The following undocumented autoconf macros, removed in Autoconf 2.64,
|
|
|
|
|
have been reinstated:
|
|
|
|
|
AH_CHECK_HEADERS
|
|
|
|
|
|
|
|
|
|
These macros are present only for backwards compatibility purposes.
|
|
|
|
|
|
2009-11-03 21:23:50 +08:00
|
|
|
|
** The macro AC_LANG_COMPILER no longer fails on embedded systems that
|
|
|
|
|
lack fopen in the C library, such as AVR or RTEMS (regression
|
|
|
|
|
introduced in 2.64).
|
|
|
|
|
|
2009-09-04 17:48:44 +08:00
|
|
|
|
** The AC_FC_FREEFORM macro no longer suffers from a whitespace bug that
|
|
|
|
|
made it fail with some Fortran compilers (regression introduced in
|
|
|
|
|
2.64).
|
|
|
|
|
|
2009-10-20 22:30:03 +08:00
|
|
|
|
** The AC_TYPE_UINT64_T and AC_TYPE_INT64_T macros have been fixed to no
|
|
|
|
|
longer mistakenly select a 32-bit type on some compilers (bug present
|
|
|
|
|
since macros were introduced in 2.59c).
|
|
|
|
|
|
2009-11-10 12:45:00 +08:00
|
|
|
|
** The AC_FUNC_MMAP macro has been fixed to be portable to systems like
|
|
|
|
|
Cygwin (bug present since macro was introduced in 2.0).
|
|
|
|
|
|
2009-08-01 21:28:56 +08:00
|
|
|
|
** The following documented autotest macros are new:
|
|
|
|
|
AT_CHECK_EUNIT
|
|
|
|
|
|
2009-09-14 20:58:51 +08:00
|
|
|
|
** The following m4sugar macros now quote their expansion:
|
|
|
|
|
m4_toupper m4_tolower
|
|
|
|
|
|
2009-10-28 22:17:27 +08:00
|
|
|
|
** The following m4sugar macros are new:
|
|
|
|
|
m4_escape
|
|
|
|
|
|
|
|
|
|
** The m4sugar macro m4_text_wrap now copes with embedded quoting without
|
|
|
|
|
requiring quadrigraphs. For uses like AC_ARG_VAR([a], [[b c]]),
|
|
|
|
|
this gives the intuitive behavior of "[b c]" in the output (2.63
|
|
|
|
|
gave the output of "[b], [c]", and 2.64 encountered a failure).
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
** The '$tmp' temporary directory used in config.status is documented for
|
2009-09-10 12:48:24 +08:00
|
|
|
|
public use now.
|
|
|
|
|
|
2009-09-11 12:53:17 +08:00
|
|
|
|
** config.status now provides a --config option to produce the configuration.
|
|
|
|
|
|
Documentation of specific and general cache variables.
* doc/autoconf.texi (Default Includes, Alternative Programs)
(Particular Programs, Generic Programs, Files, Libraries)
(Function Portability, Particular Functions, Generic Functions)
(Particular Headers, Generic Headers, Declarations)
(Generic Declarations, Particular Structures, Particular Types)
(Specific Compiler Characteristics)
(Generic Compiler Characteristics, C Compiler, System Services):
Document lots of cache variables.
* NEWS: Update.
Suggested by Bruno Haible.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2009-09-18 13:19:59 +08:00
|
|
|
|
** Many cache variables used by Autoconf's macros are now documented.
|
|
|
|
|
|
2009-11-03 21:23:50 +08:00
|
|
|
|
** Configure scripts work better on DJGPP by avoiding a bug present in
|
|
|
|
|
the DJGPP port of bash 2.04 in handling 'return' in a shell
|
|
|
|
|
function (regression introduced in 2.64).
|
|
|
|
|
|
2009-07-27 11:14:12 +08:00
|
|
|
|
* Major changes in Autoconf 2.64 (2009-07-26) [stable]
|
2009-04-07 02:13:02 +08:00
|
|
|
|
Released by Eric Blake, based on git versions 2.63b.*.
|
|
|
|
|
|
2009-07-26 07:17:41 +08:00
|
|
|
|
** Autoconf now requires GNU M4 1.4.6 or later. Earlier versions of M4
|
|
|
|
|
have a bug in regular expression handling that interferes with some
|
|
|
|
|
of the speedups provided since Autoconf 2.63. GNU M4 1.4.13 or
|
|
|
|
|
later is recommended.
|
|
|
|
|
|
2009-05-20 00:45:08 +08:00
|
|
|
|
** AS_IF and AS_CASE have been taught to avoid syntax errors even when
|
|
|
|
|
given arguments that expand to just whitespace.
|
2009-04-10 11:45:18 +08:00
|
|
|
|
|
2009-05-28 19:14:07 +08:00
|
|
|
|
** The following documented autoconf macros are new:
|
|
|
|
|
AC_ERLANG_SUBST_ERTS_VER
|
|
|
|
|
|
2009-07-25 20:00:38 +08:00
|
|
|
|
** The autoheader tool now understands m4 macro arguments passed to
|
|
|
|
|
AC_DEFINE and AC_DEFINE_UNQUOTED.
|
|
|
|
|
|
2009-04-07 02:13:02 +08:00
|
|
|
|
** Ensure AT_CHECK can support commands that include a # given with
|
|
|
|
|
proper m4 quoting. For shell comments, this is a new feature; for
|
|
|
|
|
non-shell comments, this fixes a regression introduced in 2.63b.
|
2009-04-23 12:06:04 +08:00
|
|
|
|
Additionally, AT_CHECK correctly supplies shell escapes for
|
|
|
|
|
metacharacters occurring in m4 macro expansions within the expected
|
|
|
|
|
stdout and stderr parameters.
|
2009-04-07 02:13:02 +08:00
|
|
|
|
|
2009-04-13 20:02:42 +08:00
|
|
|
|
** The macro AT_CHECK now understands the concept of hard failure. If
|
|
|
|
|
a test exits with an unexpected status 99, cleanup actions for the
|
|
|
|
|
test are inhibited and the test is treated as a failure regardless
|
2009-04-13 21:10:32 +08:00
|
|
|
|
of AT_XFAIL_IF. It also understands the new directives
|
|
|
|
|
ignore-nolog, stdout-nolog, and stderr-nolog.
|
2009-04-13 20:02:42 +08:00
|
|
|
|
|
2009-04-23 07:14:13 +08:00
|
|
|
|
** The following documented autotest macros are new:
|
2009-07-12 18:22:39 +08:00
|
|
|
|
AT_CHECK_UNQUOTED AT_FAIL_IF AT_SKIP_IF
|
2009-04-13 20:02:42 +08:00
|
|
|
|
|
2009-04-09 21:05:00 +08:00
|
|
|
|
** The following documented m4sugar macros are new:
|
2009-06-15 20:49:58 +08:00
|
|
|
|
m4_argn m4_copy_force m4_default_nblank m4_default_nblank_quoted
|
|
|
|
|
m4_ifblank m4_ifnblank m4_rename_force
|
2009-04-09 21:05:00 +08:00
|
|
|
|
|
2009-07-25 19:19:13 +08:00
|
|
|
|
** The autoconf testsuite now exercises all Erlang macros.
|
2009-07-23 20:47:52 +08:00
|
|
|
|
|
2009-03-30 22:45:11 +08:00
|
|
|
|
* Major changes in Autoconf 2.63b (2009-03-31) [beta]
|
2008-09-16 20:37:51 +08:00
|
|
|
|
Released by Eric Blake, based on git versions 2.63.*.
|
|
|
|
|
|
2008-11-11 07:06:59 +08:00
|
|
|
|
** The manual is now shipped under the terms of the GNU FDL 1.3.
|
|
|
|
|
|
2009-01-21 05:22:41 +08:00
|
|
|
|
** AC_REQUIRE now detects the case of an outer macro which first expands
|
|
|
|
|
then later indirectly requires the same inner macro. Previously,
|
|
|
|
|
this case led to silent out-of-order expansion (bug present since
|
|
|
|
|
2.50); it now issues a syntax warning, and duplicates the expansion
|
|
|
|
|
of the inner macro to guarantee dependencies have been met. See
|
|
|
|
|
the manual for advice on how to refactor macros in order to avoid
|
|
|
|
|
the bug in earlier autoconf versions and avoid increased script
|
|
|
|
|
size in the current version.
|
|
|
|
|
|
2009-01-27 00:55:57 +08:00
|
|
|
|
** AC_DEFUN_ONCE has improved semantics. Previously, a macro declared
|
|
|
|
|
with AC_DEFUN_ONCE warned on a second invocation; and out-of-order
|
|
|
|
|
expansion was still possible. Now, dependencies are guaranteed,
|
|
|
|
|
and subsequent invocations are a silent no-op. This makes
|
|
|
|
|
AC_DEFUN_ONCE an ideal macro for silencing AC_REQUIRE warnings.
|
|
|
|
|
|
2009-02-05 21:12:24 +08:00
|
|
|
|
** The following macros are now defined with AC_DEFUN_ONCE. This means
|
|
|
|
|
a subtle change in semantics; previously, an AC_DEFUN macro could
|
|
|
|
|
expand one of these macros multiple times or surround the macro
|
|
|
|
|
inside shell conditional text to bypass the effects of these
|
|
|
|
|
macros, but now the macro will expand exactly once, and prior to
|
|
|
|
|
the start of any enclosing AC_DEFUN macro:
|
|
|
|
|
AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_CANONICAL_TARGET
|
|
|
|
|
AC_HEADER_ASSERT AC_PROG_INSTALL AC_PROG_MKDIR_P
|
|
|
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
|
2008-09-16 20:37:51 +08:00
|
|
|
|
** AC_LANG_ERLANG works once again (regression introduced in 2.61a).
|
|
|
|
|
|
2008-12-09 05:16:38 +08:00
|
|
|
|
** AC_HEADER_ASSERT is fixed so that './configure --enable-assert' no
|
|
|
|
|
longer mistakenly disables assertions.
|
|
|
|
|
|
2009-01-27 07:43:20 +08:00
|
|
|
|
** AC_INIT now takes an optional fifth parameter that can be used to
|
|
|
|
|
set AC_PACKAGE_URL, a URL for the package's home page; the URL is
|
2021-07-21 05:01:43 +08:00
|
|
|
|
used in 'configure --help' and is also available via AC_DEFINE.
|
2009-01-27 07:43:20 +08:00
|
|
|
|
|
Implement parallel Autotest test execution: testsuite --jobs.
* lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
(AT_INIT): <at_jobs>: New variable.
Accept -j, -jN, --jobs[=N], document them in --help output.
Implement parallel driver loop using a FIFO, enabled with --jobs
and if mkfifo works; otherwise, fall back to sequential loop.
(AT_SETUP): Store, do not output summary progress line if
parallel.
* tests/autotest.at (parallel test execution, parallel truth)
(parallel fallacy, parallel skip): New tests.
* doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
the mkfifo requirement, and that --errexit may cause concurrent
jobs to finish.
* NEWS: Update.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-10-02 13:48:51 +08:00
|
|
|
|
** Autotest testsuites accept an option --jobs[=N] for parallel testing.
|
2009-03-30 22:45:11 +08:00
|
|
|
|
This feature is still in testing, and may not work on every
|
|
|
|
|
platform, help in improving it would be appreciated.
|
Implement parallel Autotest test execution: testsuite --jobs.
* lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
(AT_INIT): <at_jobs>: New variable.
Accept -j, -jN, --jobs[=N], document them in --help output.
Implement parallel driver loop using a FIFO, enabled with --jobs
and if mkfifo works; otherwise, fall back to sequential loop.
(AT_SETUP): Store, do not output summary progress line if
parallel.
* tests/autotest.at (parallel test execution, parallel truth)
(parallel fallacy, parallel skip): New tests.
* doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
the mkfifo requirement, and that --errexit may cause concurrent
jobs to finish.
* NEWS: Update.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-10-02 13:48:51 +08:00
|
|
|
|
|
2008-10-08 13:24:06 +08:00
|
|
|
|
** Autotest testsuites do not attempt to write startup error messages
|
|
|
|
|
to the log file before that is opened (regression introduced in 2.63).
|
|
|
|
|
|
2009-03-30 22:45:11 +08:00
|
|
|
|
** Configure scripts now use shell functions. This feature leads to
|
|
|
|
|
smaller configure files and faster execution.
|
2008-09-18 22:51:50 +08:00
|
|
|
|
|
2008-11-06 17:54:51 +08:00
|
|
|
|
** Present But Cannot Be Compiled: Autoconf will now proceed with
|
|
|
|
|
the compiler's result if a header is present but cannot be compiled.
|
|
|
|
|
The warning is still printed, and you should really fix it by
|
|
|
|
|
providing a fourth parameter to AC_CHECK_HEADER/AC_CHECK_HEADERS.
|
|
|
|
|
|
2008-10-24 10:36:47 +08:00
|
|
|
|
** Autoreconf added aclocal to the set of programs affected by the
|
2021-07-21 05:01:43 +08:00
|
|
|
|
'autoreconf -I dir' option.
|
2008-10-24 10:36:47 +08:00
|
|
|
|
|
2008-10-24 11:17:25 +08:00
|
|
|
|
** The following documented m4sugar macros are new:
|
2009-02-20 00:53:35 +08:00
|
|
|
|
m4_chomp m4_chomp_all m4_cleardivert m4_curry m4_default_quoted
|
|
|
|
|
m4_esyscmd_s m4_map_args m4_map_args_pair m4_map_args_sep
|
|
|
|
|
m4_map_args_w m4_set_map m4_set_map_sep m4_stack_foreach
|
|
|
|
|
m4_stack_foreach_lifo m4_stack_foreach_sep
|
|
|
|
|
m4_stack_foreach_sep_lifo
|
2008-09-23 20:57:15 +08:00
|
|
|
|
|
2008-12-19 06:55:58 +08:00
|
|
|
|
** The following m4sugar macros are documented now, but in some cases
|
|
|
|
|
with slightly different semantics than what the previous
|
|
|
|
|
undocumented version had:
|
2008-12-18 21:44:59 +08:00
|
|
|
|
m4_copy m4_dumpdefs m4_rename m4_version_prereq
|
2008-10-24 11:17:25 +08:00
|
|
|
|
|
2008-11-21 08:23:52 +08:00
|
|
|
|
** The m4sugar macro m4_expand has been taught to handle unterminated
|
2008-11-22 03:28:36 +08:00
|
|
|
|
comments and shell case statements. As a result, it is used
|
|
|
|
|
internally in more places, such as AC_DEFINE and AT_CHECK. Most
|
|
|
|
|
uses of AC_DEFINE and AT_CHECK should not behave any differently;
|
|
|
|
|
however, it may be necessary to add double-quoting around
|
2021-07-21 05:01:43 +08:00
|
|
|
|
unbalanced '(' where single-quoting used to be sufficient.
|
2008-11-21 08:23:52 +08:00
|
|
|
|
|
2008-10-10 14:40:52 +08:00
|
|
|
|
** The following documented m4sh macros are new:
|
2009-02-20 00:53:35 +08:00
|
|
|
|
AS_INIT_GENERATED AS_LINENO_PREPARE AS_ME_PREPARE AS_SET_STATUS
|
|
|
|
|
AS_VAR_APPEND AS_VAR_ARITH AS_VAR_COPY
|
2008-10-10 14:40:52 +08:00
|
|
|
|
|
2008-11-19 11:58:19 +08:00
|
|
|
|
** The following m4sh macros are documented now, but in some cases
|
|
|
|
|
with slightly different semantics than what the previous
|
|
|
|
|
undocumented version had:
|
2009-02-20 05:32:36 +08:00
|
|
|
|
AS_ECHO AS_ECHO_N AS_ESCAPE AS_EXIT AS_LITERAL_IF AS_UNSET
|
|
|
|
|
AS_VAR_IF AS_VAR_POPDEF AS_VAR_PUSHDEF AS_VAR_SET AS_VAR_SET_IF
|
2008-10-25 20:29:37 +08:00
|
|
|
|
AS_VAR_TEST_SET AS_VERSION_COMPARE
|
2008-10-08 13:38:54 +08:00
|
|
|
|
|
2008-10-21 06:43:41 +08:00
|
|
|
|
** The m4sh macros AS_IF and AS_CASE can now be used in shell lists.
|
|
|
|
|
The responsibility for supplying a trailing newline now belongs to
|
|
|
|
|
the call site, but since most users did not add dnl, this generally
|
|
|
|
|
results in fewer empty lines in configure.
|
|
|
|
|
|
Implement parallel Autotest test execution: testsuite --jobs.
* lib/autotest/general.m4 (AT_JOB_FIFO_FD): New macro.
(AT_INIT): <at_jobs>: New variable.
Accept -j, -jN, --jobs[=N], document them in --help output.
Implement parallel driver loop using a FIFO, enabled with --jobs
and if mkfifo works; otherwise, fall back to sequential loop.
(AT_SETUP): Store, do not output summary progress line if
parallel.
* tests/autotest.at (parallel test execution, parallel truth)
(parallel fallacy, parallel skip): New tests.
* doc/autoconf.texi (testsuite Invocation): Document -j, --jobs,
the mkfifo requirement, and that --errexit may cause concurrent
jobs to finish.
* NEWS: Update.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2008-10-02 13:48:51 +08:00
|
|
|
|
|
2008-09-08 20:21:10 +08:00
|
|
|
|
* Major changes in Autoconf 2.63 (2008-09-09) [stable]
|
|
|
|
|
Released by Eric Blake, based on git versions 2.62.*.
|
2008-04-13 21:06:31 +08:00
|
|
|
|
|
2008-08-23 00:18:25 +08:00
|
|
|
|
** AC_C_BIGENDIAN does not mistakenly report "universal" for some
|
|
|
|
|
bigendian hosts, a regression introduced with universal binary
|
|
|
|
|
support in 2.62.
|
|
|
|
|
|
2008-06-09 20:19:17 +08:00
|
|
|
|
** AC_PATH_X now includes /lib64 and /usr/lib64 in its list of default
|
|
|
|
|
library directories.
|
|
|
|
|
|
2008-08-04 20:56:53 +08:00
|
|
|
|
** AC_USE_SYSTEM_EXTENSIONS no longer conflicts with an external
|
|
|
|
|
AC_DEFINE([__EXTENSIONS__]). This fixes a regression introduced in
|
|
|
|
|
2.62 when using macros such as AC_AIX that were made obsolete in
|
|
|
|
|
favor of the more portable AC_USE_SYSTEM_EXTENSIONS.
|
|
|
|
|
|
2008-08-15 05:29:23 +08:00
|
|
|
|
** AC_CHECK_TARGET_TOOLS is usable in the non-cross-compile case.
|
|
|
|
|
|
2008-06-09 20:30:17 +08:00
|
|
|
|
** Newly obsolete macros
|
|
|
|
|
The following macro has been marked obsolete, since current porting
|
|
|
|
|
targets can safely assume C89 semantics that signal handlers return
|
|
|
|
|
void. We have no current plans to remove the macro.
|
|
|
|
|
|
|
|
|
|
AC_TYPE_SIGNAL
|
|
|
|
|
|
2008-08-15 21:06:39 +08:00
|
|
|
|
** The macros m4_map and m4_map_sep now ignore any list elements
|
|
|
|
|
consisting of just empty quotes, and m4_map_sep now expands its
|
|
|
|
|
separator. This fixes a regression in 2.62 when these macros were
|
|
|
|
|
first documented, for the sake of clients expecting the semantics
|
|
|
|
|
that these macros had prior to that time. The new macros m4_mapall
|
|
|
|
|
and m4_mapall_sep, along with extra quoting of the separator, can
|
|
|
|
|
be used to get the semantics that m4_map_sep had in 2.62.
|
|
|
|
|
|
2008-04-23 23:24:46 +08:00
|
|
|
|
** Clients of m4_expand, such as AS_HELP_STRING and AT_SETUP, can now
|
|
|
|
|
handle properly quoted but otherwise unbalanced parentheses (for
|
|
|
|
|
some macros, this fixes a regression in 2.62).
|
|
|
|
|
|
2008-04-23 04:19:27 +08:00
|
|
|
|
** Two new quadrigraphs have been introduced: @{:@ for (, and @:}@ for ),
|
2008-08-22 22:15:13 +08:00
|
|
|
|
allowing the output of unbalanced parentheses in more contexts.
|
2008-04-23 04:19:27 +08:00
|
|
|
|
|
2008-07-18 22:30:07 +08:00
|
|
|
|
** The following m4sugar macros are new:
|
2008-11-26 00:28:43 +08:00
|
|
|
|
m4_cleardivert m4_joinall m4_mapall m4_mapall_sep m4_reverse
|
|
|
|
|
m4_set_add m4_set_add_all m4_set_contains m4_set_contents
|
|
|
|
|
m4_set_delete m4_set_difference m4_set_dump m4_set_empty
|
|
|
|
|
m4_set_foreach m4_set_intersection m4_set_list m4_set_listc
|
|
|
|
|
m4_set_remove m4_set_size m4_set_union
|
2008-07-18 22:30:07 +08:00
|
|
|
|
|
2008-07-19 04:26:41 +08:00
|
|
|
|
** The following m4sugar macros now accept multiple arguments, as is the
|
|
|
|
|
case with underlying m4:
|
|
|
|
|
m4_defn m4_popdef m4_undefine
|
|
|
|
|
|
Provide O(n) replacement macros for M4 1.4.x.
* lib/m4sugar/foreach.m4: New file.
(m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
(m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
linear on 1.4.x].
* lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
older M4 is assumed.
(m4_map_sep): Optimize.
(m4_max, m4_min): Refactor, by adding...
(_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
(m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
* lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
file.
* tests/m4sugar.at (M4 loops): Add a stress test that takes
forever if m4_foreach and friends are quadratic.
* NEWS: Mention this.
Signed-off-by: Eric Blake <ebb9@byu.net>
2008-07-26 05:17:38 +08:00
|
|
|
|
** The following m4sugar macros now guarantee linear scaling; they
|
|
|
|
|
previously had linear scaling with m4 1.6 but quadratic scaling
|
|
|
|
|
when using m4 1.4.x. All macros built on top of these also gain
|
|
|
|
|
the scaling improvements.
|
2008-08-13 05:23:56 +08:00
|
|
|
|
m4_bmatch m4_bpatsubsts m4_case m4_cond m4_do m4_dquote_elt
|
|
|
|
|
m4_foreach m4_join m4_list_cmp m4_map m4_map_sep m4_max
|
|
|
|
|
m4_min m4_shiftn
|
Provide O(n) replacement macros for M4 1.4.x.
* lib/m4sugar/foreach.m4: New file.
(m4_foreach, m4_case, _m4_shiftn, m4_do, m4_dquote_elt, _m4_map)
(m4_join, m4_joinall, m4_list_cmp, _m4_minmax): Replace m4sugar
macros based on $@ recursion [fast on M4 1.6, but quadratic on M4
1.4.x] with versions based on m4_for/m4_foreach [slow on 1.6, but
linear on 1.4.x].
* lib/m4sugar/m4sugar.m4 (m4_init): Dynamically load new file if
older M4 is assumed.
(m4_map_sep): Optimize.
(m4_max, m4_min): Refactor, by adding...
(_m4_max, _m4_min, _m4_minmax): ...more efficient helpers.
(m4_defn, m4_popdef, m4_undefine): Use foreach recursion.
* lib/m4sugar/Makefile.am (dist_m4sugarlib_DATA): Distribute new
file.
* tests/m4sugar.at (M4 loops): Add a stress test that takes
forever if m4_foreach and friends are quadratic.
* NEWS: Mention this.
Signed-off-by: Eric Blake <ebb9@byu.net>
2008-07-26 05:17:38 +08:00
|
|
|
|
|
2008-06-06 05:18:11 +08:00
|
|
|
|
** AT_KEYWORDS once again performs expansion on its argument, such that
|
|
|
|
|
AT_KEYWORDS([m4_if([$1], [], [default])]) no longer complains about
|
|
|
|
|
the possibly unexpanded m4_if [regression introduced in 2.62].
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
** Config header templates '#undef UNDEFINED /* comment */' do not lead to
|
2008-06-17 14:42:14 +08:00
|
|
|
|
nested comments any more; regression introduced in 2.62.
|
|
|
|
|
|
2008-04-13 21:06:31 +08:00
|
|
|
|
|
2008-04-06 06:56:13 +08:00
|
|
|
|
* Major changes in Autoconf 2.62 (2008-04-05) [stable]
|
|
|
|
|
Released by Eric Blake, based on git versions 2.61a.*.
|
2006-12-17 03:09:50 +08:00
|
|
|
|
|
2007-10-11 04:11:05 +08:00
|
|
|
|
** Many optimizations have been applied to make overall execution faster.
|
|
|
|
|
|
2007-10-11 02:02:03 +08:00
|
|
|
|
** Autotest now makes use of shell functions.
|
|
|
|
|
|
2007-10-10 13:18:34 +08:00
|
|
|
|
** config.status now uses awk instead of sed also for config headers.
|
|
|
|
|
|
|
|
|
|
- As a side effect, AC_DEFINE and AC_DEFINE_UNQUOTED now handle multi-line
|
|
|
|
|
values, i.e., backslash-newline combinations are handled correctly.
|
|
|
|
|
Further, for config headers, the total size of values is not limited by
|
|
|
|
|
the POSIX length limit of text lines any more, only each single line.
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
** New config variable 'top_build_prefix'.
|
2007-11-09 14:51:19 +08:00
|
|
|
|
|
2007-10-13 02:14:03 +08:00
|
|
|
|
** New Autoconf macros:
|
|
|
|
|
AC_AUTOCONF_VERSION AC_OPENMP AC_PATH_PROGS_FEATURE_CHECK
|
2007-05-22 01:39:09 +08:00
|
|
|
|
|
2007-02-28 08:03:33 +08:00
|
|
|
|
** AC_C_BIGENDIAN now supports universal binaries a la Mac OS X.
|
|
|
|
|
|
2007-05-15 00:54:55 +08:00
|
|
|
|
** AC_C_RESTRICT now prefers to #define 'restrict' to a variant spelling
|
|
|
|
|
like '__restrict' if the variant spelling is available, as this is
|
|
|
|
|
more likely to work when mixing C and C++ code.
|
|
|
|
|
|
2007-04-13 15:52:57 +08:00
|
|
|
|
** AC_CHECK_ALIGNOF's type argument T is now documented better: it must
|
|
|
|
|
be a string of tokens such that "T y;" is a valid member declaration
|
|
|
|
|
in a struct.
|
|
|
|
|
|
|
|
|
|
** AC_CHECK_SIZEOF now accepts objects as well as types: the general rule
|
|
|
|
|
is that sizeof (X) works, then AC_CHECK_SIZEOF (X) should work.
|
|
|
|
|
|
|
|
|
|
** AC_CHECK_TYPE and AC_CHECK_TYPES now work on any C type-name; formerly,
|
|
|
|
|
they did not work for function types. In C++, they now work on any
|
|
|
|
|
type-id that can be the operand of sizeof; this is similar to C,
|
|
|
|
|
except it excludes anonymous struct and union types. Formerly,
|
|
|
|
|
some (but not all) C++ types involving anonymous struct and union
|
|
|
|
|
were accepted, though this was not documented.
|
|
|
|
|
|
2007-09-06 05:46:29 +08:00
|
|
|
|
** AC_CONFIG_LINKS now prefers to link against files in the build tree
|
|
|
|
|
if found, and it works to link against a file of the same name in
|
|
|
|
|
the source tree, even if both trees coincide.
|
2007-09-04 06:16:12 +08:00
|
|
|
|
|
|
|
|
|
** AC_INIT no longer alters $@; regression introduced in 2.60.
|
|
|
|
|
|
Centralize all system extensions checks.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
(AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
AC_USE_SYSTEM_EXTENSIONS.
(AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
(AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
* doc/autoconf.texi (Posix Variants): Reword this section,
emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
rather than a series of system-specific checks.
(Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
AC_MINIX.
* NEWS: Document this change.
* THANKS: Update.
Reported by Martin Koeppe.
2007-09-12 01:13:13 +08:00
|
|
|
|
** AC_USE_SYSTEM_EXTENSIONS now defines _ALL_SOURCE for Interix platforms.
|
|
|
|
|
|
2007-10-16 02:18:24 +08:00
|
|
|
|
** AS_HELP_STRING no longer underquotes its first argument; it also handles
|
|
|
|
|
the case where the first argument contains single-quoted commas.
|
|
|
|
|
For example, "AS_HELP_STRING([-a, [--arg[=foo]]], [bar])" produces:
|
2008-04-06 06:56:13 +08:00
|
|
|
|
" -a, --arg[=foo] bar"
|
2007-10-16 02:18:24 +08:00
|
|
|
|
Additionally, the macro now takes two additional arguments,
|
|
|
|
|
indent-column and wrap-column; these should not normally be needed,
|
|
|
|
|
but can be used to fine-tune how the output text is wrapped.
|
2007-09-28 09:16:51 +08:00
|
|
|
|
|
2008-01-22 14:00:44 +08:00
|
|
|
|
** AC_PROG_INSTALL now requires an install program that can install multiple
|
|
|
|
|
files into a target directory.
|
|
|
|
|
|
2007-09-04 06:16:12 +08:00
|
|
|
|
** The command 'autoconf -' now correctly processes a file from stdin.
|
|
|
|
|
|
2008-03-04 06:53:10 +08:00
|
|
|
|
** 'autoreconf -m' now honors $MAKE.
|
|
|
|
|
|
2007-10-06 01:26:26 +08:00
|
|
|
|
** For all of the directory arguments for 'configure', such as '--prefix'
|
|
|
|
|
or '--bindir', trailing slashes are stripped. As an example, if
|
|
|
|
|
tab completion in the user's shell appends trailing slashes, the
|
|
|
|
|
command './configure --prefix=/usr/' will still result in an
|
|
|
|
|
expanded libdir value of /usr/lib, not /usr//lib.
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
** 'configure --help=recursive' now works in read-only trees and from
|
Fix `configure --help=recursive' in unconfigured/read-only trees.
* lib/m4sugar/m4sh.m4 (_AS_LN_S_PREPARE): Avoid errors when `.'
is not writable, use 'cp -p' in this case, in the hope that it
will not actually be needed. Still try removing files, in case
of other write errors.
* lib/autoconf/general.m4 (_AC_INIT_SRCDIR): For ac_confdir,
use $as_myself, not $0.
(_AC_INIT_HELP): For --help=recursive, if the subdir does not
exist, try again in the the source tree. This change assumes
that the subpackage configure script is capable of running
--help=recursive in the source tree.
* tests/torture.at (Configuring subdirectories, Deep Package):
Adjust tests to expose both issues, also try invocation as
`sh configure ...' and plain `configure ...' with PATH adjusted.
* NEWS, THANKS: Update.
Report by Hans Ulrich Niedermann.
2007-10-17 05:50:03 +08:00
|
|
|
|
unconfigured build trees.
|
|
|
|
|
|
2008-03-26 13:55:22 +08:00
|
|
|
|
** If precious variables differ only in whitespace, then the cache consistency
|
|
|
|
|
check warns instead of fails, and reuses the old value.
|
|
|
|
|
|
2007-10-19 20:27:46 +08:00
|
|
|
|
** AT_BANNER is now documented.
|
|
|
|
|
|
2007-09-27 07:23:00 +08:00
|
|
|
|
** AT_SETUP now handles macro expansions properly when calculating line
|
2007-10-09 01:53:00 +08:00
|
|
|
|
length.
|
2007-09-27 07:23:00 +08:00
|
|
|
|
|
2007-09-04 06:16:12 +08:00
|
|
|
|
** Autotest now determines $srcdir correctly.
|
|
|
|
|
|
2008-01-28 21:57:46 +08:00
|
|
|
|
** Testsuites built by autotest now accept a -C/--directory=DIR option
|
|
|
|
|
to adjust the working directory prior to creating files.
|
|
|
|
|
|
2007-02-02 22:07:38 +08:00
|
|
|
|
** Autoconf now requires GNU M4 1.4.5 or later. Earlier versions of M4 have
|
|
|
|
|
a bug in macro tracing that interferes with the interaction between
|
2008-04-03 03:21:33 +08:00
|
|
|
|
Autoconf and Automake. GNU M4 1.4.11 or later is recommended. The
|
2007-09-08 22:48:49 +08:00
|
|
|
|
configure search for a working M4 is improved.
|
2007-02-02 22:07:38 +08:00
|
|
|
|
|
2008-04-06 06:56:13 +08:00
|
|
|
|
** For portability with the eventual M4 2.0, macros should no longer use
|
|
|
|
|
anything larger than $9 to refer to arguments.
|
|
|
|
|
|
2007-10-12 04:46:40 +08:00
|
|
|
|
** Documentation for m4sugar is improved.
|
|
|
|
|
|
|
|
|
|
- The following macros were previously available as undocumented
|
|
|
|
|
interfaces; the macros are now documented as stable interfaces.
|
|
|
|
|
|
Make AC_PREREQ faster and more robust.
* lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
(m4_version_prereq): Inline constant expansions.
(m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
Rewrite in terms of [] list, not () list.
(_m4_list_cmp, _m4_version_unletter): New helper macros.
(m4_version_unletter): Write wrapper around new implementation to
preserve old semantics.
(m4_version_compare): Pass correct type of list, and avoid
overhead of flattening expressions too early.
(m4_do): Move to be near other quoting macros.
(m4_max, m4_min): Always result in decimal output.
* doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
Move m4_do...
(Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
(Text processing Macros): Move m4_version_compare...
(Number processing Macros): ...to this new node; document m4_cmp,
m4_list_cmp, m4_sign, m4_max, m4_min.
* tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
up on bugs fixed by this patch.
* NEWS: Document new macros.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-13 21:47:46 +08:00
|
|
|
|
__oline__ m4_assert m4_bmatch m4_bpatsubsts m4_car m4_case
|
|
|
|
|
m4_cdr m4_default m4_divert_once m4_divert_pop m4_divert_push
|
Some more m4sugar documentation.
* lib/m4sugar/m4sugar.m4: Clean up macro order.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing and useful.
(Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
m4_divert, m4_undivert, __file__, __line__, __oline__.
(Diagnostics): New node, documenting m4_assert, m4_errprintn,
m4_fatal, m4_location, m4_warn.
(Diversion support): New node, documenting m4_divert_push,
m4_divert_pop, m4_divert_text, m4_divert_once.
(Text processing Macros): Sort. Add m4_flatten, m4_join,
m4_newline, m4_strip, m4_text_box, m4_text_wrap.
(Programming in M4sh, Macro Names): Document namespace
limitations. Mention that non-Automake macros should not begin
with `AM_'.
(Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
as obsolescent.
(Printing Messages): Change cross-reference.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-12 04:17:13 +08:00
|
|
|
|
m4_divert_text m4_do m4_errprintn m4_fatal m4_flatten
|
|
|
|
|
m4_ifndef m4_ifset m4_ifval m4_ifvaln m4_location
|
Make AC_PREREQ faster and more robust.
* lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
(m4_version_prereq): Inline constant expansions.
(m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
Rewrite in terms of [] list, not () list.
(_m4_list_cmp, _m4_version_unletter): New helper macros.
(m4_version_unletter): Write wrapper around new implementation to
preserve old semantics.
(m4_version_compare): Pass correct type of list, and avoid
overhead of flattening expressions too early.
(m4_do): Move to be near other quoting macros.
(m4_max, m4_min): Always result in decimal output.
* doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
Move m4_do...
(Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
(Text processing Macros): Move m4_version_compare...
(Number processing Macros): ...to this new node; document m4_cmp,
m4_list_cmp, m4_sign, m4_max, m4_min.
* tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
up on bugs fixed by this patch.
* NEWS: Document new macros.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-13 21:47:46 +08:00
|
|
|
|
m4_n m4_shiftn m4_strip m4_warn
|
2007-10-12 04:46:40 +08:00
|
|
|
|
|
|
|
|
|
- The following macros were previously available as undocumented
|
Make AC_PREREQ faster and more robust.
* lib/m4sugar/m4sugar.m4 (m4_ignore, m4_unquote): New macros.
(m4_version_prereq): Inline constant expansions.
(m4_list_cmp): Reduce number of expansions, by avoiding m4_case.
Rewrite in terms of [] list, not () list.
(_m4_list_cmp, _m4_version_unletter): New helper macros.
(m4_version_unletter): Write wrapper around new implementation to
preserve old semantics.
(m4_version_compare): Pass correct type of list, and avoid
overhead of flattening expressions too early.
(m4_do): Move to be near other quoting macros.
(m4_max, m4_min): Always result in decimal output.
* doc/autoconf.texi (Looping constructs): Add m4_car, m4_cdr.
Move m4_do...
(Evaluation Macros): ...here. Add m4_ignore, m4_unquote.
(Text processing Macros): Move m4_version_compare...
(Number processing Macros): ...to this new node; document m4_cmp,
m4_list_cmp, m4_sign, m4_max, m4_min.
* tests/m4sugar.at (m4@&t@_version_compare): Enhance test, to pick
up on bugs fixed by this patch.
* NEWS: Document new macros.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-13 21:47:46 +08:00
|
|
|
|
interfaces, but had bug fixes or semantic changes as part of this
|
|
|
|
|
release. Packages that relied on the undocumented behavior
|
|
|
|
|
should be analyzed to make sure they will still work with the
|
|
|
|
|
new documented behavior.
|
2007-10-12 04:46:40 +08:00
|
|
|
|
|
Fix m4_map, and add some more utility macros.
* lib/m4sugar/m4sugar.m4 (m4_apply, m4_count, m4_dquote_elt)
(m4_echo, m4_make_list): New documented macros.
(_m4_quote, _m4_shift2): New helper macros.
(m4_map): Change semantics to allow calling macro without
arguments.
(m4_map_sep): Likewise. Also change semantics to quote separator,
to match m4_join and m4_append.
(m4_version_unletter): Fix use of m4_map.
* doc/autoconf.texi (Evaluation Macros): Document m4_apply,
m4_count, m4_dquote_elt, m4_echo, m4_make_list.
(Text processing Macros): Mention m4_dquote as a faster
alternative to joining with commas.
(Looping constructs): Document m4_map, m4_map_sep.
* NEWS: Mention new macros.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-17 02:00:00 +08:00
|
|
|
|
m4_cmp m4_list_cmp m4_join m4_map m4_map_sep m4_sign
|
|
|
|
|
m4_text_box m4_text_wrap m4_version_compare
|
2007-10-12 04:46:40 +08:00
|
|
|
|
|
2008-03-11 21:11:44 +08:00
|
|
|
|
- The m4_wrap macro used to have unspecified order, but now
|
|
|
|
|
guarantees FIFO order. m4_wrap_lifo was added to guarantee LIFO
|
|
|
|
|
order.
|
|
|
|
|
|
2007-10-12 04:46:40 +08:00
|
|
|
|
- Packages using the undocumented m4sugar macro m4_PACKAGE_VERSION
|
|
|
|
|
should consider using the new AC_AUTOCONF_VERSION instead.
|
|
|
|
|
|
|
|
|
|
- m4sugar macros that are not documented in the manual are still
|
|
|
|
|
deemed experimental, and should not be used outside of Autoconf.
|
|
|
|
|
|
|
|
|
|
** The m4sugar macros m4_append and m4_append_uniq, first documented in
|
|
|
|
|
2.60, have been fixed to treat both the string and the separator
|
|
|
|
|
arguments consistently with regards to quoting. Prior to this fix,
|
|
|
|
|
m4_append_uniq could mistakenly duplicate entries if the expansion
|
|
|
|
|
of the separator resulted in a different string (for example, if it
|
|
|
|
|
contained quotes, a comma, or a macro name). However, it means
|
|
|
|
|
that programs previously using
|
|
|
|
|
m4_append([name], [string], [[, ]])
|
|
|
|
|
are now using a four-character separator instead of the intended
|
|
|
|
|
comma and space. If you need portability to earlier versions of
|
|
|
|
|
Autoconf, you can insert the following snippet after AC_INIT but
|
|
|
|
|
before any other macro expansions, to enforce the new semantics:
|
|
|
|
|
m4_pushdef([m4_append], [m4_define([$1],
|
|
|
|
|
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
|
|
|
|
|
Additionally, m4_append_uniq now takes optional parameters that can
|
2007-10-18 23:05:09 +08:00
|
|
|
|
be used to take action depending on whether anything was appended,
|
|
|
|
|
and warns if a non-empty separator occurs within the string being
|
|
|
|
|
appended, since that can lead to duplicates.
|
2007-10-12 04:46:40 +08:00
|
|
|
|
|
|
|
|
|
** The following m4sugar macros are new:
|
2007-10-18 23:05:09 +08:00
|
|
|
|
m4_append_uniq_w m4_apply m4_combine m4_cond m4_count
|
|
|
|
|
m4_dquote_elt m4_echo m4_expand m4_ignore m4_make_list m4_max
|
2008-03-11 21:11:44 +08:00
|
|
|
|
m4_min m4_newline m4_shift2 m4_shift3 m4_unquote m4_wrap_lifo
|
2007-09-13 11:21:18 +08:00
|
|
|
|
|
2006-12-19 13:41:18 +08:00
|
|
|
|
** Warnings are now generated by default when an installer invokes
|
|
|
|
|
'configure' with an unknown --enable-* or --with-* option.
|
|
|
|
|
These warnings can be disabled with the new AC_DISABLE_OPTION_CHECKING
|
|
|
|
|
macro, or by invoking 'configure' with --disable-option-checking.
|
2006-12-17 03:09:50 +08:00
|
|
|
|
|
Centralize all system extensions checks.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
(AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
AC_USE_SYSTEM_EXTENSIONS.
(AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
(AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
* doc/autoconf.texi (Posix Variants): Reword this section,
emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
rather than a series of system-specific checks.
(Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
AC_MINIX.
* NEWS: Document this change.
* THANKS: Update.
Reported by Martin Koeppe.
2007-09-12 01:13:13 +08:00
|
|
|
|
** Existing obsolete macros
|
2007-09-09 05:47:37 +08:00
|
|
|
|
The documentation for the following macros is adjusted to make it
|
|
|
|
|
more clear that they have previously been marked obsolete, as their
|
|
|
|
|
functionality can be accomplished by other macros. We have no
|
|
|
|
|
current plans to remove them from Autoconf.
|
|
|
|
|
|
|
|
|
|
AC_ENABLE AC_STRUCT_ST_BLKSIZE AC_STRUCT_ST_RDEV AC_WITH
|
2007-04-07 13:54:25 +08:00
|
|
|
|
|
Centralize all system extensions checks.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): Inline code
from AC_AIX, AC_GNU_SOURCE, AC_MINIX. Add Interix support.
(AC_AIX, AC_GNU_SOURCE, AC_MINIX): Obsolete, and point to
AC_USE_SYSTEM_EXTENSIONS.
(AC_ISC_POSIX): Obsolete, and point to AC_SEARCH_LIBS.
(AC_XENIX_DIR, AC_IRIX_SUN): Promote proper quoting in AU_DEFUN.
* doc/autoconf.texi (Posix Variants): Reword this section,
emphasizing that AC_USE_SYSTEM_EXTENSIONS is the preferred method,
rather than a series of system-specific checks.
(Obsolete Macros): Add AC_AIX, AC_GNU_SOURCE, AC_ISC_POSIX,
AC_MINIX.
* NEWS: Document this change.
* THANKS: Update.
Reported by Martin Koeppe.
2007-09-12 01:13:13 +08:00
|
|
|
|
** Newly obsolete macros
|
|
|
|
|
The following macros have been marked obsolete, as they only
|
|
|
|
|
perform a subset of AC_USE_SYSTEM_EXTENSIONS. We have no current
|
|
|
|
|
plans to remove them.
|
|
|
|
|
|
|
|
|
|
AC_AIX AC_GNU_SOURCE AC_ISC_POSIX AC_MINIX
|
|
|
|
|
|
2007-09-09 05:47:37 +08:00
|
|
|
|
** AC_C_LONG_DOUBLE is obsolescent.
|
|
|
|
|
The documentation now says that AC_C_LONG_DOUBLE is obsolescent: it
|
|
|
|
|
tests for problems that are so old that it is no longer of
|
|
|
|
|
practical importance on current systems. New programs need not use
|
|
|
|
|
AC_C_LONG_DOUBLE. We have no current plans to remove it.
|
2007-04-07 13:54:25 +08:00
|
|
|
|
|
Some more m4sugar documentation.
* lib/m4sugar/m4sugar.m4: Clean up macro order.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing and useful.
(Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
m4_divert, m4_undivert, __file__, __line__, __oline__.
(Diagnostics): New node, documenting m4_assert, m4_errprintn,
m4_fatal, m4_location, m4_warn.
(Diversion support): New node, documenting m4_divert_push,
m4_divert_pop, m4_divert_text, m4_divert_once.
(Text processing Macros): Sort. Add m4_flatten, m4_join,
m4_newline, m4_strip, m4_text_box, m4_text_wrap.
(Programming in M4sh, Macro Names): Document namespace
limitations. Mention that non-Automake macros should not begin
with `AM_'.
(Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
as obsolescent.
(Printing Messages): Change cross-reference.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-12 04:17:13 +08:00
|
|
|
|
** AC_DIAGNOSE, AC_WARNING, and AC_FATAL are obsolescent.
|
|
|
|
|
The documentation now favors the use of M4sugar macros m4_warn and
|
|
|
|
|
m4_fatal, since the naming makes it more obvious that the
|
|
|
|
|
diagnostics are associated with M4 expansion (ie. when running
|
2021-07-21 05:01:43 +08:00
|
|
|
|
'autoconf'), and offers less confusion with the AC_MSG_ERROR,
|
Some more m4sugar documentation.
* lib/m4sugar/m4sugar.m4: Clean up macro order.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing and useful.
(Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
m4_divert, m4_undivert, __file__, __line__, __oline__.
(Diagnostics): New node, documenting m4_assert, m4_errprintn,
m4_fatal, m4_location, m4_warn.
(Diversion support): New node, documenting m4_divert_push,
m4_divert_pop, m4_divert_text, m4_divert_once.
(Text processing Macros): Sort. Add m4_flatten, m4_join,
m4_newline, m4_strip, m4_text_box, m4_text_wrap.
(Programming in M4sh, Macro Names): Document namespace
limitations. Mention that non-Automake macros should not begin
with `AM_'.
(Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
as obsolescent.
(Printing Messages): Change cross-reference.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-12 04:17:13 +08:00
|
|
|
|
AC_MSG_FAILURE, and AC_MSG_WARN macros which manage diagnostics
|
2021-07-21 05:01:43 +08:00
|
|
|
|
when running 'configure'. We have no current plans to remove these
|
Some more m4sugar documentation.
* lib/m4sugar/m4sugar.m4: Clean up macro order.
* doc/autoconf.texi (Programming in M4): Lighten the warning on
using m4sugar; it is stabilizing and useful.
(Redefined M4 Macros): Touch up wording on M4 builtins; sort. Add
m4_divert, m4_undivert, __file__, __line__, __oline__.
(Diagnostics): New node, documenting m4_assert, m4_errprintn,
m4_fatal, m4_location, m4_warn.
(Diversion support): New node, documenting m4_divert_push,
m4_divert_pop, m4_divert_text, m4_divert_once.
(Text processing Macros): Sort. Add m4_flatten, m4_join,
m4_newline, m4_strip, m4_text_box, m4_text_wrap.
(Programming in M4sh, Macro Names): Document namespace
limitations. Mention that non-Automake macros should not begin
with `AM_'.
(Reporting Messages): Mark AC_DIAGNOSE, AC_WARNING, and AC_FATAL
as obsolescent.
(Printing Messages): Change cross-reference.
Signed-off-by: Eric Blake <ebb9@byu.net>
2007-10-12 04:17:13 +08:00
|
|
|
|
macros.
|
|
|
|
|
|
2008-04-13 21:06:31 +08:00
|
|
|
|
|
2006-12-12 08:54:52 +08:00
|
|
|
|
* Major changes in Autoconf 2.61a (2006-12-11)
|
2006-11-18 04:01:04 +08:00
|
|
|
|
|
2006-12-12 01:45:26 +08:00
|
|
|
|
** AC_FUNC_FSEEKO was broken in 2.61; it didn't make fseeko and ftello visible
|
|
|
|
|
on many platforms. This has been fixed.
|
|
|
|
|
|
2006-11-28 11:29:47 +08:00
|
|
|
|
** AC_FUNC_SETVBUF_REVERSED is now obsolete. It is still defined for backward
|
|
|
|
|
compatibility but it does nothing. The macro was already
|
|
|
|
|
obsolescent, as the last systems to have the problem were those
|
|
|
|
|
based on SVR2, which became obsolete in 1987. The macro had bugs
|
|
|
|
|
on some modern systems and could no longer be maintained reliably
|
|
|
|
|
due to lack of ancient systems to test it on.
|
|
|
|
|
|
Rewrite config files generation: avoid quadratic growth in
the number of substituted variables by using awk instead of sed
for the bulk of the substitutions.
* NEWS: Mention this.
* doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
forbidden in the output (and thus input) file.
* lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
(_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
generate just one large awk script for substitutions,
eliminating much of the earlier complexity, while adding some
new complexity. Only expand the substitution templates at
configure time, for smaller configure script size. If
_AC_SUBST_FILES are used, test 'awk' for working getline support
at config.status time. If absent, interpolate through the
shell. The awk script was written with much help
from Paolo Bonzini and Paul Eggert.
(_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
(_AC_SED_FRAG_NUM): Likewise.
(_AC_SUBST_CMDS): Renamed from...
(_AC_SED_CMDS): ...this.
(_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
* tests/torture.at (Substitute a 2000-byte string): Also
substitute a line with 1000 words, and a variable with several
long lines.
(Substitute and define special characters): Test awk special
characters, and put substitution input strings `@foo@' in the
output, to test that no recursion happens; test several other
combinations from Paolo Bonzini.
2006-11-27 01:53:10 +08:00
|
|
|
|
** config.status now uses awk instead of sed for most substitutions, for speed.
|
2006-12-12 01:39:00 +08:00
|
|
|
|
|
2006-12-12 08:54:52 +08:00
|
|
|
|
- As a side effect multi-line values of substituted variables no
|
|
|
|
|
longer have a small limit in total size, though for portability
|
|
|
|
|
each line should not exceed the POSIX length limit for text lines.
|
2006-12-12 01:39:00 +08:00
|
|
|
|
|
|
|
|
|
- It is now documented that Makefile.in should not contain
|
|
|
|
|
overlapping variable occurrences, e.g., @VAR1@VAR2@.
|
|
|
|
|
Autoconf's behavior was always iffy in such cases, and the
|
|
|
|
|
awk implementation has changed the behavior.
|
|
|
|
|
|
|
|
|
|
** Many uses of 'echo' have been rewritten so that Autoconf-generated
|
|
|
|
|
scripts have fewer problems with strings or file names containing
|
|
|
|
|
embedded special characters such as backslash or leading "-". This
|
2021-07-21 05:01:43 +08:00
|
|
|
|
was implemented by using 'printf '%s\n' "$foo"' instead of 'echo
|
2006-12-12 01:39:00 +08:00
|
|
|
|
"$foo"' when printf works. Due to the implementation technique
|
|
|
|
|
used, Autoconf-generated scripts now run considerably more slowly
|
|
|
|
|
on ancient implementations lacking printf. However, this should
|
|
|
|
|
not be a problem, since Autoconf-generated scripts in practice
|
|
|
|
|
invariably find a more-modern shell these days.
|
Rewrite config files generation: avoid quadratic growth in
the number of substituted variables by using awk instead of sed
for the bulk of the substitutions.
* NEWS: Mention this.
* doc/autoconf.texi (Setting Output Variables): `|#_!!_#|' is also
forbidden in the output (and thus input) file.
* lib/autoconf/status.m4 (_AC_AWK_LITERAL_LIMIT): New macro.
(_AC_OUTPUT_FILES_PREPARE): Instead of several sed scripts,
generate just one large awk script for substitutions,
eliminating much of the earlier complexity, while adding some
new complexity. Only expand the substitution templates at
configure time, for smaller configure script size. If
_AC_SUBST_FILES are used, test 'awk' for working getline support
at config.status time. If absent, interpolate through the
shell. The awk script was written with much help
from Paolo Bonzini and Paul Eggert.
(_AC_SED_CMD_NUM, _AC_SED_DELIM_NUM, _AC_SED_FRAG): Removed.
(_AC_SED_FRAG_NUM): Likewise.
(_AC_SUBST_CMDS): Renamed from...
(_AC_SED_CMDS): ...this.
(_AC_OUTPUT_FILE): Use _AC_SUBST_CMDS.
* tests/torture.at (Substitute a 2000-byte string): Also
substitute a line with 1000 words, and a variable with several
long lines.
(Substitute and define special characters): Test awk special
characters, and put substitution input strings `@foo@' in the
output, to test that no recursion happens; test several other
combinations from Paolo Bonzini.
2006-11-27 01:53:10 +08:00
|
|
|
|
|
2008-04-13 21:06:31 +08:00
|
|
|
|
|
2006-11-18 03:04:48 +08:00
|
|
|
|
* Major changes in Autoconf 2.61 (2006-11-17)
|
|
|
|
|
|
|
|
|
|
** New macros AC_C_FLEXIBLE_ARRAY_MEMBER, AC_C_VARARRAYS.
|
|
|
|
|
|
|
|
|
|
** AC_ARG_ENABLE and AC_ARG_WITH now allow '.' in feature and package names.
|
2006-10-23 15:18:28 +08:00
|
|
|
|
|
2008-04-13 21:06:31 +08:00
|
|
|
|
|
2006-10-23 14:50:26 +08:00
|
|
|
|
* Major changes in Autoconf 2.60b (2006-10-22)
|
2006-08-29 20:37:57 +08:00
|
|
|
|
|
2006-10-12 03:35:57 +08:00
|
|
|
|
** BIN_SH
|
|
|
|
|
Autoconf-generated shell scripts no longer export BIN_SH, due to
|
|
|
|
|
configuration hassles with this. Installers who need BIN_SH in
|
|
|
|
|
their environment should set it before invoking 'configure' and
|
|
|
|
|
'make'. As far as we know, this affects only Unixware installations.
|
|
|
|
|
|
2006-09-01 06:38:30 +08:00
|
|
|
|
** Obsolescent macros
|
|
|
|
|
The documentation now says that the following macros are obsolescent,
|
|
|
|
|
as they are superseded by Gnulib:
|
|
|
|
|
|
2023-01-21 14:54:33 +08:00
|
|
|
|
AC_FUNC_FNMATCH AC_FUNC_FNMATCH_GNU AC_FUNC_GETLOADAVG
|
|
|
|
|
AC_REPLACE_FNMATCH
|
2006-09-01 06:38:30 +08:00
|
|
|
|
|
|
|
|
|
New programs should use the Gnulib counterparts of these macros.
|
|
|
|
|
We have no current plans to remove them from Autoconf.
|
|
|
|
|
|
2006-10-23 14:50:26 +08:00
|
|
|
|
** AC_COMPUTE_INT no longer caches or reports results.
|
2006-09-02 13:37:07 +08:00
|
|
|
|
|
2006-09-27 04:43:00 +08:00
|
|
|
|
** AC_CHECK_DECL now also works with aggregate objects.
|
|
|
|
|
|
2006-10-23 14:12:40 +08:00
|
|
|
|
** AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for NonStop platforms.
|
2006-10-12 06:38:42 +08:00
|
|
|
|
|
2006-09-26 14:04:35 +08:00
|
|
|
|
** GNU M4 1.4.7 or later is now recommended.
|
|
|
|
|
|
2006-10-20 09:34:32 +08:00
|
|
|
|
** m4_mkstemp
|
|
|
|
|
New M4sugar macro, which is more secure than the POSIX M4 maketemp.
|
|
|
|
|
|
|
|
|
|
** m4_maketemp
|
|
|
|
|
Now an alias for m4_mkstemp.
|
|
|
|
|
|
2006-08-26 05:42:41 +08:00
|
|
|
|
* Major changes in Autoconf 2.60a (2006-08-25)
|
2006-08-26 05:40:50 +08:00
|
|
|
|
|
2006-11-18 03:04:48 +08:00
|
|
|
|
** GNU M4 1.4.6 or later is now recommended.
|
2006-07-18 01:30:44 +08:00
|
|
|
|
|
2006-08-25 02:08:16 +08:00
|
|
|
|
** The check for C99 now tests for varargs macros, as documented.
|
|
|
|
|
It also tests that the preprocessor supports 64-bit integers.
|
|
|
|
|
|
* NEWS: Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H"
rather than "#if HAVE_STDLIB_H", so that it now works with "gcc
-Wundef -Werror". Problem reported by David Fang in
<http://lists.gnu.org/archive/html/autoconf/2006-08/msg00045.html>.
* doc/autoconf.texi (Header Templates, Default Includes):
(Particular Functions, Generic Functions, Header Portability):
(Particular Headers, Generic Headers, Generic Declarations, Guidelines):
(Obsolete Macros, AC_FOO_IFELSE vs AC_TRY_FOO):
(Present But Cannot Be Compiled, Preprocessor Symbol Index):
Prefer #ifdef to #if.
* lib/autoconf/c.m4 (AC_C_BIGENDIAN): Prefer #ifdef to #if.
* lib/autoconf/functions.m4 (AC_FUNC_ALLOCA, _AC_FUNC_MALLOC_IF):
(AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETVBUF_REVERSED, _AC_FUNC_VFORK):
Likewise.
* lib/autoconf/headers.m4 (_AC_INCLUDES_DEFAULT_REQUIREMENTS):
(AC_HEADER_RESOLV, AC_HEADER_STAT): Likewise.
* lib/autoconf/specific.m4 (AC_DECL_SYS_SYGLIST):
(AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
* lib/autoconf/types.m4 (AC_STRUCT_TIMEZONE): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STAT): Don't assume that
S_ISDIR etc. are valid for use in #if; POSIX doesn't guarantee
this.
2006-08-16 00:24:42 +08:00
|
|
|
|
** Autoconf now uses constructs like "#ifdef HAVE_STDLIB_H" rather than
|
|
|
|
|
"#if HAVE_STDLIB_H", so that it now works with "gcc -Wundef -Werror".
|
|
|
|
|
|
2006-07-07 22:21:57 +08:00
|
|
|
|
** The functionality of the undocumented _AC_COMPUTE_INT is now provided
|
|
|
|
|
by a public and documented macro, AC_COMPUTE_INT. The parameters to the
|
|
|
|
|
two macros are different, so autoupdate will not change the old private name
|
|
|
|
|
to the new one. _AC_COMPUTE_INT may be removed in a future release.
|
|
|
|
|
|
2006-07-05 16:34:26 +08:00
|
|
|
|
** AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT now require
|
|
|
|
|
that long long types be at least 64 bits wide, as C99 and tradition
|
|
|
|
|
requires. Formerly, they accepted implementations of any width.
|
|
|
|
|
|
2006-06-24 03:09:49 +08:00
|
|
|
|
|
2006-06-24 00:20:17 +08:00
|
|
|
|
* Major changes in Autoconf 2.60
|
2006-06-05 21:32:11 +08:00
|
|
|
|
|
2006-06-24 00:26:20 +08:00
|
|
|
|
Released 2006-06-23, by Ralf Wildenhues.
|
2006-06-24 00:25:25 +08:00
|
|
|
|
|
2006-06-20 07:12:16 +08:00
|
|
|
|
** Autoconf no longer depends on whether m4wrap is FIFO (as Posix requires)
|
2006-06-21 03:49:14 +08:00
|
|
|
|
or LIFO (as in GNU M4 1.4.x). GNU M4 2.0 is expected to conform to Posix
|
2006-06-20 07:12:16 +08:00
|
|
|
|
here, so m4wrap/m4_wrap users should no longer depend on LIFO behavior.
|
|
|
|
|
|
2006-06-23 22:56:30 +08:00
|
|
|
|
** Provide a way to turn off warnings about the changed directory variables.
|
|
|
|
|
|
2006-04-13 15:31:47 +08:00
|
|
|
|
* Major changes in Autoconf 2.59d
|
|
|
|
|
|
2006-06-05 20:48:24 +08:00
|
|
|
|
Released 2006-06-05, by Ralf Wildenhues.
|
|
|
|
|
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
|
** GNU make now recommended for VPATH builds
|
|
|
|
|
INSTALL now suggests VPATH builds (e.g., "sh ../srcdir/configure")
|
|
|
|
|
only if you use GNU make. In practice, other 'make' implementations
|
|
|
|
|
have too many subtle incompatibilities in their support for VPATH.
|
2006-06-06 14:18:40 +08:00
|
|
|
|
Many packages (including Autoconf itself) are portable to other
|
|
|
|
|
'make' implementations, but some packages are not, and recommending
|
|
|
|
|
GNU make keeps the installation instructions simpler.
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
|
|
|
|
|
|
** Even more safety checks for the new Directory variables:
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Warn about suspicious '${datarootdir}' found in config files output.
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
|
|
2006-05-28 05:59:04 +08:00
|
|
|
|
** AC_TRY_COMMAND, AC_TRY_EVAL, ac_config_guess, ac_config_sub, ac_configure
|
|
|
|
|
These never-documented macros and variables have been marked with
|
|
|
|
|
comments saying that they may be removed in a future release,
|
|
|
|
|
because their use can lead to unintended code being executed.
|
|
|
|
|
If you need functionality that only these macros or variables
|
|
|
|
|
currently supply, please write bug-autoconf@gnu.org.
|
2006-05-21 08:19:42 +08:00
|
|
|
|
|
2006-05-22 23:54:09 +08:00
|
|
|
|
** AC_SUBST, AC_DEFINE
|
|
|
|
|
Literal arguments to these are passed to m4_pattern_allow now.
|
|
|
|
|
|
2006-05-08 04:36:01 +08:00
|
|
|
|
** AC_PROG_CC_STDC
|
|
|
|
|
Passing 'ac_cv_prog_cc_stdc=no' to 'configure' now sets ac_cv_prog_cc_c99
|
|
|
|
|
and ac_cv_prog_cc_c89 to 'no' as well, for backward compatibility with
|
|
|
|
|
obsolete K&R tests in the Automake test suite.
|
|
|
|
|
|
2006-05-20 13:39:03 +08:00
|
|
|
|
** AC_PROG_CXX_C_O
|
|
|
|
|
New macro.
|
|
|
|
|
|
2006-05-11 07:05:15 +08:00
|
|
|
|
** AC_PROG_MKDIR_P
|
|
|
|
|
New macro.
|
|
|
|
|
|
|
|
|
|
** AS_MKDIR_P
|
|
|
|
|
Now more robust with special characters in file names, or when
|
|
|
|
|
multiple processes create the same directory at the same time.
|
|
|
|
|
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
|
** Obsolescent macros
|
|
|
|
|
The documentation now says that the following macros are obsolescent:
|
|
|
|
|
they test for problems that are so old that they are no longer of
|
|
|
|
|
practical importance on current systems.
|
|
|
|
|
|
2006-06-05 16:39:57 +08:00
|
|
|
|
AC_C_BACKSLASH_A AC_FUNC_MEMCMP AC_HEADER_DIRENT
|
|
|
|
|
AC_C_CONST AC_FUNC_SELECT_ARGTYPES AC_HEADER_STAT
|
|
|
|
|
AC_C_PROTOTYPES AC_FUNC_SETPGRP AC_HEADER_STDC
|
|
|
|
|
AC_C_STRINGIZE AC_FUNC_SETVBUF_REVERSED AC_HEADER_SYS_WAIT
|
|
|
|
|
AC_C_VOLATILE AC_FUNC_STAT AC_HEADER_TIME
|
|
|
|
|
AC_FUNC_CLOSEDIR_VOID AC_FUNC_STRFTIME AC_ISC_POSIX
|
|
|
|
|
AC_FUNC_GETPGRP AC_FUNC_UTIME_NULL AC_PROG_GCC_TRADITIONAL
|
|
|
|
|
AC_FUNC_LSTAT AC_FUNC_VPRINTF AC_STRUCT_TM
|
* NEWS: GNU make now recommended for VPATH builds.
Mention that some macros are now documented to be obsolescent.
* doc/autoconf.texi:
Prefer "current" to "modern" to describe
currently-used (albeit perhaps old-fashioned) hosts.
Mention which ancient features no longer need to be worried about.
setgid -> set-group-ID
setuid -> set-user-ID (these are the Posix terms)
Fix some misuses of "only".
(AC_C_BACKSLASH_A, AC_C_CONST, AC_C_PROTOTYPES):
(AC_C_STRINGIZE, AC_C_VOLATILE, AC_FUNC_CLOSEDIR_VOID):
(AC_FUNC_GETPGRP, AC_FUNC_LSTAT, AC_FUNC_MEMCMP):
(AC_FUNC_SELECT_ARGTYPES, AC_FUNC_SETPGRP):
(AC_FUNC_SETVBUF_REVERSED, AC_FUNC_STAT, AC_FUNC_STRFTIME):
(AC_FUNC_STRNLEN, AC_FUNC_UTIME_NULL, AC_FUNC_VPRINTF):
(AC_HEADER_DIRENT, AC_HEADER_STAT, AC_HEADER_STDC):
(AC_HEADER_SYS_WAIT, AC_HEADER_TIME, AC_ISC_POSIX):
(AC_PROG_GCC_TRADITIONAL, AC_STRUCT_TM):
Mention that these macros are obsolescent.
(Installation Directory Variables): shall -> should
(File Descriptors): Mention that 0, 1, 2 might get reopened.
Mention that it's now safe to use 3 and 4.
(Limitations of Usual Tools): cp -r is now specified by Posix.
Omit longwinded and obsolescent discussion of cp -f.
Modernize discussion of expr, ls.
(Limitations of Make): Modernize discussion of VPATH builds.
Mention $? as a workaround in some cases.
* doc/install.texi (Basic Installation):
Mention "./configure; make; make install" first. Be more
specific about why this file is generic. Remove unnecessary
parens. Remove misleading "only". Remove obsolete advice
about csh. Don't say "configure" takes awhile; say it
might take a while. Suggest CFLAGS=-g rather than CFLAGS=-O2,
and CC=c99 rather than CC=c89, as these are blessed by current
Posix. Recommend GNU make if doing a VPATH build.
2006-06-04 15:38:28 +08:00
|
|
|
|
|
|
|
|
|
New programs need not use these macros. We have no current plans to
|
|
|
|
|
remove them.
|
|
|
|
|
|
2006-06-05 20:16:06 +08:00
|
|
|
|
** autoreconf
|
|
|
|
|
For compatibility with future Libtool 2.0, autoreconf will invoke
|
2021-07-21 05:01:43 +08:00
|
|
|
|
libtoolize with the option '--ltdl' now, if LT_CONFIG_LTDL_DIR is
|
2006-06-05 20:16:06 +08:00
|
|
|
|
used.
|
|
|
|
|
|
2004-12-18 00:17:18 +08:00
|
|
|
|
* Major changes in Autoconf 2.59c
|
|
|
|
|
|
2006-04-13 05:20:19 +08:00
|
|
|
|
Released 2006-04-12, by Ralf Wildenhues.
|
2006-04-13 05:19:27 +08:00
|
|
|
|
|
2005-02-24 07:24:49 +08:00
|
|
|
|
** The configure command now redirects standard input from /dev/null,
|
|
|
|
|
to help avoid problems with subsidiary commands that might mistakenly
|
|
|
|
|
read standard input. AS_ORIGINAL_STDIN_FD points to the original
|
|
|
|
|
standard input before this redirection, if you really want configure to
|
|
|
|
|
read from standard input.
|
|
|
|
|
|
2005-01-05 15:53:52 +08:00
|
|
|
|
** Directory variables adjusted to recent changes in the GNU Coding Standards.
|
|
|
|
|
The following directory variables are new:
|
|
|
|
|
|
|
|
|
|
datarootdir read-only architecture-independent data root [PREFIX/share]
|
|
|
|
|
localedir locale-specific message catalogs [DATAROOTDIR/locale]
|
|
|
|
|
docdir documentation root [DATAROOTDIR/doc/PACKAGE]
|
|
|
|
|
htmldir html documentation [DOCDIR]
|
|
|
|
|
dvidir dvi documentation [DOCDIR]
|
|
|
|
|
pdfdir pdf documentation [DOCDIR]
|
|
|
|
|
psdir ps documentation [DOCDIR]
|
|
|
|
|
|
|
|
|
|
The following variables have new default values:
|
|
|
|
|
|
|
|
|
|
datadir read-only architecture-independent data [DATAROOTDIR]
|
|
|
|
|
infodir info documentation [DATAROOTDIR/info]
|
|
|
|
|
mandir man documentation [DATAROOTDIR/man]
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
This means that if you use any of '@datadir@', '@infodir@', or
|
|
|
|
|
'@mandir@' in a file, you will have to ensure '${datarootdir}' is
|
2006-04-13 04:40:21 +08:00
|
|
|
|
defined in this file. As a temporary measure, if any of those are
|
2021-07-21 05:01:43 +08:00
|
|
|
|
found but no mention of 'datarootdir', the substitutions will be
|
|
|
|
|
replaced with values that do not contain '${datarootdir}', and a
|
2006-04-13 04:40:21 +08:00
|
|
|
|
warning will be issued.
|
2005-05-15 02:33:30 +08:00
|
|
|
|
|
2005-05-20 16:13:15 +08:00
|
|
|
|
** @top_builddir@ is now a dir name: it is always nonempty and doesn't have
|
|
|
|
|
a trailing slash. Similar change will be made to ac_top_builddir in a
|
|
|
|
|
future release; the old style value, which matches (../)*, is (and will
|
|
|
|
|
continue to be) available as ac_top_build_prefix.
|
|
|
|
|
|
2005-07-07 05:39:30 +08:00
|
|
|
|
** AC_C_TYPEOF
|
|
|
|
|
New macro to check for support of 'typeof' syntax a la GNU C.
|
|
|
|
|
|
Import macros from gnulib (often changing their name).
* NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
The manual mentions Gnulib more prominently.
* doc/autoconf.texi (Gnulib): New node.
(Pointers): Add Gnulib URL.
(Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
(Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
Gnulib section.
(Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
suggest a #define rather than a typedef for _Bool, and mention
Gnulib rather than trying to substitute stdbool code.
(Generic Headers): Add AC_CHECK_HEADERS_ONCE.
(Generic Declarations): Add AC_CHECK_DECLS_ONCE.
(Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
AC_STRUCT_DIRENT_D_TYPE.
(Particular Types): Mention stdint.h and inttypes.h as standard
headers too.
Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T,
AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
(C Compiler): Move AC_C_LONG_DOUBLE to ...
(Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
(Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
(Coding Style). Don't mention m4_expand_once.
* lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
(AC_CHECK_FUNCS): Use it.
(AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
(AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
* lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
(AC_HEADER_ASSERT): New macro.
(AC_HEADER_STDBOOL): Don't assume "#error" works.
Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
Catch a bug in an HP-UX C compiler.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
* lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
(AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
(AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
(_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
New macros.
2006-04-09 05:46:03 +08:00
|
|
|
|
** AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_HEADERS_ONCE
|
|
|
|
|
New "once-only" variants of commonly-used macros, to make 'configure'
|
|
|
|
|
smaller and faster in common cases.
|
|
|
|
|
|
|
|
|
|
** AC_FUNC_STRTOLD
|
|
|
|
|
New macro to check for strtold with C99 semantics.
|
|
|
|
|
|
|
|
|
|
** AC_HEADER_ASSERT
|
|
|
|
|
New macro that lets builder disable assertions at 'configure'-time.
|
|
|
|
|
|
2005-09-19 01:10:24 +08:00
|
|
|
|
** AC_PATH_X
|
|
|
|
|
Now checks for X11/Xlib.h and XrmInitialize (X proper) rather than
|
|
|
|
|
X11/Intrinsic.h and XtMalloc (Xt).
|
|
|
|
|
|
2006-04-06 06:41:36 +08:00
|
|
|
|
** AC_PRESERVE_HELP_ORDER
|
2021-07-21 05:01:43 +08:00
|
|
|
|
New macro that causes 'configure' to display help strings for AC_ARG_ENABLE
|
2006-04-06 06:41:36 +08:00
|
|
|
|
and AC_ARG_WITH arguments in one region, in the order defined. The default
|
|
|
|
|
behavior is to group options of each classes separately.
|
|
|
|
|
|
* NEWS: AC_PROG_CC and AC_PROG_CXX no longer declare 'exit'.
* doc/autoconf.texi (Function Portability): Mention that C++
has trouble with 'exit'.
(Guidelines): Test programs shouldn't use 'exit'.
* lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
Remove; all uses removed.
(AC_LANG_INT_SAVE(C), AC_C_BIGENDIAN):
Return from 'main' instead of calling 'exit'.
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA, AC_FUNC_CLOSEDIR_VOID):
(_AC_FUNC_FNMATCH_IF, AC_FUNC_GETGROUPS):
(AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, _AC_FUNC_MALLOC_IF):
(AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_MMAP, _AC_FUNC_REALLOC_IF):
(AC_FUNC_SETPGRP, _AC_FUNC_STAT, AC_FUNC_STRTOD, AC_FUNC_STRERROR_R):
(AC_FUNC_STRNLEN, AC_FUNC_SETVBUF_REVERSED, AC_FUNC_UTIME_NULL):
(_AC_FUNC_FORK, _AC_FUNC_VFORK, AC_FUNC_WAIT3): Likewise.
* lib/autoconf/headers.m4 (AC_HEADER_STDC): Likewise.
* lib/autoconf/specific.m4 (AC_SYS_RESTARTABLE_SYSCALLS): Likewise.
* lib/autoconf/types.m4 (AC_TYPE_GETGROUPS): Likewise.
* tests/compile.at: Likewsie.
2006-04-03 11:18:39 +08:00
|
|
|
|
** AC_PROG_CC, AC_PROG_CXX
|
|
|
|
|
No longer automatically arrange to declare the 'exit' function of C,
|
|
|
|
|
when a C++ compiler is used. Standard Autoconf macros no longer use
|
|
|
|
|
'exit', so this is no longer an issue for them. If you use C++, and
|
|
|
|
|
want to call 'exit', you'll have to arrange for its declaration
|
|
|
|
|
yourself. But we now suggest you return from 'main' instead.
|
|
|
|
|
|
2005-01-03 15:35:21 +08:00
|
|
|
|
** AC_PROG_CC_C89, AC_PROG_CC_C99
|
|
|
|
|
New macros for ISO C99 support. AC_PROG_CC_C89 and AC_PROG_CC_C99
|
|
|
|
|
check for ANSI C89 and ISO C99 support respectively.
|
|
|
|
|
|
|
|
|
|
** AC_PROG_CC_STDC
|
|
|
|
|
Has been unobsoleted, and will check if the compiler supports ISO
|
|
|
|
|
C99, falling back to ANSI C89 if not. ac_cv_prog_cc_stdc is
|
|
|
|
|
retained for backwards compatibility, assuming the value of
|
|
|
|
|
ac_cv_prog_cc_c99 or ac_cv_prog_cc_c89 (whichever is valid, in
|
|
|
|
|
that order).
|
|
|
|
|
|
Import macros from gnulib (often changing their name).
* NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
The manual mentions Gnulib more prominently.
* doc/autoconf.texi (Gnulib): New node.
(Pointers): Add Gnulib URL.
(Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
(Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
Gnulib section.
(Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
suggest a #define rather than a typedef for _Bool, and mention
Gnulib rather than trying to substitute stdbool code.
(Generic Headers): Add AC_CHECK_HEADERS_ONCE.
(Generic Declarations): Add AC_CHECK_DECLS_ONCE.
(Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
AC_STRUCT_DIRENT_D_TYPE.
(Particular Types): Mention stdint.h and inttypes.h as standard
headers too.
Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T,
AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
(C Compiler): Move AC_C_LONG_DOUBLE to ...
(Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
(Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
(Coding Style). Don't mention m4_expand_once.
* lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
(AC_CHECK_FUNCS): Use it.
(AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
(AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
* lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
(AC_HEADER_ASSERT): New macro.
(AC_HEADER_STDBOOL): Don't assume "#error" works.
Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
Catch a bug in an HP-UX C compiler.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
* lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
(AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
(AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
(_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
New macros.
2006-04-09 05:46:03 +08:00
|
|
|
|
** AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE
|
2006-05-01 01:06:13 +08:00
|
|
|
|
New macros for checking commonly-used members of struct dirent.
|
Import macros from gnulib (often changing their name).
* NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
The manual mentions Gnulib more prominently.
* doc/autoconf.texi (Gnulib): New node.
(Pointers): Add Gnulib URL.
(Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
(Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
Gnulib section.
(Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
suggest a #define rather than a typedef for _Bool, and mention
Gnulib rather than trying to substitute stdbool code.
(Generic Headers): Add AC_CHECK_HEADERS_ONCE.
(Generic Declarations): Add AC_CHECK_DECLS_ONCE.
(Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
AC_STRUCT_DIRENT_D_TYPE.
(Particular Types): Mention stdint.h and inttypes.h as standard
headers too.
Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T,
AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
(C Compiler): Move AC_C_LONG_DOUBLE to ...
(Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
(Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
(Coding Style). Don't mention m4_expand_once.
* lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
(AC_CHECK_FUNCS): Use it.
(AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
(AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
* lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
(AC_HEADER_ASSERT): New macro.
(AC_HEADER_STDBOOL): Don't assume "#error" works.
Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
Catch a bug in an HP-UX C compiler.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
* lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
(AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
(AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
(_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
New macros.
2006-04-09 05:46:03 +08:00
|
|
|
|
|
2005-06-01 15:16:50 +08:00
|
|
|
|
** AC_SUBST
|
2006-06-23 23:18:44 +08:00
|
|
|
|
The substituted value can now contain newlines.
|
2005-06-01 15:16:50 +08:00
|
|
|
|
|
|
|
|
|
** AC_SUBST_FILE
|
|
|
|
|
The substitution now occurs only when @variable@ is on a line by itself,
|
|
|
|
|
optionally surrounded by spaces and tabs. The whole line is replaced.
|
|
|
|
|
|
Import macros from gnulib (often changing their name).
* NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
The manual mentions Gnulib more prominently.
* doc/autoconf.texi (Gnulib): New node.
(Pointers): Add Gnulib URL.
(Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
(Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
Gnulib section.
(Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
suggest a #define rather than a typedef for _Bool, and mention
Gnulib rather than trying to substitute stdbool code.
(Generic Headers): Add AC_CHECK_HEADERS_ONCE.
(Generic Declarations): Add AC_CHECK_DECLS_ONCE.
(Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
AC_STRUCT_DIRENT_D_TYPE.
(Particular Types): Mention stdint.h and inttypes.h as standard
headers too.
Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T,
AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
(C Compiler): Move AC_C_LONG_DOUBLE to ...
(Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
(Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
(Coding Style). Don't mention m4_expand_once.
* lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
(AC_CHECK_FUNCS): Use it.
(AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
(AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
* lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
(AC_HEADER_ASSERT): New macro.
(AC_HEADER_STDBOOL): Don't assume "#error" works.
Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
Catch a bug in an HP-UX C compiler.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
* lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
(AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
(AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
(_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
New macros.
2006-04-09 05:46:03 +08:00
|
|
|
|
** AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER
|
|
|
|
|
New macros to check for long double, and whether it is wider than double.
|
|
|
|
|
The old macro AC_C_TYPE_LONG_DOUBLE has been marked as obsolete;
|
|
|
|
|
applications should switch to the new macro.
|
|
|
|
|
|
|
|
|
|
** AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
|
|
|
|
|
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT, AC_TYPE_SSIZE_T,
|
|
|
|
|
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T,
|
|
|
|
|
AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT
|
|
|
|
|
New macros to check for C99 and POSIX types.
|
|
|
|
|
|
|
|
|
|
** AC_USE_SYSTEM_EXTENSIONS
|
|
|
|
|
New macro to enable extensions to Posix.
|
|
|
|
|
|
2005-11-01 14:24:53 +08:00
|
|
|
|
** AH_HEADER
|
|
|
|
|
New macro which is defined to the name of the first declared config header
|
|
|
|
|
or undefined if no config headers have been declared yet.
|
|
|
|
|
|
2006-01-11 16:05:55 +08:00
|
|
|
|
** AS_HELP_STRING
|
|
|
|
|
The macro correctly handles quadrigraphs now.
|
|
|
|
|
|
2006-02-15 15:00:29 +08:00
|
|
|
|
** AS_BOURNE_COMPATIBLE, AS_SHELL_SANITIZE, AS_CASE
|
|
|
|
|
These macros are new or published now.
|
|
|
|
|
|
2005-02-05 15:58:43 +08:00
|
|
|
|
** AT_COPYRIGHT
|
|
|
|
|
New macro for copyright notices in testsuite files.
|
|
|
|
|
|
2005-05-15 02:33:30 +08:00
|
|
|
|
** ALLOCA, LIBOBJS, LTLIBOBJS
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Object names added to these variables are now prefixed with '${LIBOBJDIR}',
|
|
|
|
|
as in '${LIBOBJDIR}alloca.o'. LIBOBJDIR is meant to be defined from
|
|
|
|
|
'Makefile.in' in case the object files lie in a different directory.
|
2006-04-11 01:57:17 +08:00
|
|
|
|
The LIBOBJDIR feature is experimental.
|
2005-05-15 02:33:30 +08:00
|
|
|
|
|
2006-01-31 20:07:40 +08:00
|
|
|
|
** autoreconf
|
|
|
|
|
Supports --no-recursive now.
|
|
|
|
|
|
2006-02-21 03:45:30 +08:00
|
|
|
|
** New macros to support Erlang/OTP.
|
|
|
|
|
New macros for configuring paths to Erlang tools and libraries:
|
|
|
|
|
AC_ERLANG_PATH_ERLC, AC_ERLANG_NEED_ERLC, AC_ERLANG_PATH_ERL,
|
|
|
|
|
AC_ERLANG_NEED_ERL, AC_ERLANG_CHECK_LIB, AC_ERLANG_SUBST_ROOT_DIR,
|
|
|
|
|
AC_ERLANG_SUBST_LIB_DIR.
|
|
|
|
|
|
|
|
|
|
New macros for configuring installation of Erlang libraries:
|
|
|
|
|
AC_ERLANG_SUBST_INSTALL_LIB_DIR, AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR.
|
|
|
|
|
|
Import macros from gnulib (often changing their name).
* NEWS: AC_C_TYPE_LONG_DOUBLE is now obsolete.
New macros AC_CHECK_DECLS_ONCE, AC_CHECK_FUNCS_ONCE,
AC_CHECK_HEADERS_ONCE, AC_FUNC_STRTOLD, AC_HEADER_ASSERT,
AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE,
AC_TYPE_LONG_DOUBLE, AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_INT8_T,
AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_LONG_INT,
AC_TYPE_UINT8_T, AC_TYPE_UINT16_T, AC_TYPE_UINT32_T,
AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T, AC_TYPE_UINTPTR_T,
AC_TYPE_UNSIGNED_LONG_LONG_INT, AC_USE_SYSTEM_EXTENSIONS.
The manual mentions Gnulib more prominently.
* doc/autoconf.texi (Gnulib): New node.
(Pointers): Add Gnulib URL.
(Particular Functions): Alphabetize. Add AC_FUNC_STRTOLD.
(Generic Functions): Add AC_CHECK_FUNCS_ONCE. Refer to new
Gnulib section.
(Particular Headers): Add AC_HEADER_ASSERT. For stdbool.h,
suggest a #define rather than a typedef for _Bool, and mention
Gnulib rather than trying to substitute stdbool code.
(Generic Headers): Add AC_CHECK_HEADERS_ONCE.
(Generic Declarations): Add AC_CHECK_DECLS_ONCE.
(Particular Structures): Add AC_STRUCT_DIRENT_D_INO,
AC_STRUCT_DIRENT_D_TYPE.
(Particular Types): Mention stdint.h and inttypes.h as standard
headers too.
Add AC_TYPE_INT8_T, AC_TYPE_INT16_T, AC_TYPE_INT32_T, AC_TYPE_INT64_T,
AC_TYPE_INTMAX_T, AC_TYPE_INTPTR_T, AC_TYPE_LONG_DOUBLE,
AC_TYPE_LONG_DOUBLE_WIDER, AC_TYPE_LONG_LONG_INT, AC_TYPE_UINT8_T,
AC_TYPE_UINT16_T, AC_TYPE_UINT32_T, AC_TYPE_UINT64_T, AC_TYPE_UINTMAX_T,
AC_TYPE_UINTPTR_T, AC_TYPE_UNSIGNED_LONG_LONG_INT.
(C Compiler): Move AC_C_LONG_DOUBLE to ...
(Obsolete Macros): here. Under AC_LONG_DOUBLE, mention
AC_TYPE_LONG_DOUBLE or AC_TYPE_LONG_DOUBLE_WIDER instead.
(Posix Variants): Add AC_USE_SYSTEM_EXTENSIONS.
(Coding Style). Don't mention m4_expand_once.
* lib/autoconf/c.m4 (AC_C_LONG_DOUBLE): Implement via
AC_TYPE_LONG_DOUBLE_WIDER. Now obsolete.
* lib/autoconf/functions.m4 (_AH_CHECK_FUNCS): New macro.
(AC_CHECK_FUNCS): Use it.
(AC_CHECK_FUNCS_ONCE, AC_FUNC_STRTOLD): New macros.
(AC_FUNC_WAIT3): "the Open Group standards" -> "POSIX".
* lib/autoconf/general.m4 (AC_CHECK_DECLS_ONCE): New macro.
* lib/autoconf/headers.m4 (AC_CHECK_HEADERS_ONCE): New macro.
(AC_HEADER_ASSERT): New macro.
(AC_HEADER_STDBOOL): Don't assume "#error" works.
Catch a bug in IBM AIX xlc compiler version 6.0.0.0.
Catch a bug in an HP-UX C compiler.
* lib/autoconf/specific.m4 (AC_USE_SYSTEM_EXTENSIONS): New macro.
* lib/autoconf/types.m4 (AC_TYPE_INTMAX_T. AC_TYPE_UINTMAX_T):
(AC_TYPE_INTPTR_T, AC_TYPE_UINTPTR_T. AC_TYPE_LONG_DOUBLE):
(AC_TYPE_LONG_DOUBLE_WIDER, AC_C_LONG_DOUBLE, AC_TYPE_LONG_LONG_INT):
(AC_TYPE_UNSIGNED_LONG_LONG_INT, _AC_TYPE_INT, _AC_TYPE_UNSIGNED_INT):
(_AC_STRUCT_DIRENT, AC_STRUCT_DIRENT_D_INO, AC_STRUCT_DIRENT_D_TYPE):
New macros.
2006-04-09 05:46:03 +08:00
|
|
|
|
** The manual now mentions Gnulib more prominently.
|
|
|
|
|
|
2006-03-21 04:28:55 +08:00
|
|
|
|
** New macros to support Objective C.
|
|
|
|
|
AC_PROG_OBJC, AC_PROG_OBJCPP.
|
|
|
|
|
|
2004-03-16 06:00:05 +08:00
|
|
|
|
* Major changes in Autoconf 2.59b
|
|
|
|
|
|
2004-08-21 07:59:22 +08:00
|
|
|
|
Released 2004-08-20, by Paul Eggert.
|
|
|
|
|
|
2004-03-16 06:00:05 +08:00
|
|
|
|
** AC_CHECK_ALIGNOF
|
|
|
|
|
New macro that computes the default alignment of a type.
|
|
|
|
|
|
2004-03-19 16:57:51 +08:00
|
|
|
|
** AC_CHECK_TOOL, AC_PATH_TOOL, AC_CHECK_TOOLS
|
|
|
|
|
When cross-compiling, these macros will give a warning if the tool
|
|
|
|
|
is not prefixed. In the future, unprefixed cross tools will not
|
|
|
|
|
be detected; please consult the info documentation for information
|
|
|
|
|
about the reason of this change.
|
|
|
|
|
|
|
|
|
|
** AC_CHECK_TARGET_TOOL, AC_PATH_TARGET_TOOL, AC_CHECK_TARGET_TOOLS
|
|
|
|
|
New macros that detect programs whose name is prefixed with the
|
|
|
|
|
target type, if the build type and target type are different.
|
|
|
|
|
|
2004-08-04 06:06:09 +08:00
|
|
|
|
** AC_REQUIRE_AUX_FILE
|
|
|
|
|
New trace macro that declares expected auxiliary files.
|
|
|
|
|
|
2004-01-28 04:07:12 +08:00
|
|
|
|
** AC_PROG_GREP
|
|
|
|
|
New macro that tests for a grep program that accepts as a long a line
|
|
|
|
|
as possible.
|
|
|
|
|
|
|
|
|
|
** AC_PROG_EGREP, AC_PROG_FGREP
|
|
|
|
|
These macros now require AC_PROG_GREP, and try EGREP="$GREP -E" and
|
|
|
|
|
FGREP="$GREP -F" respectively if possible, or else run a path search for
|
|
|
|
|
a program that accepts as long a line as possible.
|
|
|
|
|
|
2004-01-23 16:21:51 +08:00
|
|
|
|
** AC_PROG_SED
|
|
|
|
|
New macro that tests for a sed program that truncates as few characters
|
|
|
|
|
as possible.
|
2004-11-30 05:24:57 +08:00
|
|
|
|
|
2003-11-12 23:21:00 +08:00
|
|
|
|
* Major changes in Autoconf 2.59
|
2003-11-06 17:32:24 +08:00
|
|
|
|
|
|
|
|
|
Released 2003-11-04, by Akim Demaille
|
|
|
|
|
|
|
|
|
|
** ac_abs_builddir etc.
|
2004-08-21 03:58:06 +08:00
|
|
|
|
Absolute file names were actually relative in 2.58.
|
2004-11-30 05:24:57 +08:00
|
|
|
|
|
2003-11-05 18:38:00 +08:00
|
|
|
|
* Major changes in Autoconf 2.58
|
2003-11-04 16:48:23 +08:00
|
|
|
|
|
|
|
|
|
Released 2003-11-04, by Akim Demaille
|
2003-10-24 18:01:27 +08:00
|
|
|
|
|
2003-10-27 19:12:49 +08:00
|
|
|
|
** core.*
|
|
|
|
|
core.* files are no longer removed, as they may be valid user files.
|
|
|
|
|
|
2003-10-03 15:30:01 +08:00
|
|
|
|
** autoreconf and auxiliary directory
|
|
|
|
|
Autoreconf creates the auxiliary directory if needed. This is
|
|
|
|
|
especially useful for initial "bootstrapping" of fresh CVS checkouts.
|
|
|
|
|
|
2003-10-08 21:12:19 +08:00
|
|
|
|
** AC_CONFIG_MACRO_DIR
|
2006-06-21 03:49:14 +08:00
|
|
|
|
Use this macro to declare the directory for local M4 macros for aclocal.
|
2003-10-08 21:12:19 +08:00
|
|
|
|
|
2003-10-23 15:49:15 +08:00
|
|
|
|
** AC_LIBOBJS
|
|
|
|
|
No longer includes twice the same file in LIBOBJS if invoked
|
|
|
|
|
multiple times.
|
|
|
|
|
|
2003-09-26 21:55:03 +08:00
|
|
|
|
** AC_CONFIG_COMMANDS
|
|
|
|
|
The directory for its first argument is automatically created. For
|
|
|
|
|
instance, with
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_COMMANDS([src/modules.hh], [...])
|
|
|
|
|
|
|
|
|
|
$top_builddir/src/ is created if needed.
|
|
|
|
|
|
2003-06-23 19:11:41 +08:00
|
|
|
|
** Autotest and local.at
|
|
|
|
|
The optional file local.at is always included in Autotest test suites.
|
|
|
|
|
|
First stab at preserving warnings between calls to autom4te,
including when the cache is used.
There are still several issues: (i) there are too many runs of m4
(one for include, one for warnings, and some more), (ii) warnings
spreading on several lines are not handled gracefully, (iii) the
code meant to have the call stack display for errors does not work
(its handling should move from m4 to autom4te).
* bin/autom4te.in Autom4te::Channels, Autom4te::ChannelDefs):
Use them.
(@preselect): Add m4_warn.
($exit_status): Remove, use $exit_code.
($help): Use Autom4te::ChannelDefs::usage.
(&handle_m4): No longer define the m4_warnings.
At each run, extract and report the warnings.
Always cache the result, including if the exit status is on
failure, since if nothing changes, we should result in the same
failure, hence we can use the cache.
* lib/m4sugar/m4sugar.m4 (m4_warning_ifelse, _m4_warning_ifelse)
(_m4_warning_error_ifelse, __m4_warning_error_ifelse, _m4_warn):
Remove.
(m4_warn): Redefine as a do-nothing: it is its invocation that
matters, as warnings are now reported via traces.
* lib/autoconf/general.m4 (AC_DIAGNOSE): Don't make it a copy of
the contents of m4_warn: make it _call_ m4_warn, so that tracing
the latter reveals calls to the former.
Adjust the tests.
* tests/m4sugar.at (m4@&t@_warn): Use existing warning categories.
2003-08-22 01:25:28 +08:00
|
|
|
|
** Warnings
|
|
|
|
|
The warnings are always issued, including with cached runs.
|
|
|
|
|
This became a significant problem since aclocal and automake can
|
|
|
|
|
run autoconf behind the scene.
|
|
|
|
|
|
2003-08-27 19:35:08 +08:00
|
|
|
|
** autoheader warnings
|
|
|
|
|
The warnings of autoheader can be turned off, using --warning.
|
|
|
|
|
For instance, -Wno-obsolete disables the complaints about acconfig.h
|
|
|
|
|
and other deprecated constructs.
|
|
|
|
|
|
2003-05-14 16:34:10 +08:00
|
|
|
|
** New macros
|
2003-11-04 16:48:23 +08:00
|
|
|
|
AC_C_RESTRICT, AC_INCLUDES_DEFAULT, AC_LANG_ASSERT, AC_LANG_WERROR,
|
|
|
|
|
AS_SET_CATFILE.
|
2003-04-13 04:53:19 +08:00
|
|
|
|
|
2003-05-17 17:44:22 +08:00
|
|
|
|
** AC_DECL_SYS_SIGLIST
|
|
|
|
|
Works again.
|
|
|
|
|
|
2003-05-29 04:03:52 +08:00
|
|
|
|
** AC_FUNC_MKTIME
|
|
|
|
|
Now checks that mktime is the inverse of localtime.
|
|
|
|
|
|
2003-05-14 16:34:10 +08:00
|
|
|
|
** Improve DJGPP portability
|
2003-02-28 18:11:07 +08:00
|
|
|
|
The Autoconf tools and configure behave better under DJGPP.
|
|
|
|
|
|
2003-05-14 16:34:10 +08:00
|
|
|
|
** Present But Cannot Be Compiled
|
2003-02-28 18:46:19 +08:00
|
|
|
|
New FAQ section dedicated to the mystic
|
|
|
|
|
|
|
|
|
|
configure: WARNING: pi.h: present but cannot be compiled
|
|
|
|
|
configure: WARNING: pi.h: check for missing prerequisite headers?
|
|
|
|
|
configure: WARNING: pi.h: proceeding with the preprocessor's result
|
2003-04-13 04:53:19 +08:00
|
|
|
|
messages.
|
2003-02-28 18:46:19 +08:00
|
|
|
|
|
2003-05-14 16:34:10 +08:00
|
|
|
|
** Concurrent executions of autom4te
|
2003-05-06 16:51:21 +08:00
|
|
|
|
autom4te now locks its internal files, which enables concurrent
|
|
|
|
|
executions of autom4te, likely to happen if automake, autoconf,
|
|
|
|
|
autoheader etc. are run simultaneously.
|
|
|
|
|
|
2003-05-14 16:34:10 +08:00
|
|
|
|
** Libtool
|
|
|
|
|
Use of Libtool 1.5 and higher is encouraged. Compatibility with
|
|
|
|
|
Libtool pre-1.4 is not checked.
|
|
|
|
|
|
2003-05-23 05:52:43 +08:00
|
|
|
|
** Autotest
|
2003-06-12 19:03:55 +08:00
|
|
|
|
Testsuites no longer rerun failed tests in verbose mode; instead,
|
|
|
|
|
failures are logged while the test is run.
|
|
|
|
|
|
|
|
|
|
In addition, expected failures can be marked as such.
|
2003-05-14 16:34:10 +08:00
|
|
|
|
|
2003-02-21 00:57:46 +08:00
|
|
|
|
* Major changes in Autoconf 2.57
|
2002-12-03 15:59:21 +08:00
|
|
|
|
|
2003-02-28 18:11:07 +08:00
|
|
|
|
Released 2002-12-03 by Paul Eggert.
|
2002-12-03 15:59:21 +08:00
|
|
|
|
|
|
|
|
|
Bug fixes for problems with AIX linker, with freestanding C compilers,
|
2006-06-21 03:49:14 +08:00
|
|
|
|
with GNU M4 limitations, and with obsolete copies of GNU documents.
|
2002-12-03 15:59:21 +08:00
|
|
|
|
|
|
|
|
|
The Free Documentation License has been upgraded from 1.1 to 1.2.
|
|
|
|
|
|
|
|
|
|
* Major changes in Autoconf 2.56
|
2002-11-15 17:17:30 +08:00
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 2002-11-15 by Akim Demaille.
|
2002-11-15 17:17:30 +08:00
|
|
|
|
|
|
|
|
|
One packaging problem fixed (config/install-sh was not executable).
|
2002-09-13 18:21:07 +08:00
|
|
|
|
|
2002-11-15 17:17:30 +08:00
|
|
|
|
* Major changes in Autoconf 2.55
|
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 2002-11-14 by Akim Demaille.
|
2002-09-26 19:57:28 +08:00
|
|
|
|
|
2002-10-28 02:14:58 +08:00
|
|
|
|
Release tips:
|
2002-10-25 19:52:37 +08:00
|
|
|
|
|
2009-05-20 00:45:08 +08:00
|
|
|
|
Have your configure.ac checked by autoscan ("autoscan").
|
|
|
|
|
Try the warning options ("autoreconf -fv -Wall").
|
2002-10-25 19:52:37 +08:00
|
|
|
|
|
2002-10-25 16:44:23 +08:00
|
|
|
|
** Documentation
|
|
|
|
|
|
|
|
|
|
- AC_CHECK_HEADER, AC_CHECK_HEADERS
|
|
|
|
|
More information on proper use.
|
|
|
|
|
|
2002-10-28 02:19:38 +08:00
|
|
|
|
- Writing Test Programs
|
|
|
|
|
|
|
|
|
|
This sections explains how to write good test sources to use with
|
2005-10-20 14:13:33 +08:00
|
|
|
|
AC_COMPILE_IFELSE etc. It documents AC_LANG_PROGRAM and so forth.
|
2002-10-28 02:19:38 +08:00
|
|
|
|
|
2002-10-28 02:24:51 +08:00
|
|
|
|
- AC_FOO_IFELSE vs. AC_TRY_FOO
|
|
|
|
|
|
|
|
|
|
Explains why Autoconf moves from AC_TRY_COMPILE etc. to
|
|
|
|
|
AC_COMPILE_IFELSE and AC_LANG_PROGRAM etc.
|
|
|
|
|
|
2002-10-16 14:38:50 +08:00
|
|
|
|
** autoreconf
|
|
|
|
|
|
|
|
|
|
- Is more robust to different Gettext installations.
|
|
|
|
|
|
|
|
|
|
- Produces messages (when --verbose) to be understood by Emacs'
|
|
|
|
|
compile mode.
|
|
|
|
|
|
2002-10-29 16:09:05 +08:00
|
|
|
|
- Supports -W/--warnings.
|
|
|
|
|
|
2002-11-04 01:39:29 +08:00
|
|
|
|
- -m/--make
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Once the GNU Build System reinstalled, run './config.status
|
2002-11-04 01:39:29 +08:00
|
|
|
|
--recheck && ./config.status && make' if possible.
|
|
|
|
|
|
2002-10-30 17:00:23 +08:00
|
|
|
|
** autom4te
|
2002-10-28 02:19:38 +08:00
|
|
|
|
|
2002-10-30 17:00:23 +08:00
|
|
|
|
- Supports --cache, and --no-cache.
|
2002-10-25 19:52:37 +08:00
|
|
|
|
|
|
|
|
|
- ~/.autom4te.cfg makes it possible to disable the caching mechanism
|
2021-07-21 05:01:43 +08:00
|
|
|
|
(autom4te.cache). See 'Customizing autom4te' in the documentation.
|
2002-10-25 19:52:37 +08:00
|
|
|
|
|
2002-11-12 18:54:44 +08:00
|
|
|
|
** config.status
|
|
|
|
|
Supports --quiet.
|
|
|
|
|
|
2002-10-30 17:00:23 +08:00
|
|
|
|
** Obsolete options
|
|
|
|
|
|
|
|
|
|
Support for the obsoleted options -m, --macrodir, -l, --localdir is
|
|
|
|
|
dropped in favor of the safer --include/--prepend-include scheme.
|
|
|
|
|
|
2002-09-27 17:25:41 +08:00
|
|
|
|
** Macros
|
|
|
|
|
|
|
|
|
|
- New macros
|
2002-10-28 02:19:38 +08:00
|
|
|
|
AC_COMPILER_IFELSE, AC_FUNC_MBRTOWC, AC_HEADER_STDBOOL,
|
2002-10-28 18:52:05 +08:00
|
|
|
|
AC_LANG_CONFTEST, AC_LANG_SOURCE, AC_LANG_PROGRAM, AC_LANG_CALL,
|
|
|
|
|
AC_LANG_FUNC_TRY_LINK, AC_MSG_FAILURE, AC_PREPROC_IFELSE.
|
2002-09-27 17:25:41 +08:00
|
|
|
|
|
2002-10-11 20:17:51 +08:00
|
|
|
|
- Obsoleted
|
|
|
|
|
Obsoleted macros are kept for Autoconf backward compatibility, but
|
|
|
|
|
should be avoided in configure.ac. Running autoupdate is advised.
|
|
|
|
|
AC_DECL_SYS_SIGLIST.
|
|
|
|
|
|
2002-11-06 04:28:07 +08:00
|
|
|
|
- AC_DEFINE/AC_DEFINE_UNQUOTED
|
|
|
|
|
|
|
|
|
|
We have to stop using the old compatibility scheme --that tried to
|
|
|
|
|
avoid useless backslashes-- because Libtool 1.4.3 contains a
|
|
|
|
|
|
|
|
|
|
AC_DEFINE([error_t], [int],
|
2009-05-20 00:45:08 +08:00
|
|
|
|
[Define to a type to use for \`error_t' if it is not
|
|
|
|
|
otherwise available.])
|
2002-11-06 04:28:07 +08:00
|
|
|
|
|
|
|
|
|
We have to quote the single quotes and backslashes with \. The old
|
|
|
|
|
compatibility scheme saw that ` was backslashed, and therefore did
|
|
|
|
|
not quote the single quote... Failure. Hence, Autoconf 2.54 is not
|
|
|
|
|
compatible with Libtool. Autoconf 2.55 is, but in some cases might
|
|
|
|
|
produce more \ than wanted.
|
|
|
|
|
|
|
|
|
|
Please, note that in the future the same problem will happen with
|
2021-07-21 05:01:43 +08:00
|
|
|
|
AC_MSG_*: use 'autoreconf -f -Wall'.
|
2002-11-06 04:28:07 +08:00
|
|
|
|
|
2002-09-26 19:57:28 +08:00
|
|
|
|
** Bug Fixes
|
|
|
|
|
|
|
|
|
|
- Portability of the Autoconf package to Solaris.
|
|
|
|
|
|
2002-09-27 16:20:26 +08:00
|
|
|
|
- Spurious warnings caused by config.status.
|
|
|
|
|
This bug is benign, but painful: on some systems (typically
|
|
|
|
|
FreeBSD), warnings such as:
|
|
|
|
|
|
|
|
|
|
config.status: creating Makefile
|
|
|
|
|
mv: Makefile: set owner/group (was: 1357/0): Operation not permitted
|
|
|
|
|
|
|
|
|
|
could be issued. This is fixed.
|
|
|
|
|
|
2002-10-11 17:49:31 +08:00
|
|
|
|
- Parallel Builds
|
|
|
|
|
Simultaneous executions of config.status are possible again.
|
|
|
|
|
|
2002-10-22 20:18:46 +08:00
|
|
|
|
- Precious variables accumulation
|
|
|
|
|
|
|
|
|
|
config.status could stack several copies of the precious variables
|
|
|
|
|
assignments.
|
|
|
|
|
|
|
|
|
|
|
2002-12-03 15:59:21 +08:00
|
|
|
|
** Plans for later versions
|
2002-10-25 17:03:31 +08:00
|
|
|
|
|
|
|
|
|
- ./configure <host>
|
|
|
|
|
|
|
|
|
|
The compatibility hooks with the old scheme will be completely
|
2021-07-21 05:01:43 +08:00
|
|
|
|
removed. Please, advice/use '--build', '--host', and '--target'
|
2002-10-25 17:03:31 +08:00
|
|
|
|
only.
|
|
|
|
|
|
|
|
|
|
- AC_CHECK_HEADER, AC_CHECK_HEADERS
|
|
|
|
|
|
|
|
|
|
The tests will be stricter, please make sure your invocations are
|
|
|
|
|
valid.
|
|
|
|
|
|
|
|
|
|
- shell functions
|
|
|
|
|
|
|
|
|
|
Shell functions will gradually be introduced, probably starting with
|
|
|
|
|
Autotest. If you know machines which are in use that you suspect
|
|
|
|
|
*not* to support shell functions, please run the test suite of
|
|
|
|
|
Autoconf 2.55 on it, and report the results to
|
|
|
|
|
bug-autoconf@gnu.org.
|
|
|
|
|
|
2002-11-06 04:28:07 +08:00
|
|
|
|
- AC_MSG_*
|
|
|
|
|
|
|
|
|
|
Special characters in AC_MSG_* need not be quoted. Currently,
|
|
|
|
|
Autoconf has heuristics to decide when a string is escaped, or has
|
|
|
|
|
to be escaped. This scheme is fragile, and will be removed; the
|
2021-07-21 05:01:43 +08:00
|
|
|
|
only risk is uglified messages. Please, run 'autoreconf -f -Wall'
|
2002-11-06 04:28:07 +08:00
|
|
|
|
to find occurrences that will be affected.
|
2002-12-03 15:59:21 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
* Major changes in Autoconf 2.54
|
2002-09-13 16:41:53 +08:00
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 2002-09-13 by Akim Demaille.
|
2002-03-15 01:25:13 +08:00
|
|
|
|
|
|
|
|
|
** Executables
|
|
|
|
|
|
2002-08-29 16:24:39 +08:00
|
|
|
|
- autoreconf no longer changes the version of the gettext/po/intl
|
|
|
|
|
support files. It now adds the files the correspond to the
|
|
|
|
|
AM_GNU_GETTEXT_VERSION declared in configure.ac.
|
2002-07-18 23:37:49 +08:00
|
|
|
|
|
2002-08-29 16:24:39 +08:00
|
|
|
|
Warning: It now relies on the 'autopoint' program, which is part
|
|
|
|
|
of GNU gettext 0.11.4 and newer.
|
2002-07-18 23:37:49 +08:00
|
|
|
|
|
2002-08-29 16:24:39 +08:00
|
|
|
|
Please note that you need to have a GNU gettext version that
|
|
|
|
|
corresponds at least to the AM_GNU_GETTEXT_VERSION declared
|
|
|
|
|
in configure.ac. You can upgrade to newer GNU gettext versions,
|
|
|
|
|
though, without needing to change configure.ac.
|
2002-03-15 01:25:13 +08:00
|
|
|
|
|
2002-07-17 16:29:26 +08:00
|
|
|
|
- The -I DIR or --include=DIR option now appends DIR to the include path
|
|
|
|
|
instead of prepending; this is for consistency with other GNU tools.
|
|
|
|
|
The new -B DIR or --prepend-include=DIR option has the old behavior.
|
|
|
|
|
|
2002-04-03 02:22:08 +08:00
|
|
|
|
** Macros
|
|
|
|
|
|
2002-07-18 19:57:32 +08:00
|
|
|
|
- AC_OUTPUT
|
|
|
|
|
Now handles all the gory details about LIBOBJS and LTLIBOBJS.
|
|
|
|
|
Please, remove lines such as
|
|
|
|
|
|
|
|
|
|
# This is necessary so that .o files in LIBOBJS are also
|
|
|
|
|
# built via the ANSI2KNR-filtering rules.
|
|
|
|
|
LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
and read the 'AC_LIBOBJ vs LIBOBJS' section. Do not define U in
|
2002-07-19 16:39:59 +08:00
|
|
|
|
your Makefiles either.
|
2002-07-18 19:57:32 +08:00
|
|
|
|
|
2002-06-07 01:53:43 +08:00
|
|
|
|
- AC_CONFIG_LINKS now makes copies if it can't make links.
|
2002-07-18 19:57:32 +08:00
|
|
|
|
|
2002-05-17 15:13:59 +08:00
|
|
|
|
- AC_FUNC_FNMATCH now tests only for POSIX compatibility, reverting to
|
2002-06-07 17:30:24 +08:00
|
|
|
|
Autoconf 2.13 behavior. The new macro AC_FUNC_FNMATCH_GNU also
|
|
|
|
|
tests for GNU extensions to fnmatch, and replaces fnmatch if needed.
|
2002-06-07 15:17:53 +08:00
|
|
|
|
|
2002-05-14 03:45:25 +08:00
|
|
|
|
- AC_FUNC_SETVBUF_REVERSED no longer fails when cross-compiling.
|
2002-06-07 15:17:53 +08:00
|
|
|
|
|
2002-04-03 02:22:08 +08:00
|
|
|
|
- AC_PROG_CC_STDC is integrated into AC_PROG_CC.
|
2002-06-07 15:17:53 +08:00
|
|
|
|
|
2002-05-23 07:36:20 +08:00
|
|
|
|
- AC_PROG_F77 default search no longer includes cf77 and cfg77.
|
2002-06-07 15:17:53 +08:00
|
|
|
|
|
|
|
|
|
- New macros
|
2002-07-16 21:37:53 +08:00
|
|
|
|
|
|
|
|
|
AC_C_BACKSLASH_A, AC_CONFIG_LIBOBJ_DIR, AC_GNU_SOURCE,
|
|
|
|
|
AC_PROG_EGREP, AC_PROG_FGREP, AC_REPLACE_FNMATCH,
|
2002-07-17 16:09:42 +08:00
|
|
|
|
AC_FUNC_FNMATCH_GNU, AC_FUNC_REALLOC, AC_TYPE_MBSTATE_T.
|
2002-06-07 15:17:53 +08:00
|
|
|
|
|
|
|
|
|
- AC_FUNC_GETLOADAVG
|
|
|
|
|
looks for getloadavg.c in the CONFIG_LIBOBJ_DIR.
|
2002-04-03 02:22:08 +08:00
|
|
|
|
|
2002-07-17 16:09:42 +08:00
|
|
|
|
- AC_FUNC_MALLOC
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Now defines HAVE_MALLOC to 0 if 'malloc' does not work, and asks
|
2002-09-03 17:17:44 +08:00
|
|
|
|
for an AC_LIBOBJ replacement.
|
2002-07-17 16:09:42 +08:00
|
|
|
|
|
2002-04-10 23:58:19 +08:00
|
|
|
|
** Bug fixes
|
|
|
|
|
|
2021-07-21 05:01:43 +08:00
|
|
|
|
- Spurious complaints from 'm4_bmatch' about invalid regular
|
2002-04-10 23:58:19 +08:00
|
|
|
|
expressions are suppressed.
|
|
|
|
|
|
2002-04-22 18:27:15 +08:00
|
|
|
|
- Empty top_builddirs are properly handled.
|
|
|
|
|
|
2002-05-18 08:57:30 +08:00
|
|
|
|
- AC_CHECK_MEMBER works correctly when the member is an aggregate.
|
|
|
|
|
|
2002-04-22 18:27:15 +08:00
|
|
|
|
- AC_PATH_PROG
|
|
|
|
|
Now colon in the optional path arguments are properly handled.
|
|
|
|
|
|
2002-05-30 06:31:36 +08:00
|
|
|
|
** Improved portability
|
|
|
|
|
|
|
|
|
|
- Both Autoconf the package, and the scripts it produces, should run
|
2002-04-10 23:58:19 +08:00
|
|
|
|
more reliably with Zsh. Bear in mind it is the default Bourne shell
|
|
|
|
|
on Darwin.
|
|
|
|
|
|
2002-05-30 06:31:36 +08:00
|
|
|
|
- Autoconf and the scripts it produces no longer assume the existence of
|
|
|
|
|
the obsolescent commands egrep and fgrep.
|
|
|
|
|
|
2002-04-10 04:37:10 +08:00
|
|
|
|
** Documentation
|
|
|
|
|
|
|
|
|
|
- Limitations of Make
|
|
|
|
|
More of them.
|
2002-04-22 23:49:55 +08:00
|
|
|
|
|
|
|
|
|
- GNATS
|
2004-11-29 12:29:08 +08:00
|
|
|
|
The GNATS base moved to
|
2017-09-17 08:48:19 +08:00
|
|
|
|
https://bugs.gnu.org/cgi-bin/gnatsweb.pl?database=autoconf
|
2004-11-29 12:29:08 +08:00
|
|
|
|
(It is no longer available, though.)
|
2002-04-25 16:54:47 +08:00
|
|
|
|
|
|
|
|
|
** Misc.
|
|
|
|
|
|
|
|
|
|
- config.log
|
2012-03-02 13:55:25 +08:00
|
|
|
|
Now contains the list of output variables and files (AC_SUBST,
|
2002-04-25 16:54:47 +08:00
|
|
|
|
AC_SUBST_FILES).
|
2002-03-11 22:38:59 +08:00
|
|
|
|
|
|
|
|
|
* Major changes in Autoconf 2.53
|
2001-09-22 23:20:44 +08:00
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 2002-03-08 by Akim Demaille.
|
2002-09-13 16:41:53 +08:00
|
|
|
|
|
2001-07-24 16:43:06 +08:00
|
|
|
|
** Requirements
|
2001-10-27 03:44:59 +08:00
|
|
|
|
|
|
|
|
|
Perl 5.005_03 or later is required: autom4te is written in Perl and is
|
|
|
|
|
needed by autoconf. autoheader, autoreconf, ifnames, and autoscan are
|
2001-10-20 14:56:45 +08:00
|
|
|
|
rewritten in Perl.
|
2001-09-22 23:20:44 +08:00
|
|
|
|
|
2001-08-20 22:46:59 +08:00
|
|
|
|
** Documentation
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
2001-08-20 22:46:59 +08:00
|
|
|
|
- AC_INIT
|
|
|
|
|
Argument requirements, output variables, defined macros.
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
|
- M4sugar, M4sh, Autotest
|
|
|
|
|
First sketch.
|
2001-08-20 22:46:59 +08:00
|
|
|
|
- Double quoting macros
|
|
|
|
|
AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and AC_TRY_RUN.
|
2001-09-22 23:20:44 +08:00
|
|
|
|
- Licensing
|
|
|
|
|
The Autoconf manual is now distributed under the terms of the GNU FDL.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
- Section 'Hosts and Cross-Compilation'
|
2002-03-04 23:06:44 +08:00
|
|
|
|
Explains the rationale for the 2.5x changes in the cross-compilation
|
|
|
|
|
chain, and in the relationships between build, host, and target
|
|
|
|
|
types.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Emphasizes that 'cross-compilation' == '--host is given'.
|
2002-03-04 23:06:44 +08:00
|
|
|
|
If you are working on compilers etc., be sure to read this section.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
- Section 'AC_LIBOBJ vs. LIBOBJS'
|
2002-03-04 23:09:20 +08:00
|
|
|
|
Explains why assigning LIBOBJS directly is now an error.
|
|
|
|
|
Details how to update the code.
|
2001-09-22 23:20:44 +08:00
|
|
|
|
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
|
** configure
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
|
- $LINENO
|
|
|
|
|
Now used instead of hard coded line numbers.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
This eases the comparison of 'configure's, and diminishes the
|
2001-09-22 23:20:44 +08:00
|
|
|
|
pressure over control version archives.
|
|
|
|
|
Automatic replacement for shells that don't support this feature.
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
|
- New output variables
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
abs_builddir, top_buildpath to abs_top_builddir, srcpath to
abs_srcdir, top_srcpath to abs_top_srcdir.
(_AC_OUTPUT_FILES): Adjust.
* NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
* tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
* tests/wrappl.in, tests/wrapsh.in: Adjust.
2001-12-15 01:57:27 +08:00
|
|
|
|
@builddir@, @top_builddir@, @abs_srcdir@, @abs_top_srcdir@, @abs_builddir@,
|
|
|
|
|
@abs_top_builddir@.
|
2001-09-22 23:20:44 +08:00
|
|
|
|
|
2001-09-28 19:56:26 +08:00
|
|
|
|
** Emacs
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
2001-09-28 19:56:26 +08:00
|
|
|
|
Autoconf and Autotest modes are provided.
|
|
|
|
|
|
2001-10-08 16:26:58 +08:00
|
|
|
|
** Executables
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
2001-10-08 16:26:58 +08:00
|
|
|
|
- autom4te
|
|
|
|
|
New, used by the Autoconf suite to cache and speed up most processing.
|
2001-08-07 15:55:07 +08:00
|
|
|
|
- --force, -f
|
2001-08-31 21:33:47 +08:00
|
|
|
|
Supported by autom4te, autoconf and autoheader.
|
|
|
|
|
- --include, -I
|
2001-10-20 14:56:45 +08:00
|
|
|
|
Replaces --autoconf-dir and --localdir in autoconf, autoheader,
|
|
|
|
|
autoupdate, and autoreconf.
|
2001-10-08 16:26:58 +08:00
|
|
|
|
- autoreconf
|
|
|
|
|
No longer passes --cygnus, --foreign, --gnits, --gnu, --include-deps:
|
|
|
|
|
automake options are to be given via AUTOMAKE_OPTIONS.
|
|
|
|
|
- autoreconf
|
2001-10-08 16:27:15 +08:00
|
|
|
|
Runs gettextize and libtoolize when appropriate.
|
2001-10-20 14:56:45 +08:00
|
|
|
|
- autoreconf
|
|
|
|
|
--m4dir is no longer supported.
|
2001-11-03 20:01:35 +08:00
|
|
|
|
- autoreconf
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Now runs only in the specified directories, defaulting to '.',
|
2001-11-03 20:01:35 +08:00
|
|
|
|
but understands AC_CONFIG_SUBDIRS for dependent directories.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Before, it used to run on all the 'configure.ac' found in the
|
2001-11-03 20:01:35 +08:00
|
|
|
|
current tree.
|
|
|
|
|
Independent packages are properly updated.
|
2001-09-22 23:20:44 +08:00
|
|
|
|
|
2001-08-10 15:18:28 +08:00
|
|
|
|
** Bug fixes
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
2001-08-10 15:18:28 +08:00
|
|
|
|
- The top level $prefix is propagated to the AC_CONFIG_SUBDIRS configures.
|
2001-09-27 21:28:15 +08:00
|
|
|
|
- AC_TRY_RUN
|
|
|
|
|
Under the user pressure, $? is finally available. Probably a mistake.
|
2001-12-13 08:25:57 +08:00
|
|
|
|
- AC_F77_LIBRARY_LDFLAGS now supports the HP/UX f90 compiler.
|
2001-12-15 02:01:13 +08:00
|
|
|
|
- Precious variables accumulation
|
|
|
|
|
config.status could stack several copies of the precious variables
|
|
|
|
|
assignments.
|
2002-02-07 23:49:31 +08:00
|
|
|
|
- AC_PATH_PROG and family.
|
|
|
|
|
Works properly when given a literal path.
|
2002-02-26 01:38:41 +08:00
|
|
|
|
- AC_FUNC_SETPGRP
|
|
|
|
|
Somewhere since 2.13, the result had been reversed.
|
2001-09-22 23:20:44 +08:00
|
|
|
|
|
2001-08-12 20:22:29 +08:00
|
|
|
|
** C Macros
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
2001-08-12 20:22:29 +08:00
|
|
|
|
- AC_C_BIGENDIAN supports the cross-compiling case.
|
2001-08-12 20:23:49 +08:00
|
|
|
|
- AC_C_BIGENDIAN accepts ACTION-IF-TRUE, ACTION-IF-FALSE, and
|
2012-03-02 13:55:25 +08:00
|
|
|
|
ACTION-IF-UNKNOWN arguments. All are optional, and the default
|
2001-08-12 20:23:49 +08:00
|
|
|
|
for ACTION-IF-TRUE is to define WORDS_BIGENDIAN like AC_C_BIGENDIAN
|
|
|
|
|
always did.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
- AC_C_LONG_DOUBLE now succeeds only if 'long double' has more range or
|
|
|
|
|
precision than 'double'.
|
2001-09-22 23:20:44 +08:00
|
|
|
|
|
2001-08-27 15:20:21 +08:00
|
|
|
|
** Generic macros
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
2002-01-07 04:48:10 +08:00
|
|
|
|
- AC_INIT
|
|
|
|
|
It now defines the preprocessor symbols PACKAGE_NAME,
|
|
|
|
|
PACKAGE_TARNAME, PACKAGE_VERSION, PACKAGE_STRING, and
|
|
|
|
|
PACKAGE_BUGREPORT.
|
|
|
|
|
|
2002-02-01 01:33:44 +08:00
|
|
|
|
- AC_INIT
|
|
|
|
|
Admits a fourth optional parameter: the tar name.
|
|
|
|
|
|
2001-08-27 15:20:21 +08:00
|
|
|
|
- AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS.
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
|
Provide the user with srcdir, ac_srcdir, ac_top_srcdir, ac_builddir,
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Rename buildpath to
abs_builddir, top_buildpath to abs_top_builddir, srcpath to
abs_srcdir, top_srcpath to abs_top_srcdir.
(_AC_OUTPUT_FILES): Adjust.
* NEWS, doc/autoconf.texi, lib/autoconf/autotest.m4,
* tests/atspecific.m4, tests/autoreconf.in, tests/tools.at,
* tests/wrappl.in, tests/wrapsh.in: Adjust.
2001-12-15 01:57:27 +08:00
|
|
|
|
ac_top_builddir, ac_abs_srcdir, ac_abs_top_srcdir, ac_abs_builddir,
|
|
|
|
|
ac_abs_top_builddir.
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
|
|
2001-11-13 18:42:05 +08:00
|
|
|
|
- AC_CONFIG_COMMANDS, HEADERS, FILES, LINKS and AC_OUTPUT.
|
|
|
|
|
Are much less expensive when using long lists of files.
|
|
|
|
|
|
2002-02-07 20:07:20 +08:00
|
|
|
|
- AC_PREFIX_PROGRAM
|
|
|
|
|
Works with shell variables, and non alphanumeric names.
|
|
|
|
|
|
2001-10-23 01:51:16 +08:00
|
|
|
|
** Library macros
|
2001-11-03 00:38:15 +08:00
|
|
|
|
|
2001-10-23 01:51:16 +08:00
|
|
|
|
- AC_FUNC_STRERROR_R now sets STRERROR_R_CHAR_P, not HAVE_WORKING_STRERROR_R,
|
|
|
|
|
because POSIX 1003.1-200x draft 7 says strerror_r returns int, not char *.
|
|
|
|
|
|
2001-11-12 23:47:35 +08:00
|
|
|
|
- AC_FUNC_STRTOD substitutes POW_LIB.
|
|
|
|
|
|
2002-01-11 21:25:08 +08:00
|
|
|
|
- AC_FUNC_STRNLEN
|
|
|
|
|
New.
|
2001-07-24 16:43:06 +08:00
|
|
|
|
|
|
|
|
|
* Major changes in Autoconf 2.52
|
2002-09-13 16:41:53 +08:00
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 2001-07-18 by Akim Demaille.
|
2002-09-13 16:41:53 +08:00
|
|
|
|
|
2001-06-18 02:14:27 +08:00
|
|
|
|
** Documentation
|
|
|
|
|
- AC_ARG_VAR
|
2001-06-19 14:45:18 +08:00
|
|
|
|
- Quadrigraphs
|
|
|
|
|
This feature was present in autoconf 2.50 but was not documented.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
For example, '@<:@' is translated to '[' just before output. This
|
2001-06-19 14:45:18 +08:00
|
|
|
|
is useful when writing strings that contain unbalanced quotes, or
|
|
|
|
|
other hard-to-quote constructs.
|
2001-06-24 06:58:54 +08:00
|
|
|
|
- m4_pattern_forbid, m4_pattern_allow
|
2001-06-24 06:59:11 +08:00
|
|
|
|
- Tips for upgrading from 2.13.
|
2001-07-14 22:19:19 +08:00
|
|
|
|
- Using autoscan to maintain a configure.ac.
|
2001-06-18 02:14:27 +08:00
|
|
|
|
|
2001-05-31 15:32:27 +08:00
|
|
|
|
** Default includes
|
2001-06-13 16:45:39 +08:00
|
|
|
|
- Now include stdint.h.
|
|
|
|
|
- sys/types.h and sys/stat.h are guarded.
|
2001-07-04 19:29:50 +08:00
|
|
|
|
- strings.h is included if available, and not conflicting with string.h.
|
2001-05-31 15:32:27 +08:00
|
|
|
|
|
2001-05-31 16:24:01 +08:00
|
|
|
|
** Bug fixes
|
2001-06-24 06:58:54 +08:00
|
|
|
|
- The test suite is more robust and presents less false failures.
|
2001-06-02 23:45:32 +08:00
|
|
|
|
- Invocation of GNU M4 now robust to POSIXLY_CORRECT.
|
2001-06-05 20:44:13 +08:00
|
|
|
|
- configure accepts --prefix='' again.
|
2001-06-06 23:03:29 +08:00
|
|
|
|
- AC_CHECK_LIB works properly when its first argument is not a
|
|
|
|
|
literal.
|
2001-06-24 06:58:54 +08:00
|
|
|
|
- HAVE_INTTYPES_H is defined only if not conflicting with sys/types.h.
|
2001-06-16 01:40:57 +08:00
|
|
|
|
- build_, host_, and target_alias are AC_SUBST as in 2.13.
|
2001-06-18 02:14:27 +08:00
|
|
|
|
- AC_ARG_VAR properly propagates precious variables inherited from the
|
|
|
|
|
environment to ./config.status.
|
2001-06-21 17:18:16 +08:00
|
|
|
|
- Using --program-suffix/--program-prefix is portable.
|
2001-06-23 21:51:39 +08:00
|
|
|
|
- Failures to detect the default compiler's output extension are less
|
|
|
|
|
likely.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
- 'config.status foo' works properly when 'foo' depends on variables
|
2001-06-23 23:06:39 +08:00
|
|
|
|
set in an AC_CONFIG_THING INIT-CMD.
|
2001-06-24 06:58:54 +08:00
|
|
|
|
- autoheader is more robust to broken input.
|
2001-07-02 03:41:20 +08:00
|
|
|
|
- Fixed Fortran name-mangling and link tests on a number of systems,
|
|
|
|
|
e.g. NetBSD; see AC_F77_DUMMY_MAIN, below.
|
2001-06-13 15:51:09 +08:00
|
|
|
|
|
|
|
|
|
** Generic macros
|
|
|
|
|
- AC_CHECK_HEADER and AC_CHECK_HEADERS support a fourth argument to
|
2001-07-18 00:21:25 +08:00
|
|
|
|
specify pre-includes. In this case, the headers are compiled with
|
2001-07-17 18:01:09 +08:00
|
|
|
|
cc, not merely preprocessed by cpp. Therefore it is the _usability_
|
|
|
|
|
of a header which is checked for, not just its availability.
|
2001-06-25 14:14:43 +08:00
|
|
|
|
- AC_ARG_VAR refuses to run configure when precious variables have
|
2001-06-24 06:58:54 +08:00
|
|
|
|
changed.
|
2001-07-04 23:12:57 +08:00
|
|
|
|
- Versions of compilers are dumped in the logs.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
- AC_CHECK_TYPE recognizes use of 'foo_t' as a replacement type.
|
2001-06-13 23:30:27 +08:00
|
|
|
|
|
|
|
|
|
** Specific Macros
|
|
|
|
|
- AC_PATH_XTRA only adds -ldnet to $LIBS if it's needed to link.
|
2001-06-16 01:44:17 +08:00
|
|
|
|
- AC_FUNC_WAIT3 and AC_SYS_RESTARTABLE_SYSCALLS are obsoleted.
|
2001-06-24 06:59:11 +08:00
|
|
|
|
- AM_FUNC_ERROR_AT_LINE, AM_FUNC_FNMATCH, AM_FUNC_MKTIME,
|
|
|
|
|
AM_FUNC_OBSTACK, and AM_FUNC_STRTOD are now activated.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Be sure to read 'Upgrading from Version 2.13' to understand why
|
|
|
|
|
running 'autoupdate' is needed.
|
2001-07-02 03:41:20 +08:00
|
|
|
|
- AC_F77_DUMMY_MAIN, AC_F77_MAIN: new macros to detect whether
|
|
|
|
|
a main-like routine is required/possible when linking C/C++ with
|
|
|
|
|
Fortran. Users of e.g. AC_F77_WRAPPERS should be aware of these.
|
2023-01-21 14:54:33 +08:00
|
|
|
|
- AC_FUNC_GETPGRP behaves better when cross-compiling.
|
2003-06-20 16:25:12 +08:00
|
|
|
|
|
|
|
|
|
* Major changes in Autoconf 2.51
|
|
|
|
|
There was no release of Autoconf 2.51 since some packagers had used
|
|
|
|
|
this version number without permission to ship intermediary versions
|
|
|
|
|
of 2.50. The version was skipped to avoid confusion.
|
2001-05-21 21:30:04 +08:00
|
|
|
|
|
|
|
|
|
* Major changes in Autoconf 2.50
|
2000-03-28 21:36:43 +08:00
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 2001-05-21 by Akim Demaille.
|
2002-09-13 16:41:53 +08:00
|
|
|
|
|
2000-07-19 17:35:30 +08:00
|
|
|
|
** Lots of bug fixes
|
2001-05-21 21:30:04 +08:00
|
|
|
|
There have been far too many to enumerate them here. Check out
|
|
|
|
|
ChangeLog if you really want to know more.
|
2000-07-19 17:35:30 +08:00
|
|
|
|
|
|
|
|
|
** Improved documentation
|
2001-05-21 21:30:04 +08:00
|
|
|
|
In particular, portability issues are better covered.
|
2000-07-19 17:35:30 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
** Use of Automake
|
|
|
|
|
All the standard GNU Makefile targets are supported. The layout has
|
2006-06-21 03:49:14 +08:00
|
|
|
|
changed: m4/ holds the M4 extensions Autoconf needs for its
|
2001-05-21 21:30:04 +08:00
|
|
|
|
configuration, doc/ contains the documentation, and tests/ contains
|
|
|
|
|
the test suite.
|
2000-03-28 21:36:43 +08:00
|
|
|
|
|
|
|
|
|
** Man pages are provided
|
2001-01-15 15:40:11 +08:00
|
|
|
|
For autoconf, autoreconf, autoupdate, autoheader, autoscan, ifnames,
|
|
|
|
|
config.guess, config.sub.
|
2000-03-28 21:36:43 +08:00
|
|
|
|
|
|
|
|
|
** autoconf
|
|
|
|
|
- --trace
|
|
|
|
|
Provides a safe and powerful means to trace the macro uses. This
|
2021-07-21 05:01:43 +08:00
|
|
|
|
provide the parsing layer for tools which need to 'study'
|
2000-03-28 21:36:43 +08:00
|
|
|
|
configure.in.
|
|
|
|
|
|
2000-07-10 18:24:05 +08:00
|
|
|
|
- --warnings
|
|
|
|
|
Specify what category of warnings should be enabled.
|
|
|
|
|
|
2000-09-18 19:05:41 +08:00
|
|
|
|
- When recursing into subdirectories, try for configure.gnu before
|
|
|
|
|
configure to adapt for packages not using autoconf on case-insensitive
|
2006-04-06 04:54:17 +08:00
|
|
|
|
file systems.
|
2000-09-18 19:05:41 +08:00
|
|
|
|
|
2000-10-17 16:36:20 +08:00
|
|
|
|
- Diagnostics
|
|
|
|
|
More errors are now caught (circular AC_REQUIRE dependencies,
|
|
|
|
|
AC_DEFINE in the action part of an AC_CACHE_CHECK, too many pops
|
|
|
|
|
etc.). In addition, their location and call stack are given.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
** autoupdate
|
2000-07-19 17:35:30 +08:00
|
|
|
|
autoupdate is much more powerful, and is able to provide the glue code
|
|
|
|
|
which might be needed to move from an old macro to its newer
|
2000-03-28 21:36:43 +08:00
|
|
|
|
equivalent.
|
|
|
|
|
|
2001-05-21 21:30:04 +08:00
|
|
|
|
You are strongly encouraged to use it to modernize both your
|
2021-07-21 05:01:43 +08:00
|
|
|
|
'configure.in' and your .m4 extension files.
|
2000-07-19 17:35:30 +08:00
|
|
|
|
|
2000-05-12 15:38:52 +08:00
|
|
|
|
** autoheader
|
|
|
|
|
The internal machinery of autoheader has completely changed. As a
|
2021-07-21 05:01:43 +08:00
|
|
|
|
result, using 'acconfig.h' should be considered to be obsoleted, and
|
2000-05-12 15:38:52 +08:00
|
|
|
|
you are encouraged to get rid of it using the AH macros.
|
|
|
|
|
|
2000-07-19 17:35:30 +08:00
|
|
|
|
** autoreconf
|
2001-05-21 21:30:04 +08:00
|
|
|
|
Extensive overhaul.
|
2000-07-19 17:35:30 +08:00
|
|
|
|
|
2000-05-12 15:38:52 +08:00
|
|
|
|
** Fortran 77 compilers
|
2000-07-19 17:35:30 +08:00
|
|
|
|
Globally, the support for Fortran 77 is considerably improved.
|
|
|
|
|
|
2001-05-21 21:30:04 +08:00
|
|
|
|
Support for automatically determining a Fortran 77 compiler's
|
2000-05-12 15:38:52 +08:00
|
|
|
|
name-mangling scheme. New CPP macros F77_FUNC and F77_FUNC_ are
|
|
|
|
|
provided to wrap C/C++ identifiers, thus making it easier and more
|
|
|
|
|
transparent for C/C++ to call Fortran 77 routines, and Fortran 77 to
|
|
|
|
|
call C/C++ routines. See the Texinfo documentation for details.
|
|
|
|
|
|
|
|
|
|
** Test suite
|
2000-07-19 17:35:30 +08:00
|
|
|
|
The test suite no longer uses DejaGNU. It should be easy to submit
|
2001-05-21 21:30:04 +08:00
|
|
|
|
test cases in this new framework.
|
2000-05-12 15:38:52 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
** configure
|
|
|
|
|
- --help, --help=long, -hl
|
|
|
|
|
no longer dumps useless items.
|
|
|
|
|
- --help=short, -hs
|
|
|
|
|
lists only specific options.
|
|
|
|
|
- --help=recursive, -hr
|
|
|
|
|
displays the help of all the embedded packages.
|
2000-05-11 15:59:08 +08:00
|
|
|
|
- Remembers environment variables when reconfiguring.
|
|
|
|
|
The previous scheme to set envvar before running configure was
|
|
|
|
|
ENV=VAL ./configure
|
|
|
|
|
what prevented configure from remembering the environment in which
|
|
|
|
|
it was run, therefore --recheck was run in an inconsistent
|
|
|
|
|
environment. Now, one should run
|
|
|
|
|
./configure ENV=VAR
|
|
|
|
|
and then --recheck will work properly. Variables declared with
|
|
|
|
|
AC_ARG_VAR are also preserved.
|
2000-05-19 20:40:45 +08:00
|
|
|
|
- cross-compilation
|
|
|
|
|
$build defaults to `config.guess`, $host to $build, and then $target
|
|
|
|
|
to $host.
|
|
|
|
|
Cross-compilation is a global status of the package, it no longer
|
|
|
|
|
depends upon the current language.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Cross compilation is enabled iff the user specified '--host'.
|
|
|
|
|
'configure' now fails if it can't run the executables it compiles,
|
2000-05-19 20:40:45 +08:00
|
|
|
|
unless cross-compilation is enabled.
|
2000-05-22 21:31:00 +08:00
|
|
|
|
- Cache file
|
|
|
|
|
The cache file is disabled by default. The new options
|
2021-07-21 05:01:43 +08:00
|
|
|
|
'--config-cache', '-C' set the cache to 'config.cache'.
|
1999-10-31 09:54:28 +08:00
|
|
|
|
|
1999-12-20 21:33:27 +08:00
|
|
|
|
** config.status
|
2000-03-28 21:36:43 +08:00
|
|
|
|
- faster
|
2000-05-12 00:56:13 +08:00
|
|
|
|
Much faster on most architectures.
|
1999-12-20 21:33:27 +08:00
|
|
|
|
- concurrent executions
|
2021-07-21 05:01:43 +08:00
|
|
|
|
It is safe to use 'make -j' with config.status.
|
1999-12-20 21:33:27 +08:00
|
|
|
|
- human interface improved
|
2000-03-28 21:36:43 +08:00
|
|
|
|
It is possible to invoke
|
|
|
|
|
./config.status foobar
|
|
|
|
|
instead of the former form (still valid)
|
|
|
|
|
CONFIG_COMMANDS= CONFIG_HEADERS= CONFIG_LINKS= \
|
|
|
|
|
CONFIG_FILES=foobar:foo.in:bar.in \
|
|
|
|
|
./config.status
|
|
|
|
|
The same holds for configuration headers and links.
|
|
|
|
|
You can instantiate unknown files and headers:
|
|
|
|
|
./config.status --header foo.h:foo.h.in --file bar:baz
|
|
|
|
|
- has a useful --help
|
2001-01-26 19:46:23 +08:00
|
|
|
|
- accepts special file name "-" for stdin/stdout
|
2000-03-28 21:36:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
** Identity Macros
|
|
|
|
|
- AC_COPYRIGHT
|
|
|
|
|
Specify additional copyright information.
|
|
|
|
|
|
2000-07-19 17:35:30 +08:00
|
|
|
|
- AC_INIT
|
|
|
|
|
Now expects the identity of the package as argument.
|
2000-05-12 00:56:13 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
** General changes.
|
|
|
|
|
- Uniform quotation
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Most macros, if not all, now strictly follow the 'one quotation
|
2000-03-28 21:36:43 +08:00
|
|
|
|
level' rule. This results in a more predictable expansion.
|
|
|
|
|
|
2000-06-26 17:06:02 +08:00
|
|
|
|
- AC_REQUIRE
|
|
|
|
|
A sly bug in the AC_REQUIRE machinery, which could produce incorrect
|
|
|
|
|
configure scripts, was fixed by Axel Thimm.
|
2000-05-12 00:56:13 +08:00
|
|
|
|
|
|
|
|
|
** Setup Macros
|
|
|
|
|
- AC_ARG_VAR
|
|
|
|
|
Document and ask for the registration of an envvar.
|
|
|
|
|
|
2000-07-19 17:35:30 +08:00
|
|
|
|
- AC_CONFIG_SRCDIR
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Specifies the file which 'configure' should look for when trying to
|
2000-07-19 17:35:30 +08:00
|
|
|
|
find the source tree (used to be handled by AC_INIT).
|
|
|
|
|
|
2000-05-12 00:56:13 +08:00
|
|
|
|
- AC_CONFIG_COMMANDS
|
|
|
|
|
To add new actions to config.status. Should be used instead of
|
|
|
|
|
AC_OUTPUT_COMMANDS.
|
|
|
|
|
|
|
|
|
|
- AC_CONFIG_LINKS
|
|
|
|
|
Replaces AC_LINK_FILES.
|
|
|
|
|
|
2000-06-26 18:20:36 +08:00
|
|
|
|
- AC_CONFIG_HEADERS, AC_CONFIG_COMMANDS, AC_CONFIG_SUBDIRS,
|
|
|
|
|
AC_CONFIG_LINKS, and AC_CONFIG_FILES
|
|
|
|
|
They now obey sh: you should no longer use shell variables as
|
|
|
|
|
argument. Instead of
|
2000-05-12 00:56:13 +08:00
|
|
|
|
|
2009-05-20 00:45:08 +08:00
|
|
|
|
test "$package_foo_enabled" = yes && $my_subdirs="$my_subdirs foo"
|
|
|
|
|
AC_CONFIG_SUBDIRS($my_subdirs)
|
2000-05-12 00:56:13 +08:00
|
|
|
|
|
|
|
|
|
write
|
|
|
|
|
|
2009-05-20 00:45:08 +08:00
|
|
|
|
if test "$package_foo_enabled" = yes; then
|
|
|
|
|
AC_CONFIG_SUBDIRS(foo)
|
|
|
|
|
fi
|
2000-05-12 00:56:13 +08:00
|
|
|
|
|
|
|
|
|
- AC_HELP_STRING
|
|
|
|
|
To format an Autoconf macro's help string so that it looks pretty
|
2021-07-21 05:01:43 +08:00
|
|
|
|
when the user executes 'configure --help'.
|
2000-05-12 00:56:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
** Generic Test Macros
|
2000-03-28 21:36:43 +08:00
|
|
|
|
- AC_CHECK families
|
|
|
|
|
The interface of the AC_CHECK families of macros (decl, header,
|
|
|
|
|
type, member, func) is now uniform. They support the same set of
|
|
|
|
|
default includes.
|
|
|
|
|
|
|
|
|
|
- AC_CHECK_DECL, AC_CHECK_DECLS
|
|
|
|
|
To check whether a symbol is declared.
|
|
|
|
|
|
2000-06-26 18:20:36 +08:00
|
|
|
|
- AC_CHECK_SIZEOF, AC_C_CHAR_UNSIGNED.
|
|
|
|
|
No longer need a cross-compilation default.
|
2000-06-08 20:07:14 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
- AC_CHECK_TYPE
|
|
|
|
|
The test it performs is much more robust than previously, and makes
|
|
|
|
|
it possible to test builtin types in addition to typedefs.
|
|
|
|
|
It is now schizophrenic:
|
|
|
|
|
- AC_CHECK_TYPE(TYPE, REPLACEMENT)
|
|
|
|
|
remains for backward compatibility, but its use is discouraged.
|
|
|
|
|
- AC_CHECK_TYPE(TYPE, IF-FOUND, IF-NOT-FOUND, INCLUDES)
|
|
|
|
|
behaves exactly like the other AC_CHECK macros.
|
|
|
|
|
|
|
|
|
|
- AC_CHECK_TYPES
|
|
|
|
|
Checks whether given types are supported by the system.
|
|
|
|
|
|
|
|
|
|
- AC_CHECK_MEMBER, AC_CHECK_MEMBERS
|
|
|
|
|
Check for given members in aggregates (e.g., pw_gecos in struct
|
|
|
|
|
passwd).
|
|
|
|
|
|
|
|
|
|
- AC_PROG_CC_STDC
|
|
|
|
|
Checks if the compiler supports ISO C, included when needs special
|
|
|
|
|
options.
|
|
|
|
|
|
2000-10-20 08:15:34 +08:00
|
|
|
|
- AC_PROG_CPP
|
|
|
|
|
Checking whether the preprocessor indicates missing includes by the
|
|
|
|
|
error code. stderr is checked by AC_TRY_CPP only as a fallback.
|
|
|
|
|
|
2000-05-11 15:59:08 +08:00
|
|
|
|
- AC_LANG
|
|
|
|
|
Takes a language as argument and replaces AC_LANG_C,
|
|
|
|
|
AC_LANG_CPLUSPLUS and AC_LANG_FORTRAN77.
|
|
|
|
|
|
2001-01-15 15:40:11 +08:00
|
|
|
|
- AC_LANG_PUSH, AC_LANG_POP
|
|
|
|
|
Are preferred to AC_LANG_SAVE, AC_LANG_RESTORE.
|
2000-05-11 15:59:08 +08:00
|
|
|
|
|
|
|
|
|
** Specific Macros
|
2000-05-27 01:12:01 +08:00
|
|
|
|
- AC_FUNC_CHOWN, AC_FUNC_MALLOC, AC_FUNC_STRERROR_R,
|
2000-08-01 18:16:20 +08:00
|
|
|
|
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, AC_FUNC_STAT, AC_FUNC_LSTAT,
|
2000-11-15 00:01:05 +08:00
|
|
|
|
AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD, AC_FUNC_FSEEKO.
|
2000-05-22 16:46:23 +08:00
|
|
|
|
New.
|
|
|
|
|
|
|
|
|
|
- AC_FUNC_GETGROUPS
|
|
|
|
|
Sets GETGROUPS_LIBS.
|
|
|
|
|
|
2000-05-19 20:11:47 +08:00
|
|
|
|
- AC_FUNC_GETLOADAVG
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Defines 'HAVE_STRUCT_NLIST_N_UN_N_NAME' instead of 'NLIST_NAME_UNION'.
|
2000-05-19 20:11:47 +08:00
|
|
|
|
|
2000-05-11 15:59:08 +08:00
|
|
|
|
- AC_PROG_LEX
|
2021-07-21 05:01:43 +08:00
|
|
|
|
Now integrates 'AC_DECL_YYTEXT' which is obsoleted.
|
2000-05-11 15:59:08 +08:00
|
|
|
|
|
2000-06-08 20:07:14 +08:00
|
|
|
|
- AC_SYS_LARGEFILE
|
|
|
|
|
Arrange for large-file support.
|
2000-05-26 19:33:54 +08:00
|
|
|
|
|
2001-01-15 15:40:11 +08:00
|
|
|
|
- AC_EXEEXT, AC_OBJEXT
|
|
|
|
|
You are no longer expected to use them: their computation is
|
|
|
|
|
performed by default.
|
|
|
|
|
|
2000-05-22 16:46:23 +08:00
|
|
|
|
** C++ compatibility
|
|
|
|
|
Every macro has been revisited in order to support at best CC=c++.
|
1999-10-26 11:44:27 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.14:
|
1999-10-26 11:44:27 +08:00
|
|
|
|
There was no release of GNU Autoconf 2.14.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.13:
|
1999-01-05 11:18:40 +08:00
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 1999-05-01 by Ben Elliston.
|
2002-09-13 18:21:07 +08:00
|
|
|
|
|
2012-01-02 07:26:39 +08:00
|
|
|
|
* Support for building on 32-bit Windows systems where the only available C or
|
1999-01-05 11:18:40 +08:00
|
|
|
|
C++ compiler is the Microsoft Visual C++ command line compiler
|
2021-07-21 05:01:43 +08:00
|
|
|
|
('cl'). Additional support for building on 32-bit Windows systems which are
|
1999-01-05 11:18:40 +08:00
|
|
|
|
using the Cygwin or Mingw32 environments.
|
|
|
|
|
* Support for alternative object file and executable file extensions.
|
2012-01-02 07:26:39 +08:00
|
|
|
|
On 32-bit Windows, for example, these are .obj and .exe. These are discovered
|
1999-01-05 11:18:40 +08:00
|
|
|
|
using AC_OBJEXT and AC_EXEEXT, which substitute @OBJEXT@ and
|
|
|
|
|
@EXEEXT@ in the output, respectively.
|
|
|
|
|
* New macros: AC_CACHE_LOAD, AC_CACHE_SAVE, AC_FUNC_SELECT_ARGTYPES,
|
|
|
|
|
AC_VALIDATE_CACHED_SYSTEM_TUPLE, AC_SEARCH_LIBS, AC_TRY_LINK_FUNC,
|
|
|
|
|
AC_C_STRINGIZE, AC_CHECK_FILE(S), AC_PROG_F77 (and friends).
|
|
|
|
|
* AC_DEFINE now has an optional third argument for a description to be
|
|
|
|
|
placed in the config header input file (e.g. config.h.in).
|
|
|
|
|
* The C++ code fragment compiled for the C++ compiler test had to be
|
|
|
|
|
improved to include an explicit return type for main(). This was
|
|
|
|
|
causing failures on systems using recent versions of the EGCS C++
|
|
|
|
|
compiler.
|
|
|
|
|
* Fixed an important bug in AC_CHECK_TYPE that would cause a configure
|
2021-07-21 05:01:43 +08:00
|
|
|
|
script to report that 'sometype_t' was present when only 'type_t'
|
1999-01-05 11:18:40 +08:00
|
|
|
|
was defined.
|
2002-04-20 14:09:01 +08:00
|
|
|
|
* Merge of the FSF version of config.guess and config.sub to modernize
|
1999-01-05 11:18:40 +08:00
|
|
|
|
these scripts. Add support for a few new hosts in config.guess.
|
|
|
|
|
Incorporate latest versions of install-sh, mkinstalldirs and
|
1999-10-26 11:44:27 +08:00
|
|
|
|
texinfo.tex from the FSF.
|
1999-01-05 11:18:40 +08:00
|
|
|
|
* autoreconf is capable of running automake if necessary (and
|
|
|
|
|
applicable).
|
|
|
|
|
* Support for Fortran 77. See the Texinfo documentation for details.
|
|
|
|
|
* Bug fixes and workarounds for quirky bugs in vendor utilities.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.12:
|
1996-11-20 08:21:34 +08:00
|
|
|
|
|
2003-06-20 16:25:12 +08:00
|
|
|
|
Released 1996-11-26 by David J. MacKenzie
|
2002-09-13 18:21:07 +08:00
|
|
|
|
|
2020-07-12 23:59:14 +08:00
|
|
|
|
* AC_OUTPUT and AC_CONFIG_HEADERS can create output files by
|
1996-11-20 13:09:56 +08:00
|
|
|
|
concatenating multiple input files separated by colons, like so:
|
2020-07-12 23:59:14 +08:00
|
|
|
|
AC_CONFIG_HEADERS([config.h:conf.pre:config.h.in:conf.post])
|
|
|
|
|
AC_OUTPUT([Makefile:Makefile.in:Makefile.rules])
|
1996-11-20 13:09:56 +08:00
|
|
|
|
The arguments may be shell variables, to compute the lists on the fly.
|
|
|
|
|
* AC_LINK_FILES and AC_CONFIG_SUBDIRS may be called multiple times.
|
|
|
|
|
* New macro AC_OUTPUT_COMMANDS adds more commands to run in config.status.
|
1996-11-20 08:21:34 +08:00
|
|
|
|
* Bug fixes.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.11:
|
1996-11-09 08:44:49 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released November 18th, 1996, by David J. MacKenzie
|
|
|
|
|
|
1996-11-10 06:19:24 +08:00
|
|
|
|
* AC_PROG_CC and AC_PROG_CXX check whether the compiler works.
|
1996-11-18 23:28:02 +08:00
|
|
|
|
They also default CFLAGS/CXXFLAGS to "-g -O2" for gcc, instead of "-g -O".
|
2021-07-21 05:01:43 +08:00
|
|
|
|
* AC_REPLACE_FUNCS defines HAVE_foo if the system has the function 'foo'.
|
2020-07-12 23:59:14 +08:00
|
|
|
|
* AC_CONFIG_HEADERS expands shell variables in its argument.
|
1996-11-10 06:19:24 +08:00
|
|
|
|
* New macros: AC_FUNC_FNMATCH, AC_FUNC_SETPGRP.
|
1996-11-13 02:51:28 +08:00
|
|
|
|
* The "checking..." messages and the source code for test programs that
|
1999-10-26 11:44:27 +08:00
|
|
|
|
fail are saved in config.log.
|
1996-11-13 13:18:44 +08:00
|
|
|
|
* Another workaround has been added for seds with small command length limits.
|
1996-11-09 08:44:49 +08:00
|
|
|
|
* config.sub and config.guess recognize more system types.
|
1996-11-10 06:19:24 +08:00
|
|
|
|
* Bug fixes.
|
1996-11-09 08:44:49 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.10:
|
1996-05-08 01:19:58 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released May 7th, 1996, by Roland McGrath
|
|
|
|
|
|
1996-05-08 01:19:58 +08:00
|
|
|
|
* Bug fixes.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
* The cache variable names used by 'AC_CHECK_LIB(LIB, FUNC, ...)' has
|
1996-05-08 01:19:58 +08:00
|
|
|
|
changed: now $ac_cv_lib_LIB_FUNC, previously $ac_cv_lib_LIB.
|
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Major changes in Autoconf 2.9:
|
|
|
|
|
|
|
|
|
|
Released March 16th, 1996, by Roland McGrath
|
|
|
|
|
|
|
|
|
|
* Bug fixes.
|
|
|
|
|
|
|
|
|
|
Major changes in Autoconf 2.8:
|
|
|
|
|
|
|
|
|
|
Released March 8th, 1996, by Roland McGrath
|
|
|
|
|
|
|
|
|
|
* Bug fixes.
|
|
|
|
|
|
|
|
|
|
Major changes in Autoconf 2.7:
|
|
|
|
|
|
|
|
|
|
Released November 22nd, 1995, by David J. MacKenzie
|
|
|
|
|
|
|
|
|
|
* Bug fixes.
|
|
|
|
|
|
|
|
|
|
Major changes in Autoconf 2.6:
|
|
|
|
|
|
|
|
|
|
Released November 20th, 1995, by David J. MacKenzie
|
1995-11-21 04:46:49 +08:00
|
|
|
|
|
1995-11-23 01:42:19 +08:00
|
|
|
|
* Bug fixes.
|
1995-11-21 04:46:49 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.5:
|
1995-06-28 03:09:03 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released November 17th, 1995, by Roland McGrath
|
|
|
|
|
|
1995-06-29 01:42:48 +08:00
|
|
|
|
* New configure options --bindir, --libdir, --datadir, etc., with
|
|
|
|
|
corresponding output variables.
|
1995-07-26 13:30:39 +08:00
|
|
|
|
* New macro: AC_CACHE_CHECK, to make using the cache easier.
|
1995-06-28 03:09:03 +08:00
|
|
|
|
* config.log contains the command being run as well as any output from it.
|
1995-07-26 13:30:39 +08:00
|
|
|
|
* AC_CHECK_LIB can check for libraries with "." or "/" or "+" in their name.
|
2004-08-21 03:58:06 +08:00
|
|
|
|
* AC_PROG_INSTALL doesn't cache a name for install-sh, for sharing caches.
|
1995-07-26 13:30:39 +08:00
|
|
|
|
* AC_CHECK_PROG, AC_PATH_PROG, AC_CHECK_PROGS, AC_PATH_PROGS, and
|
|
|
|
|
AC_CHECK_TOOL can search a path other than $PATH.
|
|
|
|
|
* AC_CHECK_SIZEOF takes an optional size to use when cross-compiling.
|
1995-06-28 03:09:03 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.4:
|
1995-06-15 11:10:29 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released June 14th, 1995, by David J. MacKenzie
|
|
|
|
|
|
1995-06-15 11:10:50 +08:00
|
|
|
|
* Fix a few bugs found by Emacs testers.
|
1995-06-15 11:10:29 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.3:
|
1995-03-28 07:29:35 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released March 27th, 1995, by David J. MacKenzie
|
|
|
|
|
|
1995-03-28 07:29:35 +08:00
|
|
|
|
* Fix the cleanup trap in several ways.
|
|
|
|
|
* Handle C compilers that are picky about option placement.
|
|
|
|
|
* ifnames gets the version number from the right directory.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.2:
|
1995-02-07 07:31:34 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released March 8th, 1995, by David J. MacKenzie
|
|
|
|
|
|
1995-02-10 06:44:35 +08:00
|
|
|
|
* The ifnames utility is much faster but requires a "new awk" interpreter.
|
|
|
|
|
* AC_CHECK_LIB and AC_HAVE_LIBRARY check and add the new
|
|
|
|
|
library before existing libs, not after, in case it uses them.
|
|
|
|
|
* New macros: AC_FUNC_GETPGRP, AC_CHECK_TOOL.
|
|
|
|
|
* Lots of bug fixes.
|
1995-03-09 06:06:31 +08:00
|
|
|
|
* Many additions to the TODO file :-)
|
1995-02-07 07:31:34 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.1:
|
1994-11-04 12:19:54 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released November 4th, 1994, by David J. MacKenzie
|
|
|
|
|
|
1994-11-04 12:19:54 +08:00
|
|
|
|
* Fix C++ problems.
|
|
|
|
|
* More explanations in the manual.
|
|
|
|
|
* Fix a spurious failure in the testsuite.
|
|
|
|
|
* Clarify some warning messages.
|
1994-11-04 22:44:38 +08:00
|
|
|
|
* autoreconf by default only rebuilds configure and config.h.in files
|
|
|
|
|
that are older than any of their particular input files; there is a
|
|
|
|
|
--force option to use after installing a new version of Autoconf.
|
1994-11-04 12:19:54 +08:00
|
|
|
|
|
1994-08-13 10:19:11 +08:00
|
|
|
|
Thanks to everybody who's submitted changes and additions to Autoconf!
|
1994-09-07 22:08:30 +08:00
|
|
|
|
I've incorporated many of them, and am still considering others for
|
1994-08-13 10:19:11 +08:00
|
|
|
|
future releases -- but I didn't want to postpone this release indefinitely.
|
|
|
|
|
|
1995-02-07 07:31:34 +08:00
|
|
|
|
Caution: don't indiscriminately rebuild configure scripts with
|
1994-09-16 10:03:51 +08:00
|
|
|
|
Autoconf version 2. Some configure.in files need minor adjustments to
|
|
|
|
|
work with it; the documentation has a chapter on upgrading. A few
|
|
|
|
|
configure.in files, including those for GNU Emacs and the GNU C
|
|
|
|
|
Library, need major changes because they relied on undocumented
|
|
|
|
|
internals of version 1. Future releases of those packages will have
|
|
|
|
|
updated configure.in files.
|
|
|
|
|
|
2006-06-21 03:49:14 +08:00
|
|
|
|
It's best to use GNU M4 1.3 (or later) with Autoconf version 2.
|
|
|
|
|
Autoconf now makes heavy use of M4 diversions, which were implemented
|
|
|
|
|
inefficiently in GNU M4 releases before 1.3.
|
2004-11-30 05:24:57 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 2.0:
|
1994-04-30 09:43:24 +08:00
|
|
|
|
|
2002-09-13 18:21:07 +08:00
|
|
|
|
Released October 26th, 1994, by David J. MacKenzie
|
|
|
|
|
|
1994-09-28 06:05:22 +08:00
|
|
|
|
** New copyright terms:
|
|
|
|
|
* There are no restrictions on distribution or use of configure scripts.
|
|
|
|
|
|
|
|
|
|
** Documentation:
|
|
|
|
|
* Autoconf manual is reorganized to make information easier to find
|
|
|
|
|
and has several new indexes.
|
|
|
|
|
* INSTALL is reorganized and clearer and is now made from Texinfo source.
|
|
|
|
|
|
|
|
|
|
** New utilities:
|
|
|
|
|
* autoscan to generate a preliminary configure.in for a package by
|
|
|
|
|
scanning its source code for commonly used nonportable functions,
|
|
|
|
|
programs, and header files.
|
|
|
|
|
* ifnames to list the symbols used in #if and #ifdef directives in a
|
|
|
|
|
source tree.
|
1994-10-27 04:04:01 +08:00
|
|
|
|
* autoupdate to update a configure.in to use the version 2 macro names.
|
1994-09-28 06:05:22 +08:00
|
|
|
|
* autoreconf to recursively remake configure and configuration header
|
|
|
|
|
files in a source tree.
|
|
|
|
|
|
|
|
|
|
** Changed utilities:
|
|
|
|
|
* autoheader can take pieces of acconfig.h to replace config.h.{top,bot}.
|
|
|
|
|
* autoconf and autoheader can look for package-local definition files
|
|
|
|
|
in an alternate directory.
|
|
|
|
|
|
1994-04-30 09:43:24 +08:00
|
|
|
|
** New macros:
|
1994-05-05 08:27:10 +08:00
|
|
|
|
* AC_CACHE_VAL to share results of tests between configure runs.
|
1994-08-31 02:42:54 +08:00
|
|
|
|
* AC_DEFUN to define macros, automatically AC_PROVIDE them, and ensure
|
|
|
|
|
that macros invoked with AC_REQUIRE don't interrupt other macros.
|
1994-09-06 04:12:21 +08:00
|
|
|
|
* AC_CONFIG_AUX_DIR, AC_CANONICAL_SYSTEM, AC_CANONICAL_HOST, AC_LINK_FILES to
|
1994-04-30 09:43:24 +08:00
|
|
|
|
support deciding unguessable features based on the host and target types.
|
|
|
|
|
* AC_CONFIG_SUBDIRS to recursively configure a source tree.
|
1994-10-23 10:08:04 +08:00
|
|
|
|
* AC_ARG_PROGRAM to use the options --program-prefix,
|
1994-09-07 11:06:34 +08:00
|
|
|
|
--program-suffix, and --program-transform-name to change the names
|
|
|
|
|
of programs being installed.
|
1994-10-27 04:04:01 +08:00
|
|
|
|
* AC_PREFIX_DEFAULT to change the default installation prefix.
|
1994-10-23 10:08:04 +08:00
|
|
|
|
* AC_TRY_COMPILE to compile a test program without linking it.
|
1994-10-27 04:04:01 +08:00
|
|
|
|
* AC_CHECK_TYPE to check whether sys/types.h or stdlib.h defines a given type.
|
|
|
|
|
* AC_CHECK_LIB to check for a particular function and library.
|
1994-08-11 00:47:42 +08:00
|
|
|
|
* AC_MSG_CHECKING and AC_MSG_RESULT to print test results, on a single line,
|
|
|
|
|
whether or not the test succeeds. They obsolete AC_CHECKING and AC_VERBOSE.
|
1994-10-23 10:08:04 +08:00
|
|
|
|
* AC_SUBST_FILE to insert one file into another.
|
|
|
|
|
* AC_FUNC_MEMCMP to check whether memcmp is 8-bit clean.
|
|
|
|
|
* AC_FUNC_STRFTIME to find strftime even if it's in -lintl.
|
|
|
|
|
* AC_FUNC_GETMNTENT to find getmntent even if it's in -lsun or -lseq.
|
|
|
|
|
* AC_HEADER_SYS_WAIT to check whether sys/wait.h is POSIX.1 compatible.
|
1994-04-30 09:43:24 +08:00
|
|
|
|
|
|
|
|
|
** Changed macros:
|
1994-09-06 04:12:21 +08:00
|
|
|
|
* Many macros renamed systematically, but old names are accepted for
|
|
|
|
|
backward compatibility.
|
1994-09-15 08:58:48 +08:00
|
|
|
|
* AC_OUTPUT adds the "automatically generated" comment to
|
|
|
|
|
non-Makefiles where it finds @configure_input@ in an input file, to
|
|
|
|
|
support files with various comment syntaxes.
|
1994-05-10 09:54:59 +08:00
|
|
|
|
* AC_OUTPUT does not replace "prefix" and "exec_prefix" in generated
|
|
|
|
|
files when they are not enclosed in @ signs.
|
1994-06-23 02:22:34 +08:00
|
|
|
|
* AC_OUTPUT allows the optional environment variable CONFIG_STATUS to
|
|
|
|
|
override the file name "config.status".
|
1994-09-06 04:12:21 +08:00
|
|
|
|
* AC_OUTPUT takes an optional argument for passing variables from
|
|
|
|
|
configure to config.status.
|
2020-07-12 23:59:14 +08:00
|
|
|
|
* AC_OUTPUT and AC_CONFIG_HEADERS allow you to override the input-file names.
|
1994-08-26 03:29:53 +08:00
|
|
|
|
* AC_OUTPUT automatically substitutes the values of CFLAGS, CXXFLAGS,
|
1994-09-07 22:08:30 +08:00
|
|
|
|
CPPFLAGS, and LDFLAGS from the environment.
|
1994-09-07 11:06:34 +08:00
|
|
|
|
* AC_PROG_CC and AC_PROG_CXX now set CFLAGS and CXXFLAGS, respectively.
|
1994-09-11 14:20:58 +08:00
|
|
|
|
* AC_PROG_INSTALL looks for install-sh or install.sh in the directory
|
|
|
|
|
specified by AC_CONFIG_AUXDIR, or srcdir or srcdir/.. or
|
|
|
|
|
srcdir/../.. by default.
|
1994-08-26 02:05:45 +08:00
|
|
|
|
* AC_DEFINE, AC_DEFINE_UNQUOTED, and AC_SUBST are more robust and smaller.
|
1994-08-11 00:47:42 +08:00
|
|
|
|
* AC_DEFINE no longer prints anything, because of the new result reporting
|
|
|
|
|
mechanism (AC_MSG_CHECKING and AC_MSG_RESULT).
|
1994-10-27 04:04:01 +08:00
|
|
|
|
* AC_VERBOSE pays attention to --quiet/--silent, not --verbose.
|
1994-09-12 12:40:56 +08:00
|
|
|
|
* AC_ARG_ENABLE and AC_ARG_WITH support whitespace in the arguments to
|
|
|
|
|
--enable- and --with- options.
|
1994-08-23 14:01:14 +08:00
|
|
|
|
* AC_CHECK_FUNCS and AC_CHECK_HEADERS take optional shell commands to
|
1994-09-10 04:13:30 +08:00
|
|
|
|
execute on success or failure.
|
1994-08-26 11:11:17 +08:00
|
|
|
|
* Checking for C functions in C++ works.
|
|
|
|
|
|
|
|
|
|
** Removed macros:
|
1994-08-25 02:28:20 +08:00
|
|
|
|
* AC_REMOTE_TAPE and AC_RSH removed; too specific to tar and cpio, and
|
|
|
|
|
better maintained with them.
|
1994-08-26 05:55:22 +08:00
|
|
|
|
* AC_ARG_ARRAY removed because no one was likely using it.
|
1994-08-24 22:09:18 +08:00
|
|
|
|
* AC_HAVE_POUNDBANG replaced with AC_SYS_INTERPRETER, which doesn't
|
1994-09-07 11:06:34 +08:00
|
|
|
|
take arguments, for consistency with all of the other specific checks.
|
1994-04-30 09:43:24 +08:00
|
|
|
|
|
1994-09-07 22:08:30 +08:00
|
|
|
|
** New files:
|
|
|
|
|
* Comes with config.sub and config.guess, and uses them optionally.
|
|
|
|
|
* Uses config.cache to cache test results. An alternate cache file
|
|
|
|
|
can be selected with the --cache-file=FILE option.
|
1994-10-19 08:28:22 +08:00
|
|
|
|
* Uses optional shell scripts $prefix/share/config.site and
|
1996-05-08 01:19:58 +08:00
|
|
|
|
$prefix/etc/config.site to perform site or system specific initializations.
|
1994-09-07 22:08:30 +08:00
|
|
|
|
* configure saves compiler output to ./config.log for debugging.
|
|
|
|
|
* New files autoconf.m4 and autoheader.m4 load the other Autoconf macros.
|
|
|
|
|
* acsite.m4 is the new name for the system-wide aclocal.m4.
|
1994-10-27 04:04:01 +08:00
|
|
|
|
* Has a DejaGnu test suite.
|
1994-04-30 09:43:24 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.11:
|
1994-05-10 23:45:34 +08:00
|
|
|
|
|
|
|
|
|
* AC_PROG_INSTALL calls install.sh with the -c option.
|
|
|
|
|
* AC_SET_MAKE cleans up after itself.
|
|
|
|
|
* AC_OUTPUT sets prefix and exec_prefix if they weren't set already.
|
|
|
|
|
* AC_OUTPUT prevents shells from looking in PATH for config.status.
|
|
|
|
|
|
|
|
|
|
Plus a few other bug fixes.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.10:
|
1994-05-06 12:02:39 +08:00
|
|
|
|
|
|
|
|
|
* autoheader uses config.h.bot if present, analogous to config.h.top.
|
|
|
|
|
* AC_PROG_INSTALL looks for install.sh in srcdir or srcdir/.. and
|
|
|
|
|
never uses cp.
|
|
|
|
|
* AC_PROG_CXX looks for cxx as a C++ compiler.
|
|
|
|
|
|
|
|
|
|
Plus several bugs fixed.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.9:
|
1994-04-19 11:05:33 +08:00
|
|
|
|
|
1994-04-21 01:18:12 +08:00
|
|
|
|
* AC_YYTEXT_POINTER replaces AC_DECLARE_YYTEXT.
|
1994-04-20 02:40:10 +08:00
|
|
|
|
* AC_SIZEOF_TYPE generates the cpp symbol name automatically,
|
|
|
|
|
and autoheader generates entries for those names automatically.
|
1994-04-19 11:09:51 +08:00
|
|
|
|
* AC_FIND_X gets the result from xmkmf correctly.
|
1994-04-21 01:18:12 +08:00
|
|
|
|
* AC_FIND_X assumes no X if --without-x was given.
|
|
|
|
|
* AC_FIND_XTRA adds libraries to the variable X_EXTRA_LIBS.
|
1994-04-19 11:05:33 +08:00
|
|
|
|
* AC_PROG_INSTALL finds OSF/1 installbsd.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.8:
|
1993-11-19 07:44:09 +08:00
|
|
|
|
|
1994-03-29 07:50:43 +08:00
|
|
|
|
** New macros:
|
1994-03-20 05:52:45 +08:00
|
|
|
|
* New macros AC_LANG_C, AC_LANG_CPLUSPLUS, AC_LANG_SAVE, AC_LANG_RESTORE,
|
|
|
|
|
AC_PROG_CXX, AC_PROG_CXXCPP, AC_REQUIRE_CPP
|
|
|
|
|
for checking both C++ and C features in one configure script.
|
1994-03-23 04:47:25 +08:00
|
|
|
|
* New macros AC_CHECKING, AC_VERBOSE, AC_WARN, AC_ERROR for printing messages.
|
1994-03-31 09:05:03 +08:00
|
|
|
|
* New macros AC_FIND_XTRA, AC_MMAP, AC_SIZEOF_TYPE, AC_PREREQ,
|
|
|
|
|
AC_SET_MAKE, AC_ENABLE.
|
1994-03-29 07:50:43 +08:00
|
|
|
|
|
|
|
|
|
** Changed macros:
|
1994-03-18 15:59:58 +08:00
|
|
|
|
* AC_FIND_X looks for X in more places.
|
|
|
|
|
* AC_PROG_INSTALL defaults to install.sh instead of cp, if it's in srcdir.
|
|
|
|
|
install.sh is distributed with Autoconf.
|
1994-03-27 06:33:04 +08:00
|
|
|
|
* AC_DECLARE_YYTEXT has been removed because it can't work, pending
|
|
|
|
|
a rewrite of quoting in AC_DEFINE.
|
1993-11-19 07:44:09 +08:00
|
|
|
|
* AC_OUTPUT adds its comments in C format when substituting in C files.
|
1994-03-29 07:50:43 +08:00
|
|
|
|
* AC_COMPILE_CHECK protects its ECHO-TEXT argument with double quotes.
|
|
|
|
|
|
|
|
|
|
** New or changed command line options:
|
1994-03-31 21:23:26 +08:00
|
|
|
|
* configure accepts --enable-FEATURE[=ARG] and --disable-FEATURE options.
|
|
|
|
|
* configure accepts --without-PACKAGE, which sets withval=no.
|
1994-04-09 01:23:49 +08:00
|
|
|
|
* configure accepts --x-includes=DIR and --x-libraries=DIR.
|
1994-04-05 09:30:48 +08:00
|
|
|
|
* Giving --with-PACKAGE no argument sets withval=yes instead of withval=1.
|
|
|
|
|
* configure accepts --help, --version, --silent/--quiet, --no-create options.
|
1994-03-27 06:33:04 +08:00
|
|
|
|
* configure accepts and ignores most other Cygnus configure options, and
|
1994-03-26 14:33:54 +08:00
|
|
|
|
warns about unknown options.
|
1994-03-24 11:52:32 +08:00
|
|
|
|
* config.status accepts --help, --version options.
|
1994-03-29 07:50:43 +08:00
|
|
|
|
|
2004-08-21 03:58:06 +08:00
|
|
|
|
** File names and other changes:
|
1994-03-29 07:50:43 +08:00
|
|
|
|
* Relative srcdir values are not made absolute.
|
1994-04-09 01:23:49 +08:00
|
|
|
|
* The values of @prefix@ and @exec_prefix@ and @top_srcdir@ get substituted.
|
1994-03-25 02:38:02 +08:00
|
|
|
|
* Autoconf library files are installed in ${datadir}/autoconf, not ${datadir}.
|
1994-03-25 07:12:08 +08:00
|
|
|
|
* autoheader optionally copies config.h.top to the beginning of config.h.in.
|
1994-04-05 09:30:48 +08:00
|
|
|
|
* The example Makefile dependencies for configure et al. work better.
|
1994-03-22 21:45:54 +08:00
|
|
|
|
* Namespace cleanup: all shell variables used internally by Autoconf
|
2021-07-21 05:01:43 +08:00
|
|
|
|
have names beginning with 'ac_'.
|
1994-04-09 03:12:24 +08:00
|
|
|
|
|
|
|
|
|
More big improvements are in process for future releases, but have not
|
|
|
|
|
yet been (variously) finished, integrated, tested, or documented enough
|
|
|
|
|
to release yet.
|
1993-11-19 07:44:09 +08:00
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.7:
|
1993-10-16 05:01:55 +08:00
|
|
|
|
|
|
|
|
|
* New macro AC_OBSOLETE.
|
|
|
|
|
* Bugs in Makefile.in fixed.
|
|
|
|
|
* AC_LONG_FILE_NAMES improved.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.6:
|
1993-08-20 22:54:49 +08:00
|
|
|
|
|
1993-09-17 03:41:26 +08:00
|
|
|
|
* New macro AC_LONG_64_BITS.
|
|
|
|
|
* Multiple .h files can be created.
|
|
|
|
|
* AC_FIND_X looks for X files directly if it doesn't find xmkmf.
|
|
|
|
|
* AC_ALLOCA defines C_ALLOCA if using alloca.c.
|
1993-08-20 22:54:49 +08:00
|
|
|
|
* --with-NAME can take a value, e.g., --with-targets=sun4,hp300bsd.
|
1993-09-17 03:41:26 +08:00
|
|
|
|
* Unused --no-create option to configure removed.
|
|
|
|
|
* autoheader doesn't change the timestamp of its output file if
|
|
|
|
|
the file didn't change.
|
1993-08-20 22:54:49 +08:00
|
|
|
|
* All macros that look for libraries now use AC_HAVE_LIBRARY.
|
1993-09-17 03:41:26 +08:00
|
|
|
|
* config.status checks three optional environment variables to
|
|
|
|
|
modify its behavior.
|
1993-08-20 22:54:49 +08:00
|
|
|
|
* The usual bug fixes.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.5:
|
1993-07-14 07:13:25 +08:00
|
|
|
|
|
1993-07-23 08:51:51 +08:00
|
|
|
|
* New macros AC_FIND_X, AC_OFF_T, AC_STAT_MACROS_BROKEN, AC_REVISION.
|
1993-07-14 07:13:25 +08:00
|
|
|
|
* autoconf and autoheader scripts have GNU standards conforming
|
|
|
|
|
--version and --help options (they print their message and exit).
|
|
|
|
|
* Many bug fixes.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.4:
|
1993-07-14 07:13:25 +08:00
|
|
|
|
|
|
|
|
|
* New macros AC_HAVE_POUNDBANG, AC_TIME_WITH_SYS_TIME, AC_LONG_DOUBLE,
|
|
|
|
|
AC_GETGROUPS_T, AC_DEFINE_UNQUOTED.
|
|
|
|
|
* autoconf and autoheader use the M4 environment variable to determine the
|
2006-06-21 03:49:14 +08:00
|
|
|
|
name of the M4 program to use.
|
1993-07-14 07:13:25 +08:00
|
|
|
|
* The --macrodir option to autoconf and autoheader specifies the directory
|
|
|
|
|
in which acspecific.m4, acgeneral.m4, etc. reside if not the default.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
* autoconf and autoheader can take '-' as their file names, which means to
|
1993-07-14 07:13:25 +08:00
|
|
|
|
read stdin as input.
|
|
|
|
|
* Resulting configure scripts can take a --verbose option which causes them
|
|
|
|
|
to print the results of their tests.
|
|
|
|
|
* AC_DEFINE quotes its second argument in such a way that spaces, magic
|
|
|
|
|
shell characters, etc. will be preserved during various stages of
|
|
|
|
|
expansion done by the shell. If you don't want this, use
|
|
|
|
|
AC_DEFINE_UNQUOTED instead.
|
|
|
|
|
* Much textual processing done with external calls to tr and sed have been
|
2021-07-21 05:01:43 +08:00
|
|
|
|
internalized with builtin M4 'patsubst' and 'translit' calls.
|
2004-08-21 03:58:06 +08:00
|
|
|
|
* AC_OUTPUT doesn't hardwire the file names it outputs. Instead, you can
|
2021-07-21 05:01:43 +08:00
|
|
|
|
set the shell variables 'gen_files' and 'gen_config' to the list of
|
2004-08-21 03:58:06 +08:00
|
|
|
|
file names to output.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
* AC_DECLARE_YYTEXT does an AC_SUBST of 'LEX_OUTPUT_ROOT', which may be
|
1996-05-08 01:19:58 +08:00
|
|
|
|
"lex.yy" or "lexyy", depending on the system.
|
1993-07-14 07:13:25 +08:00
|
|
|
|
* AC_PROGRAMS_CHECK takes an optional third arg. If given, it is used as
|
1996-05-08 01:19:58 +08:00
|
|
|
|
the default value.
|
1993-07-14 07:13:25 +08:00
|
|
|
|
* If AC_ALLOCA chooses alloca.c, it also defines STACK_DIRECTION.
|
|
|
|
|
* AC_CONST works much more reliably on more systems.
|
|
|
|
|
* Many bug fixes.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.3:
|
1993-07-14 07:13:25 +08:00
|
|
|
|
|
|
|
|
|
configure no longer requires awk for packages that use a config.h.
|
|
|
|
|
Support handling --with-PACKAGE options.
|
2021-07-21 05:01:43 +08:00
|
|
|
|
New 'autoheader' script to create 'config.h.in' from 'configure.in'.
|
1993-07-14 07:13:25 +08:00
|
|
|
|
Ignore troublesome -lucb and -lPW when searching for alloca.
|
|
|
|
|
Rename --exec_prefix to --exec-prefix for GNU standards conformance.
|
|
|
|
|
Improve detection of STDC library.
|
|
|
|
|
Add AC_HAVE_LIBRARY to check for non-default libraries.
|
|
|
|
|
Function checking should work with future GNU libc releases.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.2:
|
1993-07-14 07:13:25 +08:00
|
|
|
|
|
|
|
|
|
The --srcdir option is now usually unnecessary.
|
|
|
|
|
Add a file containing sample comments describing CPP macros.
|
|
|
|
|
A comment in config.status tells which host it was configured on.
|
|
|
|
|
Substituted variable values can now contain commas.
|
|
|
|
|
Fix bugs in various feature checks.
|
|
|
|
|
|
2000-03-28 21:36:43 +08:00
|
|
|
|
Major changes in Autoconf 1.1:
|
1993-07-14 07:13:25 +08:00
|
|
|
|
|
|
|
|
|
Added AC_STRCOLL macro.
|
|
|
|
|
Made AC_GETLOADAVG check for more things.
|
|
|
|
|
AC_OUTPUT argument is now optional.
|
|
|
|
|
Various bug fixes.
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
|
|
|
|
|
|
-----
|
|
|
|
|
|
2024-01-06 01:11:48 +08:00
|
|
|
|
Copyright (C) 1993-1996, 1998-2017, 2020-2024 Free Software Foundation,
|
2021-01-29 04:19:21 +08:00
|
|
|
|
Inc.
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
|
|
2009-05-04 23:41:41 +08:00
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
|
|
|
are permitted in any medium without royalty provided the copyright
|
|
|
|
|
notice and this notice are preserved. This file is offered as-is,
|
|
|
|
|
without warranty of any kind.
|
2003-11-12 23:21:00 +08:00
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: outline
|
|
|
|
|
End:
|