#export crossOS=windows export crossOS=android if [ $crossOS = "windows" ] ; then export crossHost=i686-w64-mingw32 elif [ $crossOS = "android" ] ; then export crossHost=arm-linux-androideabi fi export CROSSCONFIGURE_VARS="CPP=$crossHost-cpp CC=$crossHost-gcc CXX=$crossHost-g++ LD=$crossHost-ld AR=$crossHost-ar RANLIB=$crossHost-ranlib" export CROSSCONFIGURE_ARGS="--host=$crossHost" if [ $crossOS = "android" ] ; then if [ "x$1" = "xtarclean" ] ; then /bin/rm .CONFIG-UPDATE-DONE elif [ ! -f .CONFIG-UPDATE-DONE ] ; then echo "****" echo "* For Android cross-compiling, not all tarred-up packages" echo "* are new enough to shiip with configure files (config.guess" echo "* and config.sub) that recognize android as a --host choice" echo "****" echo "..." sleep 2 ./CASCADE-MAKE.sh untar echo "=> Updating config.guess to newer version for all packages" find packages -name "config.guess" -exec /bin/cp android-extra/config.guess {} \; -print echo "=> Updating config.sub to newer version for all packages" find packages -name "config.sub" -exec /bin/cp android-extra/config.sub {} \; -print echo "****" sleep 2 echo "Updated config.guess and config.sub files" > .CONFIG-UPDATE-DONE fi fi ./CASCADE-MAKE.sh $*