mine: fixed to only use cross-compiler confopts and config.cache when cross-compiling