[gnutls-help] How about some AC_MSG for dlopen?
Daiki Ueno
ueno at gnu.org
Mon Aug 19 03:54:38 CEST 2024
Andreas Metzler <ametzler at bebt.de> writes:
> 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?
>
> I think it would need to be 4-state, [dlopen / link / yes (which
> prefers dlopen but does not require it) / no].
Right, that sounds better.
> 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 would prefer to have the option per library, because some of the
libraries are less likely to be available than the others (e.g.,
tpm2-tss vs. zlib).
> I do not have a strong preference. I can try to come up with a patch
> once a choice has been made.
That would be appreciated.
Regards,
--
Daiki Ueno
More information about the Gnutls-help
mailing list