Re: Patch to specify out-of-tree gdk-pixbuf-csource for cross compiling



Hi,

Michael Natterer <mitch gimp org> writes:

> Done. Unfortunately, I noticed that the stuff I did to the configure
> scripts won't work...
> 
> What I did is:
> 
> AM_CONDITIONAL(CROSS_COMPILING, test $build != $host)
> 
> if test $CROSS_COMPILING; then
>   (...)
> 
> 
> but CROSS_COMPILING expands to CROSS_COMPILING_TRUE and CROSS_COMPILING_FALSE
> in the generated configure...
> 
> The following version would work but looks ugly...
> 
> AM_CONDITIONAL(CROSS_COMPILING, test $build != $host)
> 
> if test x$CROSS_COMPILING_FALSE = x; then
>   (...)

what about something like this:

if test $build != $host; then
  cross_compiling=yes
else
  cross_compiling=no
fi

AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)

if test $cross_compiling = yes; then
  ...
fi


Salut, Sven



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