This is a summary of discussions relative to the merge request created by pietro (pietro) <[email protected]> titled configury: replace autoconf obsolete macros [PR103459] since its creation.
Description: This is re-spin of this patch: https://inbox.sourceware.org/gcc-patches/[email protected]/ Some files were fixed since then. So I re-did the patches and re-generated all the files again. Instead of trying to rebase the branch or apply the patch on top off current trunk. Autoreconf -Wall complains about obsolete macros, so replace them according to the autoconf documentation[0]. This patch doesn't fully fix all warnings because I focused on doing simple fixes and keeping the changes to the generated files to a minimum. Bootstrapped and retested on x86_64-linux-gnu. [0]: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html PR bootstrap/103459 ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_TRY_LINK with AC_LINK_IFELSE. c++tools/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. config/ChangeLog: * acx.m4: Remove uses of AC_CHECK_TOOL_PREFIX. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. * asmcfi.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. * bitfields.m4: Likewise. * cet.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AC_TRY_RUN with AC_RUN_IFELSE. * codeset.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. * enable.m4: Replace AC_HELP_STRING with AS_HELP_STRING. * gcc-plugin.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. * hwcaps.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_TRY_LINK with AC_LINK_IFELSE. * isl.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. * lcmessage.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. * no-executables.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_TRY_LINK with AC_LINK_IFELSE. * po.m4: Replace AC_OUTPUT_COMMANDS with AC_CONFIG_COMMANDS. * tls.m4: Add explicit 4th argument to AC_RUN_IFELSE. fixincludes/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. gcc/ChangeLog: * acinclude.m4: Replace AC_FOREACH with m4_foreach_w. Replace AC_TRY_LINK with AC_LINK_IFELSE. * configure: Regenerate. * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. Replace AC_PROG_LIBTOOL with LT_INIT. gnattools/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. gotools/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. libada/ChangeLog: * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. libatomic/ChangeLog: * acinclude.m4: Replace AC_ERROR with AS_MSG_ERROR. Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_HELP_STRING with AS_HELP_STRING. Replace AC_TRY_RUN with AC_RUN_IFELSE. * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace AC_STDC_HEADERS with AC_HEADER_STDC. libbacktrace/ChangeLog: * configure: Regenerate. * configure.ac: Remove redundant AM_PROG_LIBTOOL. libcc1/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. Remove redundant AM_PROG_LIBTOOL. libcpp/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. libgcc/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_HELP_STRING with AS_HELP_STRING. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. libgcobol/ChangeLog: * configure: Regenerate. * configure.ac: Remove redundant AM_PROG_LIBTOOL. libgfortran/ChangeLog: * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. * configure.ac: Replace AC_LANG_C with AC_LANG([C]). Replace AM_PROG_LIBTOOL with LT_INIT. libgm2/ChangeLog: * acinclude.m4: Replace AC_HELP_STRING with AS_HELP_STRING. Replace AC_LANG_SAVE AC_LANG_CPLUSPLUS (...) AC_LANG_RESTORE with AC_LANG_PUSH([C++]) (...) AC_LANG_POP([C++]). Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. * configure: Regenerate. * configure.ac: Replace AC_HELP_STRING AS_HELP_STRING. Remove redundant AM_PROG_LIBTOOL. Replace AC_LANG_C with AC_LANG([C]). Replace AC_FOREACH with m4_foreach_w. libgomp/ChangeLog: * acinclude.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_HELP_STRING with AS_HELP_STRING. Replace AC_TRY_RUN with AC_RUN_IFELSE. * configure: Regenerate. * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace AC_STDC_HEADERS with AC_HEADER_STDC. Replace _AC_COMPUTE_INT with AC_COMPUTE_INT. libgrust/ChangeLog: * configure.ac: Replace AC_FOREACH with m4_foreach_w. libiberty/ChangeLog: * acinclude.m4: Replace AC_TRY_RUN with AC_RUN_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. * configure.ac: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_ISC_POSIX with AC_SEARCH_LIBS([strerror],[cposix]). libitm/ChangeLog: * acinclude.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_HELP_STRING with AS_HELP_STRING. Replace AC_TRY_RUN with AC_RUN_IFELSE. * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace AC_STDC_HEADERS with AC_HEADER_STDC. libobjc/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. Replace AM_PROG_LIBTOOL with LT_INIT. Remove unnecessary escape in double quoted string. libphobos/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. Remove redundant AM_PROG_LIBTOOL. Replace AC_FOREACH with m4_foreach_w. * m4/druntime.m4: Replace AC_HELP_STRING AS_HELP_STRING. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. * m4/druntime/cpu.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE. * m4/druntime/os.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. libquadmath/ChangeLog: * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace AC_LANG_C with AC_LANG([C]). Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_TRY_LINK with AC_LINK_IFELSE. libsanitizer/ChangeLog: * configure.ac: Replace AM_PROG_LIBTOOL with LT_INIT. Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_FOREACH with m4_foreach_w. libssp/ChangeLog: * configure.ac: Replace AC_LANG_C with AC_LANG([C]). Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE. Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AM_PROG_LIBTOOL with LT_INIT. libvtv/ChangeLog: * configure.ac: Replace AC_GNU_SOURCE with AC_USE_SYSTEM_EXTENSIONS. Replace AM_PROG_LIBTOOL with LT_INIT. Replace AC_FOREACH with m4_foreach_w. lto-plugin/ChangeLog: * configure: Regenerate. * configure.ac: Replace AC_CANONICAL_SYSTEM with AC_CANONICAL_TARGET. Replace AC_TRY_LINK with AC_LINK_IFELSE. Replace AM_PROG_LIBTOOL with LT_INIT. The full and up to date discussion can be found at https://forge.sourceware.org/gcc/gcc-TEST/pulls/170 The merge request has been closed without being merged directly on the forge repository. On 2026-07-10 14:51:31+00:00, pietro (pietro) wrote: https://inbox.sourceware.org/gcc-patches/bmm.hj3vcrqca8.gcc.gcc-test.pietro.170....@forge-stage.sourceware.org/t/#madcf31f36a3ee3d6f5e821ee090de70ada96aae3 Committed to trunk as r17-1945-gdb890f7a7d30f4
