diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-02-05 09:43:41 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-02-09 04:19:18 +0300 |
commit | 34af195290f0168ea63e039028a80503865ee3f9 (patch) | |
tree | 1edcc6ee109fa92a23a1aa25e141dd6bf1528460 /newlib/aclocal.m4 | |
parent | b9346cee1a1ac2b496d98f723e802a6e7959b1e0 (diff) |
newlib: switch to standard AM_PROG_AS
Now that we require a recent automake version, rely on it to provide AS
and CCAS and CCASFLAGS for us.
Diffstat (limited to 'newlib/aclocal.m4')
-rw-r--r-- | newlib/aclocal.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/newlib/aclocal.m4 b/newlib/aclocal.m4 index e9e6e51fd..f671274aa 100644 --- a/newlib/aclocal.m4 +++ b/newlib/aclocal.m4 @@ -56,6 +56,26 @@ m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) +# Figure out how to run the assembler. -*- Autoconf -*- + +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_AS +# ---------- +AC_DEFUN([AM_PROG_AS], +[# By default we simply use the C compiler to build assembly code. +AC_REQUIRE([AC_PROG_CC]) +test "${CCAS+set}" = set || CCAS=$CC +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS +AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)]) +AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)]) +_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl +]) + # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2017 Free Software Foundation, Inc. |