more configure template fixes

fix toolchain script

fix incompatibility with some unix systems

(0) -10 -3 +3 +10 +30 +100 tip

mercurial