emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D-Bus integration into Emacs


From: Magnus Henoch
Subject: Re: D-Bus integration into Emacs
Date: Mon, 03 Dec 2007 04:17:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (berkeley-unix)

Michael Albinus <address@hidden> writes:

> I've committed the files to the trunk. In order to activate D-Bus
> integration, one must apply "./configure --with-dbus". It's tested under
> GNU/Linux only, but there seem to exist D-Bus implementations for Mac OS
> X and Win32 as well.

It doesn't compiler under NetBSD, as D-Bus is installed under /usr/pkg
instead of /usr.  How about this patch?  It makes configure use
pkg-config to find the proper compiler and linker flags.

diff --git a/configure.in b/configure.in
index c372f5c..b791842 100644
--- a/configure.in
+++ b/configure.in
@@ -2264,13 +2264,9 @@ dnl other platforms.  Support for higher D-Bus versions 
but 1.0 is
 dnl also not configured.
 HAVE_DBUS=no
 if test "${with_dbus}" = "yes"; then
-   AC_CHECK_LIB(dbus-1, dbus_bus_get, HAVE_DBUS=yes)
+   PKG_CHECK_MODULES(DBUS, dbus-1, HAVE_DBUS=yes, HAVE_DBUS=no)
    if test "$HAVE_DBUS" = yes; then
       AC_DEFINE(HAVE_DBUS, 1, [Define to 1 if using D-Bus.])
-      DBUS_CFLAGS="-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include"
-      AC_SUBST(DBUS_CFLAGS)
-      DBUS_LIBS="-ldbus-1"
-      AC_SUBST(DBUS_LIBS)
       DBUS_INFO="dbus"
    fi
 fi


Diffs between working revision and workfile end here.
Magnus

reply via email to

[Prev in Thread] Current Thread [Next in Thread]