[gnutls-help] How about some AC_MSG for dlopen?

Andreas Metzler ametzler at bebt.de
Sat Aug 17 18:23:14 CEST 2024


On 2024-08-17 Daiki Ueno <ueno at gnu.org> wrote:
> Andreas Metzler <ametzler at bebt.de> writes:

> > ./configure is quiet about whether dlopening librariers is supported,
> > would it make sense to a) add messages and perhaps b) provide a switch
> > to force use of linking instead?

> That sounds sensible to me, though I'm not sure what it is like a good
> interface for (b).  Maybe --with-zstd, etc., could take a tri-state
> argument (no/yes/[dlopen]) and if "yes", the library is linked at build
> time?

Hello,

I think it would need to be 4-state,  [dlopen / link / yes (which
prefers dlopen but does not require it) / no].

Alternatively a global setting could be used.

AC_ARG_ENABLE ([dlopen],
  [AS_HELP_STRING([--disable-dlopen],
    [link against instead of dlopening some helper libraries]),
  [ac_dlopen=$withval], [ac_dlopen=no])

I do not have a strong preference. I can try to come up with a patch
once a choice has been made.

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Gnutls-help mailing list