configure: simpify dbus policy install dir
Using the package config to find where dbus-1 installs its config files
is needless indirection and adds a hard build-time dependency on the
dbus-1 package, which isn't necessary. The `dbus-daemon` manpage
suggests that package-level configuration should be placed in
`/usr/share` and not `/etc`, so use `${datadir}` to place the config
files in that location.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I02f34bc05dda2cbeb6d7a3205b6fd9cb46bb9a67
diff --git a/configure.ac b/configure.ac
index c82ede7..2549be0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,7 +42,7 @@
AC_ARG_WITH([dbuspolicydir],
AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
[],
- [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
+ [with_dbuspolicydir=${datadir}/dbus-1/system.d])
AS_IF([test "x$with_dbuspolicydir" != "xno"],
[AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])]
)