From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12338 invoked by alias); 30 May 2002 18:07:11 -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 12292 invoked from network); 30 May 2002 18:07:10 -0000 Received: from unknown (HELO nerodeguest) (24.161.107.98) by sources.redhat.com with SMTP; 30 May 2002 18:07:10 -0000 Received: from neroden by nerodeguest with local (Exim 3.35 #1 (Debian)) id 17DUK9-0000py-00; Thu, 30 May 2002 14:06:57 -0400 Date: Thu, 30 May 2002 11:11:00 -0000 To: gcc-patches@gcc.gnu.org Cc: gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com Subject: [patch] toplevel configure.in: topsrcdir->srcdir Message-ID: <20020530180657.GA3212@doctormoo.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Nathanael Nerode X-SW-Source: 2002-05/txt/msg01028.txt.bz2 This replaces references to ${topsrcdir} with ${srcdir}. This is correct, since topsrcdir == srcdir when this is run; it is useful for autoconfiscation, because topsrcdir doesn't automatically exist in autoconf scripts, while srcdir does. Tested on i686-pc-linux-gnu. 2002-05-23 Nathanael Nerode * configure.in: replace ${topsrcdir} with ${srcdir} *** configure.in.old Thu May 23 13:50:25 2002 --- configure.in Thu May 23 13:51:07 2002 *************** *** 1451,1457 **** if test x${enable_version_specific_runtime_libs} = xyes; then gxx_include_dir='${libsubdir}/include/g++' else ! . ${topsrcdir}/config.if gxx_include_dir='${prefix}/include/${libstdcxx_incdir}' fi else --- 1451,1457 ---- if test x${enable_version_specific_runtime_libs} = xyes; then gxx_include_dir='${libsubdir}/include/g++' else ! . ${srcdir}/config.if gxx_include_dir='${prefix}/include/${libstdcxx_incdir}' fi else *************** *** 1472,1478 **** esac # If we're not building GCC, don't discard standard headers. ! if test -d ${topsrcdir}/gcc; then FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' if test "${build}" != "${host}"; then --- 1472,1478 ---- esac # If we're not building GCC, don't discard standard headers. ! if test -d ${srcdir}/gcc; then FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' if test "${build}" != "${host}"; then *************** *** 1518,1524 **** # the previously-installed cross compiler, so don't bother to add # flags for directories within the install tree of the compiler # being built; programs in there won't even run. ! if test "${build}" = "${host}" && test -d ${topsrcdir}/gcc; then # Search for pre-installed headers if nothing else fits. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include' fi --- 1518,1524 ---- # the previously-installed cross compiler, so don't bother to add # flags for directories within the install tree of the compiler # being built; programs in there won't even run. ! if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then # Search for pre-installed headers if nothing else fits. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include' fi *************** *** 1532,1538 **** if test "x${CC_FOR_TARGET+set}" = xset; then : ! elif test -d ${topsrcdir}/gcc; then CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/' elif test "$host" = "$target"; then CC_FOR_TARGET='$(CC)' --- 1532,1538 ---- if test "x${CC_FOR_TARGET+set}" = xset; then : ! elif test -d ${srcdir}/gcc; then CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/' elif test "$host" = "$target"; then CC_FOR_TARGET='$(CC)' *************** *** 1548,1554 **** if test "x${GCJ_FOR_TARGET+set}" = xset; then : ! elif test -d ${topsrcdir}/gcc; then GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/' elif test "$host" = "$target"; then GCJ_FOR_TARGET='gcj' --- 1548,1554 ---- if test "x${GCJ_FOR_TARGET+set}" = xset; then : ! elif test -d ${srcdir}/gcc; then GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/' elif test "$host" = "$target"; then GCJ_FOR_TARGET='gcj' *************** *** 1562,1568 **** if test "x${CXX_FOR_TARGET+set}" = xset; then : ! elif test -d ${topsrcdir}/gcc; then # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead # of g++ for linking C++ or Java, because g++ has -shared-libgcc by # default whereas gcc does not. --- 1562,1568 ---- if test "x${CXX_FOR_TARGET+set}" = xset; then : ! elif test -d ${srcdir}/gcc; then # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead # of g++ for linking C++ or Java, because g++ has -shared-libgcc by # default whereas gcc does not.