aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-04-03 18:30:15 +0000
committerIan Lance Taylor <ian@airs.com>1998-04-03 18:30:15 +0000
commit03abc2bd652b49325b5a66563c7a5dbdf158fd39 (patch)
tree7a33ff895bc9acf6054c60b07f48772e4a7036c8 /ld/configure.in
parented1cc83df244cd183a04a5b390e9e91bc27f1e66 (diff)
downloadgdb-03abc2bd652b49325b5a66563c7a5dbdf158fd39.zip
gdb-03abc2bd652b49325b5a66563c7a5dbdf158fd39.tar.gz
gdb-03abc2bd652b49325b5a66563c7a5dbdf158fd39.tar.bz2
* configure.in: Put the tdirs in a file and use AC_SUBST_FILE,
rather than in a shell variable and using AC_SUBST. * Makefile.am (DISTCLEANFILES): Remove ldscripts. Add tdirs. (distclean-local): New target. * configure, Makefile.in: Rebuild.
Diffstat (limited to 'ld/configure.in')
-rw-r--r--ld/configure.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/ld/configure.in b/ld/configure.in
index 8fb33a6..8a27a72 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -70,7 +70,12 @@ BFD_NEED_DECLARATION(getenv)
all_targets=
EMUL=
all_emuls=
-TDIRS=
+
+dnl We need to get an arbitrary number of tdir definitions into
+dnl Makefile. We can't do it using AC_SUBST, because autoconf does
+dnl not permit literal newlines in an AC_SUBST variables. So we use a
+dnl file.
+rm -f tdirs
for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
do
@@ -98,8 +103,7 @@ do
all_emuls="$all_emuls e${i}.o"
eval result=\$tdir_$i
test -z "$result" && result=$targ_alias
- TDIRS="$TDIRS\\
-tdir_$i=$result"
+ echo tdir_$i=$result >> tdirs
;;
esac
done
@@ -107,7 +111,9 @@ tdir_$i=$result"
done
AC_SUBST(EMUL)
-AC_SUBST(TDIRS)
+
+TDIRS=tdirs
+AC_SUBST_FILE(TDIRS)
dnl FIXME: We will build a 64 bit BFD for a 64 bit host or a 64 bit
dnl target, and in those cases we should also build the 64 bit