Stephen Torri <[EMAIL PROTECTED]> writes:

> gcc  -g -O2  @LDFLAGS@ -o foo  foo.o
> gcc: @LDFLAGS@: No such file or directory

You are most probably using a version of Autoconf before this patch:

2001-01-26  Akim Demaille  <[EMAIL PROTECTED]>

        * aclang.m4: dnl AC_ARG_VAR's newline.
        (AC_PROG_CC, AC_PROG_F77, AC_PROG_CXX): AC_ARG_VAR(LDFLAGS).
        * acgeneral.m4 (AC_CHECK_LIB): Don't do it.

and after this one:

2001-01-24  Akim Demaille  <[EMAIL PROTECTED]>

        Don't AC_SUBST too much, as it makes Automake include those
        variables in Makefiles, and drives autoscan to require unneeded
        programs.

        * acgeneral.m4 (_AC_INIT_PREPARE): Don't AC_SUBST CFLAGS,
        CPPFLAGS, CXXFLAGS and LDFLAGS.
        (AC_ARG_VAR): AC_SUBST the var.
        Document it only once, even if there are several different docs.
        * aclang.m4 (AC_PROG_CPP): Declare CPP and CPPFLAGS to AC_ARG_VAR.
        (AC_PROG_CXXCPP): Declare CXXCPP and CPPFLAGS.



While inter CVS version checks are definitely useful, please then be
sure to use up to date version of all the tools.  And state clearly
your environment.

Reply via email to