configure.in, configure: Make sure to create the stage* and include symbolic links...
authorBrendan Kehoe <brendan@gcc.gnu.org>
Wed, 17 Sep 1997 23:55:13 +0000 (19:55 -0400)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Wed, 17 Sep 1997 23:55:13 +0000 (19:55 -0400)
* 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
gcc/configure.in

index 532750e..e3b38f6 100755 (executable)
@@ -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
index 605cb60..4d991f9 100644 (file)
@@ -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}'