bug-automake
[Top][All Lists]
Advanced

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

AC_LIBSOURCES([foo.y]) not handled correctly


From: Stepan Kasal
Subject: AC_LIBSOURCES([foo.y]) not handled correctly
Date: Thu, 6 Oct 2005 14:07:17 +0200
User-agent: Mutt/1.4.1i

Hello,

[this bug report is based on a problem which appeared in the thread:
http://lists.gnu.org/archive/html/bug-gnulib/2005-05/msg00200.html
It also says that GNU cpio is a project where a fix can be tested. ]

If configure.ac contains

  AC_LIBSOURCES([getdate.h, getdate.y])
  AC_LIBOBJ([getdate])

then Automake should take care about all the issues.

In handle_LIBOBJS, the language is registered, by
        saw_extension('.y')

But there are problems:

1) automake complains that getdate.c is not available.
  (Because it traced AC_LIBSOURCE([getdate.c]).)

2) lang_yacc_target_hook is not called.
This means that getdate.c is not registered in maintainer-clean files.
And if YFLAGS contains '-d', the generated header is not properly
registered.

And the same problem exists for lex sources, *.l.

Have a nice day,
        Stepan Kasal




reply via email to

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