autoconf
[Top][All Lists]
Advanced

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

Re: nested packages


From: Ralf Wildenhues
Subject: Re: nested packages
Date: Thu, 20 Apr 2006 10:05:53 +0200
User-agent: Mutt/1.5.11

Hi Bob,

* Bob Rossi wrote on Fri, Apr 14, 2006 at 02:52:53AM CEST:
> On Thu, Apr 13, 2006 at 09:58:33AM +0200, Ralf Wildenhues wrote:
> > * Bob Rossi wrote on Thu, Apr 13, 2006 at 02:57:48AM CEST:
> > > 
> > > I'm confused now, sorry. Should I use AC_CONFIG_SUBDIRS to configure the
> > > library or not?
> > 
> > Yes, you should.  AC_CONFIG_SUBDIRS will cause the toplevel configure
> > script to invoke the sub-configure script, and so both packages should
> > be ready to be built after just invoking the first.  Invoking `make'
> > should then build both packages, given that you adjusted SUBDIRS
> > accordingly in the toplevel Makefile.am.
> 
> OK, thanks. At this point, I have both packages working independently.
> Do I just do a 'cp -fr' the minor package into the major package?

Yes.

> > > Will the library get installed when 'make install' is done?
> > 
> > Yes, it should.
> 
> I would like the library to not get installed when it is bundled, and to
> install it when it is not bundled. Is this possible? Am I being
> unreasonable? (ie. sometimes I want things that don't make sense, until
> I understand more of the big picture)

You can have an --disable-foo-install switch for the subpackage.
Libtool's libltdl does something similar, so you could get inspiration
there.  The semantics are a bit tricky.

Cheers,
Ralf




reply via email to

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