summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2000-05-18 17:11:17 +0000
committerH.J. Lu <hjl@lucon.org>2000-05-18 17:11:17 +0000
commitdb39e77025a4c4653567ec44c7a4b8cc709cc81e (patch)
treea6727eb7eb263bb6063401c313990d5f6bec1a42 /configure
parent1e1bca14f967042f4336b7e9b7222a919df9c71e (diff)
downloadgdb-db39e77025a4c4653567ec44c7a4b8cc709cc81e.tar.gz
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-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 06bd1a1308d..fbf5ab58479 100755
--- a/configure
+++ b/configure
@@ -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.