-
-AC_ARG_VAR([DEFAULT_ATSPI_INTROSPECTION_PATH],
- [Set the default path for the install ofDBus introspection XML
- relative to the pkgdatadir.])
-if test -z "$DEFAULT_ATSPI_INTROSPECTION_PATH"; then
- DEFAULT_ATSPI_INTROSPECTION_PATH=dbus
+LIBS="$LIBS $save_LIBS"
+
+AC_ARG_WITH([dbus_daemondir],
+ [AS_HELP_STRING([--with-dbus-daemondir=<directory>],
+ [Directory where the DBUS daemon is installed])],
+ [DBUS_DAEMON="$with_dbus_daemondir/dbus-daemon"],
+ [AC_PATH_PROG([DBUS_DAEMON], [dbus-daemon], [XXXDBUSDAEMONNOTFOUND],
+ [$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR]dnl
+[/libexec$PATH_SEPARATOR/usr/libexec$PATH_SEPARATOR/usr/local/bin]dnl
+[$PATH_SEPARATOR/usr/pkg/bin])]
+ )
+if test "$DBUS_DAEMON" = "XXXDBUSDAEMONNOTFOUND"; then
+ DBUS_DAEMON = "$bindir/dbus-daemon"
+ AC_MSG_WARN([at-spi2 relies on dbus, and the dbus-daemon was not found])
+ AC_MSG_WARN([we assume that it will be installed in "$bindir"])