Am Freitag 20 Oktober 2006 14:15 schrieb Marcel Holtmann:
> > > Actually I prefer to keep all of them in case people cross-compile it
> > > unless you have an idea. Or is $host always the target architecture.
> >
> > $host is the platform that the code will run on. So yes, this will also
> > work for cross-compilation.
> > I test for LD because this is usually left out and you should use the
> > wrong one on cross-compilation. Just a careful approach to
> > AC_CANONICAL_HOST.
>
> lost you here. What do you mean?

Here is an updated patch:
------------------------------snip------------------------------------
--- configure.in        20 Oct 2006 09:56:34 -0000      1.12
+++ configure.in        20 Oct 2006 12:57:48 -0000
@@ -3,6 +3,7 @@

 AM_INIT_AUTOMAKE(openobex, 1.3)
 AM_CONFIG_HEADER(config.h)
+AC_CANONICAL_HOST

 AM_MAINTAINER_MODE

@@ -21,11 +22,23 @@

 AC_PATH_GLIB
 AC_PATH_IRDA
-AC_PATH_NETBSDBT
-AC_PATH_FREEBSDBT
-AC_PATH_BLUEZ
-AC_PATH_USB

+case $host in
+*-*-linux*)
+    AC_PATH_BLUEZ
+    ;;
+
+*-*-netbsd*)
+    AC_PATH_NETBSDBT
+    ;;
+
+*-*-freebsd*)
+    AC_PATH_FREEBSDBT
+    ;;
+
+esac
+
+AC_PATH_USB
 AC_ARG_OPENOBEX

 AC_OUTPUT(Makefile include/Makefile lib/Makefile glib/Makefile apps/Makefile 
ircp/Makefile doc/Makefile openobex.pc openobex-glib.pc)
------------------------------snip------------------------------------

When cross-compiling, it looks like this:
[...]
checking for i586-mingw32msvc-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to [EMAIL PROTECTED]
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... no
no
checking for IrDA support... no
checking for USB... no
no
checking for usb_get_busses in -lusb... no
checking for usb_interrupt_read in -lusb... no
configure: creating ./config.status

As you can see no bluez check although this done on my linux box.
Ok, the lib is currently useless on win32 but take it as example :)

HS

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to