Cross-compiling SDL

Hi
I’m trying to cross-compile an application (MPEG4IP) which uses SDL 1.2.5 for a SH4-Linux platform. The problem is that a couple of configure scripts make some checks on a file existence, like this:

echo “$as_me:$LINENO: checking for lib/SDL/sdl-config” >&5
echo $ECHO_N “checking for lib/SDL/sdl-config… $ECHO_C” >&6
if test “${ac_cv_file_lib_SDL_sdl_config+set}” = set; then
echo $ECHO_N “(cached) $ECHO_C” >&6
else
test “$cross_compiling” = yes &&
{ { echo “$as_me:$LINENO: error: cannot check for file existence when cross compiling” >&5
echo “$as_me: error: cannot check for file existence when cross compiling” >&2;}
{ (exit 1); exit 1; }; }
if test -r “lib/SDL/sdl-config”; then
ac_cv_file_lib_SDL_sdl_config=yes
else
ac_cv_file_lib_SDL_sdl_config=no
fi
fi

and the process breaks. The guys of mpeg4ip can’t resolve this problem. Can I remove this check ?

Thanks in advance

BTW: When I try to configure only SDL, using this script:

!/bin/bash

export CROSS=<…>/bin/sh4-linux-
export CC=$CROSS"gcc"
export CXX=$CROSS"g++"
./configure --prefix /root/sh4_bin --build="./config.guess" --host=“sh4-linux” --disable-joystick --disable-cdrom --disable-esdtest --disable-arts --disable-nas --disable-diskaudio --disable-mintaudio --disable-video-dga --disable-video-photon --disable-video-ps2gs --disable–video-xbios --disable-video-gem --without-x

I can cross-compile successfully.____________________________________________

Nicola Franchi

CEFRIEL - Politecnico di Milano ~ Image & Audio Processing Unit
Via Fucini 2 - 20133 Milano - Italy
Phone: +39 02 23954 284, Fax: +39 02 23954 484
E-mail: @Nicola_Franchi