From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Ks/GEBiU0mocqR0AWB0awg (envelope-from ) for ; Fri, 16 Oct 2026 17:16:08 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=sociotechnical.xyz header.i=@sociotechnical.xyz header.a=rsa-sha256 header.s=fm3 header.b=CjeBT5tr; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=F2jh6e/J; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 258EE1E050; Fri, 16 Oct 2026 17:16:08 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B8D471E04E for ; Fri, 16 Oct 2026 17:16:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7774D4BA23CA for ; Fri, 16 Oct 2026 21:15:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7774D4BA23CA Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=sociotechnical.xyz header.i=@sociotechnical.xyz header.a=rsa-sha256 header.s=fm3 header.b=CjeBT5tr; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=F2jh6e/J Received: from fhigh-b3-smtp.messagingengine.com (fhigh-b3-smtp.messagingengine.com [202.12.124.154]) by sourceware.org (Postfix) with ESMTPS id 778FB4BA2E37 for ; Fri, 16 Oct 2026 21:15:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 778FB4BA2E37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=sociotechnical.xyz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=sociotechnical.xyz ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 778FB4BA2E37 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=202.12.124.154 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792185313; cv=none; b=HstmKWyrNHj+9+/IK0COdnWgqplvH8I8ndjPGYzxkLdX5gwDcil1RMnWXCL+PkGaWI8Q1DN7qlm8Ee7fyK2doBBp6XKxi82uX0S/zJTTSymvBIaA+pxWwpMZirYj829wpgyHd4HK5RNG3VFLxJyRYayygD5uOMI4rdqJg+NQpAc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1792185313; c=relaxed/simple; bh=UuoMPIhVeaZI1VSmSRwe3Qe5h8/4yuYTCKED2j3nbOo=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=ucalUinWeju5W7swUN7uj0nrVWVNJSiUZLDTTDFvqkH464pIz+xecHLWUt4xQYVWpOiPW4YwcQkPqmb0y/T8rJnUmZt/yxUmCkxY7YwqShYsFrMDu5Uq47GAteadmF+EGNWOQkEXV0G6bn67a1N8mQ/nzDurGcnVgw90evXiffk= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=sociotechnical.xyz header.i=@sociotechnical.xyz header.a=rsa-sha256 header.s=fm3 header.b=CjeBT5tr; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=F2jh6e/J DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 778FB4BA2E37 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 0F45C7A0071 for ; Fri, 16 Oct 2026 17:15:08 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Fri, 16 Oct 2026 17:15:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sociotechnical.xyz; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm3; t=1792185307; x=1792271707; bh=ykRkFXGx2mJ8jJnp7duYuT5CB+kh6LCP u01suxzheSE=; b=CjeBT5trHCz14hCNy0G8DV9PI/YRxA8gERI9pIYGwOjrdGDJ xduVR24vgCFZ9edtHE8bCwk+43euJd8DFGRSBuGyuTI2IOwoi9ZZiDtln9vDAIh8 D8sAbz3IojnidcTaDJdFSINSOI/wRn+EV+htW5hEjX9ETepiLm3VjSOSq92UDVFX jCrq7c42TbRq6PCgKrjvQLaFGqo2a0eScFRuNnRBuTUFp5xZQ6btvNmItiHb15fv HwfN37zXpko7/tsGh3hgS8oUMNWtKEWh5rbydVMgXModUQ2TFPEua14+7X9GW6cv wkUqonvBVWBsBOKwKOa0+sGFy4rcYB2zZMdYIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1792185307; x=1792271707; bh=ykRkFXGx2mJ8jJnp7duYuT5CB+kh 6LCPu01suxzheSE=; b=F2jh6e/JiEsY13fkZDEBViHlw7WA6Sb4ww0jW0QbuVBv Dv41HgTIAxc9REsjSfhUccOuHJUoWm8PGgV07FwIscBhsFnLFf6t3KutaXo1cftE fpz/KXHQxp1crmFYV96J3RqN6PJuT1Ocb5ZOUAACnjKIhoZ6/C4oAoKk9sF8yhUk oaTXUcFFXHOTTmdqEt8qjF3yRridsb5NpMmX5gIuz4bXDlPc1aWe4av0wWg98wfL B+zJdVFxdWCqM3jSaZLm/iTOu5M+lR/x1mgeKPeqxh/AghX8/UuEXo/9jI2u8Vci 1IpKBDRBolZYffg6xJEAssrZ0mTAGqTjjdq1F3gUyw== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-08; sw=lmtpprox; action=sign d=sociotechnical.xyz a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1792185307; d=sociotechnical.xyz; mf=PHBpZXRyb0Bzb2Npb3RlY2huaWNhbC54eXo+; rt=PGdkYi1wYXRjaGVzQHNvdXJjZXdhcmUub3JnPg==; s=fm3:rsa-sha256:K1dnbcpzYFV5hVNweo6UNflRuh++eud1hGw2vdkj8qO+nNy PPCIV19w2Mq3o3tFff3u/f+vlXPdpHc8WIfOx1EHdVM38YG5Dbv+yPyJD3BDtPnD tEDN11CDU4Plum8TFgoAXIqO6FttujvyO/2hZV1nfdmlMj7d4jGSPNsnAKKxd3pP Fn3RfwNrxDSOUHLfKloF0RmM4CEGCjNFwWY0XfRUDCbnfXx2vc6Nvo+l0QbdXrKn fbmYID/iIfizPDiuJ0y0ZuV96Yqw1uFKDF3rrdWnYFZyRRSvJNwHzv8EuSF0z2Bs f/XynGJ0xY84rvyjhcTyC4c5PgQDx7lWiZNmoaA==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06; repo=github.com/dkim2wg/interop; date=2026-10-08; sw=lmtpprox; action=mi-m=1; hc=10; hn=cc,content-transfer-encoding,content-type,date,feedback-id, from,message-id,mime-version,subject,to; Message-Instance: m=1; h=sha256:333O6dc3TdyfIb+zYC+iC7ucCchUTVpGt5Esp+ImYO8=:UuoMPIhVeaZI1VSmSRwe3Qe5h8/4yuYTCKED2j3nbOo=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGzOAiq06RGO+PxsnFAX77cb7S1/rBBYj/Unh2vb3M7hpVY9O6wXaE7oh3zLUD0Ck +FdSbhsFEsHscj3JKZ+pGObUu/Huk1Qmg9VnUInkzBuEZdtu4s/9msGeXpn4zxJVGecx62 br92caDEQfoB2yutTBEJVnfI/4mvWoXHDgi+2AAWGOR63pfcIDydLGNwZ4f4kxL8dm9xj6 +SGbtkXPoB6gjZlFJSibsA0dZTLWcfrfOIybCfFDNifceckmvuFxFfa65ln6CVv5KlmFAb wEoqNIgnHxTKrdlGgRNKYqqklaMQIr10Rs+qd7BqYRcHkCrRQzgFoDlq6a2rkuYpcRNBMf jx5jlzBex97BfBmItUIVtsqJrsgyelDr3vM+YhC4ZdI/I2kGkrJ/SNeXr522Xk6OcXe5mq IXKxDDqIi90u5EMJz7kot2LuR90zDS0KgrsIWO4u7mdgOgdE0oO8fZJE5oZvfsEycaOgbd T1EsK8iZcSPiTiewsKiNAgvhYyFgoR5xfJ3xaY6wN8azAzMJXGoaS54Un3Mt10Di1f9C+3 qwQd/Fa+hRPvr5LPVqTXEccggGdg2Oe7r4QmM2YkHHUrtwgACDh3wvAsOmIcsv1FmkKSdL aq7/5oJ2lJVFUytnDQKdAuFvXwyi1Mvp4xcGH2GxoXvczRUrn5qL8MkPYI3Q X-ME-Proxy: Feedback-ID: i7f494689:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 16 Oct 2026 17:15:04 -0400 (EDT) From: Pietro Monteiro To: binutils@sourceware.org, gdb-patches@sourceware.org Cc: Andrea Pinski , Sam James , Simon Marchi , Pietro Monteiro Subject: [PATCH] config: Sync from GCC Date: Fri, 16 Oct 2026 17:14:49 -0400 Message-ID: <20261016211449.57008-1-pietro@sociotechnical.xyz> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Sync the following changes from GCC and regenerate all autoconf files. 2024-04-02 Jakub Jelinek * lcmessage.m4: Fix duplicated words; can can -> can, package package -> package. 2025-08-10 Ijaz, Abdul B * lib-link.m4: Handle dash in the library name for AC_LIB_LINKFLAGS_BODY. 2025-11-30 Jose E. Marchesi * acx.m4 (ACX_PROG_GA68): New defun. 2025-12-09 John Ericson * gthr.m4: Create new GCC_AC_THREAD_MODEL macro 2025-12-30 Jose E. Marchesi * acx.m4: Define ACX_PROG_A68 rather than ACX_PROG_GA68. (ACX_PROG_A68): Set A68 rather than GA68. 2026-04-13 Torbjörn SVENSSON PR target/69639 * mh-cygwin: Increase to 64MB stack reserve. * mh-mingw: Likewise. 2026-06-29 Pietro Monteiro PR bootstrap/103459 * 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_LINK_IFELSE. 2026-07-01 Rainer Orth * ax_pthread.m4 (ax_pthread_check_macro) : Only require _REENTRANT before Solaris 11.4 2026-07-12 Manuel Jacob * acx.m4 (ACX_CHECK_INSTALLED_TARGET_TOOL): Fix handling of environment variables. 2026-07-31 Pietro Monteiro PR bootstrap/103459 * clang-plugin.m4: Update AC_TRY_COMPILE to AC_COMPILE_IFELSE. * gcc-plugin.m4: Likewise. 2026-08-04 Kyrylo Tkachov * acx.m4 (ACX_PROG_CMP_IGNORE_INITIAL): Use process-specific temporary files and clean them on exit. Diagnose tail failures as errors. 2026-09-04 Kyrylo Tkachov PR bootstrap/126875 * acx.m4 (ACX_PROG_CMP_IGNORE_INITIAL): Clean up from the exit trap without resetting it or re-deriving the exit status, and end the fallback subshell with a builtin so that the trap runs. 2026-10-16 Pietro Monteiro PR bootstrap/103459 * multi.m4: Update AC_OUTPUT_COMMANDS to AC_CONFIG_COMMANDS. Signed-off-by: Pietro Monteiro --- bfd/configure | 8 ++-- binutils/configure | 8 ++-- config/acx.m4 | 37 +++++++++++++---- config/asmcfi.m4 | 7 ++-- config/ax_pthread.m4 | 17 +++++++- config/bitfields.m4 | 10 +++-- config/cet.m4 | 18 ++++---- config/clang-plugin.m4 | 8 ++-- config/codeset.m4 | 8 ++-- config/gcc-plugin.m4 | 14 +++---- config/gthr.m4 | 23 +++++++++++ config/hwcaps.m4 | 6 ++- config/isl.m4 | 4 +- config/lcmessage.m4 | 7 ++-- config/lib-link.m4 | 5 ++- config/mh-cygwin | 9 ++-- config/mh-mingw | 9 ++-- config/multi.m4 | 12 +++--- config/no-executables.m4 | 6 +-- config/po.m4 | 8 ++-- config/tls.m4 | 6 ++- configure | 88 ++++++++++++++++++++++++++++++++++++++-- gas/configure | 18 ++++++-- gdb/configure | 37 +++++++++++++++-- gdbserver/configure | 35 ++++++++++++++-- gdbsupport/configure | 35 ++++++++++++++-- gold/configure | 58 +++++++++++++++++++++++--- gprof/configure | 8 ++-- gprofng/configure | 25 +++++++++++- ld/configure | 18 ++++++-- libbacktrace/configure | 6 +-- libctf/configure | 12 +++--- opcodes/configure | 8 ++-- zlib/configure | 6 +-- 34 files changed, 460 insertions(+), 124 deletions(-) diff --git a/bfd/configure b/bfd/configure index 7834f6c1327..a2c50550050 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13246,7 +13246,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -13413,6 +13413,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -14265,6 +14266,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -18607,7 +18609,7 @@ do "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; @@ -19939,7 +19941,7 @@ _LT_EOF chmod +x "$ofile" ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/binutils/configure b/binutils/configure index ea19d09749f..20bc4237fd8 100755 --- a/binutils/configure +++ b/binutils/configure @@ -13373,7 +13373,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -13540,6 +13540,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -14392,6 +14393,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -17914,7 +17916,7 @@ do "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; @@ -19244,7 +19246,7 @@ _LT_EOF chmod +x "$ofile" ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/config/acx.m4 b/config/acx.m4 index db54ccf1c7c..3a9a36a2cab 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -340,6 +340,11 @@ rm conftest.c AC_DEFUN([ACX_CHECK_INSTALLED_TARGET_TOOL], [ AC_REQUIRE([ACX_TOOL_DIRS]) AC_REQUIRE([ACX_HAVE_GCC_FOR_TARGET]) +if test -n "[$]$1"; then + ac_cv_path_$1=[$]$1 +elif test -n "$ac_cv_path_$1"; then + $1=$ac_cv_path_$1 +fi if test -z "$ac_cv_path_$1" ; then if test -n "$with_build_time_tools"; then AC_MSG_CHECKING([for $2 in $with_build_time_tools]) @@ -389,8 +394,7 @@ ac_c_preproc_warn_flag=yes])# AC_PROG_CPP_WERROR # Sets the shell variable have_gnat to yes or no as appropriate, and # substitutes GNATBIND and GNATMAKE. AC_DEFUN([ACX_PROG_GNAT], -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX]) -AC_REQUIRE([AC_PROG_CC]) +[AC_REQUIRE([AC_PROG_CC]) AC_CHECK_TOOL(GNATBIND, gnatbind, no) AC_CHECK_TOOL(GNATMAKE, gnatmake, no) AC_CACHE_CHECK([whether compiler driver understands Ada and is recent enough], @@ -434,10 +438,14 @@ else have_cargo=no fi]) +# Test for Algol 68 +AC_DEFUN([ACX_PROG_A68], +[AC_REQUIRE([AC_PROG_CC]) +AC_CHECK_TOOL(A68, ga68, no)]) + # Test for D. AC_DEFUN([ACX_PROG_GDC], -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX]) -AC_REQUIRE([AC_PROG_CC]) +[AC_REQUIRE([AC_PROG_CC]) AC_CHECK_TOOL(GDC, gdc, no) AC_CACHE_CHECK([whether the D compiler works], acx_cv_d_compiler_works, @@ -464,12 +472,24 @@ dnl skip bytes instead of using tail. The test being performed is dnl "if cmp --ignore-initial=2 t1 t2 && ! cmp --ignore-initial=1 t1 t2" dnl but we need to sink errors and handle broken shells. We also test dnl for the parameter format "cmp file1 file2 skip1 skip2" which is -dnl accepted by cmp on some systems. +dnl accepted by cmp on some systems. The fallback ends its subshell with +dnl a builtin so that the exit trap runs, and the trap starts with ':' +dnl because older bash does not preserve the exit status across an exit +dnl trap that consists of a single command, which would report a differing +dnl pair of objects as equal. AC_DEFUN([ACX_PROG_CMP_IGNORE_INITIAL], [AC_CACHE_CHECK([how to compare bootstrapped objects], gcc_cv_prog_cmp_skip, [ echo abfoo >t1 echo cdfoo >t2 - gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' + gcc_cv_prog_cmp_skip='(trap ":; rm -f tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$" 0; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'trap "exit 2" 1 2 3 15; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f1 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo1.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f2 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo2.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'cmp tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$; exit $$?)' if cmp t1 t2 2 2 > /dev/null 2>&1; then if cmp t1 t2 1 1 > /dev/null 2>&1; then : @@ -494,8 +514,9 @@ dnl See whether we can include both string.h and strings.h. AC_DEFUN([ACX_HEADER_STRING], [AC_CACHE_CHECK([whether string.h and strings.h may both be included], gcc_cv_header_string, -[AC_TRY_COMPILE([#include -#include ], , gcc_cv_header_string=yes, gcc_cv_header_string=no)]) +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +#include ]], [[]])], + [gcc_cv_header_string=yes], [gcc_cv_header_string=no])]) if test $gcc_cv_header_string = yes; then AC_DEFINE(STRING_WITH_STRINGS, 1, [Define if you can safely include both and .]) fi diff --git a/config/asmcfi.m4 b/config/asmcfi.m4 index a725aa11de4..87ef057e906 100644 --- a/config/asmcfi.m4 +++ b/config/asmcfi.m4 @@ -4,9 +4,10 @@ AC_DEFUN([GCC_AS_CFI_PSEUDO_OP], [AC_CACHE_CHECK([assembler .cfi pseudo-op support], gcc_cv_as_cfi_pseudo_op, [ gcc_cv_as_cfi_pseudo_op=unknown - AC_TRY_COMPILE([asm (".cfi_startproc\n\t.cfi_endproc");],, - [gcc_cv_as_cfi_pseudo_op=yes], - [gcc_cv_as_cfi_pseudo_op=no]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[asm (".cfi_startproc\n\t.cfi_endproc");]], + [[]])], + [gcc_cv_as_cfi_pseudo_op=yes], + [gcc_cv_as_cfi_pseudo_op=no]) ]) if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then AC_DEFINE(HAVE_AS_CFI_PSEUDO_OP, 1, diff --git a/config/ax_pthread.m4 b/config/ax_pthread.m4 index 5fbf9fe0d68..843e83c9bac 100644 --- a/config/ax_pthread.m4 +++ b/config/ax_pthread.m4 @@ -208,7 +208,22 @@ AS_IF([test "x$GCC" = "xyes"], # correctly enabled case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) + solaris*) + # Solaris 11.4 introduced XPG7 support and did away with the need for + # _REENTRANT. + + AC_EGREP_CPP([AX_PTHREAD_SOLARIS__REENTRANT], + [ +# undef _XOPEN_SOURCE +# include +# if _XOPEN_VERSION < 700 + AX_PTHREAD_SOLARIS__REENTRANT +# endif + ], + [ax_pthread_check_macro="_REENTRANT"], + [ax_pthread_check_macro="--"]) + ;; + darwin* | hpux* | linux* | osf*) ax_pthread_check_macro="_REENTRANT" ;; diff --git a/config/bitfields.m4 b/config/bitfields.m4 index 8185cd302a9..1dab5db1564 100644 --- a/config/bitfields.m4 +++ b/config/bitfields.m4 @@ -12,11 +12,13 @@ AC_DEFUN([gt_BITFIELD_TYPE_MATTERS], [ AC_CACHE_CHECK([if the type of bitfields matters], gt_cv_bitfield_type_matters, [ - AC_TRY_COMPILE( - [struct foo1 { char x; char y:1; char z; }; + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[struct foo1 { char x; char y:1; char z; }; struct foo2 { char x; long long int y:1; char z; }; -int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ]; ], - [], gt_cv_bitfield_type_matters=yes, gt_cv_bitfield_type_matters=no) +int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ]; ]], + [[]])], + [gt_cv_bitfield_type_matters=yes], + [gt_cv_bitfield_type_matters=no]) ]) if test $gt_cv_bitfield_type_matters = yes; then AC_DEFINE(HAVE_BITFIELD_TYPE_MATTERS, 1, diff --git a/config/cet.m4 b/config/cet.m4 index 7718be1afe8..69f75fd673f 100644 --- a/config/cet.m4 +++ b/config/cet.m4 @@ -121,27 +121,28 @@ cet_save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk" if test x$may_have_cet = xyes; then # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work. - AC_TRY_LINK( - [],[return 0;], + AC_LINK_IFELSE([AC_LANG_PROGRAM( + [[]],[[return 0;]])], [may_have_cet=yes], [may_have_cet=no]) fi if test x$may_have_cet = xyes; then if test x$cross_compiling = xno; then - AC_TRY_RUN([ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ int main () { asm ("endbr32"); return 0; } - ], + ]])], [have_multi_byte_nop=yes], - [have_multi_byte_nop=no]) + [have_multi_byte_nop=no], + [AC_MSG_FAILURE(cannot run test program while cross compiling)]) have_cet=no if test x$have_multi_byte_nop = xyes; then - AC_TRY_RUN([ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ static void foo (void) { @@ -167,9 +168,10 @@ main () bar (); return 0; } - ], + ]])], [have_cet=no], - [have_cet=yes]) + [have_cet=yes], + [AC_MSG_FAILURE(cannot run test program while cross compiling)]) fi if test x$enable_cet = xno -a x$have_cet = xyes; then AC_MSG_ERROR([Intel CET must be enabled on Intel CET enabled host]) diff --git a/config/clang-plugin.m4 b/config/clang-plugin.m4 index e94c4bbb6be..69d54a098d3 100644 --- a/config/clang-plugin.m4 +++ b/config/clang-plugin.m4 @@ -73,13 +73,13 @@ AC_DEFUN([CLANG_PLUGIN_FILE_FOR_TARGET],[dnl saved_CC="$CC" CC="$COMPILER_FOR_TARGET" AC_CACHE_CHECK([for clang for target], clang_target_cv_working, [ - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #ifndef __clang__ #error Not clang #endif - ], - [], - clang_target_cv_working=yes, clang_target_cv_working=no)]) + ]], + [[]])], + [clang_target_cv_working=yes], [clang_target_cv_working=no])]) CC="$saved_CC" plugin_file= if test $clang_target_cv_working = yes; then diff --git a/config/codeset.m4 b/config/codeset.m4 index 59535ebcff5..2469319e680 100644 --- a/config/codeset.m4 +++ b/config/codeset.m4 @@ -11,10 +11,10 @@ dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, - [AC_TRY_LINK([#include ], - [char* cs = nl_langinfo(CODESET);], - am_cv_langinfo_codeset=yes, - am_cv_langinfo_codeset=no) + [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[char* cs = nl_langinfo(CODESET);]])], + [am_cv_langinfo_codeset=yes], + [am_cv_langinfo_codeset=no]) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE(HAVE_LANGINFO_CODESET, 1, diff --git a/config/gcc-plugin.m4 b/config/gcc-plugin.m4 index fbccba4a473..848b28f4a8d 100644 --- a/config/gcc-plugin.m4 +++ b/config/gcc-plugin.m4 @@ -107,8 +107,8 @@ AC_DEFUN([GCC_ENABLE_PLUGINS], ;; esac AC_MSG_CHECKING([for -fPIC -shared]) - AC_TRY_LINK( - [extern int X;],[return X == 0;], + AC_LINK_IFELSE([AC_LANG_PROGRAM( + [[extern int X;]],[[return X == 0;]])], [AC_MSG_RESULT([yes]); have_pic_shared=yes], [AC_MSG_RESULT([no]); have_pic_shared=no]) if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then @@ -183,11 +183,11 @@ fi saved_CC="$CC" CC="$COMPILER_FOR_TARGET" AC_CACHE_CHECK([for gcc for target], gcc_target_cv_working, [ - AC_TRY_COMPILE( - [], - [], - gcc_target_cv_working=yes, - gcc_target_cv_working=no)]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM( + [[]], + [[]])], + [gcc_target_cv_working=yes], + [gcc_target_cv_working=no])]) CC="$saved_CC" AC_MSG_CHECKING([for target -plugin option]) plugin_option= diff --git a/config/gthr.m4 b/config/gthr.m4 index 11996247f15..e8fac4a5721 100644 --- a/config/gthr.m4 +++ b/config/gthr.m4 @@ -5,6 +5,26 @@ dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. +dnl Define thread model + +dnl usage: GCC_AC_THREAD_MODEL +AC_DEFUN([GCC_AC_THREAD_MODEL], +[ +# Specify the threading model for this GCC runtime library +# Pass with no value to take from compiler's metadata +# Pass with a value to specify a thread package +# 'single' means single threaded -- without threads. +AC_CACHE_CHECK([for the threading model used by GCC], [gcc_cv_target_thread_file], [ + # Set new cache variable + gcc_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` +]) +# Set variable name (not prefixed enough to be a good cache variable +# name) traditionally used for this purpose, to avoid having to change +# a bunch of configure scripts. +target_thread_file="$gcc_cv_target_thread_file" +]) + + dnl Define header location by thread model dnl usage: GCC_AC_THREAD_HEADER([thread_model]) @@ -23,6 +43,9 @@ case $1 in vxworks) thread_header=config/gthr-vxworks.h ;; win32) thread_header=config/i386/gthr-win32.h ;; mcf) thread_header=config/i386/gthr-mcf.h ;; + *) + AC_MSG_ERROR([No known header for threading model '$1'.]) + ;; esac AC_SUBST(thread_header) ]) diff --git a/config/hwcaps.m4 b/config/hwcaps.m4 index 33f090574cf..f3d03906447 100644 --- a/config/hwcaps.m4 +++ b/config/hwcaps.m4 @@ -17,7 +17,8 @@ AC_DEFUN([GCC_CHECK_ASSEMBLER_HWCAP], [ CFLAGS="$CFLAGS -Wa,-nH" AC_MSG_CHECKING([for as that supports -Wa,-nH]) - AC_TRY_COMPILE([], [return 0;], [ac_hwcap_flags=yes],[ac_hwcap_flags=no]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[return 0;]])], + [ac_hwcap_flags=yes],[ac_hwcap_flags=no]) if test "$ac_hwcap_flags" = "yes"; then HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS" fi @@ -47,7 +48,8 @@ AC_DEFUN([GCC_CHECK_LINKER_HWCAP], [ LDFLAGS="$LFLAGS -mclear-hwcap" AC_MSG_CHECKING([for -mclear-hwcap]) - AC_TRY_LINK([], [return 0;], [ac_hwcap_ldflags=yes],[ac_hwcap_ldflags=no]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[return 0;]])], + [ac_hwcap_ldflags=yes],[ac_hwcap_ldflags=no]) if test "$ac_hwcap_ldflags" = "yes"; then HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS" fi diff --git a/config/isl.m4 b/config/isl.m4 index bbb973e023b..4d943d034a4 100644 --- a/config/isl.m4 +++ b/config/isl.m4 @@ -107,8 +107,8 @@ AC_DEFUN([ISL_CHECK_VERSION], LIBS="${_isl_saved_LIBS} -lisl -lgmp" AC_MSG_CHECKING([for isl 0.15 or later]) - AC_TRY_LINK([#include ], - [isl_options_set_schedule_serialize_sccs (NULL, 0);], + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], + [[isl_options_set_schedule_serialize_sccs (NULL, 0);]])], [gcc_cv_isl=yes], [gcc_cv_isl=no]) AC_MSG_RESULT([$gcc_cv_isl]) diff --git a/config/lcmessage.m4 b/config/lcmessage.m4 index ffd4008b825..0b4dfe68d15 100644 --- a/config/lcmessage.m4 +++ b/config/lcmessage.m4 @@ -6,13 +6,13 @@ dnl Public License, this file may be distributed as part of a program dnl that contains a configuration script generated by Autoconf, under dnl the same distribution terms as the rest of that program. dnl -dnl This file can can be used in projects which are not available under +dnl This file can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. +dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: @@ -23,7 +23,8 @@ dnl Ulrich Drepper , 1995. AC_DEFUN([AM_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, - [AC_TRY_LINK([#include ], [return LC_MESSAGES], + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[#include ]], [[return LC_MESSAGES]])], am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) if test $am_cv_val_LC_MESSAGES = yes; then AC_DEFINE(HAVE_LC_MESSAGES, 1, diff --git a/config/lib-link.m4 b/config/lib-link.m4 index 20e281fd323..a60a8069453 100644 --- a/config/lib-link.m4 +++ b/config/lib-link.m4 @@ -126,6 +126,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + define([Name],[translit([$1],[./-], [___])]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ @@ -152,8 +153,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], ]) AC_LIB_ARG_WITH([lib$1-type], [ --with-lib$1-type=TYPE type of library to search for (auto/static/shared) ], - [ with_lib$1_type=$withval ], [ with_lib$1_type=auto ]) - lib_type=`eval echo \$with_lib$1_type` + [ with_lib[]Name[]_type=$withval ], [ with_lib[]Name[]_type=auto ]) + lib_type=`eval echo \$with_lib[]Name[]_type` dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. diff --git a/config/mh-cygwin b/config/mh-cygwin index 1f746bdea84..194f70de4d5 100644 --- a/config/mh-cygwin +++ b/config/mh-cygwin @@ -1,4 +1,5 @@ -# Increase stack limit to a figure based on the Linux default, with 4MB added -# as GCC turns out to need that much more to pass all the limits-* tests. -LDFLAGS += -Wl,--stack,12582912 -BOOT_LDFLAGS += -Wl,--stack,12582912 +# Increase stack limit, to the same value that GCC tries to change to at +# startup on Linux, as GCC turns out to need that much more to pass all the +# limits-* tests. +LDFLAGS += -Wl,--stack,67108864 +BOOT_LDFLAGS += -Wl,--stack,67108864 diff --git a/config/mh-mingw b/config/mh-mingw index f5fb064813f..a225b80914d 100644 --- a/config/mh-mingw +++ b/config/mh-mingw @@ -8,7 +8,8 @@ STAGE2_CXXFLAGS += -D__USE_MINGW_ACCESS STAGE3_CXXFLAGS += -D__USE_MINGW_ACCESS STAGE4_CXXFLAGS += -D__USE_MINGW_ACCESS -# Increase stack limit to a figure based on the Linux default, with 4MB added -# as GCC turns out to need that much more to pass all the limits-* tests. -LDFLAGS += -Wl,--stack,12582912 -BOOT_LDFLAGS += -Wl,--stack,12582912 +# Increase stack limit, to the same value that GCC tries to change to at +# startup on Linux, as GCC turns out to need that much more to pass all the +# limits-* tests. +LDFLAGS += -Wl,--stack,67108864 +BOOT_LDFLAGS += -Wl,--stack,67108864 diff --git a/config/multi.m4 b/config/multi.m4 index 10680a5b32b..b38ec088b2f 100644 --- a/config/multi.m4 +++ b/config/multi.m4 @@ -44,15 +44,15 @@ if test $cross_compiling = no && test $multilib = yes \ cross_compiling=maybe fi -AC_OUTPUT_COMMANDS([ +AC_CONFIG_COMMANDS([multilib],[[ # Only add multilib support code if we just rebuilt the top-level # Makefile. case " $CONFIG_FILES " in - *" ]m4_default([$1],Makefile)[ "*) - ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in + *" ]]m4_default($1,Makefile)[[ "*) + ac_file=]]m4_default($1,Makefile)[[ . ${multi_basedir}/config-ml.in ;; -esac], - [ +esac]], + [[ srcdir="$srcdir" host="$host" target="$target" @@ -65,4 +65,4 @@ CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} CC="$CC" CXX="$CXX" GFORTRAN="$GFORTRAN" -GDC="$GDC"])])dnl +GDC="$GDC"]])])dnl diff --git a/config/no-executables.m4 b/config/no-executables.m4 index e8e2537bde5..75812307c66 100644 --- a/config/no-executables.m4 +++ b/config/no-executables.m4 @@ -62,10 +62,10 @@ fi) m4_divert_pop()dnl ])# GCC_NO_EXECUTABLES -# Use the strongest available test out of AC_TRY_COMPILE and AC_TRY_LINK. +# Use the strongest available test out of AC_COMPILE_IFELSE and AC_LINK_IFELSE AC_DEFUN([GCC_TRY_COMPILE_OR_LINK], [if test x$gcc_no_link = xyes; then - AC_TRY_COMPILE([$1], [$2], [$3], [$4]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])],[$3],[$4]) else - AC_TRY_LINK([$1], [$2], [$3], [$4]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[$1]], [[$2]])],[$3],[$4]) fi]) diff --git a/config/po.m4 b/config/po.m4 index 6ceef420f10..7948c51a1c1 100644 --- a/config/po.m4 +++ b/config/po.m4 @@ -86,7 +86,7 @@ AC_DEFUN([AM_PO_SUBDIRS], rm -f messages.po fi - AC_OUTPUT_COMMANDS([ + AC_CONFIG_COMMANDS([posubdirs], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in @@ -186,12 +186,12 @@ AC_DEFUN([AM_PO_SUBDIRS], fi ;; esac - done], - [# Capture the value of obsolete ALL_LINGUAS because we need it to compute + done]], + [[# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it # from automake. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" - ]) + ]]) ]) diff --git a/config/tls.m4 b/config/tls.m4 index 7532305b908..8d1b83d0f33 100644 --- a/config/tls.m4 +++ b/config/tls.m4 @@ -12,7 +12,8 @@ AC_DEFUN([GCC_CHECK_TLS], [ LDFLAGS="-static $LDFLAGS" AC_LINK_IFELSE([AC_LANG_SOURCE([int main() { return 0; }])], [AC_RUN_IFELSE([AC_LANG_SOURCE([__thread int a; int b; int main() { return a = b; }])], - [gcc_cv_have_tls=yes], [gcc_cv_have_tls=no],[])], + [gcc_cv_have_tls=yes], [gcc_cv_have_tls=no], + [AC_MSG_FAILURE(cannot run test program while cross compiling)])], [gcc_cv_have_tls=yes]) LDFLAGS="$chktls_save_LDFLAGS" if test $gcc_cv_have_tls = yes; then @@ -64,7 +65,8 @@ AC_DEFUN([GCC_CHECK_TLS], [ if (pthread_join (thread, &thread_retval)) return 0; return (a_in_other_thread == a_in_main_thread);])], - [gcc_cv_have_tls=yes], [gcc_cv_have_tls=no], []) + [gcc_cv_have_tls=yes], [gcc_cv_have_tls=no], + [AC_MSG_FAILURE(cannot run test program while cross compiling)]) CFLAGS="$chktls_save_CFLAGS" fi fi], diff --git a/configure b/configure index 4c2aa195810..2861694673e 100755 --- a/configure +++ b/configure @@ -5614,8 +5614,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu fi - - if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 @@ -5837,7 +5835,6 @@ else fi - if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args. set dummy ${ac_tool_prefix}gdc; ac_word=$2 @@ -6010,7 +6007,15 @@ if ${gcc_cv_prog_cmp_skip+:} false; then : else echo abfoo >t1 echo cdfoo >t2 - gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' + gcc_cv_prog_cmp_skip='(trap ":; rm -f tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$" 0; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'trap "exit 2" 1 2 3 15; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f1 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo1.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f2 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo2.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'cmp tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$; exit $$?)' if cmp t1 t2 2 2 > /dev/null 2>&1; then if cmp t1 t2 1 1 > /dev/null 2>&1; then : @@ -16095,6 +16100,11 @@ rm conftest.c +if test -n "$AR_FOR_TARGET"; then + ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET +elif test -n "$ac_cv_path_AR_FOR_TARGET"; then + AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET +fi if test -z "$ac_cv_path_AR_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 @@ -16325,6 +16335,11 @@ fi +if test -n "$AS_FOR_TARGET"; then + ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET +elif test -n "$ac_cv_path_AS_FOR_TARGET"; then + AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET +fi if test -z "$ac_cv_path_AS_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 @@ -16555,6 +16570,11 @@ fi +if test -n "$DLLTOOL_FOR_TARGET"; then + ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET +elif test -n "$ac_cv_path_DLLTOOL_FOR_TARGET"; then + DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET +fi if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 @@ -16785,6 +16805,11 @@ fi +if test -n "$DSYMUTIL_FOR_TARGET"; then + ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET +elif test -n "$ac_cv_path_DSYMUTIL_FOR_TARGET"; then + DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET +fi if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5 @@ -17015,6 +17040,11 @@ fi +if test -n "$LD_FOR_TARGET"; then + ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET +elif test -n "$ac_cv_path_LD_FOR_TARGET"; then + LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET +fi if test -z "$ac_cv_path_LD_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 @@ -17245,6 +17275,11 @@ fi +if test -n "$LIPO_FOR_TARGET"; then + ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET +elif test -n "$ac_cv_path_LIPO_FOR_TARGET"; then + LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET +fi if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 @@ -17475,6 +17510,11 @@ fi +if test -n "$NM_FOR_TARGET"; then + ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET +elif test -n "$ac_cv_path_NM_FOR_TARGET"; then + NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET +fi if test -z "$ac_cv_path_NM_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 @@ -17705,6 +17745,11 @@ fi +if test -n "$OBJCOPY_FOR_TARGET"; then + ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET +elif test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then + OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET +fi if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 @@ -17935,6 +17980,11 @@ fi +if test -n "$OBJDUMP_FOR_TARGET"; then + ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET +elif test -n "$ac_cv_path_OBJDUMP_FOR_TARGET"; then + OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET +fi if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 @@ -18165,6 +18215,11 @@ fi +if test -n "$OTOOL_FOR_TARGET"; then + ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET +elif test -n "$ac_cv_path_OTOOL_FOR_TARGET"; then + OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET +fi if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5 @@ -18395,6 +18450,11 @@ fi +if test -n "$RANLIB_FOR_TARGET"; then + ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET +elif test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then + RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET +fi if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 @@ -18625,6 +18685,11 @@ fi +if test -n "$READELF_FOR_TARGET"; then + ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET +elif test -n "$ac_cv_path_READELF_FOR_TARGET"; then + READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET +fi if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 @@ -18855,6 +18920,11 @@ fi +if test -n "$STRIP_FOR_TARGET"; then + ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET +elif test -n "$ac_cv_path_STRIP_FOR_TARGET"; then + STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET +fi if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 @@ -19085,6 +19155,11 @@ fi +if test -n "$WINDRES_FOR_TARGET"; then + ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET +elif test -n "$ac_cv_path_WINDRES_FOR_TARGET"; then + WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET +fi if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 @@ -19315,6 +19390,11 @@ fi +if test -n "$WINDMC_FOR_TARGET"; then + ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET +elif test -n "$ac_cv_path_WINDMC_FOR_TARGET"; then + WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET +fi if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then if test -n "$with_build_time_tools"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 diff --git a/gas/configure b/gas/configure index 6b5128475e9..7b6873dc596 100755 --- a/gas/configure +++ b/gas/configure @@ -11873,7 +11873,15 @@ if ${gcc_cv_prog_cmp_skip+:} false; then : else echo abfoo >t1 echo cdfoo >t2 - gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' + gcc_cv_prog_cmp_skip='(trap ":; rm -f tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$" 0; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'trap "exit 2" 1 2 3 15; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f1 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo1.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f2 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo2.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'cmp tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$; exit $$?)' if cmp t1 t2 2 2 > /dev/null 2>&1; then if cmp t1 t2 1 1 > /dev/null 2>&1; then : @@ -13910,7 +13918,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -14077,6 +14085,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -14929,6 +14938,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -17423,7 +17433,7 @@ do "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;; ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; @@ -18754,7 +18764,7 @@ _LT_EOF chmod +x "$ofile" ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/gdb/configure b/gdb/configure index 0ed49887480..274cb99bc3d 100755 --- a/gdb/configure +++ b/gdb/configure @@ -20642,7 +20642,30 @@ fi # correctly enabled case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) + solaris*) + # Solaris 11.4 introduced XPG7 support and did away with the need for + # _REENTRANT. + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# undef _XOPEN_SOURCE +# include +# if _XOPEN_VERSION < 700 + AX_PTHREAD_SOLARIS__REENTRANT +# endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "AX_PTHREAD_SOLARIS__REENTRANT" >/dev/null 2>&1; then : + ax_pthread_check_macro="_REENTRANT" +else + ax_pthread_check_macro="--" +fi +rm -f conftest* + + ;; + darwin* | hpux* | linux* | osf*) ax_pthread_check_macro="_REENTRANT" ;; @@ -21286,6 +21309,7 @@ $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features + use_additional=yes acl_save_prefix="$prefix" @@ -21931,6 +21955,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -22994,7 +23019,8 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" + @@ -23855,6 +23881,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -27506,6 +27533,7 @@ else + use_additional=yes acl_save_prefix="$prefix" @@ -31392,6 +31420,7 @@ $as_echo "$with_lzma" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -34055,7 +34084,7 @@ do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;; "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;; "gcore.in") CONFIG_FILES="$CONFIG_FILES gcore.in:gcore-1.in" ;; @@ -35503,7 +35532,7 @@ compiler_lib_search_path=$lt_compiler_lib_search_path_CXX _LT_EOF ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/gdbserver/configure b/gdbserver/configure index f838f088120..e00e1e1c1c5 100755 --- a/gdbserver/configure +++ b/gdbserver/configure @@ -8846,7 +8846,30 @@ fi # correctly enabled case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) + solaris*) + # Solaris 11.4 introduced XPG7 support and did away with the need for + # _REENTRANT. + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# undef _XOPEN_SOURCE +# include +# if _XOPEN_VERSION < 700 + AX_PTHREAD_SOLARIS__REENTRANT +# endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "AX_PTHREAD_SOLARIS__REENTRANT" >/dev/null 2>&1; then : + ax_pthread_check_macro="_REENTRANT" +else + ax_pthread_check_macro="--" +fi +rm -f conftest* + + ;; + darwin* | hpux* | linux* | osf*) ax_pthread_check_macro="_REENTRANT" ;; @@ -9490,6 +9513,7 @@ $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features + use_additional=yes acl_save_prefix="$prefix" @@ -10135,6 +10159,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -11025,7 +11050,8 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" + @@ -11886,6 +11912,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -14866,7 +14893,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; @@ -15424,7 +15451,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} case $ac_file$ac_mode in "config.h":H) echo > stamp-h ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/gdbsupport/configure b/gdbsupport/configure index 74861f27bfd..7ed4e259ffe 100755 --- a/gdbsupport/configure +++ b/gdbsupport/configure @@ -8742,7 +8742,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -8909,6 +8909,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -9761,6 +9762,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -11745,7 +11747,30 @@ fi # correctly enabled case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) + solaris*) + # Solaris 11.4 introduced XPG7 support and did away with the need for + # _REENTRANT. + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# undef _XOPEN_SOURCE +# include +# if _XOPEN_VERSION < 700 + AX_PTHREAD_SOLARIS__REENTRANT +# endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "AX_PTHREAD_SOLARIS__REENTRANT" >/dev/null 2>&1; then : + ax_pthread_check_macro="_REENTRANT" +else + ax_pthread_check_macro="--" +fi +rm -f conftest* + + ;; + darwin* | hpux* | linux* | osf*) ax_pthread_check_macro="_REENTRANT" ;; @@ -12389,6 +12414,7 @@ $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features + use_additional=yes acl_save_prefix="$prefix" @@ -13034,6 +13060,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -14850,7 +14877,7 @@ do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; @@ -15540,7 +15567,7 @@ $as_echo X"$file" | done } ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/gold/configure b/gold/configure index a81a04f0531..b20478b3479 100755 --- a/gold/configure +++ b/gold/configure @@ -7157,7 +7157,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -7324,6 +7324,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -8176,6 +8177,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -10363,7 +10365,30 @@ fi # correctly enabled case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) + solaris*) + # Solaris 11.4 introduced XPG7 support and did away with the need for + # _REENTRANT. + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# undef _XOPEN_SOURCE +# include +# if _XOPEN_VERSION < 700 + AX_PTHREAD_SOLARIS__REENTRANT +# endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "AX_PTHREAD_SOLARIS__REENTRANT" >/dev/null 2>&1; then : + ax_pthread_check_macro="_REENTRANT" +else + ax_pthread_check_macro="--" +fi +rm -f conftest* + + ;; + darwin* | hpux* | linux* | osf*) ax_pthread_check_macro="_REENTRANT" ;; @@ -11003,7 +11028,30 @@ fi # correctly enabled case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) + solaris*) + # Solaris 11.4 introduced XPG7 support and did away with the need for + # _REENTRANT. + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# undef _XOPEN_SOURCE +# include +# if _XOPEN_VERSION < 700 + AX_PTHREAD_SOLARIS__REENTRANT +# endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "AX_PTHREAD_SOLARIS__REENTRANT" >/dev/null 2>&1; then : + ax_pthread_check_macro="_REENTRANT" +else + ax_pthread_check_macro="--" +fi +rm -f conftest* + + ;; + darwin* | hpux* | linux* | osf*) ax_pthread_check_macro="_REENTRANT" ;; @@ -14367,7 +14415,7 @@ do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; @@ -15059,7 +15107,7 @@ $as_echo X"$file" | done } ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/gprof/configure b/gprof/configure index 1a25034e12c..f2c7218ecbf 100755 --- a/gprof/configure +++ b/gprof/configure @@ -12071,7 +12071,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -12238,6 +12238,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -13090,6 +13091,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -15094,7 +15096,7 @@ do "gconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS gconfig.h:gconfig.in" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; @@ -16425,7 +16427,7 @@ _LT_EOF chmod +x "$ofile" ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/gprofng/configure b/gprofng/configure index 82ef1f2306f..0888933579b 100755 --- a/gprofng/configure +++ b/gprofng/configure @@ -16647,7 +16647,30 @@ fi # correctly enabled case $host_os in - darwin* | hpux* | linux* | osf* | solaris*) + solaris*) + # Solaris 11.4 introduced XPG7 support and did away with the need for + # _REENTRANT. + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +# undef _XOPEN_SOURCE +# include +# if _XOPEN_VERSION < 700 + AX_PTHREAD_SOLARIS__REENTRANT +# endif + +_ACEOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + $EGREP "AX_PTHREAD_SOLARIS__REENTRANT" >/dev/null 2>&1; then : + ax_pthread_check_macro="_REENTRANT" +else + ax_pthread_check_macro="--" +fi +rm -f conftest* + + ;; + darwin* | hpux* | linux* | osf*) ax_pthread_check_macro="_REENTRANT" ;; diff --git a/ld/configure b/ld/configure index 4d755384c41..63ded343f95 100755 --- a/ld/configure +++ b/ld/configure @@ -16699,7 +16699,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -16866,6 +16866,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -17718,6 +17719,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -18621,7 +18623,15 @@ if ${gcc_cv_prog_cmp_skip+:} false; then : else echo abfoo >t1 echo cdfoo >t2 - gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' + gcc_cv_prog_cmp_skip='(trap ":; rm -f tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$" 0; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'trap "exit 2" 1 2 3 15; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f1 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo1.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tail -c +17 $$f2 ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'> tmp-foo2.$$$$ || exit 2; ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'cmp tmp-foo1.$$$$ ' + gcc_cv_prog_cmp_skip="$gcc_cv_prog_cmp_skip"'tmp-foo2.$$$$; exit $$?)' if cmp t1 t2 2 2 > /dev/null 2>&1; then if cmp t1 t2 1 1 > /dev/null 2>&1; then : @@ -20667,7 +20677,7 @@ do "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; @@ -22169,7 +22179,7 @@ compiler_lib_search_path=$lt_compiler_lib_search_path_CXX _LT_EOF ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/libbacktrace/configure b/libbacktrace/configure index 398e1621144..b37cffd6573 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -2587,7 +2587,7 @@ if test $cross_compiling = no && test $multilib = yes \ cross_compiling=maybe fi -ac_config_commands="$ac_config_commands default-1" +ac_config_commands="$ac_config_commands multilib" fi @@ -15821,7 +15821,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "multilib") CONFIG_COMMANDS="$CONFIG_COMMANDS multilib" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; @@ -16423,7 +16423,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} case $ac_file$ac_mode in - "default-1":C) + "multilib":C) # Only add multilib support code if we just rebuilt the top-level # Makefile. case " $CONFIG_FILES " in diff --git a/libctf/configure b/libctf/configure index 1b02c399dd9..8ccc9ac4ee1 100755 --- a/libctf/configure +++ b/libctf/configure @@ -5787,7 +5787,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -5954,6 +5954,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -6806,6 +6807,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -13970,7 +13972,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 13973 "configure" +#line 13975 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -14076,7 +14078,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 14079 "configure" +#line 14081 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -18429,7 +18431,7 @@ for ac_config_target in $ac_config_targets do case $ac_config_target in "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; @@ -19121,7 +19123,7 @@ $as_echo X"$file" | done } ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/opcodes/configure b/opcodes/configure index 7c0aad6a462..2ae65d00cbd 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -12217,7 +12217,7 @@ $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } rm -f messages.po fi - ac_config_commands="$ac_config_commands default-1" + ac_config_commands="$ac_config_commands posubdirs" @@ -12384,6 +12384,7 @@ fi + use_additional=yes acl_save_prefix="$prefix" @@ -13236,6 +13237,7 @@ $as_echo "$LIBICONV" >&6; } + use_additional=yes acl_save_prefix="$prefix" @@ -15502,7 +15504,7 @@ do "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "posubdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS posubdirs" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; @@ -16832,7 +16834,7 @@ _LT_EOF chmod +x "$ofile" ;; - "default-1":C) + "posubdirs":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in diff --git a/zlib/configure b/zlib/configure index be8b683b6e8..1f92337bf8c 100755 --- a/zlib/configure +++ b/zlib/configure @@ -2278,7 +2278,7 @@ if test $cross_compiling = no && test $multilib = yes \ cross_compiling=maybe fi -ac_config_commands="$ac_config_commands default-1" +ac_config_commands="$ac_config_commands multilib" fi @@ -13021,7 +13021,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 for ac_config_target in $ac_config_targets do case $ac_config_target in - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "multilib") CONFIG_COMMANDS="$CONFIG_COMMANDS multilib" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; @@ -13454,7 +13454,7 @@ $as_echo "$as_me: executing $ac_file commands" >&6;} case $ac_file$ac_mode in - "default-1":C) + "multilib":C) # Only add multilib support code if we just rebuilt the top-level # Makefile. case " $CONFIG_FILES " in -- 2.54.0