aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1998-01-26 23:04:13 +0000
committerFred Fish <fnf@specifix.com>1998-01-26 23:04:13 +0000
commitd8021475a12889c40ff24decef95838aded2bec2 (patch)
treebffdffe2b82ce4cc6a50a6e6ac0631b09497b0dc /configure
parent26192c5084bc0938e950f000d4ad706277c23034 (diff)
downloadfsf-binutils-gdb-d8021475a12889c40ff24decef95838aded2bec2.zip
fsf-binutils-gdb-d8021475a12889c40ff24decef95838aded2bec2.tar.gz
fsf-binutils-gdb-d8021475a12889c40ff24decef95838aded2bec2.tar.bz2
Fix some problems with gdbtk sanitization.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 472f728..4b09c82 100755
--- a/configure
+++ b/configure
@@ -975,6 +975,7 @@ export CXX
export CFLAGS
export CXXFLAGS
+# start-sanitize-gdbtk
# FIXME: This should be in configure.in, not configure
case "$host" in
*go32*)
@@ -997,6 +998,7 @@ if [ "$enable_gdbtk" != "no" ]; then
else
GDB_TK=""
fi
+# end-sanitize-gdbtk
for subdir in . ${subdirs} ; do
@@ -1295,7 +1297,6 @@ EOF
s%^CXXFLAGS[ ]*=.*$%CXXFLAGS = ${CXXFLAGS}%
}" \
-e "s|^SHELL[ ]*=.*$|SHELL = ${config_shell}|" \
- -e "s:^GDB_TK[ ]*=.*$:GDB_TK = ${GDB_TK}:" \
-e "s|^srcdir[ ]*=.*$|srcdir = ${makesrcdir}|" \
-e "s/ //" \
-e "s:^program_prefix[ ]*=.*$:program_prefix = ${program_prefix}:" \
@@ -1305,6 +1306,10 @@ EOF
-e "s:^DEFAULT_YACC[ ]*=.*$:DEFAULT_YACC = ${DEFAULT_YACC}:" \
-e "s:^DEFAULT_LEX[ ]*=.*$:DEFAULT_LEX = ${DEFAULT_LEX}:" \
${subdir}/Makefile.tem >> ${Makefile}
+ # start-sanitize-gdbtk
+ sed -e "s:^GDB_TK[ ]*=.*$:GDB_TK = ${GDB_TK}:" ${Makefile} >${Makefile}.tem
+ mv -f ${Makefile}.tem ${Makefile}
+ # end-sanitize-gdbtk
# If this is a Canadian Cross, preset the values of many more
# tools.