This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: automake 1.6.2 - some problems


Hello Alexandre,

>  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 configure.ac
> 
>   2. don't override libdir in Makefile.am
> 
>   3. use something like this in Makefile.am:
> 
>        plugindir = $(libdir)/programname
>        plugin_LTLIBRARIES = stdout.la ...
> 
> Actually, it can be simplier to use pkglibdir
> (automatically defined to `$(libdir)/$(PACKAGE)'):
> 
>        pkglib_LTLIBRARIES = stdout.la ...

Ah, cool. Didn't know that.
As I stated, I'm a newbie in automake/autoconf.


> 
>  Patrik> It does this:
>  Patrik> Makefile.in:
>  Patrik> @ENABLE_MYSQL_TRUE@libdir = $(LIBDIR)/programname
>  Patrik> libdir = @libdir@
> 
> I'm confused, are you showing the line from *each* Makefile.in
> or from only one?  In the latter case, that's clearly an Automake bug.

It confused me too, because its from only one Makefile.in.
So I thought it could be a bug in automake.

> 
> -- 
> Alexandre Duret-Lutz
> 

-- 
Patrik Weiskircher <pat@justp.at>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]