portable: improve b64_ntop detection
commit206be139b57622a9d9d2fe28a7d2c1eb62109136
authorThomas Adam <thomas@xteddy.org>
Thu, 2 Mar 2023 23:13:43 +0000 (2 23:13 +0000)
committerThomas Adam <thomas@xteddy.org>
Wed, 8 Mar 2023 09:27:14 +0000 (8 09:27 +0000)
tree926e1f1ab1c98dc4386ddefc8842ef5e402e8551
parentd9b944c72df6401d9aa2cdf40a196bb1b6066113
portable: improve b64_ntop detection

When looking for base64 functions, check -lresolv and/or -lnetwork, and
only build those in compat if required.

Some of the detection code was modified from tmux's configure.ac script.
compat/Makefile.am
configure.ac
include/got_compat2.h