From 391e5612c626d37504c2f08c0b6319ba18b2e1c7 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 6 Jul 1991 04:35:51 +0000 Subject: Fix bug in configure when iterating targets. Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found in either spot. --- gdb/configure | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'gdb/configure') diff --git a/gdb/configure b/gdb/configure index e52fc6a..03ad63e 100755 --- a/gdb/configure +++ b/gdb/configure @@ -294,6 +294,8 @@ for host in ${hosts} ; do defaulttargets=true fi + host_makefile_frag=config/hmake-${host} + #### configure.in per-host parts come in here. if [ ! -f xconfig/${host} ]; then @@ -313,6 +315,8 @@ hostfile=`awk '$1 == "XM_FILE=" { print $2 }' > ${Makefile} - # and shake thoroughly. - if [ -z "${host_makefile_frag}" ] ; then - host_makefile_frag=config/hmake-${host} - fi - - if [ -z "${target_makefile_frag}" ] ; then - target_makefile_frag=config/tmake-${target} - fi - # Conditionalize the makefile for this host. if [ -f ${srcdir}/${host_makefile_frag} ] ; then sed -e "/^####/ r ${srcdir}/${host_makefile_frag}" ${Makefile} > Makefile.tem @@ -510,10 +505,6 @@ fi mv Makefile.tem ${Makefile} fi - # Remove all formfeeds, since some Makes get confused by them. - sed "s/ //" ${Makefile} >> Makefile.tem - mv Makefile.tem ${Makefile} - # reset SUBDIRS sed "s:^SUBDIRS =.*$:SUBDIRS = ${configdirs}:" ${Makefile} > Makefile.tem mv Makefile.tem ${Makefile} @@ -668,7 +659,12 @@ exit 0 # # $Log$ -# Revision 1.8 1991/07/05 00:04:58 gnu +# Revision 1.9 1991/07/06 04:35:51 gnu +# Fix bug in configure when iterating targets. +# Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found +# in either spot. +# +# Revision 1.8 1991/07/05 00:04:58 gnu # Thu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com) # # * configure.in, Makefile.in: Avoid rebuilding "depend" as much. -- cgit v1.1