Cross-Compiling D-BUS

Rob Taylor robtaylor at fastmail.fm
Mon Sep 27 08:32:58 UTC 2004


On Sat, 25 Sep 2004 09:49:52 -0400, "Havoc Pennington" <hp at redhat.com>
said:
> On Fri, 2004-09-24 at 14:44 -0500, Jared Hanson wrote:
> >   Is there anyway I can prevent these checks
> > from running?
> 
> I believe to allow cross-compiling configure.in has to have defaults for
> all these checks, or maybe there's some way to specify them. Anyway
> there's some standard answer no doubt specified in the autoconf manual.
> 
> You will have to figure out that standard answer and modify configure.in
> to reflect it. If you do, please send us the patch. ;-)

Take a config.cache from a configure on a box you can configure on,
remove any tests that aren't AC_TRY_RUN (or other tests that are
impossible in your cross compile environment), modify their values to
those required by your target architecture and pass it into configure
using the --cache-file option.

openembedded.org has a nice cross compiling environment and dbus is
alredy packaged for this environment.
looking at the sources, for release 0.22 we patch configure.in with

@@ -466,6 +466,7 @@
     exit (0);
 ]])],
               [have_abstract_sockets=yes],
+              [have_abstract_sockets=no],
               [have_abstract_sockets=no])
 AC_LANG_POP(C)
 AC_MSG_RESULT($have_abstract_sockets)

and autoreconf.


Rob Taylor


More information about the dbus mailing list