aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1997-07-22 16:25:40 +0000
committerDoug Evans <dje@gnu.org>1997-07-22 16:25:40 +0000
commit94f420183c391d8e8089fbe9bbefff61f573f773 (patch)
tree755200065ee3af1bfe9ecd023e5f0203b01b2d8d
parentd232dfa451bd52b3a29d534a03ffb9164e5adbc1 (diff)
downloadgcc-94f420183c391d8e8089fbe9bbefff61f573f773.zip
gcc-94f420183c391d8e8089fbe9bbefff61f573f773.tar.gz
gcc-94f420183c391d8e8089fbe9bbefff61f573f773.tar.bz2
configure.in (host_overrides): Set to Make-host.
* configure.in (host_overrides): Set to Make-host. (dep_host_xmakefile): Loop over all elements in host_make_file. (target_overrides): Set to Make-target. (dep_tmake_file): Loop over all elements in tmake_file. (configure.frag): Pass dep_host_xmake_file, dep_tmake_file. From-SVN: r14516
-rw-r--r--gcc/configure.in36
1 files changed, 22 insertions, 14 deletions
diff --git a/gcc/configure.in b/gcc/configure.in
index 05fd76d..ffc87ac 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -2753,22 +2753,30 @@ topdir=`pwd`
cd $holddir
# Conditionalize the makefile for this host machine.
-host_overrides=/dev/null
+# Make-host contains the concatenation of all host makefile fragments
+# [there can be more than one]. This file is built by configure.frag.
+host_overrides=Make-host
dep_host_xmake_file=
-if [[ x"$host_xmake_file" != x -a -f ${srcdir}/config/$host_xmake_file ]]
-then
- host_overrides=$srcdir/config/$host_xmake_file
- dep_host_xmake_file="\$(srcdir)/config/$host_xmake_file"
-fi
+for f in .. ${host_xmake_file}
+do
+ if [[ -f ${srcdir}/config/$f ]]
+ then
+ dep_host_xmake_file="${dep_host_xmake_file} ${srcdir}/config/$f"
+ fi
+done
# Conditionalize the makefile for this target machine.
-target_overrides=/dev/null
+# Make-target contains the concatenation of all host makefile fragments
+# [there can be more than one]. This file is built by configure.frag.
+target_overrides=Make-target
dep_tmake_file=
-if [[ x"$tmake_file" != x -a -f ${srcdir}/config/$tmake_file ]]
-then
- target_overrides=$srcdir/config/$tmake_file
- dep_tmake_file="\$(srcdir)/config/$tmake_file"
-fi
+for f in .. ${tmake_file}
+do
+ if [[ -f ${srcdir}/config/$f ]]
+ then
+ dep_tmake_file="${dep_tmake_file} ${srcdir}/config/$f"
+ fi
+done
# If the host doesn't support symlinks, modify CC in
# FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
@@ -2982,8 +2990,8 @@ do
echo "lang.$t: $x" >> Make-hooks
done
-# Process the language fragments
-${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs"
+# Process the language and host/target makefile fragments.
+${CONFIG_SHELL-/bin/sh} $srcdir/configure.frag $srcdir "$subdirs" "$dep_host_xmake_file" "$dep_tmake_file"
# Substitute configuration variables
AC_SUBST(subdirs)