I started as a PKG_CONFIG test for openssl but it started to conflict with the uncommited autoconf patch I send msk yesterday so here it is in full.
reasons for changes:
wanted by autoscan however solaris crashes because from them says the cvs changelog for configure.ac
Use PKG_CHEKC_MODULES to search for openssl - much more likely to get a matching headers/library than searching. Fall back on searching if needed or if a path is specified.
build static and shared libaries.
add libresolv because needs it on Linux, not sure if this is portable. Without this compulation will fail with LD_FLAGS --as-needed
-man_MANS = ar.3
-EXTRA_DIST = $(man_MANS)
+dist_man_MANS = ar.3
ensure man files are distributed
changes due to openssl detection
docsdir separated for readability purpose. Used standard $(htmldir) which should be portable.
used libar.la file as linking dynamic libaries to static libraries causes relocation problems.
No tests directly use openssl functions therefore LDFLAGS are not needed.
dist_sbin_SCRIPTS is simplier than adding it to EXTRA_DIST
$(docdir) is more portable than $(datarootdir)/doc/@PACKAGE@
opendkim - doesn't use milter or unbound directly so removed. Only uses openssl.
doesn't use TRE even with FFR_REPLACE_RULES which uses system(glibc) regex
opendkim_stats only uses LIBDB directly
opendkim_testkey doesn't use openssl or anything else directly
opendkim_testadsp only uses libopendkim
dist_man_ is simpler