chaps: Check for D-Bus acquire_name() method

DBus::Connection::acquire_name() does not exist in the upstream version
of libdbus-c++, so check for it and stick to the original request_name()
method if not present.

BUG=None
TEST=Chaps unit tests (with ASAN) plus PKCS11 tests

Change-Id: If2b2dd875d6a3f109331306035a0b1db20856213
Reviewed-on: https://chromium-review.googlesource.com/221931
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: David Drysdale <drysdale@google.com>
Tested-by: David Drysdale <drysdale@google.com>
2 files changed