bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_LIBOBJ with file in subdirectory does not work


From: Bruno Haible
Subject: Re: AC_LIBOBJ with file in subdirectory does not work
Date: Thu, 27 May 2010 00:29:44 +0200
User-agent: KMail/1.9.9

Hi Ralf,

> Can you please tell me how to reproduce that hell in libgettextpo?

You reproduced it already pretty well.

> +# Ensure objects in ../src are renamed so they don't conflict with
> +# the objects generated from ../src/Makefile.
> +libgettextpo_la_CPPFLAGS = $(AM_CPPFLAGS)

Wow. What a hack! Even with the comments, I could not understand how
changing CPPFLAGS could have an effect on object files.

> I tried the patch below, and so far it seems to work reasonably well.
> You lose the ability to do 'make clean' in either of
> gettext-tools/libgettextpo and gettext-tools/src without also cleaning
> the other, ..., but that's about it.

"That's about it." ;-)

Thank you for spending time on experiments how to make libgettextpo work
"reasonably well" with 'subdir-objects'. But, frankly, IMO the effort
should go in the opposite direction:
  - How to continue to offer 'subdir-objects' as a choice that remains
    entirely an unconstrained choice.
  - How to use Automake conditionals or AC_SUBSTed variables without
    file names as replacement for AC_LIBOBJ.

I will work on the latter topic, for gnulib, in the next few days.

Bruno



reply via email to

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