bug-automake
[Top][All Lists]
Advanced

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

bug#7800: automake fails to honor `-d' in AM_YFLAGS when variable expans


From: Ralf Corsepius
Subject: bug#7800: automake fails to honor `-d' in AM_YFLAGS when variable expansions are involved
Date: Fri, 07 Jan 2011 17:52:54 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7

On 01/07/2011 03:36 PM, Stefano Lattarini wrote:
severity: wishlist
thanks

-*-*-

Hello automakers.

Currently, automake is not smart enough to resolve variable expansions
in AM_YFLAGS (or foo_YFLAGS) when scanning them for the `-d' flag.

For example:

   $ cat configure.ac
   AC_INIT(x,0)
   AM_INIT_AUTOMAKE(foreign)
   AC_PROG_CC
   AC_PROG_YACC
   AC_CONFIG_FILES(Makefile)
   $ cat Makefile.am
   bin_PROGRAMS = foo bar
   foo_SOURCES = foo.y
   bar_SOURCES = bar.y
   my_YFLAGS = -d
   AM_YFLAGS = $(my_YFLAGS)
   bar_YFLAGS = $(my_YFLAGS)
   $ aclocal
   $ automake -a
   $ egrep '(foo|bar).h\.*:' Makefile.in # no match :-(
   $ sed -i 's/$(my_YFLAGS)/-d/' Makefile.am
   $ automake
   $ egrep '(foo|bar)\.h.*:' Makefile.in # now as expected
   bar-bar.h: bar-bar.c
   foo.h: foo.c

Not sure if this bug is worth fixing,
This once used to work

=> regression.





reply via email to

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