On Feb 18, 2008 6:25 PM, Yura Siamashka yurand2@gmail.com wrote:
Also I used: test "x$target" != "x${target##*mingw}"; to detect windows cross-compile, but perhaps ## syntax is bashism. Anyone know how to check it better?
If you just need to test for the general case of cross compiling, I think this should work:
[test "x${cross_compiling}" = "xyes"]
And then maybe something like:
case "${host_os}" in mingw*) # ... ;; esac
to test for mingw...
- Jeff