diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-05-18 17:11:17 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-05-18 17:11:17 +0000 |
commit | 6c7395bfce9491415d6672bc97a7f6e70fd07fd9 (patch) | |
tree | 47fc27318f5766a5d08ad38354360d6abb939691 /configure | |
parent | 52a3d41377a83e7408325a078a33784f97d5cc5f (diff) | |
download | newlib-6c7395bfce9491415d6672bc97a7f6e70fd07fd9.zip newlib-6c7395bfce9491415d6672bc97a7f6e70fd07fd9.tar.gz newlib-6c7395bfce9491415d6672bc97a7f6e70fd07fd9.tar.bz2 |
20000-05-18 H.J. Lu (hjl@gnu.org)
* configure: Ask to create the gcc directory for cross
compiling if necessary.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -753,6 +753,17 @@ target_vendor=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` target_os=`echo $result | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` target=${target_cpu}-${target_vendor}-${target_os} +if [ x${target} != x${build} -a x${build} = x${host} ]; then + if [ x${gcc_version} != x -a ! -d ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version} ]; then + echo "Please create the directory:" 1>&2 + echo 1>&2 + echo " ${prefix}/lib/gcc-lib/${target_alias}/${gcc_version}" 1>&2 + echo 1>&2 + echo "first for successful cross-compilation." 1>&2 + exit 1 + fi +fi + . ${tmpfile}.tgt # Find the source files, if location was not specified. |