Re: How about some AC_MSG for dlopen?

Andreas Metzler <[email protected]> Sat, 17 Aug 2024 18:23:14 +0200
Newsgroups gmane.network.gnutls.general
Message-ID <[email protected]>
On 2024-08-17 Daiki Ueno <[email protected]> wrote:
> Andreas Metzler <[email protected]> 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'