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.        [EMAIL PROTECTED]
|  |  /
Just Say No to the "faceless cannonfodder" stereotype.
        - http://www.ainurin.net/ (an Orc site)


Reply via email to