[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autoconf and nested projects
From: |
Eric Siegerman |
Subject: |
Re: Autoconf and nested projects |
Date: |
Mon, 30 Dec 2002 17:14:07 -0500 |
User-agent: |
Mutt/1.2.5i |
On Sat, Dec 28, 2002 at 06:46:18PM +0100, Pierre Mazière wrote:
> I have a project that uses a library using autoconf/automake/libtool.
> [...]
> I'd like to keep the original library package without any modifications
> [...]
> 1) how can i pass the --disable-shared option to the library ./configure
> during th ebuild process of my project
If a subdirectory contains a file "configure.gnu", CONFIG_SUBDIRS
will run that instead of "configure". So add a file called
library/configure.gnu that makes whatever changes you like to the
command line, then calls the real configure script. In your
case, it could look something like this:
#! /bin/sh
exec ./configure ${1+"$@"} --disable-shared
That doesn't completely avoid modifying the library -- you have
to add a file -- but it comes pretty darned close. And it's a
change that's pretty unlikely to cause any merge conflicts when
you upgrade the library.
--
| | /\
|-_|/ > Eric Siegerman, Toronto, Ont. address@hidden
| | /
Just Say No to the "faceless cannonfodder" stereotype.
- http://www.ainurin.net/ (an Orc site)