configury: Stop using AC_CANONICAL_SYSTEM [PR103459]
Checks
| Context |
Check |
Description |
| linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap |
success
|
Build passed
|
Commit Message
libstdc++ configure.ac has a reference to a mailinglist post[0]
explaining why AC_CANONICAL_SYSTEM and
target_alias=${target_alias-$host_alias} are used.
The main reason to use AC_CANONICAL_SYSTEM is an automake bug that has
been fixed in the version currently used (1.15.1). In the version of
autoconf we use (2.69) AC_CANONICAL_SYSTEM is aliased to
AC_CANONICAL_TARGET, so the only change caused by using
AC_CANONICAL_TARGET is the removal of an empty line and the
re-adjustment of #line comments on autoconf tests because of that.
The libstc++ message and two lines have been copied to other
libraries. But the copy paste has mutated, sometimes separating the
two lines, sometimes adding a redundant AC_SUBST(target_alias), and in
one case adding AC_CANONICAL_HOST.
Update all libs AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET. Remove
redundant AC_CANONICAL_HOST (AC_REQUIRE'd by AC_CANONICAL_TARGET). And
remove redundant AC_SUBST(target_alias), which is done by
AC_CANONICAL_TARGET.
To avoid confusion remove all the mentions to the libstdc++ message, but
leave other comments untouched if they exist.
[0] http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
PR bootstrap/103459
gotools/ChangeLog:
* configure.ac: Update comment to reference
AC_CANONICAL_TARGET instead of AC_CANONICAL_SYSTEM.
libatomic/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM.
libga68/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_CANONICAL_HOST.
Remove unneeded AC_SUBST(target_alias).
libgcobol/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
libgfortran/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
libgm2/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
libgomp/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM.
libgrust/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
libitm/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM.
libphobos/ChangeLog:
* configure: Regenerate.
* configure.ac: Remove unneeded AC_SUBST(target_alias).
libquadmath/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
libsanitizer/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
libssp/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
libstdc++-v3/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM.
libvtv/ChangeLog:
* configure: Regenerate.
* configure.ac: Use AC_CANONICAL_TARGET instead of
AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
---
gotools/configure.ac | 2 +-
libatomic/configure | 10 +++-------
libatomic/configure.ac | 7 ++-----
libga68/configure | 14 +++-----------
libga68/configure.ac | 11 ++---------
libgcobol/configure | 8 ++------
libgcobol/configure.ac | 5 +----
libgfortran/configure | 11 +++--------
libgfortran/configure.ac | 8 ++------
libgm2/configure | 8 ++------
libgm2/configure.ac | 5 +----
libgomp/configure | 10 +++-------
libgomp/configure.ac | 7 ++-----
libgrust/configure | 8 ++------
libgrust/configure.ac | 5 +----
libitm/configure | 10 +++-------
libitm/configure.ac | 7 ++-----
libphobos/configure | 5 ++---
libphobos/configure.ac | 1 -
libquadmath/configure | 9 ++-------
libquadmath/configure.ac | 6 +-----
libsanitizer/configure | 8 ++------
libsanitizer/configure.ac | 5 +----
libssp/configure | 6 ++----
libssp/configure.ac | 3 +--
libstdc++-v3/configure | 18 +++++++-----------
libstdc++-v3/configure.ac | 7 ++-----
libvtv/configure | 8 ++------
libvtv/configure.ac | 5 +----
29 files changed, 58 insertions(+), 159 deletions(-)
Comments
I forgot to say I regstrapped this on x86_64-linux-gnu and also did a
cross to aarch64-linux-gnu. I ran the testsuite on aarch64 via ssh and
the tests looked ok. I have a few unsupported due to timeouts or
connectivity issues.
Pietro
On Tue, Nov 3, 2026, at 6:34 PM, Pietro Monteiro wrote:
> libstdc++ configure.ac has a reference to a mailinglist post[0]
> explaining why AC_CANONICAL_SYSTEM and
> target_alias=${target_alias-$host_alias} are used.
>
> The main reason to use AC_CANONICAL_SYSTEM is an automake bug that has
> been fixed in the version currently used (1.15.1). In the version of
> autoconf we use (2.69) AC_CANONICAL_SYSTEM is aliased to
> AC_CANONICAL_TARGET, so the only change caused by using
> AC_CANONICAL_TARGET is the removal of an empty line and the
> re-adjustment of #line comments on autoconf tests because of that.
>
> The libstc++ message and two lines have been copied to other
> libraries. But the copy paste has mutated, sometimes separating the
> two lines, sometimes adding a redundant AC_SUBST(target_alias), and in
> one case adding AC_CANONICAL_HOST.
>
> Update all libs AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET. Remove
> redundant AC_CANONICAL_HOST (AC_REQUIRE'd by AC_CANONICAL_TARGET). And
> remove redundant AC_SUBST(target_alias), which is done by
> AC_CANONICAL_TARGET.
>
> To avoid confusion remove all the mentions to the libstdc++ message, but
> leave other comments untouched if they exist.
>
> [0] http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>
> PR bootstrap/103459
>
> gotools/ChangeLog:
>
> * configure.ac: Update comment to reference
> AC_CANONICAL_TARGET instead of AC_CANONICAL_SYSTEM.
>
> libatomic/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libga68/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_CANONICAL_HOST.
> Remove unneeded AC_SUBST(target_alias).
>
> libgcobol/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libgfortran/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libgm2/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libgomp/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libgrust/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libitm/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libphobos/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Remove unneeded AC_SUBST(target_alias).
>
> libquadmath/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libsanitizer/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libssp/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libstdc++-v3/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libvtv/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
> ---
> gotools/configure.ac | 2 +-
> libatomic/configure | 10 +++-------
> libatomic/configure.ac | 7 ++-----
> libga68/configure | 14 +++-----------
> libga68/configure.ac | 11 ++---------
> libgcobol/configure | 8 ++------
> libgcobol/configure.ac | 5 +----
> libgfortran/configure | 11 +++--------
> libgfortran/configure.ac | 8 ++------
> libgm2/configure | 8 ++------
> libgm2/configure.ac | 5 +----
> libgomp/configure | 10 +++-------
> libgomp/configure.ac | 7 ++-----
> libgrust/configure | 8 ++------
> libgrust/configure.ac | 5 +----
> libitm/configure | 10 +++-------
> libitm/configure.ac | 7 ++-----
> libphobos/configure | 5 ++---
> libphobos/configure.ac | 1 -
> libquadmath/configure | 9 ++-------
> libquadmath/configure.ac | 6 +-----
> libsanitizer/configure | 8 ++------
> libsanitizer/configure.ac | 5 +----
> libssp/configure | 6 ++----
> libssp/configure.ac | 3 +--
> libstdc++-v3/configure | 18 +++++++-----------
> libstdc++-v3/configure.ac | 7 ++-----
> libvtv/configure | 8 ++------
> libvtv/configure.ac | 5 +----
> 29 files changed, 58 insertions(+), 159 deletions(-)
>
> diff --git a/gotools/configure.ac b/gotools/configure.ac
> index da5347541e5..4a0a717c3bf 100644
> --- a/gotools/configure.ac
> +++ b/gotools/configure.ac
> @@ -25,7 +25,7 @@ ACX_NONCANONICAL_TARGET
>
> dnl Autoconf 2.5x and later will set a default program prefix if
> dnl --target was used, even if it was the same as --host. Disable
> -dnl that behavior. This must be done before AC_CANONICAL_SYSTEM
> +dnl that behavior. This must be done before AC_CANONICAL_TARGET
> dnl to take effect.
> test "$host_noncanonical" = "$target_noncanonical" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> diff --git a/libatomic/configure b/libatomic/configure
> index ef8f57f41fa..c54bf101cf5 100755
> --- a/libatomic/configure
> +++ b/libatomic/configure
> @@ -2589,9 +2589,6 @@ fi
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2731,10 +2728,9 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -11866,7 +11862,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11869 "configure"
> +#line 11865 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11972,7 +11968,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11975 "configure"
> +#line 11971 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libatomic/configure.ac b/libatomic/configure.ac
> index 2ccd230b1e6..4b8a3d56b5f 100644
> --- a/libatomic/configure.ac
> +++ b/libatomic/configure.ac
> @@ -63,13 +63,10 @@ AM_CONDITIONAL(GENINSRC, test
> "$enable_generated_files_in_srcdir" = yes)
> #
> # Also, if this library is being configured as part of a cross
> compiler, the
> # top-level configure script will pass the "real" host as
> $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libga68/configure b/libga68/configure
> index 386da87d67c..2c570be9fb1 100755
> --- a/libga68/configure
> +++ b/libga68/configure
> @@ -3715,13 +3715,8 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
>
>
> -# Determine the system type and set output variabls to the names of
> +# Determine the system type and set output variables to the names of
> # the canonical system types.
> -#
> -# Do not delete or change the following two lines. For why, and for
> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
> -# recommended AC_CANONICAL_HOST, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> # Make sure we can run config.sub.
> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
> @@ -3832,11 +3827,8 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -
> -
> # These macro are for supporting canadian crosses, in which build /=
> # host /= target.
> case ${build_alias} in
> @@ -12836,7 +12828,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12839 "configure"
> +#line 12831 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12942,7 +12934,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12945 "configure"
> +#line 12937 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libga68/configure.ac b/libga68/configure.ac
> index 17b4e0002e4..36abfdbcec5 100644
> --- a/libga68/configure.ac
> +++ b/libga68/configure.ac
> @@ -39,17 +39,10 @@ GCC_NO_EXECUTABLES
> # compiler.
> AC_USE_SYSTEM_EXTENSIONS
>
> -# Determine the system type and set output variabls to the names of
> +# Determine the system type and set output variables to the names of
> # the canonical system types.
> -#
> -# Do not delete or change the following two lines. For why, and for
> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
> -# recommended AC_CANONICAL_HOST, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
> -AC_CANONICAL_HOST
>
> # These macro are for supporting canadian crosses, in which build /=
> # host /= target.
> diff --git a/libgcobol/configure b/libgcobol/configure
> index 50ae7c9e5b5..f4e75945069 100755
> --- a/libgcobol/configure
> +++ b/libgcobol/configure
> @@ -2956,8 +2956,6 @@ ac_config_headers="$ac_config_headers config.h"
>
>
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -3097,7 +3095,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -3157,7 +3154,6 @@ ac_config_commands="$ac_config_commands multilib"
> target_alias=${target_alias-$host_alias}
>
>
> -
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable
> maintainer-specific portions of Makefiles" >&5
> $as_echo_n "checking whether to enable maintainer-specific portions of
> Makefiles... " >&6; }
> # Check whether --enable-maintainer-mode was given.
> @@ -12224,7 +12220,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12227 "configure"
> +#line 12223 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12330,7 +12326,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12333 "configure"
> +#line 12329 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgcobol/configure.ac b/libgcobol/configure.ac
> index d3b1343bbe9..415147f3ad6 100644
> --- a/libgcobol/configure.ac
> +++ b/libgcobol/configure.ac
> @@ -28,15 +28,12 @@ AC_CONFIG_HEADER(config.h)
>
> AC_CONFIG_MACRO_DIRS([m4])
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> AM_ENABLE_MULTILIB(, ..)
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> AM_MAINTAINER_MODE
>
> diff --git a/libgfortran/configure b/libgfortran/configure
> index d2b3b5f1bda..55e8260e558 100755
> --- a/libgfortran/configure
> +++ b/libgfortran/configure
> @@ -2904,9 +2904,6 @@ $as_echo "$version_specific_libs" >&6; }
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
> $as_echo_n "checking host system type... " >&6; }
> if ${ac_cv_host+:} false; then :
> @@ -2982,11 +2979,9 @@ test -n "$target_alias" &&
>
>
>
> -
> target_alias=${target_alias-$host_alias}
>
> -
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.6: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -13242,7 +13237,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 13245 "configure"
> +#line 13240 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -13348,7 +13343,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 13351 "configure"
> +#line 13346 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
> index 3119a883844..2af9be0b686 100644
> --- a/libgfortran/configure.ac
> +++ b/libgfortran/configure.ac
> @@ -33,16 +33,12 @@ AC_MSG_RESULT($version_specific_libs)
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.6: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libgm2/configure b/libgm2/configure
> index 795d2fd835e..34e713c47af 100755
> --- a/libgm2/configure
> +++ b/libgm2/configure
> @@ -4156,8 +4156,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
>
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> # Make sure we can run config.sub.
> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
> @@ -4268,10 +4266,8 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -
> if test "$build" != "$host"; then
> # We are being configured with some form of cross compiler.
> GLIBGM2_IS_NATIVE=false
> @@ -15142,7 +15138,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 15145 "configure"
> +#line 15141 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -15248,7 +15244,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 15251 "configure"
> +#line 15247 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgm2/configure.ac b/libgm2/configure.ac
> index 4202ab743c0..5c1b6fefad0 100644
> --- a/libgm2/configure.ac
> +++ b/libgm2/configure.ac
> @@ -36,11 +36,8 @@ GCC_NO_EXECUTABLES
>
> AC_USE_SYSTEM_EXTENSIONS
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> if test "$build" != "$host"; then
> # We are being configured with some form of cross compiler.
> diff --git a/libgomp/configure b/libgomp/configure
> index af1a4dcaa5e..2feff7199b2 100755
> --- a/libgomp/configure
> +++ b/libgomp/configure
> @@ -2705,9 +2705,6 @@ fi
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2847,10 +2844,9 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -11862,7 +11858,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11865 "configure"
> +#line 11861 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11968,7 +11964,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11971 "configure"
> +#line 11967 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgomp/configure.ac b/libgomp/configure.ac
> index bf1a6af5809..937b0812a37 100644
> --- a/libgomp/configure.ac
> +++ b/libgomp/configure.ac
> @@ -43,13 +43,10 @@ AM_CONDITIONAL(GENINSRC, test
> "$enable_generated_files_in_srcdir" = yes)
> #
> # Also, if this library is being configured as part of a cross
> compiler, the
> # top-level configure script will pass the "real" host as
> $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libgrust/configure b/libgrust/configure
> index 93c6c5b7445..a2225160db2 100755
> --- a/libgrust/configure
> +++ b/libgrust/configure
> @@ -2430,8 +2430,6 @@ ac_config_commands="$ac_config_commands multilib"
>
> fi
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2571,10 +2569,8 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -
> # Automake should never attempt to rebuild configure
>
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable
> maintainer-specific portions of Makefiles" >&5
> @@ -12876,7 +12872,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12879 "configure"
> +#line 12875 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12982,7 +12978,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12985 "configure"
> +#line 12981 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgrust/configure.ac b/libgrust/configure.ac
> index a01493724e6..d2e83374cdc 100644
> --- a/libgrust/configure.ac
> +++ b/libgrust/configure.ac
> @@ -6,11 +6,8 @@ if test -n "${with_target_subdir}"; then
> AM_ENABLE_MULTILIB(, ..)
> fi
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> # Automake should never attempt to rebuild configure
> AM_MAINTAINER_MODE
> diff --git a/libitm/configure b/libitm/configure
> index b951ac6f598..e7df08ba71a 100755
> --- a/libitm/configure
> +++ b/libitm/configure
> @@ -2765,9 +2765,6 @@ fi
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2907,10 +2904,9 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -12520,7 +12516,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12523 "configure"
> +#line 12519 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12626,7 +12622,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12629 "configure"
> +#line 12625 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libitm/configure.ac b/libitm/configure.ac
> index ecc651de72a..684b8a22436 100644
> --- a/libitm/configure.ac
> +++ b/libitm/configure.ac
> @@ -57,13 +57,10 @@ AM_CONDITIONAL(GENINSRC, test
> "$enable_generated_files_in_srcdir" = yes)
> #
> # Also, if this library is being configured as part of a cross
> compiler, the
> # top-level configure script will pass the "real" host as
> $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libphobos/configure b/libphobos/configure
> index 07da7231cff..300a2310f99 100755
> --- a/libphobos/configure
> +++ b/libphobos/configure
> @@ -3960,7 +3960,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
> target_alias=${target_alias-$target}
>
> -
> # 1.11.1: Require that version of automake.
> # foreign: Don't require README, INSTALL, NEWS, etc.
> # no-define: Don't define PACKAGE and VERSION.
> @@ -12252,7 +12251,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12255 "configure"
> +#line 12254 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12358,7 +12357,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12361 "configure"
> +#line 12360 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libphobos/configure.ac b/libphobos/configure.ac
> index a6b2f13cb98..19e143d6d33 100644
> --- a/libphobos/configure.ac
> +++ b/libphobos/configure.ac
> @@ -35,7 +35,6 @@ AC_CANONICAL_TARGET
> AC_USE_SYSTEM_EXTENSIONS
>
> target_alias=${target_alias-$target}
> -AC_SUBST(target_alias)
>
> # 1.11.1: Require that version of automake.
> # foreign: Don't require README, INSTALL, NEWS, etc.
> diff --git a/libquadmath/configure b/libquadmath/configure
> index 19b30e22f07..e194d441124 100755
> --- a/libquadmath/configure
> +++ b/libquadmath/configure
> @@ -2276,9 +2276,6 @@ ac_config_headers="$ac_config_headers config.h"
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2418,7 +2415,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -2477,7 +2473,6 @@ ac_config_commands="$ac_config_commands multilib"
>
> target_alias=${target_alias-$host_alias}
>
> -
> am__api_version='1.15'
>
> # Find a good install program. We prefer a C program (faster),
> @@ -11311,7 +11306,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11314 "configure"
> +#line 11309 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11417,7 +11412,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11420 "configure"
> +#line 11415 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libquadmath/configure.ac b/libquadmath/configure.ac
> index 159aa108e73..693253d7120 100644
> --- a/libquadmath/configure.ac
> +++ b/libquadmath/configure.ac
> @@ -16,16 +16,12 @@ AC_CONFIG_HEADER(config.h)
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> AM_ENABLE_MULTILIB(, ..)
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> AM_INIT_AUTOMAKE([1.9.0 foreign subdir-objects no-dist -Wall
> -Wno-override -Werror])
>
> diff --git a/libsanitizer/configure b/libsanitizer/configure
> index 4bb9f9e862c..0092716a639 100755
> --- a/libsanitizer/configure
> +++ b/libsanitizer/configure
> @@ -4095,8 +4095,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
>
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> # Make sure we can run config.sub.
> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
> @@ -4207,9 +4205,7 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -12861,7 +12857,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12864 "configure"
> +#line 12860 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12967,7 +12963,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12970 "configure"
> +#line 12966 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac
> index 88ea1f82778..38a6fd9372e 100644
> --- a/libsanitizer/configure.ac
> +++ b/libsanitizer/configure.ac
> @@ -19,11 +19,8 @@ AC_MSG_RESULT($version_specific_libs)
>
> AC_USE_SYSTEM_EXTENSIONS
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>
> AM_INIT_AUTOMAKE(foreign no-dist)
> diff --git a/libssp/configure b/libssp/configure
> index 7728401ef71..c3aea46d07e 100755
> --- a/libssp/configure
> +++ b/libssp/configure
> @@ -2427,7 +2427,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -3108,7 +3107,6 @@ ac_config_commands="$ac_config_commands multilib"
>
> target_alias=${target_alias-$host_alias}
>
> -
> ac_config_headers="$ac_config_headers config.h"
>
>
> @@ -11543,7 +11541,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11546 "configure"
> +#line 11544 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11649,7 +11647,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11652 "configure"
> +#line 11650 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libssp/configure.ac b/libssp/configure.ac
> index 81f6b0d0d41..d99a06e790c 100644
> --- a/libssp/configure.ac
> +++ b/libssp/configure.ac
> @@ -4,7 +4,7 @@
>
> AC_INIT(libssp, 1.0)
> AC_CONFIG_SRCDIR(ssp.c)
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> AM_INIT_AUTOMAKE([no-dist])
> @@ -27,7 +27,6 @@ GCC_NO_EXECUTABLES
> AM_ENABLE_MULTILIB(, ..)
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> AC_CONFIG_HEADERS(config.h)
>
> diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
> index f98e54607ab..6d662798c27 100755
> --- a/libstdc++-v3/configure
> +++ b/libstdc++-v3/configure
> @@ -3149,9 +3149,6 @@ ac_config_commands="$ac_config_commands multilib"
> #
> # Also, if v3 is being configured as part of a cross compiler, the top-level
> # configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -3291,7 +3288,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> # Handy for debugging:
> @@ -3331,7 +3327,7 @@ if test "x$with_headers" = "xno"; then
> fi
>
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.x: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -12679,7 +12675,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12682 "configure"
> +#line 12678 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12785,7 +12781,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12788 "configure"
> +#line 12784 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -16475,7 +16471,7 @@ $as_echo "$glibcxx_cv_atomic_word" >&6; }
> # Fake what AC_COMPILE_IFELSE does.
>
> cat > conftest.$ac_ext << EOF
> -#line 16478 "configure"
> +#line 16474 "configure"
> #include "atomic_word.h"
> int main()
> {
> @@ -16622,7 +16618,7 @@ $as_echo "mutex" >&6; }
> # unnecessary for this test.
>
> cat > conftest.$ac_ext << EOF
> -#line 16625 "configure"
> +#line 16621 "configure"
> int main()
> {
> _Decimal32 d1;
> @@ -16663,7 +16659,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
> # unnecessary for this test.
>
> cat > conftest.$ac_ext << EOF
> -#line 16666 "configure"
> +#line 16662 "configure"
> template<typename T1, typename T2>
> struct same
> { typedef T2 type; };
> @@ -53630,7 +53626,7 @@ $as_echo "$glibcxx_cv_libbacktrace_atomics" >&6; }
> CXXFLAGS='-O0 -S'
>
> cat > conftest.$ac_ext << EOF
> -#line 53633 "configure"
> +#line 53629 "configure"
> #include <stddef.h>
> int main()
> {
> diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
> index db08de7735e..a142f2d3c88 100644
> --- a/libstdc++-v3/configure.ac
> +++ b/libstdc++-v3/configure.ac
> @@ -24,10 +24,7 @@ AM_ENABLE_MULTILIB(, ..)
> #
> # Also, if v3 is being configured as part of a cross compiler, the top-level
> # configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> # Handy for debugging:
> @@ -67,7 +64,7 @@ if test "x$with_headers" = "xno"; then
> fi
> ])
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.x: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libvtv/configure b/libvtv/configure
> index cde32057df5..9392c502024 100755
> --- a/libvtv/configure
> +++ b/libvtv/configure
> @@ -2445,8 +2445,6 @@ fi
> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
> $as_echo "$version_specific_libs" >&6; }
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2586,9 +2584,7 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -12755,7 +12751,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12758 "configure"
> +#line 12754 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12861,7 +12857,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12864 "configure"
> +#line 12860 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libvtv/configure.ac b/libvtv/configure.ac
> index beacded64b8..73fe531f2e5 100644
> --- a/libvtv/configure.ac
> +++ b/libvtv/configure.ac
> @@ -21,11 +21,8 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
> [version_specific_libs=no])
> AC_MSG_RESULT($version_specific_libs)
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>
> AC_USE_SYSTEM_EXTENSIONS
> --
> 2.56.0
Pietro Monteiro <pietro@sociotechnical.xyz> writes:
> libstdc++ configure.ac has a reference to a mailinglist post[0]
> explaining why AC_CANONICAL_SYSTEM and
> target_alias=${target_alias-$host_alias} are used.
>
> The main reason to use AC_CANONICAL_SYSTEM is an automake bug that has
> been fixed in the version currently used (1.15.1). In the version of
> autoconf we use (2.69) AC_CANONICAL_SYSTEM is aliased to
> AC_CANONICAL_TARGET, so the only change caused by using
> AC_CANONICAL_TARGET is the removal of an empty line and the
> re-adjustment of #line comments on autoconf tests because of that.
>
Before I formally non-approve it, do you have the details of the
automake bug, to save me digging?
> The libstc++ message and two lines have been copied to other
> libraries. But the copy paste has mutated, sometimes separating the
> two lines, sometimes adding a redundant AC_SUBST(target_alias), and in
> one case adding AC_CANONICAL_HOST.
>
> Update all libs AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET. Remove
> redundant AC_CANONICAL_HOST (AC_REQUIRE'd by AC_CANONICAL_TARGET). And
> remove redundant AC_SUBST(target_alias), which is done by
> AC_CANONICAL_TARGET.
>
> To avoid confusion remove all the mentions to the libstdc++ message, but
> leave other comments untouched if they exist.
>
> [0] http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
That has been bothering me for quite some time but I didn't summon the
will to investigate yet. Thank you very much!
>
> PR bootstrap/103459
>
> gotools/ChangeLog:
>
> * configure.ac: Update comment to reference
> AC_CANONICAL_TARGET instead of AC_CANONICAL_SYSTEM.
>
> libatomic/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libga68/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_CANONICAL_HOST.
> Remove unneeded AC_SUBST(target_alias).
>
> libgcobol/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libgfortran/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libgm2/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libgomp/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libgrust/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libitm/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libphobos/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Remove unneeded AC_SUBST(target_alias).
>
> libquadmath/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libsanitizer/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libssp/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> libstdc++-v3/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM.
>
> libvtv/ChangeLog:
>
> * configure: Regenerate.
> * configure.ac: Use AC_CANONICAL_TARGET instead of
> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>
> Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
> ---
> gotools/configure.ac | 2 +-
> libatomic/configure | 10 +++-------
> libatomic/configure.ac | 7 ++-----
> libga68/configure | 14 +++-----------
> libga68/configure.ac | 11 ++---------
> libgcobol/configure | 8 ++------
> libgcobol/configure.ac | 5 +----
> libgfortran/configure | 11 +++--------
> libgfortran/configure.ac | 8 ++------
> libgm2/configure | 8 ++------
> libgm2/configure.ac | 5 +----
> libgomp/configure | 10 +++-------
> libgomp/configure.ac | 7 ++-----
> libgrust/configure | 8 ++------
> libgrust/configure.ac | 5 +----
> libitm/configure | 10 +++-------
> libitm/configure.ac | 7 ++-----
> libphobos/configure | 5 ++---
> libphobos/configure.ac | 1 -
> libquadmath/configure | 9 ++-------
> libquadmath/configure.ac | 6 +-----
> libsanitizer/configure | 8 ++------
> libsanitizer/configure.ac | 5 +----
> libssp/configure | 6 ++----
> libssp/configure.ac | 3 +--
> libstdc++-v3/configure | 18 +++++++-----------
> libstdc++-v3/configure.ac | 7 ++-----
> libvtv/configure | 8 ++------
> libvtv/configure.ac | 5 +----
> 29 files changed, 58 insertions(+), 159 deletions(-)
>
> diff --git a/gotools/configure.ac b/gotools/configure.ac
> index da5347541e5..4a0a717c3bf 100644
> --- a/gotools/configure.ac
> +++ b/gotools/configure.ac
> @@ -25,7 +25,7 @@ ACX_NONCANONICAL_TARGET
>
> dnl Autoconf 2.5x and later will set a default program prefix if
> dnl --target was used, even if it was the same as --host. Disable
> -dnl that behavior. This must be done before AC_CANONICAL_SYSTEM
> +dnl that behavior. This must be done before AC_CANONICAL_TARGET
> dnl to take effect.
> test "$host_noncanonical" = "$target_noncanonical" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> diff --git a/libatomic/configure b/libatomic/configure
> index ef8f57f41fa..c54bf101cf5 100755
> --- a/libatomic/configure
> +++ b/libatomic/configure
> @@ -2589,9 +2589,6 @@ fi
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2731,10 +2728,9 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -11866,7 +11862,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11869 "configure"
> +#line 11865 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11972,7 +11968,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11975 "configure"
> +#line 11971 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libatomic/configure.ac b/libatomic/configure.ac
> index 2ccd230b1e6..4b8a3d56b5f 100644
> --- a/libatomic/configure.ac
> +++ b/libatomic/configure.ac
> @@ -63,13 +63,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libga68/configure b/libga68/configure
> index 386da87d67c..2c570be9fb1 100755
> --- a/libga68/configure
> +++ b/libga68/configure
> @@ -3715,13 +3715,8 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
>
>
> -# Determine the system type and set output variabls to the names of
> +# Determine the system type and set output variables to the names of
> # the canonical system types.
> -#
> -# Do not delete or change the following two lines. For why, and for
> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
> -# recommended AC_CANONICAL_HOST, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> # Make sure we can run config.sub.
> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
> @@ -3832,11 +3827,8 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -
> -
> # These macro are for supporting canadian crosses, in which build /=
> # host /= target.
> case ${build_alias} in
> @@ -12836,7 +12828,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12839 "configure"
> +#line 12831 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12942,7 +12934,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12945 "configure"
> +#line 12937 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libga68/configure.ac b/libga68/configure.ac
> index 17b4e0002e4..36abfdbcec5 100644
> --- a/libga68/configure.ac
> +++ b/libga68/configure.ac
> @@ -39,17 +39,10 @@ GCC_NO_EXECUTABLES
> # compiler.
> AC_USE_SYSTEM_EXTENSIONS
>
> -# Determine the system type and set output variabls to the names of
> +# Determine the system type and set output variables to the names of
> # the canonical system types.
> -#
> -# Do not delete or change the following two lines. For why, and for
> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
> -# recommended AC_CANONICAL_HOST, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
> -AC_CANONICAL_HOST
>
> # These macro are for supporting canadian crosses, in which build /=
> # host /= target.
> diff --git a/libgcobol/configure b/libgcobol/configure
> index 50ae7c9e5b5..f4e75945069 100755
> --- a/libgcobol/configure
> +++ b/libgcobol/configure
> @@ -2956,8 +2956,6 @@ ac_config_headers="$ac_config_headers config.h"
>
>
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -3097,7 +3095,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -3157,7 +3154,6 @@ ac_config_commands="$ac_config_commands multilib"
> target_alias=${target_alias-$host_alias}
>
>
> -
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
> $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
> # Check whether --enable-maintainer-mode was given.
> @@ -12224,7 +12220,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12227 "configure"
> +#line 12223 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12330,7 +12326,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12333 "configure"
> +#line 12329 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgcobol/configure.ac b/libgcobol/configure.ac
> index d3b1343bbe9..415147f3ad6 100644
> --- a/libgcobol/configure.ac
> +++ b/libgcobol/configure.ac
> @@ -28,15 +28,12 @@ AC_CONFIG_HEADER(config.h)
>
> AC_CONFIG_MACRO_DIRS([m4])
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> AM_ENABLE_MULTILIB(, ..)
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> AM_MAINTAINER_MODE
>
> diff --git a/libgfortran/configure b/libgfortran/configure
> index d2b3b5f1bda..55e8260e558 100755
> --- a/libgfortran/configure
> +++ b/libgfortran/configure
> @@ -2904,9 +2904,6 @@ $as_echo "$version_specific_libs" >&6; }
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
> $as_echo_n "checking host system type... " >&6; }
> if ${ac_cv_host+:} false; then :
> @@ -2982,11 +2979,9 @@ test -n "$target_alias" &&
>
>
>
> -
> target_alias=${target_alias-$host_alias}
>
> -
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.6: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -13242,7 +13237,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 13245 "configure"
> +#line 13240 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -13348,7 +13343,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 13351 "configure"
> +#line 13346 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
> index 3119a883844..2af9be0b686 100644
> --- a/libgfortran/configure.ac
> +++ b/libgfortran/configure.ac
> @@ -33,16 +33,12 @@ AC_MSG_RESULT($version_specific_libs)
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.6: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libgm2/configure b/libgm2/configure
> index 795d2fd835e..34e713c47af 100755
> --- a/libgm2/configure
> +++ b/libgm2/configure
> @@ -4156,8 +4156,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
>
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> # Make sure we can run config.sub.
> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
> @@ -4268,10 +4266,8 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -
> if test "$build" != "$host"; then
> # We are being configured with some form of cross compiler.
> GLIBGM2_IS_NATIVE=false
> @@ -15142,7 +15138,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 15145 "configure"
> +#line 15141 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -15248,7 +15244,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 15251 "configure"
> +#line 15247 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgm2/configure.ac b/libgm2/configure.ac
> index 4202ab743c0..5c1b6fefad0 100644
> --- a/libgm2/configure.ac
> +++ b/libgm2/configure.ac
> @@ -36,11 +36,8 @@ GCC_NO_EXECUTABLES
>
> AC_USE_SYSTEM_EXTENSIONS
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> if test "$build" != "$host"; then
> # We are being configured with some form of cross compiler.
> diff --git a/libgomp/configure b/libgomp/configure
> index af1a4dcaa5e..2feff7199b2 100755
> --- a/libgomp/configure
> +++ b/libgomp/configure
> @@ -2705,9 +2705,6 @@ fi
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2847,10 +2844,9 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -11862,7 +11858,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11865 "configure"
> +#line 11861 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11968,7 +11964,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11971 "configure"
> +#line 11967 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgomp/configure.ac b/libgomp/configure.ac
> index bf1a6af5809..937b0812a37 100644
> --- a/libgomp/configure.ac
> +++ b/libgomp/configure.ac
> @@ -43,13 +43,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libgrust/configure b/libgrust/configure
> index 93c6c5b7445..a2225160db2 100755
> --- a/libgrust/configure
> +++ b/libgrust/configure
> @@ -2430,8 +2430,6 @@ ac_config_commands="$ac_config_commands multilib"
>
> fi
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2571,10 +2569,8 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -
> # Automake should never attempt to rebuild configure
>
> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
> @@ -12876,7 +12872,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12879 "configure"
> +#line 12875 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12982,7 +12978,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12985 "configure"
> +#line 12981 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libgrust/configure.ac b/libgrust/configure.ac
> index a01493724e6..d2e83374cdc 100644
> --- a/libgrust/configure.ac
> +++ b/libgrust/configure.ac
> @@ -6,11 +6,8 @@ if test -n "${with_target_subdir}"; then
> AM_ENABLE_MULTILIB(, ..)
> fi
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> # Automake should never attempt to rebuild configure
> AM_MAINTAINER_MODE
> diff --git a/libitm/configure b/libitm/configure
> index b951ac6f598..e7df08ba71a 100755
> --- a/libitm/configure
> +++ b/libitm/configure
> @@ -2765,9 +2765,6 @@ fi
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2907,10 +2904,9 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -12520,7 +12516,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12523 "configure"
> +#line 12519 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12626,7 +12622,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12629 "configure"
> +#line 12625 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libitm/configure.ac b/libitm/configure.ac
> index ecc651de72a..684b8a22436 100644
> --- a/libitm/configure.ac
> +++ b/libitm/configure.ac
> @@ -57,13 +57,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.9.0: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libphobos/configure b/libphobos/configure
> index 07da7231cff..300a2310f99 100755
> --- a/libphobos/configure
> +++ b/libphobos/configure
> @@ -3960,7 +3960,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
> target_alias=${target_alias-$target}
>
> -
> # 1.11.1: Require that version of automake.
> # foreign: Don't require README, INSTALL, NEWS, etc.
> # no-define: Don't define PACKAGE and VERSION.
> @@ -12252,7 +12251,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12255 "configure"
> +#line 12254 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12358,7 +12357,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12361 "configure"
> +#line 12360 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libphobos/configure.ac b/libphobos/configure.ac
> index a6b2f13cb98..19e143d6d33 100644
> --- a/libphobos/configure.ac
> +++ b/libphobos/configure.ac
> @@ -35,7 +35,6 @@ AC_CANONICAL_TARGET
> AC_USE_SYSTEM_EXTENSIONS
>
> target_alias=${target_alias-$target}
> -AC_SUBST(target_alias)
>
> # 1.11.1: Require that version of automake.
> # foreign: Don't require README, INSTALL, NEWS, etc.
> diff --git a/libquadmath/configure b/libquadmath/configure
> index 19b30e22f07..e194d441124 100755
> --- a/libquadmath/configure
> +++ b/libquadmath/configure
> @@ -2276,9 +2276,6 @@ ac_config_headers="$ac_config_headers config.h"
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2418,7 +2415,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -2477,7 +2473,6 @@ ac_config_commands="$ac_config_commands multilib"
>
> target_alias=${target_alias-$host_alias}
>
> -
> am__api_version='1.15'
>
> # Find a good install program. We prefer a C program (faster),
> @@ -11311,7 +11306,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11314 "configure"
> +#line 11309 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11417,7 +11412,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11420 "configure"
> +#line 11415 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libquadmath/configure.ac b/libquadmath/configure.ac
> index 159aa108e73..693253d7120 100644
> --- a/libquadmath/configure.ac
> +++ b/libquadmath/configure.ac
> @@ -16,16 +16,12 @@ AC_CONFIG_HEADER(config.h)
> #
> # Also, if this library is being configured as part of a cross compiler, the
> # top-level configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> AM_ENABLE_MULTILIB(, ..)
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> AM_INIT_AUTOMAKE([1.9.0 foreign subdir-objects no-dist -Wall -Wno-override -Werror])
>
> diff --git a/libsanitizer/configure b/libsanitizer/configure
> index 4bb9f9e862c..0092716a639 100755
> --- a/libsanitizer/configure
> +++ b/libsanitizer/configure
> @@ -4095,8 +4095,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
>
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> # Make sure we can run config.sub.
> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
> @@ -4207,9 +4205,7 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -12861,7 +12857,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12864 "configure"
> +#line 12860 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12967,7 +12963,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12970 "configure"
> +#line 12966 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac
> index 88ea1f82778..38a6fd9372e 100644
> --- a/libsanitizer/configure.ac
> +++ b/libsanitizer/configure.ac
> @@ -19,11 +19,8 @@ AC_MSG_RESULT($version_specific_libs)
>
> AC_USE_SYSTEM_EXTENSIONS
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>
> AM_INIT_AUTOMAKE(foreign no-dist)
> diff --git a/libssp/configure b/libssp/configure
> index 7728401ef71..c3aea46d07e 100755
> --- a/libssp/configure
> +++ b/libssp/configure
> @@ -2427,7 +2427,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -3108,7 +3107,6 @@ ac_config_commands="$ac_config_commands multilib"
>
> target_alias=${target_alias-$host_alias}
>
> -
> ac_config_headers="$ac_config_headers config.h"
>
>
> @@ -11543,7 +11541,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11546 "configure"
> +#line 11544 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -11649,7 +11647,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 11652 "configure"
> +#line 11650 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libssp/configure.ac b/libssp/configure.ac
> index 81f6b0d0d41..d99a06e790c 100644
> --- a/libssp/configure.ac
> +++ b/libssp/configure.ac
> @@ -4,7 +4,7 @@
>
> AC_INIT(libssp, 1.0)
> AC_CONFIG_SRCDIR(ssp.c)
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> ACX_NONCANONICAL_TARGET
>
> AM_INIT_AUTOMAKE([no-dist])
> @@ -27,7 +27,6 @@ GCC_NO_EXECUTABLES
> AM_ENABLE_MULTILIB(, ..)
>
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
>
> AC_CONFIG_HEADERS(config.h)
>
> diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
> index f98e54607ab..6d662798c27 100755
> --- a/libstdc++-v3/configure
> +++ b/libstdc++-v3/configure
> @@ -3149,9 +3149,6 @@ ac_config_commands="$ac_config_commands multilib"
> #
> # Also, if v3 is being configured as part of a cross compiler, the top-level
> # configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -3291,7 +3288,6 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
>
> # Handy for debugging:
> @@ -3331,7 +3327,7 @@ if test "x$with_headers" = "xno"; then
> fi
>
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.x: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> @@ -12679,7 +12675,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12682 "configure"
> +#line 12678 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12785,7 +12781,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12788 "configure"
> +#line 12784 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -16475,7 +16471,7 @@ $as_echo "$glibcxx_cv_atomic_word" >&6; }
> # Fake what AC_COMPILE_IFELSE does.
>
> cat > conftest.$ac_ext << EOF
> -#line 16478 "configure"
> +#line 16474 "configure"
> #include "atomic_word.h"
> int main()
> {
> @@ -16622,7 +16618,7 @@ $as_echo "mutex" >&6; }
> # unnecessary for this test.
>
> cat > conftest.$ac_ext << EOF
> -#line 16625 "configure"
> +#line 16621 "configure"
> int main()
> {
> _Decimal32 d1;
> @@ -16663,7 +16659,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
> # unnecessary for this test.
>
> cat > conftest.$ac_ext << EOF
> -#line 16666 "configure"
> +#line 16662 "configure"
> template<typename T1, typename T2>
> struct same
> { typedef T2 type; };
> @@ -53630,7 +53626,7 @@ $as_echo "$glibcxx_cv_libbacktrace_atomics" >&6; }
> CXXFLAGS='-O0 -S'
>
> cat > conftest.$ac_ext << EOF
> -#line 53633 "configure"
> +#line 53629 "configure"
> #include <stddef.h>
> int main()
> {
> diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
> index db08de7735e..a142f2d3c88 100644
> --- a/libstdc++-v3/configure.ac
> +++ b/libstdc++-v3/configure.ac
> @@ -24,10 +24,7 @@ AM_ENABLE_MULTILIB(, ..)
> #
> # Also, if v3 is being configured as part of a cross compiler, the top-level
> # configure script will pass the "real" host as $with_cross_host.
> -#
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
>
> # Handy for debugging:
> @@ -67,7 +64,7 @@ if test "x$with_headers" = "xno"; then
> fi
> ])
>
> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
> # 1.x: minimum required version
> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
> diff --git a/libvtv/configure b/libvtv/configure
> index cde32057df5..9392c502024 100755
> --- a/libvtv/configure
> +++ b/libvtv/configure
> @@ -2445,8 +2445,6 @@ fi
> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
> $as_echo "$version_specific_libs" >&6; }
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> ac_aux_dir=
> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
> if test -f "$ac_dir/install-sh"; then
> @@ -2586,9 +2584,7 @@ test -n "$target_alias" &&
> test "$program_prefix$program_suffix$program_transform_name" = \
> NONENONEs,x,x, &&
> program_prefix=${target_alias}-
> -
> target_alias=${target_alias-$host_alias}
> -
> case ${build_alias} in
> "") build_noncanonical=${build} ;;
> *) build_noncanonical=${build_alias} ;;
> @@ -12755,7 +12751,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12758 "configure"
> +#line 12754 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> @@ -12861,7 +12857,7 @@ else
> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
> lt_status=$lt_dlunknown
> cat > conftest.$ac_ext <<_LT_EOF
> -#line 12864 "configure"
> +#line 12860 "configure"
> #include "confdefs.h"
>
> #if HAVE_DLFCN_H
> diff --git a/libvtv/configure.ac b/libvtv/configure.ac
> index beacded64b8..73fe531f2e5 100644
> --- a/libvtv/configure.ac
> +++ b/libvtv/configure.ac
> @@ -21,11 +21,8 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
> [version_specific_libs=no])
> AC_MSG_RESULT($version_specific_libs)
>
> -# Do not delete or change the following two lines. For why, see
> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
> -AC_CANONICAL_SYSTEM
> +AC_CANONICAL_TARGET
> target_alias=${target_alias-$host_alias}
> -AC_SUBST(target_alias)
> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>
> AC_USE_SYSTEM_EXTENSIONS
On Fri, Nov 6, 2026, at 1:39 AM, Sam James wrote:
> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>
>> libstdc++ configure.ac has a reference to a mailinglist post[0]
>> explaining why AC_CANONICAL_SYSTEM and
>> target_alias=${target_alias-$host_alias} are used.
>>
>> The main reason to use AC_CANONICAL_SYSTEM is an automake bug that has
>> been fixed in the version currently used (1.15.1). In the version of
>> autoconf we use (2.69) AC_CANONICAL_SYSTEM is aliased to
>> AC_CANONICAL_TARGET, so the only change caused by using
>> AC_CANONICAL_TARGET is the removal of an empty line and the
>> re-adjustment of #line comments on autoconf tests because of that.
>>
>
> Before I formally non-approve it, do you have the details of the
> automake bug, to save me digging?
The libstcd++ email says better that I ever could, but the gist is
"target_alias" would not get set if you used AC_CANONICAL_TARGET, thus
even though AC_CANONICAL_SYSTEM has been deprecated for a long time it
was necessary to keep it.
I hadn't tracked down the fix in automake, just looed at the 1.15.1
code to see if it was still there, but I did a quick search using git
and I believe it was fixed in automake commit
1947468fc2915f89251e4c1010d4eee8efe24001. Judging by the commit date
that fix would be present in automake 1.9.1.
>> The libstc++ message and two lines have been copied to other
>> libraries. But the copy paste has mutated, sometimes separating the
>> two lines, sometimes adding a redundant AC_SUBST(target_alias), and in
>> one case adding AC_CANONICAL_HOST.
>>
>> Update all libs AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET. Remove
>> redundant AC_CANONICAL_HOST (AC_REQUIRE'd by AC_CANONICAL_TARGET). And
>> remove redundant AC_SUBST(target_alias), which is done by
>> AC_CANONICAL_TARGET.
>>
>> To avoid confusion remove all the mentions to the libstdc++ message, but
>> leave other comments untouched if they exist.
>>
>> [0] http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>
> That has been bothering me for quite some time but I didn't summon the
> will to investigate yet. Thank you very much!
Welcome!
pietro
>> PR bootstrap/103459
>>
>> gotools/ChangeLog:
>>
>> * configure.ac: Update comment to reference
>> AC_CANONICAL_TARGET instead of AC_CANONICAL_SYSTEM.
>>
>> libatomic/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM.
>>
>> libga68/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_CANONICAL_HOST.
>> Remove unneeded AC_SUBST(target_alias).
>>
>> libgcobol/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> libgfortran/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> libgm2/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> libgomp/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM.
>>
>> libgrust/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> libitm/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM.
>>
>> libphobos/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Remove unneeded AC_SUBST(target_alias).
>>
>> libquadmath/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> libsanitizer/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> libssp/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> libstdc++-v3/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM.
>>
>> libvtv/ChangeLog:
>>
>> * configure: Regenerate.
>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>
>> Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
>> ---
>> gotools/configure.ac | 2 +-
>> libatomic/configure | 10 +++-------
>> libatomic/configure.ac | 7 ++-----
>> libga68/configure | 14 +++-----------
>> libga68/configure.ac | 11 ++---------
>> libgcobol/configure | 8 ++------
>> libgcobol/configure.ac | 5 +----
>> libgfortran/configure | 11 +++--------
>> libgfortran/configure.ac | 8 ++------
>> libgm2/configure | 8 ++------
>> libgm2/configure.ac | 5 +----
>> libgomp/configure | 10 +++-------
>> libgomp/configure.ac | 7 ++-----
>> libgrust/configure | 8 ++------
>> libgrust/configure.ac | 5 +----
>> libitm/configure | 10 +++-------
>> libitm/configure.ac | 7 ++-----
>> libphobos/configure | 5 ++---
>> libphobos/configure.ac | 1 -
>> libquadmath/configure | 9 ++-------
>> libquadmath/configure.ac | 6 +-----
>> libsanitizer/configure | 8 ++------
>> libsanitizer/configure.ac | 5 +----
>> libssp/configure | 6 ++----
>> libssp/configure.ac | 3 +--
>> libstdc++-v3/configure | 18 +++++++-----------
>> libstdc++-v3/configure.ac | 7 ++-----
>> libvtv/configure | 8 ++------
>> libvtv/configure.ac | 5 +----
>> 29 files changed, 58 insertions(+), 159 deletions(-)
>>
>> diff --git a/gotools/configure.ac b/gotools/configure.ac
>> index da5347541e5..4a0a717c3bf 100644
>> --- a/gotools/configure.ac
>> +++ b/gotools/configure.ac
>> @@ -25,7 +25,7 @@ ACX_NONCANONICAL_TARGET
>>
>> dnl Autoconf 2.5x and later will set a default program prefix if
>> dnl --target was used, even if it was the same as --host. Disable
>> -dnl that behavior. This must be done before AC_CANONICAL_SYSTEM
>> +dnl that behavior. This must be done before AC_CANONICAL_TARGET
>> dnl to take effect.
>> test "$host_noncanonical" = "$target_noncanonical" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> diff --git a/libatomic/configure b/libatomic/configure
>> index ef8f57f41fa..c54bf101cf5 100755
>> --- a/libatomic/configure
>> +++ b/libatomic/configure
>> @@ -2589,9 +2589,6 @@ fi
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -2731,10 +2728,9 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.0: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> @@ -11866,7 +11862,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11869 "configure"
>> +#line 11865 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -11972,7 +11968,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11975 "configure"
>> +#line 11971 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libatomic/configure.ac b/libatomic/configure.ac
>> index 2ccd230b1e6..4b8a3d56b5f 100644
>> --- a/libatomic/configure.ac
>> +++ b/libatomic/configure.ac
>> @@ -63,13 +63,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.0: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> diff --git a/libga68/configure b/libga68/configure
>> index 386da87d67c..2c570be9fb1 100755
>> --- a/libga68/configure
>> +++ b/libga68/configure
>> @@ -3715,13 +3715,8 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>
>>
>>
>> -# Determine the system type and set output variabls to the names of
>> +# Determine the system type and set output variables to the names of
>> # the canonical system types.
>> -#
>> -# Do not delete or change the following two lines. For why, and for
>> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
>> -# recommended AC_CANONICAL_HOST, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> # Make sure we can run config.sub.
>> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
>> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
>> @@ -3832,11 +3827,8 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> -
>> -
>> # These macro are for supporting canadian crosses, in which build /=
>> # host /= target.
>> case ${build_alias} in
>> @@ -12836,7 +12828,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12839 "configure"
>> +#line 12831 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12942,7 +12934,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12945 "configure"
>> +#line 12937 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libga68/configure.ac b/libga68/configure.ac
>> index 17b4e0002e4..36abfdbcec5 100644
>> --- a/libga68/configure.ac
>> +++ b/libga68/configure.ac
>> @@ -39,17 +39,10 @@ GCC_NO_EXECUTABLES
>> # compiler.
>> AC_USE_SYSTEM_EXTENSIONS
>>
>> -# Determine the system type and set output variabls to the names of
>> +# Determine the system type and set output variables to the names of
>> # the canonical system types.
>> -#
>> -# Do not delete or change the following two lines. For why, and for
>> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
>> -# recommended AC_CANONICAL_HOST, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>> -AC_CANONICAL_HOST
>>
>> # These macro are for supporting canadian crosses, in which build /=
>> # host /= target.
>> diff --git a/libgcobol/configure b/libgcobol/configure
>> index 50ae7c9e5b5..f4e75945069 100755
>> --- a/libgcobol/configure
>> +++ b/libgcobol/configure
>> @@ -2956,8 +2956,6 @@ ac_config_headers="$ac_config_headers config.h"
>>
>>
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -3097,7 +3095,6 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> case ${build_alias} in
>> "") build_noncanonical=${build} ;;
>> *) build_noncanonical=${build_alias} ;;
>> @@ -3157,7 +3154,6 @@ ac_config_commands="$ac_config_commands multilib"
>> target_alias=${target_alias-$host_alias}
>>
>>
>> -
>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
>> $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
>> # Check whether --enable-maintainer-mode was given.
>> @@ -12224,7 +12220,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12227 "configure"
>> +#line 12223 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12330,7 +12326,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12333 "configure"
>> +#line 12329 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libgcobol/configure.ac b/libgcobol/configure.ac
>> index d3b1343bbe9..415147f3ad6 100644
>> --- a/libgcobol/configure.ac
>> +++ b/libgcobol/configure.ac
>> @@ -28,15 +28,12 @@ AC_CONFIG_HEADER(config.h)
>>
>> AC_CONFIG_MACRO_DIRS([m4])
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> ACX_NONCANONICAL_TARGET
>>
>> AM_ENABLE_MULTILIB(, ..)
>>
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>>
>> AM_MAINTAINER_MODE
>>
>> diff --git a/libgfortran/configure b/libgfortran/configure
>> index d2b3b5f1bda..55e8260e558 100755
>> --- a/libgfortran/configure
>> +++ b/libgfortran/configure
>> @@ -2904,9 +2904,6 @@ $as_echo "$version_specific_libs" >&6; }
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
>> $as_echo_n "checking host system type... " >&6; }
>> if ${ac_cv_host+:} false; then :
>> @@ -2982,11 +2979,9 @@ test -n "$target_alias" &&
>>
>>
>>
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> -
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.6: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> @@ -13242,7 +13237,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 13245 "configure"
>> +#line 13240 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -13348,7 +13343,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 13351 "configure"
>> +#line 13346 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
>> index 3119a883844..2af9be0b686 100644
>> --- a/libgfortran/configure.ac
>> +++ b/libgfortran/configure.ac
>> @@ -33,16 +33,12 @@ AC_MSG_RESULT($version_specific_libs)
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> ACX_NONCANONICAL_TARGET
>>
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.6: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> diff --git a/libgm2/configure b/libgm2/configure
>> index 795d2fd835e..34e713c47af 100755
>> --- a/libgm2/configure
>> +++ b/libgm2/configure
>> @@ -4156,8 +4156,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>
>>
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> # Make sure we can run config.sub.
>> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
>> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
>> @@ -4268,10 +4266,8 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> -
>> if test "$build" != "$host"; then
>> # We are being configured with some form of cross compiler.
>> GLIBGM2_IS_NATIVE=false
>> @@ -15142,7 +15138,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 15145 "configure"
>> +#line 15141 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -15248,7 +15244,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 15251 "configure"
>> +#line 15247 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libgm2/configure.ac b/libgm2/configure.ac
>> index 4202ab743c0..5c1b6fefad0 100644
>> --- a/libgm2/configure.ac
>> +++ b/libgm2/configure.ac
>> @@ -36,11 +36,8 @@ GCC_NO_EXECUTABLES
>>
>> AC_USE_SYSTEM_EXTENSIONS
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>>
>> if test "$build" != "$host"; then
>> # We are being configured with some form of cross compiler.
>> diff --git a/libgomp/configure b/libgomp/configure
>> index af1a4dcaa5e..2feff7199b2 100755
>> --- a/libgomp/configure
>> +++ b/libgomp/configure
>> @@ -2705,9 +2705,6 @@ fi
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -2847,10 +2844,9 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.0: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> @@ -11862,7 +11858,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11865 "configure"
>> +#line 11861 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -11968,7 +11964,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11971 "configure"
>> +#line 11967 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libgomp/configure.ac b/libgomp/configure.ac
>> index bf1a6af5809..937b0812a37 100644
>> --- a/libgomp/configure.ac
>> +++ b/libgomp/configure.ac
>> @@ -43,13 +43,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.0: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> diff --git a/libgrust/configure b/libgrust/configure
>> index 93c6c5b7445..a2225160db2 100755
>> --- a/libgrust/configure
>> +++ b/libgrust/configure
>> @@ -2430,8 +2430,6 @@ ac_config_commands="$ac_config_commands multilib"
>>
>> fi
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -2571,10 +2569,8 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> -
>> # Automake should never attempt to rebuild configure
>>
>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
>> @@ -12876,7 +12872,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12879 "configure"
>> +#line 12875 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12982,7 +12978,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12985 "configure"
>> +#line 12981 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libgrust/configure.ac b/libgrust/configure.ac
>> index a01493724e6..d2e83374cdc 100644
>> --- a/libgrust/configure.ac
>> +++ b/libgrust/configure.ac
>> @@ -6,11 +6,8 @@ if test -n "${with_target_subdir}"; then
>> AM_ENABLE_MULTILIB(, ..)
>> fi
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>>
>> # Automake should never attempt to rebuild configure
>> AM_MAINTAINER_MODE
>> diff --git a/libitm/configure b/libitm/configure
>> index b951ac6f598..e7df08ba71a 100755
>> --- a/libitm/configure
>> +++ b/libitm/configure
>> @@ -2765,9 +2765,6 @@ fi
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -2907,10 +2904,9 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.0: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> @@ -12520,7 +12516,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12523 "configure"
>> +#line 12519 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12626,7 +12622,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12629 "configure"
>> +#line 12625 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libitm/configure.ac b/libitm/configure.ac
>> index ecc651de72a..684b8a22436 100644
>> --- a/libitm/configure.ac
>> +++ b/libitm/configure.ac
>> @@ -57,13 +57,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.9.0: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> diff --git a/libphobos/configure b/libphobos/configure
>> index 07da7231cff..300a2310f99 100755
>> --- a/libphobos/configure
>> +++ b/libphobos/configure
>> @@ -3960,7 +3960,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>
>> target_alias=${target_alias-$target}
>>
>> -
>> # 1.11.1: Require that version of automake.
>> # foreign: Don't require README, INSTALL, NEWS, etc.
>> # no-define: Don't define PACKAGE and VERSION.
>> @@ -12252,7 +12251,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12255 "configure"
>> +#line 12254 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12358,7 +12357,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12361 "configure"
>> +#line 12360 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libphobos/configure.ac b/libphobos/configure.ac
>> index a6b2f13cb98..19e143d6d33 100644
>> --- a/libphobos/configure.ac
>> +++ b/libphobos/configure.ac
>> @@ -35,7 +35,6 @@ AC_CANONICAL_TARGET
>> AC_USE_SYSTEM_EXTENSIONS
>>
>> target_alias=${target_alias-$target}
>> -AC_SUBST(target_alias)
>>
>> # 1.11.1: Require that version of automake.
>> # foreign: Don't require README, INSTALL, NEWS, etc.
>> diff --git a/libquadmath/configure b/libquadmath/configure
>> index 19b30e22f07..e194d441124 100755
>> --- a/libquadmath/configure
>> +++ b/libquadmath/configure
>> @@ -2276,9 +2276,6 @@ ac_config_headers="$ac_config_headers config.h"
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -2418,7 +2415,6 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> case ${build_alias} in
>> "") build_noncanonical=${build} ;;
>> *) build_noncanonical=${build_alias} ;;
>> @@ -2477,7 +2473,6 @@ ac_config_commands="$ac_config_commands multilib"
>>
>> target_alias=${target_alias-$host_alias}
>>
>> -
>> am__api_version='1.15'
>>
>> # Find a good install program. We prefer a C program (faster),
>> @@ -11311,7 +11306,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11314 "configure"
>> +#line 11309 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -11417,7 +11412,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11420 "configure"
>> +#line 11415 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libquadmath/configure.ac b/libquadmath/configure.ac
>> index 159aa108e73..693253d7120 100644
>> --- a/libquadmath/configure.ac
>> +++ b/libquadmath/configure.ac
>> @@ -16,16 +16,12 @@ AC_CONFIG_HEADER(config.h)
>> #
>> # Also, if this library is being configured as part of a cross compiler, the
>> # top-level configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> ACX_NONCANONICAL_TARGET
>>
>> AM_ENABLE_MULTILIB(, ..)
>>
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>>
>> AM_INIT_AUTOMAKE([1.9.0 foreign subdir-objects no-dist -Wall -Wno-override -Werror])
>>
>> diff --git a/libsanitizer/configure b/libsanitizer/configure
>> index 4bb9f9e862c..0092716a639 100755
>> --- a/libsanitizer/configure
>> +++ b/libsanitizer/configure
>> @@ -4095,8 +4095,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>
>>
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> # Make sure we can run config.sub.
>> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
>> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
>> @@ -4207,9 +4205,7 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>> -
>> case ${build_alias} in
>> "") build_noncanonical=${build} ;;
>> *) build_noncanonical=${build_alias} ;;
>> @@ -12861,7 +12857,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12864 "configure"
>> +#line 12860 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12967,7 +12963,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12970 "configure"
>> +#line 12966 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac
>> index 88ea1f82778..38a6fd9372e 100644
>> --- a/libsanitizer/configure.ac
>> +++ b/libsanitizer/configure.ac
>> @@ -19,11 +19,8 @@ AC_MSG_RESULT($version_specific_libs)
>>
>> AC_USE_SYSTEM_EXTENSIONS
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>>
>> AM_INIT_AUTOMAKE(foreign no-dist)
>> diff --git a/libssp/configure b/libssp/configure
>> index 7728401ef71..c3aea46d07e 100755
>> --- a/libssp/configure
>> +++ b/libssp/configure
>> @@ -2427,7 +2427,6 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> case ${build_alias} in
>> "") build_noncanonical=${build} ;;
>> *) build_noncanonical=${build_alias} ;;
>> @@ -3108,7 +3107,6 @@ ac_config_commands="$ac_config_commands multilib"
>>
>> target_alias=${target_alias-$host_alias}
>>
>> -
>> ac_config_headers="$ac_config_headers config.h"
>>
>>
>> @@ -11543,7 +11541,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11546 "configure"
>> +#line 11544 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -11649,7 +11647,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 11652 "configure"
>> +#line 11650 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libssp/configure.ac b/libssp/configure.ac
>> index 81f6b0d0d41..d99a06e790c 100644
>> --- a/libssp/configure.ac
>> +++ b/libssp/configure.ac
>> @@ -4,7 +4,7 @@
>>
>> AC_INIT(libssp, 1.0)
>> AC_CONFIG_SRCDIR(ssp.c)
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> ACX_NONCANONICAL_TARGET
>>
>> AM_INIT_AUTOMAKE([no-dist])
>> @@ -27,7 +27,6 @@ GCC_NO_EXECUTABLES
>> AM_ENABLE_MULTILIB(, ..)
>>
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>>
>> AC_CONFIG_HEADERS(config.h)
>>
>> diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
>> index f98e54607ab..6d662798c27 100755
>> --- a/libstdc++-v3/configure
>> +++ b/libstdc++-v3/configure
>> @@ -3149,9 +3149,6 @@ ac_config_commands="$ac_config_commands multilib"
>> #
>> # Also, if v3 is being configured as part of a cross compiler, the top-level
>> # configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -3291,7 +3288,6 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>>
>> # Handy for debugging:
>> @@ -3331,7 +3327,7 @@ if test "x$with_headers" = "xno"; then
>> fi
>>
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.x: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> @@ -12679,7 +12675,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12682 "configure"
>> +#line 12678 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12785,7 +12781,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12788 "configure"
>> +#line 12784 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -16475,7 +16471,7 @@ $as_echo "$glibcxx_cv_atomic_word" >&6; }
>> # Fake what AC_COMPILE_IFELSE does.
>>
>> cat > conftest.$ac_ext << EOF
>> -#line 16478 "configure"
>> +#line 16474 "configure"
>> #include "atomic_word.h"
>> int main()
>> {
>> @@ -16622,7 +16618,7 @@ $as_echo "mutex" >&6; }
>> # unnecessary for this test.
>>
>> cat > conftest.$ac_ext << EOF
>> -#line 16625 "configure"
>> +#line 16621 "configure"
>> int main()
>> {
>> _Decimal32 d1;
>> @@ -16663,7 +16659,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
>> # unnecessary for this test.
>>
>> cat > conftest.$ac_ext << EOF
>> -#line 16666 "configure"
>> +#line 16662 "configure"
>> template<typename T1, typename T2>
>> struct same
>> { typedef T2 type; };
>> @@ -53630,7 +53626,7 @@ $as_echo "$glibcxx_cv_libbacktrace_atomics" >&6; }
>> CXXFLAGS='-O0 -S'
>>
>> cat > conftest.$ac_ext << EOF
>> -#line 53633 "configure"
>> +#line 53629 "configure"
>> #include <stddef.h>
>> int main()
>> {
>> diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
>> index db08de7735e..a142f2d3c88 100644
>> --- a/libstdc++-v3/configure.ac
>> +++ b/libstdc++-v3/configure.ac
>> @@ -24,10 +24,7 @@ AM_ENABLE_MULTILIB(, ..)
>> #
>> # Also, if v3 is being configured as part of a cross compiler, the top-level
>> # configure script will pass the "real" host as $with_cross_host.
>> -#
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>>
>> # Handy for debugging:
>> @@ -67,7 +64,7 @@ if test "x$with_headers" = "xno"; then
>> fi
>> ])
>>
>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>> # 1.x: minimum required version
>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>> diff --git a/libvtv/configure b/libvtv/configure
>> index cde32057df5..9392c502024 100755
>> --- a/libvtv/configure
>> +++ b/libvtv/configure
>> @@ -2445,8 +2445,6 @@ fi
>> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
>> $as_echo "$version_specific_libs" >&6; }
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> ac_aux_dir=
>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>> if test -f "$ac_dir/install-sh"; then
>> @@ -2586,9 +2584,7 @@ test -n "$target_alias" &&
>> test "$program_prefix$program_suffix$program_transform_name" = \
>> NONENONEs,x,x, &&
>> program_prefix=${target_alias}-
>> -
>> target_alias=${target_alias-$host_alias}
>> -
>> case ${build_alias} in
>> "") build_noncanonical=${build} ;;
>> *) build_noncanonical=${build_alias} ;;
>> @@ -12755,7 +12751,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12758 "configure"
>> +#line 12754 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> @@ -12861,7 +12857,7 @@ else
>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>> lt_status=$lt_dlunknown
>> cat > conftest.$ac_ext <<_LT_EOF
>> -#line 12864 "configure"
>> +#line 12860 "configure"
>> #include "confdefs.h"
>>
>> #if HAVE_DLFCN_H
>> diff --git a/libvtv/configure.ac b/libvtv/configure.ac
>> index beacded64b8..73fe531f2e5 100644
>> --- a/libvtv/configure.ac
>> +++ b/libvtv/configure.ac
>> @@ -21,11 +21,8 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
>> [version_specific_libs=no])
>> AC_MSG_RESULT($version_specific_libs)
>>
>> -# Do not delete or change the following two lines. For why, see
>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>> -AC_CANONICAL_SYSTEM
>> +AC_CANONICAL_TARGET
>> target_alias=${target_alias-$host_alias}
>> -AC_SUBST(target_alias)
>> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>>
>> AC_USE_SYSTEM_EXTENSIONS
>
> Attachments:
> * signature.asc
"Pietro Monteiro" <pietro@sociotechnical.xyz> writes:
> On Fri, Nov 6, 2026, at 1:39 AM, Sam James wrote:
>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>>
>>> libstdc++ configure.ac has a reference to a mailinglist post[0]
>>> explaining why AC_CANONICAL_SYSTEM and
>>> target_alias=${target_alias-$host_alias} are used.
>>>
>>> The main reason to use AC_CANONICAL_SYSTEM is an automake bug that has
>>> been fixed in the version currently used (1.15.1). In the version of
>>> autoconf we use (2.69) AC_CANONICAL_SYSTEM is aliased to
>>> AC_CANONICAL_TARGET, so the only change caused by using
>>> AC_CANONICAL_TARGET is the removal of an empty line and the
>>> re-adjustment of #line comments on autoconf tests because of that.
>>>
>>
>> Before I formally non-approve it, do you have the details of the
>> automake bug, to save me digging?
>
> The libstcd++ email says better that I ever could, but the gist is
> "target_alias" would not get set if you used AC_CANONICAL_TARGET, thus
> even though AC_CANONICAL_SYSTEM has been deprecated for a long time it
> was necessary to keep it.
The part I wasn't sure on was how nobody could really accept who was to
blame then ;)
>
> I hadn't tracked down the fix in automake, just looed at the 1.15.1
> code to see if it was still there, but I did a quick search using git
> and I believe it was fixed in automake commit
> 1947468fc2915f89251e4c1010d4eee8efe24001. Judging by the commit date
> that fix would be present in automake 1.9.1.
Thanks, no worries, I was just curious about that part.
It looks good to me now.
>
>>> The libstc++ message and two lines have been copied to other
>>> libraries. But the copy paste has mutated, sometimes separating the
>>> two lines, sometimes adding a redundant AC_SUBST(target_alias), and in
>>> one case adding AC_CANONICAL_HOST.
>>>
>>> Update all libs AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET. Remove
>>> redundant AC_CANONICAL_HOST (AC_REQUIRE'd by AC_CANONICAL_TARGET). And
>>> remove redundant AC_SUBST(target_alias), which is done by
>>> AC_CANONICAL_TARGET.
>>>
>>> To avoid confusion remove all the mentions to the libstdc++ message, but
>>> leave other comments untouched if they exist.
>>>
>>> [0] http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>
>> That has been bothering me for quite some time but I didn't summon the
>> will to investigate yet. Thank you very much!
>
> Welcome!
>
>
> pietro
>>> PR bootstrap/103459
>>>
>>> gotools/ChangeLog:
>>>
>>> * configure.ac: Update comment to reference
>>> AC_CANONICAL_TARGET instead of AC_CANONICAL_SYSTEM.
>>>
>>> libatomic/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM.
>>>
>>> libga68/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_CANONICAL_HOST.
>>> Remove unneeded AC_SUBST(target_alias).
>>>
>>> libgcobol/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> libgfortran/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> libgm2/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> libgomp/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM.
>>>
>>> libgrust/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> libitm/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM.
>>>
>>> libphobos/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Remove unneeded AC_SUBST(target_alias).
>>>
>>> libquadmath/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> libsanitizer/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> libssp/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> libstdc++-v3/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM.
>>>
>>> libvtv/ChangeLog:
>>>
>>> * configure: Regenerate.
>>> * configure.ac: Use AC_CANONICAL_TARGET instead of
>>> AC_CANONICAL_SYSTEM. Remove unneeded AC_SUBST(target_alias).
>>>
>>> Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
>>> ---
>>> gotools/configure.ac | 2 +-
>>> libatomic/configure | 10 +++-------
>>> libatomic/configure.ac | 7 ++-----
>>> libga68/configure | 14 +++-----------
>>> libga68/configure.ac | 11 ++---------
>>> libgcobol/configure | 8 ++------
>>> libgcobol/configure.ac | 5 +----
>>> libgfortran/configure | 11 +++--------
>>> libgfortran/configure.ac | 8 ++------
>>> libgm2/configure | 8 ++------
>>> libgm2/configure.ac | 5 +----
>>> libgomp/configure | 10 +++-------
>>> libgomp/configure.ac | 7 ++-----
>>> libgrust/configure | 8 ++------
>>> libgrust/configure.ac | 5 +----
>>> libitm/configure | 10 +++-------
>>> libitm/configure.ac | 7 ++-----
>>> libphobos/configure | 5 ++---
>>> libphobos/configure.ac | 1 -
>>> libquadmath/configure | 9 ++-------
>>> libquadmath/configure.ac | 6 +-----
>>> libsanitizer/configure | 8 ++------
>>> libsanitizer/configure.ac | 5 +----
>>> libssp/configure | 6 ++----
>>> libssp/configure.ac | 3 +--
>>> libstdc++-v3/configure | 18 +++++++-----------
>>> libstdc++-v3/configure.ac | 7 ++-----
>>> libvtv/configure | 8 ++------
>>> libvtv/configure.ac | 5 +----
>>> 29 files changed, 58 insertions(+), 159 deletions(-)
>>>
>>> diff --git a/gotools/configure.ac b/gotools/configure.ac
>>> index da5347541e5..4a0a717c3bf 100644
>>> --- a/gotools/configure.ac
>>> +++ b/gotools/configure.ac
>>> @@ -25,7 +25,7 @@ ACX_NONCANONICAL_TARGET
>>>
>>> dnl Autoconf 2.5x and later will set a default program prefix if
>>> dnl --target was used, even if it was the same as --host. Disable
>>> -dnl that behavior. This must be done before AC_CANONICAL_SYSTEM
>>> +dnl that behavior. This must be done before AC_CANONICAL_TARGET
>>> dnl to take effect.
>>> test "$host_noncanonical" = "$target_noncanonical" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> diff --git a/libatomic/configure b/libatomic/configure
>>> index ef8f57f41fa..c54bf101cf5 100755
>>> --- a/libatomic/configure
>>> +++ b/libatomic/configure
>>> @@ -2589,9 +2589,6 @@ fi
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -2731,10 +2728,9 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.0: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> @@ -11866,7 +11862,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11869 "configure"
>>> +#line 11865 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -11972,7 +11968,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11975 "configure"
>>> +#line 11971 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libatomic/configure.ac b/libatomic/configure.ac
>>> index 2ccd230b1e6..4b8a3d56b5f 100644
>>> --- a/libatomic/configure.ac
>>> +++ b/libatomic/configure.ac
>>> @@ -63,13 +63,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.0: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> diff --git a/libga68/configure b/libga68/configure
>>> index 386da87d67c..2c570be9fb1 100755
>>> --- a/libga68/configure
>>> +++ b/libga68/configure
>>> @@ -3715,13 +3715,8 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>>
>>>
>>>
>>> -# Determine the system type and set output variabls to the names of
>>> +# Determine the system type and set output variables to the names of
>>> # the canonical system types.
>>> -#
>>> -# Do not delete or change the following two lines. For why, and for
>>> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
>>> -# recommended AC_CANONICAL_HOST, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> # Make sure we can run config.sub.
>>> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
>>> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
>>> @@ -3832,11 +3827,8 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -
>>> -
>>> # These macro are for supporting canadian crosses, in which build /=
>>> # host /= target.
>>> case ${build_alias} in
>>> @@ -12836,7 +12828,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12839 "configure"
>>> +#line 12831 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12942,7 +12934,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12945 "configure"
>>> +#line 12937 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libga68/configure.ac b/libga68/configure.ac
>>> index 17b4e0002e4..36abfdbcec5 100644
>>> --- a/libga68/configure.ac
>>> +++ b/libga68/configure.ac
>>> @@ -39,17 +39,10 @@ GCC_NO_EXECUTABLES
>>> # compiler.
>>> AC_USE_SYSTEM_EXTENSIONS
>>>
>>> -# Determine the system type and set output variabls to the names of
>>> +# Determine the system type and set output variables to the names of
>>> # the canonical system types.
>>> -#
>>> -# Do not delete or change the following two lines. For why, and for
>>> -# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
>>> -# recommended AC_CANONICAL_HOST, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>> -AC_CANONICAL_HOST
>>>
>>> # These macro are for supporting canadian crosses, in which build /=
>>> # host /= target.
>>> diff --git a/libgcobol/configure b/libgcobol/configure
>>> index 50ae7c9e5b5..f4e75945069 100755
>>> --- a/libgcobol/configure
>>> +++ b/libgcobol/configure
>>> @@ -2956,8 +2956,6 @@ ac_config_headers="$ac_config_headers config.h"
>>>
>>>
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -3097,7 +3095,6 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> case ${build_alias} in
>>> "") build_noncanonical=${build} ;;
>>> *) build_noncanonical=${build_alias} ;;
>>> @@ -3157,7 +3154,6 @@ ac_config_commands="$ac_config_commands multilib"
>>> target_alias=${target_alias-$host_alias}
>>>
>>>
>>> -
>>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
>>> $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
>>> # Check whether --enable-maintainer-mode was given.
>>> @@ -12224,7 +12220,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12227 "configure"
>>> +#line 12223 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12330,7 +12326,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12333 "configure"
>>> +#line 12329 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libgcobol/configure.ac b/libgcobol/configure.ac
>>> index d3b1343bbe9..415147f3ad6 100644
>>> --- a/libgcobol/configure.ac
>>> +++ b/libgcobol/configure.ac
>>> @@ -28,15 +28,12 @@ AC_CONFIG_HEADER(config.h)
>>>
>>> AC_CONFIG_MACRO_DIRS([m4])
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> ACX_NONCANONICAL_TARGET
>>>
>>> AM_ENABLE_MULTILIB(, ..)
>>>
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>>
>>> AM_MAINTAINER_MODE
>>>
>>> diff --git a/libgfortran/configure b/libgfortran/configure
>>> index d2b3b5f1bda..55e8260e558 100755
>>> --- a/libgfortran/configure
>>> +++ b/libgfortran/configure
>>> @@ -2904,9 +2904,6 @@ $as_echo "$version_specific_libs" >&6; }
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
>>> $as_echo_n "checking host system type... " >&6; }
>>> if ${ac_cv_host+:} false; then :
>>> @@ -2982,11 +2979,9 @@ test -n "$target_alias" &&
>>>
>>>
>>>
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.6: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> @@ -13242,7 +13237,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 13245 "configure"
>>> +#line 13240 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -13348,7 +13343,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 13351 "configure"
>>> +#line 13346 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
>>> index 3119a883844..2af9be0b686 100644
>>> --- a/libgfortran/configure.ac
>>> +++ b/libgfortran/configure.ac
>>> @@ -33,16 +33,12 @@ AC_MSG_RESULT($version_specific_libs)
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> ACX_NONCANONICAL_TARGET
>>>
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.6: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> diff --git a/libgm2/configure b/libgm2/configure
>>> index 795d2fd835e..34e713c47af 100755
>>> --- a/libgm2/configure
>>> +++ b/libgm2/configure
>>> @@ -4156,8 +4156,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>>
>>>
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> # Make sure we can run config.sub.
>>> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
>>> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
>>> @@ -4268,10 +4266,8 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -
>>> if test "$build" != "$host"; then
>>> # We are being configured with some form of cross compiler.
>>> GLIBGM2_IS_NATIVE=false
>>> @@ -15142,7 +15138,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 15145 "configure"
>>> +#line 15141 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -15248,7 +15244,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 15251 "configure"
>>> +#line 15247 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libgm2/configure.ac b/libgm2/configure.ac
>>> index 4202ab743c0..5c1b6fefad0 100644
>>> --- a/libgm2/configure.ac
>>> +++ b/libgm2/configure.ac
>>> @@ -36,11 +36,8 @@ GCC_NO_EXECUTABLES
>>>
>>> AC_USE_SYSTEM_EXTENSIONS
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>>
>>> if test "$build" != "$host"; then
>>> # We are being configured with some form of cross compiler.
>>> diff --git a/libgomp/configure b/libgomp/configure
>>> index af1a4dcaa5e..2feff7199b2 100755
>>> --- a/libgomp/configure
>>> +++ b/libgomp/configure
>>> @@ -2705,9 +2705,6 @@ fi
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -2847,10 +2844,9 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.0: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> @@ -11862,7 +11858,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11865 "configure"
>>> +#line 11861 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -11968,7 +11964,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11971 "configure"
>>> +#line 11967 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libgomp/configure.ac b/libgomp/configure.ac
>>> index bf1a6af5809..937b0812a37 100644
>>> --- a/libgomp/configure.ac
>>> +++ b/libgomp/configure.ac
>>> @@ -43,13 +43,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.0: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> diff --git a/libgrust/configure b/libgrust/configure
>>> index 93c6c5b7445..a2225160db2 100755
>>> --- a/libgrust/configure
>>> +++ b/libgrust/configure
>>> @@ -2430,8 +2430,6 @@ ac_config_commands="$ac_config_commands multilib"
>>>
>>> fi
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -2571,10 +2569,8 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -
>>> # Automake should never attempt to rebuild configure
>>>
>>> { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
>>> @@ -12876,7 +12872,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12879 "configure"
>>> +#line 12875 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12982,7 +12978,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12985 "configure"
>>> +#line 12981 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libgrust/configure.ac b/libgrust/configure.ac
>>> index a01493724e6..d2e83374cdc 100644
>>> --- a/libgrust/configure.ac
>>> +++ b/libgrust/configure.ac
>>> @@ -6,11 +6,8 @@ if test -n "${with_target_subdir}"; then
>>> AM_ENABLE_MULTILIB(, ..)
>>> fi
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>>
>>> # Automake should never attempt to rebuild configure
>>> AM_MAINTAINER_MODE
>>> diff --git a/libitm/configure b/libitm/configure
>>> index b951ac6f598..e7df08ba71a 100755
>>> --- a/libitm/configure
>>> +++ b/libitm/configure
>>> @@ -2765,9 +2765,6 @@ fi
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -2907,10 +2904,9 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.0: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> @@ -12520,7 +12516,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12523 "configure"
>>> +#line 12519 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12626,7 +12622,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12629 "configure"
>>> +#line 12625 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libitm/configure.ac b/libitm/configure.ac
>>> index ecc651de72a..684b8a22436 100644
>>> --- a/libitm/configure.ac
>>> +++ b/libitm/configure.ac
>>> @@ -57,13 +57,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.9.0: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> diff --git a/libphobos/configure b/libphobos/configure
>>> index 07da7231cff..300a2310f99 100755
>>> --- a/libphobos/configure
>>> +++ b/libphobos/configure
>>> @@ -3960,7 +3960,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>>
>>> target_alias=${target_alias-$target}
>>>
>>> -
>>> # 1.11.1: Require that version of automake.
>>> # foreign: Don't require README, INSTALL, NEWS, etc.
>>> # no-define: Don't define PACKAGE and VERSION.
>>> @@ -12252,7 +12251,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12255 "configure"
>>> +#line 12254 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12358,7 +12357,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12361 "configure"
>>> +#line 12360 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libphobos/configure.ac b/libphobos/configure.ac
>>> index a6b2f13cb98..19e143d6d33 100644
>>> --- a/libphobos/configure.ac
>>> +++ b/libphobos/configure.ac
>>> @@ -35,7 +35,6 @@ AC_CANONICAL_TARGET
>>> AC_USE_SYSTEM_EXTENSIONS
>>>
>>> target_alias=${target_alias-$target}
>>> -AC_SUBST(target_alias)
>>>
>>> # 1.11.1: Require that version of automake.
>>> # foreign: Don't require README, INSTALL, NEWS, etc.
>>> diff --git a/libquadmath/configure b/libquadmath/configure
>>> index 19b30e22f07..e194d441124 100755
>>> --- a/libquadmath/configure
>>> +++ b/libquadmath/configure
>>> @@ -2276,9 +2276,6 @@ ac_config_headers="$ac_config_headers config.h"
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -2418,7 +2415,6 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> case ${build_alias} in
>>> "") build_noncanonical=${build} ;;
>>> *) build_noncanonical=${build_alias} ;;
>>> @@ -2477,7 +2473,6 @@ ac_config_commands="$ac_config_commands multilib"
>>>
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -
>>> am__api_version='1.15'
>>>
>>> # Find a good install program. We prefer a C program (faster),
>>> @@ -11311,7 +11306,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11314 "configure"
>>> +#line 11309 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -11417,7 +11412,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11420 "configure"
>>> +#line 11415 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libquadmath/configure.ac b/libquadmath/configure.ac
>>> index 159aa108e73..693253d7120 100644
>>> --- a/libquadmath/configure.ac
>>> +++ b/libquadmath/configure.ac
>>> @@ -16,16 +16,12 @@ AC_CONFIG_HEADER(config.h)
>>> #
>>> # Also, if this library is being configured as part of a cross compiler, the
>>> # top-level configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> ACX_NONCANONICAL_TARGET
>>>
>>> AM_ENABLE_MULTILIB(, ..)
>>>
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>>
>>> AM_INIT_AUTOMAKE([1.9.0 foreign subdir-objects no-dist -Wall -Wno-override -Werror])
>>>
>>> diff --git a/libsanitizer/configure b/libsanitizer/configure
>>> index 4bb9f9e862c..0092716a639 100755
>>> --- a/libsanitizer/configure
>>> +++ b/libsanitizer/configure
>>> @@ -4095,8 +4095,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>>>
>>>
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> # Make sure we can run config.sub.
>>> $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
>>> as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
>>> @@ -4207,9 +4205,7 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>> -
>>> case ${build_alias} in
>>> "") build_noncanonical=${build} ;;
>>> *) build_noncanonical=${build_alias} ;;
>>> @@ -12861,7 +12857,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12864 "configure"
>>> +#line 12860 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12967,7 +12963,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12970 "configure"
>>> +#line 12966 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libsanitizer/configure.ac b/libsanitizer/configure.ac
>>> index 88ea1f82778..38a6fd9372e 100644
>>> --- a/libsanitizer/configure.ac
>>> +++ b/libsanitizer/configure.ac
>>> @@ -19,11 +19,8 @@ AC_MSG_RESULT($version_specific_libs)
>>>
>>> AC_USE_SYSTEM_EXTENSIONS
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>>>
>>> AM_INIT_AUTOMAKE(foreign no-dist)
>>> diff --git a/libssp/configure b/libssp/configure
>>> index 7728401ef71..c3aea46d07e 100755
>>> --- a/libssp/configure
>>> +++ b/libssp/configure
>>> @@ -2427,7 +2427,6 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> case ${build_alias} in
>>> "") build_noncanonical=${build} ;;
>>> *) build_noncanonical=${build_alias} ;;
>>> @@ -3108,7 +3107,6 @@ ac_config_commands="$ac_config_commands multilib"
>>>
>>> target_alias=${target_alias-$host_alias}
>>>
>>> -
>>> ac_config_headers="$ac_config_headers config.h"
>>>
>>>
>>> @@ -11543,7 +11541,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11546 "configure"
>>> +#line 11544 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -11649,7 +11647,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 11652 "configure"
>>> +#line 11650 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libssp/configure.ac b/libssp/configure.ac
>>> index 81f6b0d0d41..d99a06e790c 100644
>>> --- a/libssp/configure.ac
>>> +++ b/libssp/configure.ac
>>> @@ -4,7 +4,7 @@
>>>
>>> AC_INIT(libssp, 1.0)
>>> AC_CONFIG_SRCDIR(ssp.c)
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> ACX_NONCANONICAL_TARGET
>>>
>>> AM_INIT_AUTOMAKE([no-dist])
>>> @@ -27,7 +27,6 @@ GCC_NO_EXECUTABLES
>>> AM_ENABLE_MULTILIB(, ..)
>>>
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>>
>>> AC_CONFIG_HEADERS(config.h)
>>>
>>> diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
>>> index f98e54607ab..6d662798c27 100755
>>> --- a/libstdc++-v3/configure
>>> +++ b/libstdc++-v3/configure
>>> @@ -3149,9 +3149,6 @@ ac_config_commands="$ac_config_commands multilib"
>>> #
>>> # Also, if v3 is being configured as part of a cross compiler, the top-level
>>> # configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -3291,7 +3288,6 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>>
>>> # Handy for debugging:
>>> @@ -3331,7 +3327,7 @@ if test "x$with_headers" = "xno"; then
>>> fi
>>>
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.x: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> @@ -12679,7 +12675,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12682 "configure"
>>> +#line 12678 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12785,7 +12781,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12788 "configure"
>>> +#line 12784 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -16475,7 +16471,7 @@ $as_echo "$glibcxx_cv_atomic_word" >&6; }
>>> # Fake what AC_COMPILE_IFELSE does.
>>>
>>> cat > conftest.$ac_ext << EOF
>>> -#line 16478 "configure"
>>> +#line 16474 "configure"
>>> #include "atomic_word.h"
>>> int main()
>>> {
>>> @@ -16622,7 +16618,7 @@ $as_echo "mutex" >&6; }
>>> # unnecessary for this test.
>>>
>>> cat > conftest.$ac_ext << EOF
>>> -#line 16625 "configure"
>>> +#line 16621 "configure"
>>> int main()
>>> {
>>> _Decimal32 d1;
>>> @@ -16663,7 +16659,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
>>> # unnecessary for this test.
>>>
>>> cat > conftest.$ac_ext << EOF
>>> -#line 16666 "configure"
>>> +#line 16662 "configure"
>>> template<typename T1, typename T2>
>>> struct same
>>> { typedef T2 type; };
>>> @@ -53630,7 +53626,7 @@ $as_echo "$glibcxx_cv_libbacktrace_atomics" >&6; }
>>> CXXFLAGS='-O0 -S'
>>>
>>> cat > conftest.$ac_ext << EOF
>>> -#line 53633 "configure"
>>> +#line 53629 "configure"
>>> #include <stddef.h>
>>> int main()
>>> {
>>> diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
>>> index db08de7735e..a142f2d3c88 100644
>>> --- a/libstdc++-v3/configure.ac
>>> +++ b/libstdc++-v3/configure.ac
>>> @@ -24,10 +24,7 @@ AM_ENABLE_MULTILIB(, ..)
>>> #
>>> # Also, if v3 is being configured as part of a cross compiler, the top-level
>>> # configure script will pass the "real" host as $with_cross_host.
>>> -#
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>>
>>> # Handy for debugging:
>>> @@ -67,7 +64,7 @@ if test "x$with_headers" = "xno"; then
>>> fi
>>> ])
>>>
>>> -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
>>> +# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
>>> # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
>>> # 1.x: minimum required version
>>> # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
>>> diff --git a/libvtv/configure b/libvtv/configure
>>> index cde32057df5..9392c502024 100755
>>> --- a/libvtv/configure
>>> +++ b/libvtv/configure
>>> @@ -2445,8 +2445,6 @@ fi
>>> { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
>>> $as_echo "$version_specific_libs" >&6; }
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> ac_aux_dir=
>>> for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
>>> if test -f "$ac_dir/install-sh"; then
>>> @@ -2586,9 +2584,7 @@ test -n "$target_alias" &&
>>> test "$program_prefix$program_suffix$program_transform_name" = \
>>> NONENONEs,x,x, &&
>>> program_prefix=${target_alias}-
>>> -
>>> target_alias=${target_alias-$host_alias}
>>> -
>>> case ${build_alias} in
>>> "") build_noncanonical=${build} ;;
>>> *) build_noncanonical=${build_alias} ;;
>>> @@ -12755,7 +12751,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12758 "configure"
>>> +#line 12754 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> @@ -12861,7 +12857,7 @@ else
>>> lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>>> lt_status=$lt_dlunknown
>>> cat > conftest.$ac_ext <<_LT_EOF
>>> -#line 12864 "configure"
>>> +#line 12860 "configure"
>>> #include "confdefs.h"
>>>
>>> #if HAVE_DLFCN_H
>>> diff --git a/libvtv/configure.ac b/libvtv/configure.ac
>>> index beacded64b8..73fe531f2e5 100644
>>> --- a/libvtv/configure.ac
>>> +++ b/libvtv/configure.ac
>>> @@ -21,11 +21,8 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
>>> [version_specific_libs=no])
>>> AC_MSG_RESULT($version_specific_libs)
>>>
>>> -# Do not delete or change the following two lines. For why, see
>>> -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
>>> -AC_CANONICAL_SYSTEM
>>> +AC_CANONICAL_TARGET
>>> target_alias=${target_alias-$host_alias}
>>> -AC_SUBST(target_alias)
>>> GCC_LIBSTDCXX_RAW_CXX_FLAGS
>>>
>>> AC_USE_SYSTEM_EXTENSIONS
>>
>> Attachments:
>> * signature.asc
On 11/6/26 12:32 PM, Sam James wrote:
> "Pietro Monteiro" <pietro@sociotechnical.xyz> writes:
>
>> On Fri, Nov 6, 2026, at 1:39 AM, Sam James wrote:
>>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>>>
>>>> libstdc++ configure.ac has a reference to a mailinglist post[0]
>>>> explaining why AC_CANONICAL_SYSTEM and
>>>> target_alias=${target_alias-$host_alias} are used.
>>>>
>>>> The main reason to use AC_CANONICAL_SYSTEM is an automake bug that has
>>>> been fixed in the version currently used (1.15.1). In the version of
>>>> autoconf we use (2.69) AC_CANONICAL_SYSTEM is aliased to
>>>> AC_CANONICAL_TARGET, so the only change caused by using
>>>> AC_CANONICAL_TARGET is the removal of an empty line and the
>>>> re-adjustment of #line comments on autoconf tests because of that.
>>>>
>>> Before I formally non-approve it, do you have the details of the
>>> automake bug, to save me digging?
>> The libstcd++ email says better that I ever could, but the gist is
>> "target_alias" would not get set if you used AC_CANONICAL_TARGET, thus
>> even though AC_CANONICAL_SYSTEM has been deprecated for a long time it
>> was necessary to keep it.
> The part I wasn't sure on was how nobody could really accept who was to
> blame then ;)
>
>> I hadn't tracked down the fix in automake, just looed at the 1.15.1
>> code to see if it was still there, but I did a quick search using git
>> and I believe it was fixed in automake commit
>> 1947468fc2915f89251e4c1010d4eee8efe24001. Judging by the commit date
>> that fix would be present in automake 1.9.1.
> Thanks, no worries, I was just curious about that part.
>
> It looks good to me now.
Taking your word on this stuff ;-) It's also Sashiko clean, so OK for
the trunk.
jeff
Jeff Law <jeffrey.law@oss.qualcomm.com> writes:
> On 11/6/26 12:32 PM, Sam James wrote:
>> "Pietro Monteiro" <pietro@sociotechnical.xyz> writes:
>>
>>> On Fri, Nov 6, 2026, at 1:39 AM, Sam James wrote:
>>>> Pietro Monteiro <pietro@sociotechnical.xyz> writes:
>>>>
>>>>> libstdc++ configure.ac has a reference to a mailinglist post[0]
>>>>> explaining why AC_CANONICAL_SYSTEM and
>>>>> target_alias=${target_alias-$host_alias} are used.
>>>>>
>>>>> The main reason to use AC_CANONICAL_SYSTEM is an automake bug that has
>>>>> been fixed in the version currently used (1.15.1). In the version of
>>>>> autoconf we use (2.69) AC_CANONICAL_SYSTEM is aliased to
>>>>> AC_CANONICAL_TARGET, so the only change caused by using
>>>>> AC_CANONICAL_TARGET is the removal of an empty line and the
>>>>> re-adjustment of #line comments on autoconf tests because of that.
>>>>>
>>>> Before I formally non-approve it, do you have the details of the
>>>> automake bug, to save me digging?
>>> The libstcd++ email says better that I ever could, but the gist is
>>> "target_alias" would not get set if you used AC_CANONICAL_TARGET, thus
>>> even though AC_CANONICAL_SYSTEM has been deprecated for a long time it
>>> was necessary to keep it.
>> The part I wasn't sure on was how nobody could really accept who was to
>> blame then ;)
>>
>>> I hadn't tracked down the fix in automake, just looed at the 1.15.1
>>> code to see if it was still there, but I did a quick search using git
>>> and I believe it was fixed in automake commit
>>> 1947468fc2915f89251e4c1010d4eee8efe24001. Judging by the commit date
>>> that fix would be present in automake 1.9.1.
>> Thanks, no worries, I was just curious about that part.
>>
>> It looks good to me now.
> Taking your word on this stuff ;-) It's also Sashiko clean, so OK for
> the trunk.
Thanks Jeff! You also of course have my word that if anything breaks,
I'll handle it.
>
> jeff
@@ -25,7 +25,7 @@ ACX_NONCANONICAL_TARGET
dnl Autoconf 2.5x and later will set a default program prefix if
dnl --target was used, even if it was the same as --host. Disable
-dnl that behavior. This must be done before AC_CANONICAL_SYSTEM
+dnl that behavior. This must be done before AC_CANONICAL_TARGET
dnl to take effect.
test "$host_noncanonical" = "$target_noncanonical" &&
test "$program_prefix$program_suffix$program_transform_name" = \
@@ -2589,9 +2589,6 @@ fi
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -2731,10 +2728,9 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.0: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -11866,7 +11862,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11869 "configure"
+#line 11865 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11972,7 +11968,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11975 "configure"
+#line 11971 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -63,13 +63,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.0: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -3715,13 +3715,8 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
-# Determine the system type and set output variabls to the names of
+# Determine the system type and set output variables to the names of
# the canonical system types.
-#
-# Do not delete or change the following two lines. For why, and for
-# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
-# recommended AC_CANONICAL_HOST, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
@@ -3832,11 +3827,8 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-
-
# These macro are for supporting canadian crosses, in which build /=
# host /= target.
case ${build_alias} in
@@ -12836,7 +12828,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12839 "configure"
+#line 12831 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12942,7 +12934,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12945 "configure"
+#line 12937 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -39,17 +39,10 @@ GCC_NO_EXECUTABLES
# compiler.
AC_USE_SYSTEM_EXTENSIONS
-# Determine the system type and set output variabls to the names of
+# Determine the system type and set output variables to the names of
# the canonical system types.
-#
-# Do not delete or change the following two lines. For why, and for
-# why we are using the obsolete AC_CANONICAL_SYSTEM as ell as the
-# recommended AC_CANONICAL_HOST, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
-AC_CANONICAL_HOST
# These macro are for supporting canadian crosses, in which build /=
# host /= target.
@@ -2956,8 +2956,6 @@ ac_config_headers="$ac_config_headers config.h"
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -3097,7 +3095,6 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
case ${build_alias} in
"") build_noncanonical=${build} ;;
*) build_noncanonical=${build_alias} ;;
@@ -3157,7 +3154,6 @@ ac_config_commands="$ac_config_commands multilib"
target_alias=${target_alias-$host_alias}
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Check whether --enable-maintainer-mode was given.
@@ -12224,7 +12220,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12227 "configure"
+#line 12223 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12330,7 +12326,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12333 "configure"
+#line 12329 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -28,15 +28,12 @@ AC_CONFIG_HEADER(config.h)
AC_CONFIG_MACRO_DIRS([m4])
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
ACX_NONCANONICAL_TARGET
AM_ENABLE_MULTILIB(, ..)
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
AM_MAINTAINER_MODE
@@ -2904,9 +2904,6 @@ $as_echo "$version_specific_libs" >&6; }
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
$as_echo_n "checking host system type... " >&6; }
if ${ac_cv_host+:} false; then :
@@ -2982,11 +2979,9 @@ test -n "$target_alias" &&
-
target_alias=${target_alias-$host_alias}
-
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.6: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -13242,7 +13237,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 13245 "configure"
+#line 13240 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13348,7 +13343,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 13351 "configure"
+#line 13346 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -33,16 +33,12 @@ AC_MSG_RESULT($version_specific_libs)
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
ACX_NONCANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.6: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -4156,8 +4156,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
@@ -4268,10 +4266,8 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-
if test "$build" != "$host"; then
# We are being configured with some form of cross compiler.
GLIBGM2_IS_NATIVE=false
@@ -15142,7 +15138,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 15145 "configure"
+#line 15141 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15248,7 +15244,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 15251 "configure"
+#line 15247 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -36,11 +36,8 @@ GCC_NO_EXECUTABLES
AC_USE_SYSTEM_EXTENSIONS
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
if test "$build" != "$host"; then
# We are being configured with some form of cross compiler.
@@ -2705,9 +2705,6 @@ fi
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -2847,10 +2844,9 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.0: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -11862,7 +11858,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11865 "configure"
+#line 11861 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11968,7 +11964,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11971 "configure"
+#line 11967 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -43,13 +43,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.0: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -2430,8 +2430,6 @@ ac_config_commands="$ac_config_commands multilib"
fi
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -2571,10 +2569,8 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-
# Automake should never attempt to rebuild configure
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
@@ -12876,7 +12872,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12879 "configure"
+#line 12875 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12982,7 +12978,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12985 "configure"
+#line 12981 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -6,11 +6,8 @@ if test -n "${with_target_subdir}"; then
AM_ENABLE_MULTILIB(, ..)
fi
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
# Automake should never attempt to rebuild configure
AM_MAINTAINER_MODE
@@ -2765,9 +2765,6 @@ fi
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -2907,10 +2904,9 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.0: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -12520,7 +12516,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12523 "configure"
+#line 12519 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12626,7 +12622,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12629 "configure"
+#line 12625 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -57,13 +57,10 @@ AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes)
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.9.0: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -3960,7 +3960,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
target_alias=${target_alias-$target}
-
# 1.11.1: Require that version of automake.
# foreign: Don't require README, INSTALL, NEWS, etc.
# no-define: Don't define PACKAGE and VERSION.
@@ -12252,7 +12251,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12255 "configure"
+#line 12254 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12358,7 +12357,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12361 "configure"
+#line 12360 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -35,7 +35,6 @@ AC_CANONICAL_TARGET
AC_USE_SYSTEM_EXTENSIONS
target_alias=${target_alias-$target}
-AC_SUBST(target_alias)
# 1.11.1: Require that version of automake.
# foreign: Don't require README, INSTALL, NEWS, etc.
@@ -2276,9 +2276,6 @@ ac_config_headers="$ac_config_headers config.h"
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -2418,7 +2415,6 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
case ${build_alias} in
"") build_noncanonical=${build} ;;
*) build_noncanonical=${build_alias} ;;
@@ -2477,7 +2473,6 @@ ac_config_commands="$ac_config_commands multilib"
target_alias=${target_alias-$host_alias}
-
am__api_version='1.15'
# Find a good install program. We prefer a C program (faster),
@@ -11311,7 +11306,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11314 "configure"
+#line 11309 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11417,7 +11412,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11420 "configure"
+#line 11415 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -16,16 +16,12 @@ AC_CONFIG_HEADER(config.h)
#
# Also, if this library is being configured as part of a cross compiler, the
# top-level configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
ACX_NONCANONICAL_TARGET
AM_ENABLE_MULTILIB(, ..)
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
AM_INIT_AUTOMAKE([1.9.0 foreign subdir-objects no-dist -Wall -Wno-override -Werror])
@@ -4095,8 +4095,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
# Make sure we can run config.sub.
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
@@ -4207,9 +4205,7 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-
case ${build_alias} in
"") build_noncanonical=${build} ;;
*) build_noncanonical=${build_alias} ;;
@@ -12861,7 +12857,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12864 "configure"
+#line 12860 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12967,7 +12963,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12970 "configure"
+#line 12966 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -19,11 +19,8 @@ AC_MSG_RESULT($version_specific_libs)
AC_USE_SYSTEM_EXTENSIONS
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
GCC_LIBSTDCXX_RAW_CXX_FLAGS
AM_INIT_AUTOMAKE(foreign no-dist)
@@ -2427,7 +2427,6 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
case ${build_alias} in
"") build_noncanonical=${build} ;;
*) build_noncanonical=${build_alias} ;;
@@ -3108,7 +3107,6 @@ ac_config_commands="$ac_config_commands multilib"
target_alias=${target_alias-$host_alias}
-
ac_config_headers="$ac_config_headers config.h"
@@ -11543,7 +11541,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11546 "configure"
+#line 11544 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11649,7 +11647,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 11652 "configure"
+#line 11650 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -4,7 +4,7 @@
AC_INIT(libssp, 1.0)
AC_CONFIG_SRCDIR(ssp.c)
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
ACX_NONCANONICAL_TARGET
AM_INIT_AUTOMAKE([no-dist])
@@ -27,7 +27,6 @@ GCC_NO_EXECUTABLES
AM_ENABLE_MULTILIB(, ..)
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
AC_CONFIG_HEADERS(config.h)
@@ -3149,9 +3149,6 @@ ac_config_commands="$ac_config_commands multilib"
#
# Also, if v3 is being configured as part of a cross compiler, the top-level
# configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -3291,7 +3288,6 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
# Handy for debugging:
@@ -3331,7 +3327,7 @@ if test "x$with_headers" = "xno"; then
fi
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.x: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -12679,7 +12675,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12682 "configure"
+#line 12678 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12785,7 +12781,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12788 "configure"
+#line 12784 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -16475,7 +16471,7 @@ $as_echo "$glibcxx_cv_atomic_word" >&6; }
# Fake what AC_COMPILE_IFELSE does.
cat > conftest.$ac_ext << EOF
-#line 16478 "configure"
+#line 16474 "configure"
#include "atomic_word.h"
int main()
{
@@ -16622,7 +16618,7 @@ $as_echo "mutex" >&6; }
# unnecessary for this test.
cat > conftest.$ac_ext << EOF
-#line 16625 "configure"
+#line 16621 "configure"
int main()
{
_Decimal32 d1;
@@ -16663,7 +16659,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
# unnecessary for this test.
cat > conftest.$ac_ext << EOF
-#line 16666 "configure"
+#line 16662 "configure"
template<typename T1, typename T2>
struct same
{ typedef T2 type; };
@@ -53630,7 +53626,7 @@ $as_echo "$glibcxx_cv_libbacktrace_atomics" >&6; }
CXXFLAGS='-O0 -S'
cat > conftest.$ac_ext << EOF
-#line 53633 "configure"
+#line 53629 "configure"
#include <stddef.h>
int main()
{
@@ -24,10 +24,7 @@ AM_ENABLE_MULTILIB(, ..)
#
# Also, if v3 is being configured as part of a cross compiler, the top-level
# configure script will pass the "real" host as $with_cross_host.
-#
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
# Handy for debugging:
@@ -67,7 +64,7 @@ if test "x$with_headers" = "xno"; then
fi
])
-# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
+# Sets up automake. Must come after AC_CANONICAL_TARGET. Each of the
# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
# 1.x: minimum required version
# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
@@ -2445,8 +2445,6 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
$as_echo "$version_specific_libs" >&6; }
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then
@@ -2586,9 +2584,7 @@ test -n "$target_alias" &&
test "$program_prefix$program_suffix$program_transform_name" = \
NONENONEs,x,x, &&
program_prefix=${target_alias}-
-
target_alias=${target_alias-$host_alias}
-
case ${build_alias} in
"") build_noncanonical=${build} ;;
*) build_noncanonical=${build_alias} ;;
@@ -12755,7 +12751,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12758 "configure"
+#line 12754 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -12861,7 +12857,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 12864 "configure"
+#line 12860 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -21,11 +21,8 @@ AC_ARG_ENABLE(version-specific-runtime-libs,
[version_specific_libs=no])
AC_MSG_RESULT($version_specific_libs)
-# Do not delete or change the following two lines. For why, see
-# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_TARGET
target_alias=${target_alias-$host_alias}
-AC_SUBST(target_alias)
GCC_LIBSTDCXX_RAW_CXX_FLAGS
AC_USE_SYSTEM_EXTENSIONS