as.m4 767 B

12345678910111213141516171819
  1. # Figure out how to run the assembler. -*- Autoconf -*-
  2. # Copyright (C) 2001-2017 Free Software Foundation, Inc.
  3. #
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # AM_PROG_AS
  8. # ----------
  9. AC_DEFUN([AM_PROG_AS],
  10. [# By default we simply use the C compiler to build assembly code.
  11. AC_REQUIRE([AC_PROG_CC])
  12. test "${CCAS+set}" = set || CCAS=$CC
  13. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  14. AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
  15. AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
  16. _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
  17. ])