From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 791 invoked by alias); 24 Jan 2003 03:41:12 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 777 invoked from network); 24 Jan 2003 03:41:11 -0000 Received: from unknown (HELO ms-smtp-01.nyroc.rr.com) (24.92.226.148) by 172.16.49.205 with SMTP; 24 Jan 2003 03:41:11 -0000 Received: from doctormoo (syr-24-24-19-53.twcny.rr.com [24.24.19.53]) by ms-smtp-01.nyroc.rr.com (8.12.5/8.12.2) with ESMTP id h0O3fAnw026182; Thu, 23 Jan 2003 22:41:10 -0500 (EST) Received: from neroden by doctormoo with local (Exim 3.36 #1 (Debian)) id 18bui6-00070T-00; Thu, 23 Jan 2003 22:40:54 -0500 Date: Fri, 24 Jan 2003 03:41:00 -0000 To: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com Subject: (toplevel patch) Use canonical names for target_subdir, build_subdir. Message-ID: <20030124034053.GA22615@doctormoo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i From: Nathanael Nerode X-SW-Source: 2003-01/txt/msg00714.txt.bz2 Use the canonical build and target names for build_subdir and target_subdir. This saves a tedious amount of work when we get around to autoconf 2.5x conversion (where build_alias and target_alias may be empty strings). Built successfully on i686-pc-linux-gnu. (But then, this should make no difference at all in the native case.) Built combined tree cross to i386-cygwin, and one to powerpc-linux. They worked as well as they did before. Did as much other testing as I could with the tremendous unreliability of out-of-the-box cross builds. This was an easy change to make, and a pain in the neck to test, due to general breakage for crosses in src. I wouldn't mind additional testing by people better at it than me. I think I got everything which needs to change, but I'm not 100% sure. (top level) * configure.in: Use canonical names for build_subdir, target_subdir. * configure: Regenerate. (gcc) * configure.in: Use canonical names for build_subdir, target_subdir. * configure: Regenerate. (gdb) * configure.in: Use canonical name for target_subdir. * configure: Regenerate. Note that this doesn't always like to apply as a single 'patch'; it's usually happier as three. Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.216 diff -u -r1.216 configure.in --- configure.in 23 Jan 2003 22:32:25 -0000 1.216 +++ configure.in 23 Jan 2003 22:43:58 -0000 @@ -201,7 +201,7 @@ # We always want to use the same name for this directory, so that dejagnu # can reliably find it. -target_subdir=${target_alias} +target_subdir=${target} if test ! -d ${target_subdir} ; then if mkdir ${target_subdir} ; then true @@ -211,8 +211,7 @@ fi fi -build_prefix=build- -build_subdir=${build_prefix}${build_alias} +build_subdir=build-${build} if test x"${build_alias}" != x"${host}" ; then if test ! -d ${build_subdir} ; then Index: gcc/configure.in =================================================================== RCS file: /cvs/gcc/gcc/gcc/configure.in,v retrieving revision 1.637 diff -u -r1.637 configure.in --- gcc/configure.in 21 Jan 2003 13:45:07 -0000 1.637 +++ gcc/configure.in 23 Jan 2003 22:44:09 -0000 @@ -1028,7 +1028,7 @@ cd .. rm -rf $tempdir build_auto=auto-build.h - FORBUILD=../build-$build_alias + FORBUILD=../build-$build fi AC_SUBST(FORBUILD) @@ -2712,7 +2712,7 @@ host_canonical=${host} target_subdir= if test "${host}" != "${target}" ; then - target_subdir=${target_alias}/ + target_subdir=${target}/ fi AC_SUBST(build_canonical) AC_SUBST(host_canonical) Index: gdb/configure.in =================================================================== RCS file: /cvs/src/src/gdb/configure.in,v retrieving revision 1.118 diff -u -r1.118 configure.in --- gdb/configure.in 22 Jan 2003 23:50:35 -0000 1.118 +++ gdb/configure.in 23 Jan 2003 22:44:27 -0000 @@ -1204,7 +1204,7 @@ # target_subdir is used by the testsuite to find the target libraries. target_subdir= if test "${host}" != "${target}"; then - target_subdir="${target_alias}/" + target_subdir="${target}/" fi AC_SUBST(target_subdir)