aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2002-12-03 21:13:06 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2002-12-03 21:13:06 +0000
commit15723a45b7daa3a4549682d52fa7d3b2bc2438a6 (patch)
tree02ad0c8dcb4546d941be105d8085f4117d864e45 /configure.in
parent46248966cc79678ea2abe9a3ea5a38caeba07581 (diff)
downloadgdb-15723a45b7daa3a4549682d52fa7d3b2bc2438a6.zip
gdb-15723a45b7daa3a4549682d52fa7d3b2bc2438a6.tar.gz
gdb-15723a45b7daa3a4549682d52fa7d3b2bc2438a6.tar.bz2
* configure.in: Introduce BASE_CC_FOR_TARGET.
* Makefile.tpl: Reorganize and comment. Introduce HOST_CONFIGARGS. Realize configure-build-* targets. Realize configure-target-* targets. * Makefile.in: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index c2fd28e..a0795f6 100644
--- a/configure.in
+++ b/configure.in
@@ -1653,6 +1653,12 @@ qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'`
qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'`
+# BASE_CC_FOR_TARGET is the actual program file of CC_FOR_TARGET,
+# for use in dependencies. Replace $$r with a relative
+# path if it's present.
+set dummy $CC_FOR_TARGET; cc_for_target_first_word=$2
+BASE_CC_FOR_TARGET=`echo "$cc_for_target_first_word" | sed -e 's,[$][$]r,.,'`
+
sedtemp=sed.$$
cat >$sedtemp <<EOF
s%@GDB_TK@%${GDB_TK}%
@@ -1669,6 +1675,7 @@ s:@target_configdirs@:${target_configdirs}:
s%@target_configargs@%${targargs}%
s%@FLAGS_FOR_TARGET@%${FLAGS_FOR_TARGET}%
s%@CC_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}%
+s%@BASE_CC_FOR_TARGET@%${BASE_CC_FOR_TARGET}%
s%@GCJ_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}%
s%@CXX_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}%
s%@RAW_CXX_FOR_TARGET@%\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}%
@@ -1685,7 +1692,3 @@ rm -f Makefile $sedtemp
mv -f Makefile.tem Makefile
#
-# Local Variables:
-# fill-column: 131
-# End:
-#