[Top][All Lists]

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

Re: automake 1.6.2 - some problems

From: Alexandre Duret-Lutz
Subject: Re: automake 1.6.2 - some problems
Date: Wed, 19 Jun 2002 10:50:57 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu)

Hi Patrik,

>>> "Patrik" == Patrik Weiskircher <address@hidden> writes:


 Patrik> In the file, I AC_SUBST the var. PLUGINDIR.

 Patrik> It contains just "$libdir/programname".

 Patrik> Now i got some plugins, where i wish that automake
 Patrik> installs them into PLUGINDIR.  In the first plugin,
 Patrik> lets call it stdout, I wrote this line into the

 Patrik> libdir = $(PLUGINDIR)
 Patrik> Everything works fine.
 Patrik> No problems at all. The lib goes into $prefix/lib/programname.

This seems a bit convolued to me.  I suggest you

  1. don't AC_SUBST(PLUGINDIR) from

  2. don't override libdir in

  3. use something like this in

       plugindir = $(libdir)/programname
       plugin_LTLIBRARIES = ...

Actually, it can be simplier to use pkglibdir
(automatically defined to `$(libdir)/$(PACKAGE)'):

       pkglib_LTLIBRARIES = ...

 Patrik> Then, the second plugin.
 Patrik> I copied the Just changed the source files.
 Patrik> This time, the library goes into $prefix/lib.
 Patrik> I inspected the and the Makefile itself.

 Patrik> It does this:
 Patrik> @address@hidden = $(LIBDIR)/programname
 Patrik> libdir = @libdir@

I'm confused, are you showing the line from *each*
or from only one?  In the latter case, that's clearly an Automake bug.


Alexandre Duret-Lutz

reply via email to

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