| 1 |
dnl as.m4 |
| 2 |
dnl Figure out how to run the assembler. |
| 3 |
|
| 4 |
dnl AM_PROG_AS |
| 5 |
AC_DEFUN([AM_PROG_AS], |
| 6 |
[ |
| 7 |
dnl By default we simply use the C compiler to build assembly code. |
| 8 |
AC_REQUIRE([AC_PROG_CC]) |
| 9 |
: ${CCAS='$(CC)'} |
| 10 |
# Set CCASFLAGS if not already set. |
| 11 |
: ${CCASFLAGS='$(CFLAGS)'} |
| 12 |
# Set ASCOMPILE if not already set. |
| 13 |
if test $CCAS = '$'CC; then |
| 14 |
: ${CCASCOMPILE='$(LIBTOOL) --mode=compile $(CCAS) $(AM_ASFLAGS) $(CCASFLAGS) -c'} |
| 15 |
else |
| 16 |
: ${CCASCOMPILE='$(LIBTOOL) --mode=compile $(CCAS) $(AM_ASFLAGS) $(CCASFLAGS)'} |
| 17 |
fi |
| 18 |
AC_SUBST(CCAS) |
| 19 |
AC_SUBST(CCASFLAGS) |
| 20 |
AC_SUBST(CCASCOMPILE) |
| 21 |
]) |
| 22 |
|