From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 1FE9E3858C3A for ; Sat, 5 Feb 2022 07:34:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1FE9E3858C3A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 9C802342EA0; Sat, 5 Feb 2022 07:34:42 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH 1/7] newlib: move AC_NO_EXECUTABLES logic up to common code Date: Sat, 5 Feb 2022 02:34:30 -0500 Message-Id: <20220205073436.6577-2-vapier@gentoo.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220205073436.6577-1-vapier@gentoo.org> References: <20220205073436.6577-1-vapier@gentoo.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2022 07:34:45 -0000 This logic was added to libc & libm to get it working again after some reworks in the CPP handling, but now that that's settled, let's move this to the common newlib configure logic. This will make it easier to consolidate all the configure calls into the top-level newlib dir. This does create a lot of noise in the generate scripts, but that's because of the ordering of the calls, not because of correctness. We will try to draw that back down in follow up commits as we modernize the toolchain calls in here. --- newlib/acinclude.m4 | 3 + newlib/configure | 3828 +++++++++-------- newlib/libc/configure | 3568 +++++++-------- newlib/libc/configure.ac | 2 - newlib/libc/sys/linux/configure | 3828 +++++++++-------- newlib/libc/sys/linux/linuxthreads/configure | 3828 +++++++++-------- .../sys/linux/linuxthreads/machine/configure | 3828 +++++++++-------- .../linux/linuxthreads/machine/i386/configure | 3828 +++++++++-------- newlib/libc/sys/linux/machine/configure | 3828 +++++++++-------- newlib/libc/sys/linux/machine/i386/configure | 3828 +++++++++-------- newlib/libc/sys/phoenix/Makefile.in | 6 + newlib/libc/sys/phoenix/aclocal.m4 | 64 + newlib/libc/sys/phoenix/configure | 1405 +++++- newlib/libc/sys/phoenix/machine/Makefile.in | 6 + newlib/libc/sys/phoenix/machine/aclocal.m4 | 64 + .../libc/sys/phoenix/machine/arm/Makefile.in | 6 + .../libc/sys/phoenix/machine/arm/aclocal.m4 | 64 + newlib/libc/sys/phoenix/machine/arm/configure | 1405 +++++- newlib/libc/sys/phoenix/machine/configure | 1405 +++++- newlib/libm/configure | 3568 +++++++-------- newlib/libm/configure.ac | 2 - 21 files changed, 21391 insertions(+), 16973 deletions(-) diff --git a/newlib/acinclude.m4 b/newlib/acinclude.m4 index 888d417943e3..c851d622e942 100644 --- a/newlib/acinclude.m4 +++ b/newlib/acinclude.m4 @@ -118,6 +118,8 @@ AM_INIT_AUTOMAKE([foreign no-installinfo no-dependencies no-dist no-define subdi AM_MAINTAINER_MODE() AM_SILENT_RULES(yes) +AC_NO_EXECUTABLES + # FIXME: We temporarily define our own version of AC_PROG_CC. This is # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We # are probably using a cross compiler, which will not be able to fully @@ -180,6 +182,7 @@ fi ]) LIB_AC_PROG_CC +AC_REQUIRE([AC_PROG_CPP])dnl AC_CHECK_TOOL(AS, as) AC_CHECK_TOOL(AR, ar) diff --git a/newlib/libc/configure.ac b/newlib/libc/configure.ac index 14b6aa466cd3..c24021c1d539 100644 --- a/newlib/libc/configure.ac +++ b/newlib/libc/configure.ac @@ -45,9 +45,7 @@ AC_ARG_ENABLE(newlib-retargetable-locking, esac],[newlib_retargetable_locking=no]) AM_CONDITIONAL(NEWLIB_RETARGETABLE_LOCKING, test x$newlib_retargetable_locking = xyes) -AC_NO_EXECUTABLES NEWLIB_CONFIGURE(..) -AC_PROG_CPP AM_CONDITIONAL(NEWLIB_NANO_MALLOC, test x$newlib_nano_malloc = xyes) diff --git a/newlib/libm/configure.ac b/newlib/libm/configure.ac index a03ea3872bd5..e4611ed846dd 100644 --- a/newlib/libm/configure.ac +++ b/newlib/libm/configure.ac @@ -16,9 +16,7 @@ AM_CONDITIONAL(NEWLIB_HW_FP, test x$newlib_hw_fp = xtrue) dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. AC_CONFIG_AUX_DIR(../..) -AC_NO_EXECUTABLES NEWLIB_CONFIGURE(..) -AC_PROG_CPP dnl We have to enable libtool after NEWLIB_CONFIGURE because if we try and dnl add it into NEWLIB_CONFIGURE, executable tests are made before the first -- 2.34.1