Log Message: apr/buildlink3.mk defines PKG_BUILD_OPTIONS.apr as the result of the PKG_OPTIONS computation for devel/apr. Check that for the presence of db4 instead.