automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AM_PROG_AS default to $CC directly


From: Alexandre Duret-Lutz
Subject: Re: AM_PROG_AS default to $CC directly
Date: 30 Sep 2002 20:34:51 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>> "Kevin" == Kevin Ryde <address@hidden> writes:

 Kevin> I'd like to propose the following.  

Thanks, I committed it on HEAD as follows (AC_ARG_VAR implies AC_SUBST).

2002-09-30  Kevin Ryde  <address@hidden>

        * m4/as.m4 (AM_PROG_AS): Let CCAS and CCASFLAGS default to the actual
        values of $CC and $CFLAGS (as opposed to $(CC) and $(CFLAGS)), so
        configure tests can use them.  Use AC_ARG_VAR instead of AC_SUBST.

Index: m4/as.m4
===================================================================
RCS file: /cvs/automake/automake/m4/as.m4,v
retrieving revision 1.4
diff -u -r1.4 as.m4
--- m4/as.m4    22 Jan 2002 00:11:27 -0000      1.4
+++ m4/as.m4    30 Sep 2002 18:28:33 -0000
@@ -24,8 +24,8 @@
 AC_DEFUN([AM_PROG_AS],
 [# By default we simply use the C compiler to build assembly code.
 AC_REQUIRE([AC_PROG_CC])
-: ${CCAS='$(CC)'}
-# Set ASFLAGS if not already set.
-: ${CCASFLAGS='$(CFLAGS)'}
-AC_SUBST(CCAS)
-AC_SUBST(CCASFLAGS)])
+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)])
+])
-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]