[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xine-devel
Subject:    [xine-devel] [PATCH] Crosscompiling troubles
From:       Bernhard Rosenkraenzer <bero () arklinux ! org>
Date:       2005-05-15 13:26:49
Message-ID: 200505151526.52307.bero () arklinux ! org
[Download RAW message or body]

Hi,
I'm trying to crosscompile arts to an arm system without X11 - running the 
configure script detected most things correctly, but also thought aRts 
support was available and requested.

The problem is that the aRts check looks for artsc-config (which is, of 
course, present for the build system), then runs AC_TRY_RUN to check if the 
version is current enough (which will always succeed because you can't 
AC_TRY_RUN while crossompiling).

An additional check to see if the lib found by artsc-config is actually for 
the right target system is required; the attached patch does that.

LLaP
bero

["xine-lib-1.0.1-detect-arts.patch" (text/x-diff)]

--- xine-lib-1.0.1/m4/arts.m4.ark	2005-05-15 15:02:09.000000000 +0200
+++ xine-lib-1.0.1/m4/arts.m4	2005-05-15 15:19:03.000000000 +0200
@@ -44,6 +44,12 @@
       CFLAGS="$CFLAGS $ARTS_CFLAGS"
       LIBS="$LIBS $ARTS_LIBS"
 dnl
+dnl Check if the installed ARTS is actually available -- when cross-compiling,
+dnl we have probably detected the build system's version of artsc-config
+dnl
+      AC_CHECK_LIB([artsc], [arts_init], [], [no_arts=yes], [$ARTS_LIBS])
+
+dnl
 dnl Now check if the installed ARTS is sufficiently new. (Also sanity
 dnl checks the results of artsc-config to some extent)
 dnl

-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
xine-devel mailing list
xine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic