bug-gnulib
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] Re: Relicense exit.h under LGPL?


From: Gary V. Vaughan
Subject: Re: [Bug-gnulib] Re: Relicense exit.h under LGPL?
Date: Mon, 04 Oct 2004 16:34:45 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)

Hi Simon,

Simon Josefsson wrote:
> Sigh, I liked this idea, but it wouldn't work.  The reason is that
> many gnulib modules use AC_REPLACE_FUNCS, so you can't have more than
> one directory that use @LTLIBOBJS@ without adding the same file to
> every such directory.  The AC_REPLACE_FUNCS interface is inflexible,
> IMHO.
> 
> Having two configure.ac is a solution, but for libidn, where the
> library consists of maybe 10 files, and the command line tool maybe 3
> files, it seem rather wasteful.  Running two configure.ac is really
> slow, and causes other problems as well (like generating two config.h
> files -- sometimes you need settings from two config.h...).
> 
> Ideas appreciated,

Shooting from the hip (i.e. completely untested):

nonlgpl_LTLIBOBJS="$LTLIBOBJS"
LTLIBOBJS=
gl_MODULES([strdup xalloc], [lgl/], [lgl/m4/], [[LGPL]])
lgpl_LTLIBOBJS="$LTLIBOBJS"
AC_SUBST([lgpl_LTLIBOBJS])
LTLIBOBJS="$nonlgpl_LTLIBOBJS"

gl_MODULES([error progname], [gl/], [gl/m4/])

Some of that hair could probably be factored into the gl_MODULES macro itself.
 There might be assumptions about the content of LTLIBOBJS in automake that
mess this up though...

Cheers,
        Gary.
-- 
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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