From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id 82E663858D39; Wed, 2 Mar 2022 22:29:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82E663858D39 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] Added gcc/m2/configure.ac tests for Python3 and realpath. X-Act-Checkin: gcc X-Git-Author: q X-Git-Refname: refs/heads/devel/modula-2 X-Git-Oldrev: 8df4f2c9f53f43d59ccdb2ce3af180645ead8fa4 X-Git-Newrev: 11470d2c217175bb308dc4dade4f6f28103df1da Message-Id: <20220302222941.82E663858D39@sourceware.org> Date: Wed, 2 Mar 2022 22:29:41 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2022 22:29:41 -0000 https://gcc.gnu.org/g:11470d2c217175bb308dc4dade4f6f28103df1da commit 11470d2c217175bb308dc4dade4f6f28103df1da Author: q Date: Wed Mar 2 22:27:45 2022 +0000 Added gcc/m2/configure.ac tests for Python3 and realpath. gcc/m2/ChangeLog: * m2/configure.ac: Added rule to test for Python3. Added rule to detect realpath. Signed-off-by: Diff: --- gcc/m2/ChangeLog | 4 ++++ gcc/m2/configure.ac | 8 +++++++- gm2tools/Makefile.in | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog index 4a9e40e4488..a94e759cc04 100644 --- a/gcc/m2/ChangeLog +++ b/gcc/m2/ChangeLog @@ -14,6 +14,10 @@ is not deleted if the user specified -fmakeinit. * mc-boot-ch/Glibc.c (libc_putenv): New function. * ChangeLog-2021: (New file). + * m2/m2-link-support.h (GEN_SCAFFOLD_SRC): New definition. + (M2LINK) use GEN_SCAFFOLD_SRC to generate the scaffold name. + * m2/configure.ac: Added rule to test for Python3. Added rule to + detect realpath. 2022-01-25 Gaius Mulley diff --git a/gcc/m2/configure.ac b/gcc/m2/configure.ac index 4c219258d90..f76d69576df 100644 --- a/gcc/m2/configure.ac +++ b/gcc/m2/configure.ac @@ -24,7 +24,7 @@ AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_CANONICAL_TARGET -# Determine the noncanonical host name, for Ada. +# Determine the noncanonical host name, for Modula-2a. ACX_NONCANONICAL_HOST # Determine the noncanonical target name, for directory use. @@ -37,6 +37,12 @@ if test x$regex_flex = "x" ; then AC_MSG_ERROR([flex is required to build GNU Modula-2 (hint install flex).]) fi +AC_CHECK_PROGS(regex_realpath, realpath) +if test x$regex_realpath = "x" ; then + AC_MSG_ERROR([realpath is required to build GNU Modula-2 (hint install coreutils).]) +fi + +AM_PATH_PYTHON([3.0]) AC_CHECK_FUNCS([stpcpy]) AC_DEFINE_UNQUOTED(AR_PATH, "$AR_PATH", the path to target archiver) diff --git a/gm2tools/Makefile.in b/gm2tools/Makefile.in index 386f2e4163a..d228a6a9b39 100644 --- a/gm2tools/Makefile.in +++ b/gm2tools/Makefile.in @@ -639,8 +639,8 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@NATIVE_FALSE@uninstall-local: @NATIVE_FALSE@install-exec-local: +@NATIVE_FALSE@uninstall-local: clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am