modify configure.in to do cross compile with global script