From 4e8a434e98c9e4cd58f03c3ab1f27e0e8907d3a4 Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Wed, 17 Sep 1997 19:55:13 -0400 Subject: [PATCH] configure.in, configure: Make sure to create the stage* and include symbolic links in each subdirectory... * configure.in, configure: Make sure to create the stage* and include symbolic links in each subdirectory, as we do in configure.lang for non-autoconf configurations. fixes cp 3stage problem From-SVN: r15528 --- gcc/configure | 13 +++++++++++++ gcc/configure.in | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/gcc/configure b/gcc/configure index 532750efec8..e3b38f64dd6 100755 --- a/gcc/configure +++ b/gcc/configure @@ -5111,6 +5111,19 @@ case x$CONFIG_HEADERS in xconfig.h:config.in) echo > cstamp-h ;; esac +# Make sure we create things so -Bstage1/ will work. +for d in .. ${subdirs} ; do + if [ $d != .. ]; then + STARTDIR=`pwd` + cd $d + for t in stage1 stage2 stage3 stage4 include + do + rm -f $t + $symbolic_link ../$t $t 2>/dev/null + done + cd $STARTDIR + fi +done exit 0 EOF diff --git a/gcc/configure.in b/gcc/configure.in index 605cb6014bf..4d991f93df6 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -3147,6 +3147,19 @@ case x$CONFIG_HEADERS in xconfig.h:config.in) echo > cstamp-h ;; esac +# Make sure we create things so -Bstage1/ will work. +for d in .. ${subdirs} ; do + if [ $d != .. ]; then + STARTDIR=`pwd` + cd $d + for t in stage1 stage2 stage3 stage4 include + do + rm -f $t + $symbolic_link ../$t $t 2>/dev/null + done + cd $STARTDIR + fi +done ], [ host='${host}'