(Program and Library Variables): Likewise.
(Assembly Support): Likewise.
* m4/as.m4: Use CCAS and CCASFLAGS.
* automake.in (asm): Use CCAS and CCASFLAGS.
+2002-01-21 Tom Tromey <tromey@redhat.com>
+
+ * automake.texi (Macros): Updated for new variable names.
+ (Program and Library Variables): Likewise.
+ (Assembly Support): Likewise.
+ * m4/as.m4: Use CCAS and CCASFLAGS.
+ * automake.in (asm): Use CCAS and CCASFLAGS.
+
2002-01-21 Akim Demaille <akim@epita.fr>
* automake.in (&parse_arguments): Use a more GNUish error message
You can now use `AC_INIT(package,version) AM_INIT_AUTOMAKE' instead.
It is also possible to pass a list of global Automake options as
first argument to this new form of AM_INIT_AUTOMAKE.
+* Compiler-based assembler is now called `CCAS'; people expected `AS'
+ to be a real assembler.
\f
New in 1.5:
* Support for `configure.ac'.
# Assembler.
register_language ('name' => 'asm',
'Name' => 'Assembler',
- 'config_vars' => ['AS', 'ASFLAGS'],
+ 'config_vars' => ['CCAS', 'CCASFLAGS'],
- 'flags' => 'ASFLAGS',
+ 'flags' => 'CCASFLAGS',
# Users can set AM_ASFLAGS to includes DEFS, INCLUDES,
# or anything else required. They can also set AS.
- 'compile' => '$(AS) $(AM_ASFLAGS) $(ASFLAGS)',
- 'compiler' => 'ASCOMPILE',
+ 'compile' => '$(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)',
+ 'compiler' => 'CCASCOMPILE',
'compile_flag' => '-c',
'extensions' => ['.s', '.S'],
@item AM_PROG_AS
Use this macro when you have assembly code in your project. This will
-choose the assembler for you (by default the C compiler), and will set
-@code{ASFLAGS} if required.
+choose the assembler for you (by default the C compiler) and set
+@code{CCAS}, and will also set @code{CCASFLAGS} if required.
@item AM_PROG_CC_C_O
This is like @code{AC_PROG_CC_C_O}, but it generates its results in the
programs, and it will potentially be compiled with different flags for
each program. This works for any language directly supported by
Automake. The flags are @samp{_CFLAGS}, @samp{_CXXFLAGS},
-@samp{_OBJCFLAGS}, @samp{_YFLAGS}, @samp{_ASFLAGS}, @samp{_FFLAGS},
+@samp{_OBJCFLAGS}, @samp{_YFLAGS}, @samp{_CCASFLAGS}, @samp{_FFLAGS},
@samp{_RFLAGS}, and @samp{_GCJFLAGS}.
When using a per-program compilation flag, Automake will choose a
Automake includes some support for assembly code.
-The variable @code{AS} holds the name of the compiler used to build
+The variable @code{CCAS} holds the name of the compiler used to build
assembly code. This compiler must work a bit like a C compiler; in
particular it must accept @samp{-c} and @samp{-o}. The value of
-@code{ASFLAGS} is passed to the compilation.
-@vindex AS
-@vindex ASFLAGS
+@code{CCASFLAGS} is passed to the compilation.
+@vindex CCAS
+@vindex CCASFLAGS
-You are required to set @code{AS} and @code{ASFLAGS} via
+You are required to set @code{CCAS} and @code{CCASFLAGS} via
@file{configure.in}. The autoconf macro @code{AM_PROG_AS} will do this
-for you. Unless they are already set, it simply sets @code{AS} to the C
-compiler and @code{ASFLAGS} to the C compiler flags.
+for you. Unless they are already set, it simply sets @code{CCAS} to the
+C compiler and @code{CCASFLAGS} to the C compiler flags.
Only the suffixes @samp{.s} and @samp{.S} are recognized by
@code{automake} as being files containing assembly code.
AC_DEFUN([AM_PROG_AS],
[# By default we simply use the C compiler to build assembly code.
AC_REQUIRE([AC_PROG_CC])
-: ${AS='$(CC)'}
+: ${CCAS='$(CC)'}
# Set ASFLAGS if not already set.
-: ${ASFLAGS='$(CFLAGS)'}
-AC_SUBST(AS)
-AC_SUBST(ASFLAGS)])
+: ${CCASFLAGS='$(CFLAGS)'}
+AC_SUBST(CCAS)
+AC_SUBST(CCASFLAGS)])
-@set UPDATED 20 January 2002
+@set UPDATED 21 January 2002
@set UPDATED-MONTH January 2002
@set EDITION 1.5c
@set VERSION 1.5c
-@set UPDATED 20 January 2002
+@set UPDATED 21 January 2002
@set UPDATED-MONTH January 2002
@set EDITION 1.5c
@set VERSION 1.5c