bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] Re: should argp depend on unlocked-io?


From: Paul Eggert
Subject: Re: [bug-gnulib] Re: should argp depend on unlocked-io?
Date: Mon, 11 Jul 2005 16:49:37 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> What about this patch, then? Add the dependency to the module description.
> It's then unnecessary to mention it in the autoconf macro.

Both patches look a bit off to me, since argp should be usable in
multithreaded code.  (This is a problem with the current gnulib, too,
but we should fix it while we're in the neighborhood.)

Instead, shouldn't we split gl_FUNC_GLIBC_UNLOCKED_IO into two pieces?
The first piece defines USE_UNLOCKED_IO and AC_LIBSOURCES
unlocked-io.h, and is useful only in non-multithreaded apps.  The 2nd
piece requires gl_USE_SYSTEM_EXTENSIONS and checks for the
declarations of clearerr_unlocked, etc.  The 1st piece depends on the
2nd piece.  Argp depends only on the 2nd piece.

We could call the 2nd piece a new module "unlocked-decls", say.




reply via email to

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