]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4610: cleanup of BerkleyDB related checks
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Apr 2017 09:01:23 +0000 (22:01 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Apr 2017 09:01:23 +0000 (22:01 +1300)
commit25b5360df8a1c7b14fc54282ca23a1388f5af65c
tree1f4b3c6b549d9f4c06c14d92b27326e39f1e34b9
parent3d8aec664476b62a3bacb6ad531d02f01007fc11
Bug 4610: cleanup of BerkleyDB related checks

Most of the logic seems to be hangovers from when session helper was
using the BerkleyDB v1.85 compatibility interface. Some of it is
possibly still necessary for the time_quota helper, but that helper has
not been using it so far and needs an upgrade to match what happened to
session helper.

Changes:

* The helpers needing -ldb will not be built unless the library and
headers are available. So we can drop the Makefile LIB_DB substitutions
and always just link -ldb explicitly to these helpers.

NP: Anyone who needs small minimal binaries, can build with the
--as-needed linker flag, or without these helpers. This change has no
effect on other helpers or the main squid binary.

* Since we no longer need to check if -ldb is necessary, we can drop the
configure.ac and acinclude logic detecting that.

* Remove unused AC_CHECK_DECL(dbopen, ...)
 - resolves one "FIXME"

* Fix the time_quota helper check to only scan db.h header file contents
if that file is existing, and if the db_185.h file is not being used
instead.

* Fix the session helper check to only try compiling with the db.h
header if that header actually exists.

* De-duplicate the library header file detection shared by configure.ac
and the helpers required.m4 files (after the above two changes).

* Remove unused DBLIB variable from configure.ac.
acinclude/lib-checks.m4
configure.ac
src/acl/external/session/Makefile.am
src/acl/external/session/required.m4
src/acl/external/time_quota/Makefile.am
src/acl/external/time_quota/required.m4