configure: use cross toolchain if --target is given
commit2e2c03ecb1c6c3681179d105241b64256cfde600
authorwm4 <wm4@mplayer2.org>
Tue, 31 Jan 2012 07:29:53 +0000 (31 08:29 +0100)
committerUoti Urpala <uau@mplayer2.org>
Wed, 29 Feb 2012 21:52:27 +0000 (29 23:52 +0200)
tree9f160b2caa880a5a3744a55acebe7627a66608fa
parentcca0b196bac19dac82ba778ef5527ba0b9431925
configure: use cross toolchain if --target is given

If --enable-cross-compile is specified, passing
--target=i686-w64-mingw32 for example will check if
i686-w64-mingw32-gcc can be used. This is only done if the compiler
isn't specified via --cc or the CC environment variable.

The same is done for some other build tools, such as pkg-config.
(Only the C compiler will try to use a fallback in this case.)
configure