maintainer-feedback requested: [Bug 262137] devel/apr1: Fix output of `apu-1-config --libs` when default version of berkeley db is 18

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 23 Feb 2022 06:45:19 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-apache (Nobody)
<apache@FreeBSD.org> for maintainer-feedback:
Bug 262137: devel/apr1: Fix output of `apu-1-config --libs` when default 
version of berkeley db is 18
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262137



--- Description ---
When default version of berkeley db is 18, `apu-1-config --libs` returns
following output.

yasu@eastasia[2137]% apu-1-config --libs
  -ldb -lgdbm  -lexpat
yasu@eastasia[2146]%

However, it is not libdb.so but libdb-18.1.so that is installed under
${PREFIX}/lib when you install database/db18. And it results in build failure
of some ports that depend on devel/apr1 and use the output of `apu-1-config
--libs` to get the options necessary for linking libraries properly. So fix the
output by adding patch that makes configure script detects library name
correctly.